changes to prior commit for coding standards compliance
[openemr.git] / portal / _header.php
blob391622f272ddfad2f1a59015828130a12b3105d3
1 <?php
2 /**
4 * Copyright (C) 2016-2017 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 <!DOCTYPE html>
25 <html>
26 <head>
27 <meta charset="UTF-8">
28 <title><?php echo xlt('OpenEMR Portal'); ?> | <?php echo xlt('Home'); ?></title>
29 <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
30 <meta name="description" content="Developed By sjpadgett@gmail.com">
32 <link href="<?php echo $GLOBALS['assets_static_relative']; ?>/font-awesome-4-6-3/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
34 <link href="<?php echo $GLOBALS['assets_static_relative']; ?>/bootstrap-3-3-4/dist/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
35 <?php if ($_SESSION['language_direction'] == 'rtl') { ?>
36 <link href="<?php echo $GLOBALS['assets_static_relative']; ?>/bootstrap-rtl-3-3-4/dist/css/bootstrap-rtl.min.css" rel="stylesheet" type="text/css" />
37 <?php } ?>
40 <link href="assets/css/style.css?v=<?php echo $v_js_includes; ?>" rel="stylesheet" type="text/css" />
41 <link href="sign/css/signer.css?v=<?php echo $v_js_includes; ?>" rel="stylesheet" type="text/css" />
42 <link href="sign/assets/signpad.css?v=<?php echo $v_js_includes; ?>" rel="stylesheet">
44 <script src="<?php echo $GLOBALS['assets_static_relative']; ?>/jquery-min-1-11-3/index.js" type="text/javascript"></script>
45 <script src="<?php echo $GLOBALS['assets_static_relative']; ?>/bootstrap-3-3-4/dist/js/bootstrap.min.js" type="text/javascript"></script>
46 <script src="sign/assets/signpad.js?v=<?php echo $v_js_includes; ?>" type="text/javascript"></script>
47 <script src="sign/assets/signer.js?v=<?php echo $v_js_includes; ?>" type="text/javascript"></script>
48 <script type="text/javascript" src="<?php echo $GLOBALS['assets_static_relative']; ?>/emodal-1-2-65/dist/eModal.js"></script>
50 </head>
51 <body class="skin-blue fixed">
52 <header class="header">
53 <a href="home.php" class="logo"><img src='<?php echo $GLOBALS['images_static_relative']; ?>/logo-full-con.png'/></a>
54 <nav class="navbar navbar-static-top" role="navigation">
55 <!-- Sidebar toggle button-->
56 <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas"
57 role="button"> <span class="sr-only"><?php echo xlt('Toggle navigation'); ?></span> <span
58 class="icon-bar"></span> <span class="icon-bar"></span> <span
59 class="icon-bar"></span>
60 </a>
61 <div class="navbar-right">
62 <ul class="nav navbar-nav">
63 <li class="dropdown messages-menu"><a href="#"
64 class="dropdown-toggle" data-toggle="dropdown"> <i
65 class="fa fa-envelope"></i> <span class="label label-success"> <?php echo text($newcnt); ?></span>
66 </a>
67 <ul class="dropdown-menu">
68 <li class="header"><?php echo xlt('You have'); ?> <?php echo text($newcnt); ?> <?php echo xlt('new messages'); ?></li>
69 <li>
70 <!-- inner menu: contains the actual data -->
71 <ul class="menu">
72 <?php
73 foreach ( $msgs as $i ) {
74 if($i['message_status']=='New'){
75 echo "<li><a href='/messaging/messages.php'><h4>" . text($i['title']) . "</h4></a></li>";
79 </ul>
80 </li>
81 <li class="footer"><a href="<?php echo $GLOBALS['web_root']; ?>/portal/messaging/messages.php"><?php echo xlt('See All Messages'); ?></a></li>
82 </ul></li>
84 <li class="dropdown user user-menu"><a href="#"
85 class="dropdown-toggle" data-toggle="dropdown"> <i
86 class="fa fa-user"></i> <span><?php echo text($result['fname']." ".$result['lname']); ?>
87 <i class="caret"></i></span>
88 </a>
89 <ul class="dropdown-menu dropdown-custom dropdown-menu-right">
90 <li class="dropdown-header text-center"><?php echo xlt('Account'); ?></li>
91 <li><a href="<?php echo $GLOBALS['web_root']; ?>/portal/messaging/messages.php"> <i class="fa fa-envelope-o fa-fw pull-right"></i>
92 <span class="badge badge-danger pull-right"> <?php echo text($msgcnt); ?></span> <?php echo xlt('Messages'); ?></a></li>
93 <li class="divider"></li>
94 <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>
95 <a href="#openSignModal" data-toggle="modal" data-backdrop="true" data-target="#openSignModal"> <i
96 class="fa fa-cog fa-fw pull-right"></i> <?php echo xlt('Settings'); ?></a></li>
98 <li class="divider"></li>
100 <li><a href="logout.php"><i class="fa fa-ban fa-fw pull-right"></i>
101 <?php echo xlt('Logout'); ?></a></li>
102 </ul></li>
103 </ul>
104 </div>
105 </nav>
106 </header>
107 <div class="wrapper row-offcanvas row-offcanvas-left">
108 <!-- Left side column. contains the logo and sidebar -->
109 <aside class="left-side sidebar-offcanvas">
110 <!-- sidebar: style can be found in sidebar.less -->
111 <section class="sidebar">
112 <!-- Sidebar user panel -->
113 <div class="user-panel">
114 <div class="pull-left image">
115 <i class="fa fa-user"></i>
116 </div>
117 <div class="pull-left info">
118 <p><?php echo xlt('Welcome') . ' ' . text($result['fname']." ".$result['lname']); ?></p>
119 <a href="#"><i class="fa fa-circle text-success"></i> <?php echo xlt('Online'); ?></a>
120 </div>
121 </div>
122 <ul class="nav nav-pills nav-stacked" style='font-color:#fff;'><!-- css class was sidebar-menu -->
123 <li data-toggle="pill"><a href="#profilepanel" data-toggle="collapse"
124 data-parent="#panelgroup"> <i class="fa fa-calendar-o"></i> <span><?php echo xlt('Profile'); ?></span>
125 </a></li>
126 <li data-toggle="pill"><a href="#lists" data-toggle="collapse"
127 data-parent="#panelgroup"> <i class="fa fa-list"></i> <span><?php echo xlt('Lists'); ?></span>
128 </a></li>
129 <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>
130 </a></li>
131 <li data-toggle="pill"><a href="#appointmentpanel" data-toggle="collapse"
132 data-parent="#panelgroup"> <i class="fa fa-calendar-o"></i> <span><?php echo xlt("Appointment"); ?></span>
133 </a></li>
134 <li class="dropdown accounting-menu"><a href="#"
135 class="dropdown-toggle" data-toggle="dropdown"> <i
136 class="fa fa-book"></i> <span><?php echo xlt('Accountings'); ?></span>
137 </a>
138 <ul class="dropdown-menu">
139 <li data-toggle="pill"><a href="#ledgerpanel" data-toggle="collapse"
140 data-parent="#panelgroup"> <i class="fa fa-folder-open"></i> <span><?php echo xlt('Ledger'); ?></span>
141 </a></li>
142 <!-- <li data-toggle="pill"><a href="#paymentpanel" data-toggle="collapse"
143 data-parent="#panelgroup"> <i class="fa fa-credit-card"></i> <span><?php //echo xlt('Make Payment'); ?></span>
144 </a></li> -->
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 <li><a id="callccda" href="<?php echo $GLOBALS['web_root']; ?>/ccdaservice/ccda_gateway.php?action=startandrun"><i class="fa fa-envelope" aria-hidden="true"></i><span><?php echo xlt('View CCD'); ?></span></a></li>
152 <li data-toggle="pill"><a href="#reportpanel" data-toggle="collapse"
153 data-parent="#panelgroup"> <i class="fa fa-folder-open"></i> <span><?php echo xlt('Report Content'); ?></span></a></li>
154 <li data-toggle="pill"><a href="#downloadpanel" data-toggle="collapse"
155 data-parent="#panelgroup"> <i class="fa fa-download"></i> <span><?php echo xlt('Download Documents'); ?></span></a></li>
156 </ul></li>
158 <li><a href="<?php echo $GLOBALS['web_root']; ?>/portal/messaging/messages.php"><i class="fa fa-envelope" aria-hidden="true"></i>
159 <span><?php echo xlt('Secure Messaging'); ?></span>
160 </a></li>
161 <li data-toggle="pill"><a href="#messagespanel" data-toggle="collapse"
162 data-parent="#panelgroup"> <i class="fa fa-envelope"></i> <span><?php echo xlt("Secure Chat"); ?></span>
163 </a></li>
164 <li data-toggle="pill"><a href="#openSignModal" data-toggle="modal" > <i
165 class="fa fa-sign-in"></i><span><?php echo xlt('Signature on File'); ?></span>
166 </a></li>
167 <li><a href="logout.php"><i class="fa fa-ban fa-fw"></i> <span><?php echo xlt('Logout'); ?></span></a></li>
168 </ul>
169 </section>
170 <!-- /.sidebar -->
171 </aside>