Usability Improvements (#2807)
[openemr.git] / interface / patient_file / summary / dashboard_header_simple_return.php
blob192b1b76ffa39d9a868d779b77a94ce4a0f776b9
1 <?php
2 /**
3 * Dash Board Header Simple.
5 * @package OpenEMR
6 * @link http://www.open-emr.org
7 * @author Ranganath Pathak <pathak@scrs1.org>
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2018 Ranganath Pathak <pathak@scrs1.org>
10 * @copyright Copyright (c) 2018 Brady Miller <brady.g.miller@gmail.com>
11 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
15 <?php
16 if ($GLOBALS['enable_help'] == 1) {
17 $help_icon = '<a class="oe-pull-away oe-help-redirect" data-target="#myModal" data-toggle="modal" href="#" id="help-href" name="help-href" style="color: var(--gray)" title="' . xla("Click to view Help") . '"><i class="fa fa-question-circle" aria-hidden="true"></i></a>';
18 } elseif ($GLOBALS['enable_help'] == 2) {
19 $help_icon = '<a class="oe-pull-away oe-help-redirect" data-target="#myModal" data-toggle="modal" href="#" id="help-href" name="help-href" style="color: var(--light) !important" title="' . xla("To enable help - Go to Administration > Globals > Features > Enable Help Modal") . '"><i class="fa fa-question-circle" aria-hidden="true"></i></a>';
20 } elseif ($GLOBALS['enable_help'] == 0) {
21 $help_icon = '';
24 <?php
25 if ($expandable == 1) {?>
26 <div class="page-header clearfix">
27 <h2 id="header_title" class="clearfix"><span id='header_text'><?php echo text($header_title)?><?php echo " " . text(getPatientNameFirstLast($pid));?></span> <i id="exp_cont_icon" class="fa <?php echo attr($expand_icon_class);?> oe-superscript-small expand_contract" title="<?php echo attr($expand_title); ?>" aria-hidden="true"></i><a href='<?php echo attr($go_back_href)?>' onclick='top.restoreSession()' title="<?php echo xla("Go back")?>" ><i id='advanced-tooltip' class='fa fa-undo fa-2x small' aria-hidden='true'></i></a><?php echo $help_icon; ?>
28 </h2>
29 </div>
31 <?php
32 } else {?>
33 <div class="page-header clearfix">
34 <h2 id="header_title" class="clearfix"><span id='header_text'><?php echo text($header_title)?><?php echo " " . text(getPatientNameFirstLast($pid));?></span>&nbsp;&nbsp; <a href='<?php echo attr($go_back_href)?>' onclick='top.restoreSession()' title="<?php echo xla("Go back")?>" ><i id='advanced-tooltip' class='fa fa-undo fa-2x small' aria-hidden='true'></i></a><?php echo $help_icon; ?></h2>
35 </div>
36 <?php
37 }?>