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/>.
20 * @author Jerry Padgett <sjpadgett@gmail.com>
21 * @link http://www.open-emr.org
24 use OpenEMR\Core\Header
;
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"); ?
>
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
>
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
>
65 <ul
class="dropdown-menu">
66 <li
class="header"><?php
echo xlt('You have'); ?
> <?php
echo text($newcnt); ?
> <?php
echo xlt('new messages'); ?
></li
>
68 <!-- inner menu
: contains the actual data
-->
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>";
79 <li
class="footer"><a href
="<?php echo $GLOBALS['web_root']; ?>/portal/messaging/messages.php"><?php
echo xlt('See All Messages'); ?
></a
></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
>
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
>
93 <?php
if ($GLOBALS['allow_portal_chat']) { ?
>
94 <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
>
96 <a href
="#openSignModal" data
-toggle
="modal" data
-backdrop
="true" data
-target
="#openSignModal"> <i
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
>
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
>
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
>
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
>
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
>
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
>
131 <?php
if ($GLOBALS['allow_portal_appointments']) { ?
>
132 <li data
-toggle
="pill"><a href
="#appointmentpanel" data
-toggle
="collapse"
133 data
-parent
="#panelgroup"> <i
class="fa fa-calendar-o"></i
> <span
><?php
echo xlt("Appointment"); ?
></span
>
136 <li
class="dropdown accounting-menu"><a href
="#"
137 class="dropdown-toggle" data
-toggle
="dropdown"> <i
138 class="fa fa-book"></i
> <span
><?php
echo xlt('Accountings'); ?
></span
>
140 <ul
class="dropdown-menu">
141 <li data
-toggle
="pill"><a href
="#ledgerpanel" data
-toggle
="collapse"
142 data
-parent
="#panelgroup"> <i
class="fa fa-folder-open"></i
> <span
><?php
echo xlt('Ledger'); ?
></span
>
144 <?php
if ($GLOBALS['portal_two_payments']) { ?
>
145 <li data
-toggle
="pill"><a href
="#paymentpanel" data
-toggle
="collapse"
146 data
-parent
="#panelgroup"> <i
class="fa fa-credit-card"></i
> <span
><?php
echo xlt('Make Payment'); ?
></span
>
150 <li
class="dropdown reporting-menu"><a href
="#"
151 class="dropdown-toggle" data
-toggle
="dropdown"> <i
152 class="fa fa-calendar"></i
> <span
><?php
echo xlt('Reports'); ?
></span
>
154 <ul
class="dropdown-menu">
155 <?php
if ($GLOBALS['ccda_alt_service_enable'] > 1) { ?
>
156 <li
><a id
="callccda" href
="<?php echo $GLOBALS['web_root']; ?>/ccdaservice/ccda_gateway.php?action=startandrun">
157 <i
class="fa fa-envelope" aria
-hidden
="true"></i
><span
><?php
echo xlt('View CCD'); ?
></span
></a
></li
>
159 <?php
if (!empty($GLOBALS['portal_onsite_document_download'])) { ?
>
160 <li data
-toggle
="pill"><a href
="#reportpanel" data
-toggle
="collapse"
161 data
-parent
="#panelgroup"> <i
class="fa fa-folder-open"></i
> <span
><?php
echo xlt('Report Content'); ?
></span
></a
></li
>
163 <li data
-toggle
="pill"><a href
="#downloadpanel" data
-toggle
="collapse"
164 data
-parent
="#panelgroup"> <i
class="fa fa-download"></i
> <span
><?php
echo xlt('Download Lab Documents'); ?
></span
></a
></li
>
167 <li
><a href
="<?php echo $GLOBALS['web_root']; ?>/portal/messaging/messages.php"><i
class="fa fa-envelope" aria
-hidden
="true"></i
>
168 <span
><?php
echo xlt('Secure Messaging'); ?
></span
>
170 <?php
if ($GLOBALS['allow_portal_chat']) { ?
>
171 <li data
-toggle
="pill"><a href
="#messagespanel" data
-toggle
="collapse"
172 data
-parent
="#panelgroup"> <i
class="fa fa-envelope"></i
> <span
><?php
echo xlt("Secure Chat"); ?
></span
>
175 <li data
-toggle
="pill"><a href
="#openSignModal" data
-toggle
="modal" > <i
176 class="fa fa-sign-in"></i
><span
><?php
echo xlt('Signature on File'); ?
></span
>
178 <li
><a href
="logout.php"><i
class="fa fa-ban fa-fw"></i
> <span
><?php
echo xlt('Logout'); ?
></span
></a
></li
>