2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Added database changes to changelog (need to update database/quexs.sql)

Added operator_chat_enabled function
Added sUpervisor chat tab to index
updated chat to be able to send and receive
This commit is contained in:
Adam Zammit
2013-07-16 16:34:36 +10:00
parent 69ba3fb690
commit 0554fd4b25
5 changed files with 139 additions and 23 deletions

View File

@@ -158,6 +158,7 @@ $sc = $db->GetOne($sql);
$ca = get_call_attempt($operator_id,true);
$appointment = false;
$availability = is_using_availability($case_id);
$chat = operator_chat_enabled($operator_id);
if ($ca)
{
if (is_on_appointment($ca))
@@ -271,6 +272,15 @@ xhtml_object($data,"main-content");
</div>
<?php }?>
<?php if ($chat) { ?>
<div class="tabbertab <?php if ((DEFAULT_TAB == 'chat' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'chat' && $appointment))
print "tabbertabdefault"; ?>">
<h2><?php echo T_("Supervisor chat"); ?></h2>
<div id="div-supervisorchat" class="tabberdiv"><?php xhtml_object("supervisorchat.php","main-supervisorchat");?></div>
</div>
<?php }?>
<?php if (TAB_INFO) { ?>
<div class="tabbertab <?php if ((DEFAULT_TAB == 'info' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'info' && $appointment))