mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Added DEFAULT_TAB and DEFAULT_TAB_APPOINTMNT to config files to define default tab to see on case screen
This commit is contained in:
@@ -192,6 +192,16 @@ if (!defined('AUTO_COMPLETE_OUTCOME')) define('AUTO_COMPLETE_OUTCOME',false);
|
|||||||
*/
|
*/
|
||||||
if (!defined('AUTO_LOGOUT_MINUTES')) define('AUTO_LOGOUT_MINUTES',false);
|
if (!defined('AUTO_LOGOUT_MINUTES')) define('AUTO_LOGOUT_MINUTES',false);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The default tab to start on on the main screen
|
||||||
|
*/
|
||||||
|
if (!defined('DEFAULT_TAB')) define('DEFAULT_TAB','casenotes');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The default tab to start on for appointments
|
||||||
|
*/
|
||||||
|
if (!defined('DEFAULT_TAB_APPOINTMENT')) define('DEFAULT_TAB_APPOINTMENT','casenotes');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Database configuration for queXS
|
* Database configuration for queXS
|
||||||
*/
|
*/
|
||||||
|
|||||||
36
index.php
36
index.php
@@ -126,8 +126,16 @@ print $script;
|
|||||||
<div id="content">
|
<div id="content">
|
||||||
<?
|
<?
|
||||||
|
|
||||||
get_case_id($operator_id,true);
|
$case_id = get_case_id($operator_id,true);
|
||||||
get_call_attempt($operator_id,true);
|
$ca = get_call_attempt($operator_id,true);
|
||||||
|
$appointment = false;
|
||||||
|
if ($ca)
|
||||||
|
{
|
||||||
|
if (is_on_appointment($ca))
|
||||||
|
{
|
||||||
|
$appointment= true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!is_respondent_selection($operator_id))
|
if (!is_respondent_selection($operator_id))
|
||||||
$data = get_limesurvey_url($operator_id);
|
$data = get_limesurvey_url($operator_id);
|
||||||
@@ -153,47 +161,55 @@ xhtml_object($data,"main-content");
|
|||||||
|
|
||||||
<div class="tabber" id="tab-main">
|
<div class="tabber" id="tab-main">
|
||||||
|
|
||||||
<div class="tabbertab">
|
<div class="tabbertab <? if ((DEFAULT_TAB == 'casenotes' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'casenotes' && $appointment))
|
||||||
|
print "tabbertabdefault"; ?>">
|
||||||
<h2><? echo T_("Notes"); ?></h2>
|
<h2><? echo T_("Notes"); ?></h2>
|
||||||
<div id="div-casenotes" class="tabberdiv"><?xhtml_object("casenote.php","main-casenotes");?></div>
|
<div id="div-casenotes" class="tabberdiv"><?xhtml_object("casenote.php","main-casenotes");?></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="tabbertab">
|
<div class="tabbertab <? if ((DEFAULT_TAB == 'calllist' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'calllist' && $appointment))
|
||||||
|
print "tabbertabdefault"; ?>">
|
||||||
<h2><? echo T_("Call history"); ?></h2>
|
<h2><? echo T_("Call history"); ?></h2>
|
||||||
<div id="div-calllist" class="tabberdiv"><?xhtml_object("calllist.php","main-calllist");?></div>
|
<div id="div-calllist" class="tabberdiv"><?xhtml_object("calllist.php","main-calllist");?></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="tabbertab" id="tab-shifts">
|
<div class="tabbertab <? if ((DEFAULT_TAB == 'shifts' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'shifts' && $appointment))
|
||||||
|
print "tabbertabdefault"; ?>" id="tab-shifts">
|
||||||
<h2><? echo T_("Shifts"); ?></h2>
|
<h2><? echo T_("Shifts"); ?></h2>
|
||||||
<div id="div-shifts" class="tabberdiv"><?xhtml_object("shifts.php","main-shifts");?></div>
|
<div id="div-shifts" class="tabberdiv"><?xhtml_object("shifts.php","main-shifts");?></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="tabbertab">
|
<div class="tabbertab <? if ((DEFAULT_TAB == 'appointmentlist' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'appointmentlist' && $appointment))
|
||||||
|
print "tabbertabdefault"; ?>">
|
||||||
<h2><? echo T_("Appointments"); ?></h2>
|
<h2><? echo T_("Appointments"); ?></h2>
|
||||||
<div id="div-appointmentlist" class="tabberdiv"><?xhtml_object("appointmentlist.php","main-appointmentlist");?></div>
|
<div id="div-appointmentlist" class="tabberdiv"><?xhtml_object("appointmentlist.php","main-appointmentlist");?></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="tabbertab">
|
<div class="tabbertab <? if ((DEFAULT_TAB == 'performance' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'performance' && $appointment))
|
||||||
|
print "tabbertabdefault"; ?>">
|
||||||
<h2><? echo T_("Performance"); ?></h2>
|
<h2><? echo T_("Performance"); ?></h2>
|
||||||
<div id="div-performance" class="tabberdiv"><?xhtml_object("performance.php","main-performance");?></div>
|
<div id="div-performance" class="tabberdiv"><?xhtml_object("performance.php","main-performance");?></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tabbertab">
|
<div class="tabbertab <? if ((DEFAULT_TAB == 'callhistory' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'callhistory' && $appointment))
|
||||||
|
print "tabbertabdefault"; ?>">
|
||||||
<h2><? echo T_("Work history"); ?></h2>
|
<h2><? echo T_("Work history"); ?></h2>
|
||||||
<div id="div-callhistory" class="tabberdiv"><?xhtml_object("callhistory.php","main-callhistory");?></div>
|
<div id="div-callhistory" class="tabberdiv"><?xhtml_object("callhistory.php","main-callhistory");?></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tabbertab">
|
<div class="tabbertab <? if ((DEFAULT_TAB == 'projectinfo' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'projectinfo' && $appointment))
|
||||||
|
print "tabbertabdefault"; ?>">
|
||||||
<h2><? echo T_("Project information"); ?></h2>
|
<h2><? echo T_("Project information"); ?></h2>
|
||||||
<div id="div-projectinfo" class="tabberdiv"><?xhtml_object("project_info.php","main-projectinfo");?></div>
|
<div id="div-projectinfo" class="tabberdiv"><?xhtml_object("project_info.php","main-projectinfo");?></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="tabbertab">
|
<div class="tabbertab <? if ((DEFAULT_TAB == 'info' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'info' && $appointment))
|
||||||
|
print "tabbertabdefault"; ?>">
|
||||||
<h2><? echo T_("Info"); ?></h2>
|
<h2><? echo T_("Info"); ?></h2>
|
||||||
<div id="div-info" class="tabberdiv"><?xhtml_object("info.php","main-info");?></div>
|
<div id="div-info" class="tabberdiv"><?xhtml_object("info.php","main-info");?></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user