6 * @link http://www.open-emr.org
7 * @author Jerry Padgett <sjpadgett@gmail.com>
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2016-2019 Jerry Padgett <sjpadgett@gmail.com>
10 * @copyright Copyright (c) 2019 Brady Miller <brady.g.miller@gmail.com>
11 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
14 use OpenEMR\Core\Header
;
20 <meta charset
="UTF-8">
21 <title
><?php
echo xlt('OpenEMR Portal'); ?
> |
<?php
echo xlt('Home'); ?
></title
>
22 <meta name
="viewport" content
="width=device-width, initial-scale=1, shrink-to-fit=no">
23 <meta name
="description" content
="Developed By sjpadgett@gmail.com">
25 <?php Header
::setupHeader(['no_main-theme', 'datetime-picker', 'jquery-ui', 'jquery-ui-sunny', 'emodal']); ?
>
27 <script type
="text/javascript" src
="../interface/main/tabs/js/dialog_utils.js?v=<?php echo $v_js_includes; ?>"></script
>
28 <link href
="<?php echo $GLOBALS['web_root']; ?>/portal/assets/css/style.css?v=<?php echo $v_js_includes; ?>" rel
="stylesheet" type
="text/css" />
29 <link href
="<?php echo $GLOBALS['web_root']; ?>/portal/sign/css/signer_modal.css?v=<?php echo $v_js_includes; ?>" rel
="stylesheet" type
="text/css" />
31 <script type
="text/javascript">
33 function restoreSession(){
34 //dummy functions so the dlgopen function will work in the patient portal
40 <script src
="<?php echo $GLOBALS['web_root']; ?>/portal/sign/assets/signature_pad.umd.js?v=<?php echo $v_js_includes; ?>" type
="text/javascript"></script
>
41 <script src
="<?php echo $GLOBALS['web_root']; ?>/portal/sign/assets/signer_api.js?v=<?php echo $v_js_includes; ?>" type
="text/javascript"></script
>
43 <?php
if ($GLOBALS['payment_gateway'] == 'Stripe') { ?
>
44 <script type
="text/javascript" src
="https://js.stripe.com/v3/"></script
>
46 <?php
if ($GLOBALS['payment_gateway'] == 'AuthorizeNet') {
47 // Must be loaded from their server
48 $script = "https://jstest.authorize.net/v1/Accept.js"; // test script
49 if ($GLOBALS['gateway_mode_production']) {
50 $script = "https://js.authorize.net/v1/Accept.js"; // Production script
52 <script type
="text/javascript" src
="<?php echo $script; ?>" charset
="utf-8"></script
>
55 <body
class="skin-blue fixed">
56 <header
class="header">
57 <a href
="home.php" class="logo"><img src
='<?php echo $GLOBALS['images_static_relative
']; ?>/logo-full-con.png'/></a
>
58 <nav
class="navbar navbar-expand-md sticky-top text-dark" role
="navigation">
59 <!-- Sidebar toggle button
-->
60 <button
class="navbar-toggler" type
="button" data
-toggle
="offcanvas" data
-target
="#pillCollapse" aria
-controls
="pillCollapse" aria
-expanded
="false" aria
-label
="Toggle navigation"><span
class="navbar-toggler-icon"></span
></button
>
61 <ul
class="nav navbar-nav">
62 <li
class="nav-item dropdown">
63 <a href
="#" class="nav-link dropdown-toggle" id
="newmsgs" data
-toggle
="dropdown" aria
-haspopup
="true" aria
-expanded
="true"> <i
class="fa fa-envelope"></i
> <span
class="badge badge-pill badge-success"><?php
echo text($newcnt); ?
></span
></a
>
64 <div
class="dropdown-menu" aria
-labelledby
="newmsgs">
65 <h6
class="dropdown-header"><?php
echo xlt('You have'); ?
> <?php
echo text($newcnt); ?
> <?php
echo xlt('new messages'); ?
></h6
>
66 <!-- inner menu
: contains the actual data
-->
68 foreach ($msgs as $i) {
69 if ($i['message_status']=='New') {
70 echo "<div><a class='dropdown-item' href='" . $GLOBALS['web_root'] . "/portal/messaging/messages.php'><h4>" . text($i['title']) . "</h4></a></div>";
74 <div
><a
class="dropdown-item" href
="<?php echo $GLOBALS['web_root']; ?>/portal/messaging/messages.php"><?php
echo xlt('See All Messages'); ?
></a
></div
>
77 <li
class="nav-item dropdown">
78 <a href
="#" class="nav-link dropdown-toggle" id
="profiletab" data
-toggle
="dropdown" aria
-haspopup
="true" aria
-expanded
="false"> <i
class="fa fa-user"></i
> <span
><?php
echo text($result['fname']." ".$result['lname']); ?
> <i
class="caret"></i
></span
></a
>
79 <div
class="dropdown-menu" aria
-labelledby
="profiletab">
80 <div
class="dropdown-header text-center"><?php
echo xlt('Account'); ?
></div
>
81 <div
><a
class="dropdown-item" href
="<?php echo $GLOBALS['web_root']; ?>/portal/messaging/messages.php"> <i
class="fa fa-envelope-o fa-fw"></i
> <?php
echo xlt('Messages'); ?
> <span
class="badge badge-pill badge-danger"><?php
echo text($msgcnt); ?
></span
></a
></div
>
82 <div
class="dropdown-divider"></div
>
83 <?php
if ($GLOBALS['allow_portal_chat']) { ?
>
84 <div
><a
class="dropdown-item" href
="<?php echo $GLOBALS['web_root']; ?>/portal/messaging/secure_chat.php?fullscreen=true"> <i
class="fa fa-user fa-fw"></i
><?php
echo xlt('Chat'); ?
></a
></div
>
86 <div
><a
class="dropdown-item" href
="javascript:changeCredentials(event)"> <i
class="fa fa-cog fa-fw"></i
> <?php
echo xlt('Change Credentials'); ?
></a
></div
>
87 <div
class="dropdown-divider"></div
>
89 <div
><a
class="dropdown-item" href
="logout.php"><i
class="fa fa-ban fa-fw"></i
> <?php
echo xlt('Logout'); ?
></a
></div
>
95 <div
class="wrapper row-offcanvas row-offcanvas-left">
96 <!-- Left side column
. contains the logo
and sidebar
-->
97 <aside
class="left-side sidebar-offcanvas">
98 <!-- sidebar
: style can be found in sidebar
.less
-->
99 <section
class="sidebar">
100 <!-- Sidebar user panel
-->
101 <div
class="user-panel">
102 <div
class="float-left image">
103 <i
class="fa fa-user"></i
>
105 <div
class="float-left info">
106 <p
><?php
echo xlt('Welcome') . ' ' . text($result['fname']." ".$result['lname']); ?
></p
>
107 <a href
="#"><i
class="fa fa-circle text-success"></i
> <?php
echo xlt('Online'); ?
></a
>
110 <ul
class="nav nav-pills flex-column text-dark" id
="pillCollapse">
111 <!-- css
class was sidebar
-menu
-->
112 <li
class="nav-item" data
-toggle
="pill"><a
class="nav-link" href
="#profilecard" data
-toggle
="collapse" data
-parent
="#cardgroup"> <i
class="fa fa-calendar-o"></i
> <span
><?php
echo xlt('Profile'); ?
></span
>
114 <li
class="nav-item" data
-toggle
="pill"><a
class="nav-link" href
="#lists" data
-toggle
="collapse" data
-parent
="#cardgroup"> <i
class="fa fa-list"></i
> <span
><?php
echo xlt('Lists'); ?
></span
>
116 <li
class="nav-item"><a
class="nav-link" href
="<?php echo $GLOBALS['web_root']; ?>/portal/patient/onsitedocuments?pid=<?php echo attr_url($pid); ?>"> <i
class="fa fa-gavel"></i
><span
><?php
echo xlt('Patient Documents'); ?
></span
></a
></li
>
117 <?php
if ($GLOBALS['allow_portal_appointments']) { ?
>
118 <li
class="nav-item" data
-toggle
="pill"><a
class="nav-link" href
="#appointmentcard" data
-toggle
="collapse"
119 data
-parent
="#cardgroup"> <i
class="fa fa-calendar-o"></i
> <span
><?php
echo xlt("Appointment"); ?
></span
>
122 <?php
if ($GLOBALS['portal_two_ledger'] ||
$GLOBALS['portal_two_payments']) { ?
>
123 <li
class="nav-item dropdown accounting-menu"><a href
="#" class="nav-link dropdown-toggle" data
-toggle
="dropdown"> <i
class="fa fa-book"></i
> <span
><?php
echo xlt('Accountings'); ?
></span
></a
>
124 <div
class="dropdown-menu">
125 <?php
if ($GLOBALS['portal_two_ledger']) { ?
>
126 <span data
-toggle
="pill"><a
class="dropdown-item" href
="#ledgercard" data
-toggle
="collapse" data
-parent
="#cardgroup"> <i
class="fa fa-folder-open"></i
> <span
><?php
echo xlt('Ledger'); ?
></span
></a
></span
>
128 <?php
if ($GLOBALS['portal_two_payments']) { ?
>
129 <span data
-toggle
="pill"><a
class="dropdown-item" href
="#paymentcard" data
-toggle
="collapse" data
-parent
="#cardgroup"> <i
class="fa fa-credit-card"></i
> <span
><?php
echo xlt('Make Payment'); ?
></span
></a
></span
>
134 <li
class="nav-item dropdown reporting-menu"><a href
="#"
135 class="nav-link dropdown-toggle" data
-toggle
="dropdown"> <i
class="fa fa-calendar"></i
> <span
><?php
echo xlt('Reports'); ?
></span
></a
>
136 <div
class="dropdown-menu">
137 <?php
if ($GLOBALS['ccda_alt_service_enable'] > 1) { ?
>
138 <a
class="dropdown-item" id
="callccda" href
="<?php echo $GLOBALS['web_root']; ?>/ccdaservice/ccda_gateway.php?action=startandrun">
139 <i
class="fa fa-envelope" aria
-hidden
="true"></i
><span
><?php
echo xlt('View CCD'); ?
></span
></a
>
141 <?php
if (!empty($GLOBALS['portal_onsite_document_download'])) { ?
>
142 <span data
-toggle
="pill"><a
class="dropdown-item" href
="#reportcard" data
-toggle
="collapse"
143 data
-parent
="#cardgroup"> <i
class="fa fa-folder-open"></i
> <span
><?php
echo xlt('Report Content'); ?
></span
></a
></span
>
145 <span data
-toggle
="pill"><a
class="dropdown-item" href
="#downloadcard" data
-toggle
="collapse"
146 data
-parent
="#cardgroup"> <i
class="fa fa-download"></i
> <span
><?php
echo xlt('Download Lab Documents'); ?
></span
></a
></span
>
150 <li
class="nav-item"><a
class="nav-link" href
="<?php echo $GLOBALS['web_root']; ?>/portal/messaging/messages.php"><i
class="fa fa-envelope" aria
-hidden
="true"></i
>
151 <span
><?php
echo xlt('Secure Messaging'); ?
></span
>
153 <?php
if ($GLOBALS['allow_portal_chat']) { ?
>
154 <li
class="nav-item" data
-toggle
="pill"><a
class="nav-link" href
="#messagescard" data
-toggle
="collapse"
155 data
-parent
="#cardgroup"> <i
class="fa fa-envelope"></i
> <span
><?php
echo xlt("Secure Chat"); ?
></span
>
158 <li
class="nav-item" data
-toggle
="pill"><a
class="nav-link" href
="#openSignModal" data
-toggle
="modal" data
-type
="patient-signature"> <i
159 class="fa fa-sign-in"></i
><span
><?php
echo xlt('Signature on File'); ?
></span
>
161 <li
class="nav-item"><a
class="nav-link" href
="logout.php"><i
class="fa fa-ban fa-fw"></i
> <span
><?php
echo xlt('Logout'); ?
></span
></a
></li
>