mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Can disable/enable tabs in config file
This commit is contained in:
18
index.php
18
index.php
@@ -164,13 +164,15 @@ xhtml_object($data,"main-content");
|
||||
|
||||
<div class="tabber" id="tab-main">
|
||||
|
||||
<? if (TAB_CASENOTES) { ?>
|
||||
<div class="tabbertab <? if ((DEFAULT_TAB == 'casenotes' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'casenotes' && $appointment))
|
||||
print "tabbertabdefault"; ?>">
|
||||
<h2><? echo T_("Notes"); ?></h2>
|
||||
<div id="div-casenotes" class="tabberdiv"><?xhtml_object("casenote.php","main-casenotes");?></div>
|
||||
</div>
|
||||
<? }?>
|
||||
|
||||
<? if (CONTACT_DETAILS_TAB) { ?>
|
||||
<? if (TAB_CONTACTDETAILS) { ?>
|
||||
<div class="tabbertab <? if ((DEFAULT_TAB == 'contactdetails' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'contactdetails' && $appointment))
|
||||
print "tabbertabdefault"; ?>">
|
||||
<h2><? echo T_("Contact details"); ?></h2>
|
||||
@@ -179,51 +181,65 @@ xhtml_object($data,"main-content");
|
||||
<? }?>
|
||||
|
||||
|
||||
<? if (TAB_CALLLIST) { ?>
|
||||
<div class="tabbertab <? if ((DEFAULT_TAB == 'calllist' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'calllist' && $appointment))
|
||||
print "tabbertabdefault"; ?>">
|
||||
<h2><? echo T_("Call history"); ?></h2>
|
||||
<div id="div-calllist" class="tabberdiv"><?xhtml_object("calllist.php","main-calllist");?></div>
|
||||
</div>
|
||||
<? }?>
|
||||
|
||||
|
||||
<? if (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>
|
||||
<div id="div-shifts" class="tabberdiv"><?xhtml_object("shifts.php","main-shifts");?></div>
|
||||
</div>
|
||||
<? }?>
|
||||
|
||||
|
||||
<? if (TAB_APPOINTMENTLIST) { ?>
|
||||
<div class="tabbertab <? if ((DEFAULT_TAB == 'appointmentlist' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'appointmentlist' && $appointment))
|
||||
print "tabbertabdefault"; ?>">
|
||||
<h2><? echo T_("Appointments"); ?></h2>
|
||||
<div id="div-appointmentlist" class="tabberdiv"><?xhtml_object("appointmentlist.php","main-appointmentlist");?></div>
|
||||
</div>
|
||||
<? }?>
|
||||
|
||||
|
||||
<? if (TAB_PERFORMANCE) { ?>
|
||||
<div class="tabbertab <? if ((DEFAULT_TAB == 'performance' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'performance' && $appointment))
|
||||
print "tabbertabdefault"; ?>">
|
||||
<h2><? echo T_("Performance"); ?></h2>
|
||||
<div id="div-performance" class="tabberdiv"><?xhtml_object("performance.php","main-performance");?></div>
|
||||
</div>
|
||||
<? }?>
|
||||
|
||||
<? if (TAB_CALLHISTORY) { ?>
|
||||
<div class="tabbertab <? if ((DEFAULT_TAB == 'callhistory' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'callhistory' && $appointment))
|
||||
print "tabbertabdefault"; ?>">
|
||||
<h2><? echo T_("Work history"); ?></h2>
|
||||
<div id="div-callhistory" class="tabberdiv"><?xhtml_object("callhistory.php","main-callhistory");?></div>
|
||||
</div>
|
||||
<? }?>
|
||||
|
||||
<? if (TAB_PROJECTINFO) { ?>
|
||||
<div class="tabbertab <? if ((DEFAULT_TAB == 'projectinfo' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'projectinfo' && $appointment))
|
||||
print "tabbertabdefault"; ?>">
|
||||
<h2><? echo T_("Project information"); ?></h2>
|
||||
<div id="div-projectinfo" class="tabberdiv"><?xhtml_object("project_info.php","main-projectinfo");?></div>
|
||||
</div>
|
||||
<? }?>
|
||||
|
||||
|
||||
<? if (TAB_INFO) { ?>
|
||||
<div class="tabbertab <? if ((DEFAULT_TAB == 'info' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'info' && $appointment))
|
||||
print "tabbertabdefault"; ?>">
|
||||
<h2><? echo T_("Info"); ?></h2>
|
||||
<div id="div-info" class="tabberdiv"><?xhtml_object("info.php","main-info");?></div>
|
||||
</div>
|
||||
<? }?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user