add support for php 7.1 also to nginx/php-fpm docker dev environment (#1708)
[openemr.git] / portal / _header.php
blobc3624f8f0aa0a0c17353540b1e81e2fa0bd6fc6c
1 <?php
2 /**
4 * Copyright (C) 2016-2018 Jerry Padgett <sjpadgett@gmail.com>
6 * LICENSE: This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Affero General Public License as
8 * published by the Free Software Foundation, either version 3 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Affero General Public License for more details.
16 * You should have received a copy of the GNU Affero General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 * @package OpenEMR
20 * @author Jerry Padgett <sjpadgett@gmail.com>
21 * @link http://www.open-emr.org
24 use OpenEMR\Core\Header;
27 <!DOCTYPE html>
28 <html>
29 <head>
30 <meta charset="UTF-8">
31 <title><?php echo xlt('OpenEMR Portal'); ?> | <?php echo xlt('Home'); ?></title>
32 <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
33 <meta name="description" content="Developed By sjpadgett@gmail.com">
35 <?php Header::setupHeader(['no_main-theme', 'datetime-picker', 'jquery-ui', 'jquery-ui-sunny', 'emodal']); ?>
37 <script type="text/javascript" src="../interface/main/tabs/js/dialog_utils.js?v=<?php echo $v_js_includes; ?>"></script>
38 <link href="assets/css/style.css?v=<?php echo $v_js_includes; ?>" rel="stylesheet" type="text/css" />
39 <link href="sign/css/signer.css?v=<?php echo $v_js_includes; ?>" rel="stylesheet" type="text/css" />
40 <link href="sign/assets/signpad.css?v=<?php echo $v_js_includes; ?>" rel="stylesheet">
42 <script src="sign/assets/signpad.js?v=<?php echo $v_js_includes; ?>" type="text/javascript"></script>
43 <script src="sign/assets/signer.js?v=<?php echo $v_js_includes; ?>" type="text/javascript"></script>
44 <script type="text/javascript">
45 var tab_mode = true; // for dialogs
46 <?php require($GLOBALS['srcdir'] . "/restoreSession.php"); ?>
47 </script>
48 </head>
49 <body class="skin-blue fixed">
50 <header class="header">
51 <a href="home.php" class="logo"><img src='<?php echo $GLOBALS['images_static_relative']; ?>/logo-full-con.png'/></a>
52 <nav class="navbar navbar-static-top" role="navigation">
53 <!-- Sidebar toggle button-->
54 <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas"
55 role="button"> <span class="sr-only"><?php echo xlt('Toggle navigation'); ?></span> <span
56 class="icon-bar"></span> <span class="icon-bar"></span> <span
57 class="icon-bar"></span>
58 </a>
59 <div class="navbar-right">
60 <ul class="nav navbar-nav">
61 <li class="dropdown messages-menu"><a href="#"
62 class="dropdown-toggle" data-toggle="dropdown"> <i
63 class="fa fa-envelope"></i> <span class="label label-success"> <?php echo text($newcnt); ?></span>
64 </a>
65 <ul class="dropdown-menu">
66 <li class="header"><?php echo xlt('You have'); ?> <?php echo text($newcnt); ?> <?php echo xlt('new messages'); ?></li>
67 <li>
68 <!-- inner menu: contains the actual data -->
69 <ul class="menu">
70 <?php
71 foreach ($msgs as $i) {
72 if ($i['message_status']=='New') {
73 echo "<li><a href='" . $GLOBALS['web_root'] . "/portal/messaging/messages.php'><h4>" . text($i['title']) . "</h4></a></li>";
77 </ul>
78 </li>
79 <li class="footer"><a href="<?php echo $GLOBALS['web_root']; ?>/portal/messaging/messages.php"><?php echo xlt('See All Messages'); ?></a></li>
80 </ul></li>
82 <li class="dropdown user user-menu"><a href="#"
83 class="dropdown-toggle" data-toggle="dropdown"> <i
84 class="fa fa-user"></i> <span><?php echo text($result['fname']." ".$result['lname']); ?>
85 <i class="caret"></i></span>
86 </a>
87 <ul class="dropdown-menu dropdown-custom dropdown-menu-right">
88 <li class="dropdown-header text-center"><?php echo xlt('Account'); ?></li>
89 <li><a href="<?php echo $GLOBALS['web_root']; ?>/portal/messaging/messages.php"> <i class="fa fa-envelope-o fa-fw pull-right"></i>
90 <span class="badge badge-danger pull-right"> <?php echo text($msgcnt); ?></span> <?php echo xlt('Messages'); ?></a></li>
91 <li class="divider"></li>
92 <li><a href="<?php echo $GLOBALS['web_root']; ?>/portal/messaging/secure_chat.php?fullscreen=true"> <i class="fa fa-user fa-fw pull-right"></i><?php echo xlt('Chat'); ?></a>
93 <a href="#openSignModal" data-toggle="modal" data-backdrop="true" data-target="#openSignModal"> <i
94 class="fa fa-cog fa-fw pull-right"></i> <?php echo xlt('Settings'); ?></a></li>
96 <li class="divider"></li>
98 <li><a href="logout.php"><i class="fa fa-ban fa-fw pull-right"></i>
99 <?php echo xlt('Logout'); ?></a></li>
100 </ul></li>
101 </ul>
102 </div>
103 </nav>
104 </header>
105 <div class="wrapper row-offcanvas row-offcanvas-left">
106 <!-- Left side column. contains the logo and sidebar -->
107 <aside class="left-side sidebar-offcanvas">
108 <!-- sidebar: style can be found in sidebar.less -->
109 <section class="sidebar">
110 <!-- Sidebar user panel -->
111 <div class="user-panel">
112 <div class="pull-left image">
113 <i class="fa fa-user"></i>
114 </div>
115 <div class="pull-left info">
116 <p><?php echo xlt('Welcome') . ' ' . text($result['fname']." ".$result['lname']); ?></p>
117 <a href="#"><i class="fa fa-circle text-success"></i> <?php echo xlt('Online'); ?></a>
118 </div>
119 </div>
120 <ul class="nav nav-pills nav-stacked" style='font-color:#fff;'><!-- css class was sidebar-menu -->
121 <li data-toggle="pill"><a href="#profilepanel" data-toggle="collapse"
122 data-parent="#panelgroup"> <i class="fa fa-calendar-o"></i> <span><?php echo xlt('Profile'); ?></span>
123 </a></li>
124 <li data-toggle="pill"><a href="#lists" data-toggle="collapse"
125 data-parent="#panelgroup"> <i class="fa fa-list"></i> <span><?php echo xlt('Lists'); ?></span>
126 </a></li>
127 <li><a href="<?php echo $GLOBALS['web_root']; ?>/portal/patient/onsitedocuments?pid=<?php echo attr($pid); ?>"> <i class="fa fa-gavel"></i> <span><?php echo xlt('Patient Documents'); ?></span>
128 </a></li>
129 <li data-toggle="pill"><a href="#appointmentpanel" data-toggle="collapse"
130 data-parent="#panelgroup"> <i class="fa fa-calendar-o"></i> <span><?php echo xlt("Appointment"); ?></span>
131 </a></li>
132 <li class="dropdown accounting-menu"><a href="#"
133 class="dropdown-toggle" data-toggle="dropdown"> <i
134 class="fa fa-book"></i> <span><?php echo xlt('Accountings'); ?></span>
135 </a>
136 <ul class="dropdown-menu">
137 <li data-toggle="pill"><a href="#ledgerpanel" data-toggle="collapse"
138 data-parent="#panelgroup"> <i class="fa fa-folder-open"></i> <span><?php echo xlt('Ledger'); ?></span>
139 </a></li>
140 <?php if ($GLOBALS['portal_two_payments']) { ?>
141 <li data-toggle="pill"><a href="#paymentpanel" data-toggle="collapse"
142 data-parent="#panelgroup"> <i class="fa fa-credit-card"></i> <span><?php echo xlt('Make Payment'); ?></span>
143 </a></li>
144 <?php } ?>
145 </ul></li>
146 <li class="dropdown reporting-menu"><a href="#"
147 class="dropdown-toggle" data-toggle="dropdown"> <i
148 class="fa fa-calendar"></i> <span><?php echo xlt('Reports'); ?></span>
149 </a>
150 <ul class="dropdown-menu">
151 <?php if ($GLOBALS['ccda_alt_service_enable'] > 1) { ?>
152 <li><a id="callccda" href="<?php echo $GLOBALS['web_root']; ?>/ccdaservice/ccda_gateway.php?action=startandrun">
153 <i class="fa fa-envelope" aria-hidden="true"></i><span><?php echo xlt('View CCD'); ?></span></a></li>
154 <?php } ?>
155 <li data-toggle="pill"><a href="#reportpanel" data-toggle="collapse"
156 data-parent="#panelgroup"> <i class="fa fa-folder-open"></i> <span><?php echo xlt('Report Content'); ?></span></a></li>
157 <li data-toggle="pill"><a href="#downloadpanel" data-toggle="collapse"
158 data-parent="#panelgroup"> <i class="fa fa-download"></i> <span><?php echo xlt('Download Documents'); ?></span></a></li>
159 </ul></li>
161 <li><a href="<?php echo $GLOBALS['web_root']; ?>/portal/messaging/messages.php"><i class="fa fa-envelope" aria-hidden="true"></i>
162 <span><?php echo xlt('Secure Messaging'); ?></span>
163 </a></li>
164 <li data-toggle="pill"><a href="#messagespanel" data-toggle="collapse"
165 data-parent="#panelgroup"> <i class="fa fa-envelope"></i> <span><?php echo xlt("Secure Chat"); ?></span>
166 </a></li>
167 <li data-toggle="pill"><a href="#openSignModal" data-toggle="modal" > <i
168 class="fa fa-sign-in"></i><span><?php echo xlt('Signature on File'); ?></span>
169 </a></li>
170 <li><a href="logout.php"><i class="fa fa-ban fa-fw"></i> <span><?php echo xlt('Logout'); ?></span></a></li>
171 </ul>
172 </section>
173 <!-- /.sidebar -->
174 </aside>