4 * forms/eye_mag/php/Anything_simple.php
6 * Adaptation of AnythingSlider's Anything_simple.php to fit Eye Exam form
8 * Copyright (C) 2016 Raymond Magauran <magauran@MedFetch.com>
10 * LICENSE: This program is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU Affero General Public License as
12 * published by the Free Software Foundation, either version 3 of the
13 * License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Affero General Public License for more details.
20 * You should have received a copy of the GNU Affero General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 * @author Ray Magauran <magauran@MedFetch.com>
25 * @link http://www.open-emr.org
28 include_once("../../../globals.php");
29 include_once("$srcdir/acl.inc");
30 include_once("$srcdir/lists.inc");
31 include_once("$srcdir/api.inc");
32 require_once("$srcdir/forms.inc");
34 $form_name = "Eye Form";
35 $form_folder = "eye_mag";
36 include_once($GLOBALS['webserver_root']."/interface/forms/".$form_folder."/php/".$form_folder."_functions.php");
38 $pid = $_SESSION['pid'];
39 $display = $_REQUEST['display'];
40 $category_id = $_REQUEST['category_id'];
41 $encounter = $_REQUEST['encounter'];
42 $category_name = $_REQUEST['category_name'];
44 $query = "SELECT * FROM patient_data where pid=?";
45 $pat_data = sqlQuery($query, array($pid));
47 $providerID = getProviderIdOfEncounter($encounter);
48 $providerNAME = getProviderName($providerID);
49 $query = "SELECT * FROM users where id = ?";
50 $prov_data = sqlQuery($query, array($providerID));
52 $query="select form_encounter.date as encounter_date, form_eye_mag.* from form_eye_mag ,forms,form_encounter
54 form_encounter.encounter =? and
55 form_encounter.encounter = forms.encounter and
56 form_eye_mag.id=forms.form_id and
57 forms.deleted != '1' and
59 $encounter_data =sqlQuery($query, array($encounter,$pid));
60 $dated = new DateTime($encounter_data['encounter_date']);
61 $dated = $dated->format('Y-m-d');
62 $visit_date = oeFormatShortDate($dated);
64 list($documents) = document_engine($pid);
69 <meta charset
="utf-8" />
71 <title
><?php
echo xlt('Document Library'); ?
></title
>
72 <link rel
="shortcut icon" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/AnythingSlider-1-9-4/demos/images/favicon.ico" type
="image/x-icon">
73 <link rel
="apple-touch-icon" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/AnythingSlider-1-9-4/demos/images/apple-touch-icon.png">
75 <script src
="<?php echo $GLOBALS['assets_static_relative'] ?>/jquery-min-1-10-2/index.js"></script
>
76 <script src
="<?php echo $GLOBALS['assets_static_relative'] ?>/bootstrap-3-3-4/dist/js/bootstrap.min.js"></script
>
77 <script src
="<?php echo $GLOBALS['assets_static_relative'] ?>/jquery-ui-1-11-4/jquery-ui.min.js"></script
>
78 <link rel
="stylesheet" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/AnythingSlider-1-9-4/css/anythingslider.css">
79 <!-- AnythingSlider optional extensions
-->
80 <script src
="<?php echo $GLOBALS['assets_static_relative'] ?>/AnythingSlider-1-9-4/js/jquery.anythingslider.fx.js"></script
>
81 <script src
="<?php echo $GLOBALS['assets_static_relative'] ?>/AnythingSlider-1-9-4/js/jquery.anythingslider.video.js"></script
>
82 <!-- Anything Slider optional plugins
-->
83 <script src
="<?php echo $GLOBALS['assets_static_relative'] ?>/AnythingSlider-1-9-4/js/jquery.easing.1.2.js"></script
>
84 <!-- Anything Slider
-->
85 <script src
="<?php echo $GLOBALS['assets_static_relative'] ?>/AnythingSlider-1-9-4/js/jquery.anythingslider.min.js"></script
>
87 <link rel
="stylesheet" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/AnythingSlider-1-9-4/css/theme-metallic.css">
88 <link rel
="stylesheet" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/AnythingSlider-1-9-4/css/theme-minimalist-round.css">
89 <link rel
="stylesheet" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/AnythingSlider-1-9-4/css/theme-minimalist-square.css">
90 <link rel
="stylesheet" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/AnythingSlider-1-9-4/css/theme-construction.css">
91 <link rel
="stylesheet" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/AnythingSlider-1-9-4/css/theme-cs-portfolio.css">
94 <link href
="<?php echo $GLOBALS['assets_static_relative'] ?>/AnythingSlider-1-9-4/demos/colorbox/colorbox.css" rel
="stylesheet">
95 <script src
="<?php echo $GLOBALS['assets_static_relative'] ?>/AnythingSlider-1-9-4/demos/colorbox/jquery.colorbox-min.js"></script
>
96 <script type
="text/javascript" src
="<?php echo $webroot ?>/interface/main/tabs/js/include_opener.js"></script
>
98 #slider { width: 700px; height: 390px; }
99 /* New in version 1.7+ */
105 /* CSS to expand the image to fit inside colorbox */
106 #cboxPhoto { width: 100%; height: 100%; margin: 0 !important; }
107 /* Change metallic theme defaults to show thumbnails */
108 div
.anythingControls
{
109 bottom
: 25px
; /* thumbnail images are larger than the original bullets; move it up */
111 .anythingSlider
-metallic
.thumbNav a
{
112 background
-image
: url();
115 border
: #000 1px solid;
117 -moz
-border
-radius
: 2px
;
118 -webkit
-border
-radius
: 2px
;
121 .anythingSlider
-metallic
.thumbNav a span
{
122 visibility
: visible
; /* span changed to visibility hidden in v1.7.20 */
124 /* border around link (image) to show current panel */
125 .anythingSlider
-metallic
.thumbNav a
:hover
,
126 .anythingSlider
-metallic
.thumbNav a
.cur
{
129 /* reposition the start/stop button */
130 .anythingSlider
-metallic
.start
-stop
{
134 background
-color
: #DEC2C4;
138 <!-- AnythingSlider initialization
-->
142 $
('#slider').anythingSlider({
144 theme
: "metallic", // Theme name
145 mode
: "horizontal", // Set mode to "horizontal", "vertical" or "fade" (only first letter needed); replaces vertical option
146 expand
: false, // If true, the entire slider will expand to fit the parent element
147 resizeContents
: false, // If true, solitary images/objects in the panel will expand to fit the viewport
148 showMultiple
: false, // Set this value to a number and it will show that many slides at once
149 easing
: "swing", // Anything other than "linear" or "swing" requires the easing plugin or jQuery UI
151 buildArrows
: true, // If true, builds the forwards and backwards buttons
152 buildNavigation
: true, // If true, builds a list of anchor links to link to each panel
153 buildStartStop
: false, // If true, builds the start/stop button
155 appendForwardTo
: null, // Append forward arrow to a HTML element (jQuery Object, selector or HTMLNode), if not null
156 appendBackTo
: null, // Append back arrow to a HTML element (jQuery Object, selector or HTMLNode), if not null
157 appendControlsTo
: null, // Append controls (navigation + start-stop) to a HTML element (jQuery Object, selector or HTMLNode), if not null
158 appendNavigationTo
: null, // Append navigation buttons to a HTML element (jQuery Object, selector or HTMLNode), if not null
159 appendStartStopTo
: null, // Append start-stop button to a HTML element (jQuery Object, selector or HTMLNode), if not null
161 toggleArrows
: true, // If true, side navigation arrows will slide out on hovering & hide @ other times
162 toggleControls
: true, // if true, slide in controls (navigation + play/stop button) on hover and slide change, hide @ other times
164 startText
: "<?php echo xla("Start
"); ?>", // Start button text
165 stopText
: "<?php echo xla("Stop
"); ?>", // Stop button text
166 forwardText
: "»", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
167 backText
: "«", // Link text used to move the slider back (hidden by CSS, replace with arrow image)
168 tooltipClass
: "tooltip", // Class added to navigation & start/stop button (text copied to title if it is hidden by a negative text indent)
171 enableArrows
: true, // if false, arrows will be visible, but not clickable.
172 enableNavigation
: true, // if false, navigation links will still be visible, but not clickable.
173 enableStartStop
: true, // if false, the play/stop button will still be visible, but not clickable. Previously "enablePlay"
174 enableKeyboard
: true, // if false, keyboard arrow keys will not work for this slider.
177 startPanel
: 1, // This sets the initial panel
178 changeBy
: 1, // Amount to go forward or back when changing panels.
179 hashTags
: true, // Should links change the hashtag in the URL?
180 infiniteSlides
: false, // if false, the slider will not wrap & not clone any panels
181 //navigationFormatter : 1, // Details at the top of the file on this use (advanced use)
182 navigationSize
: 10, // Set this to the maximum number of visible navigation tabs; false to disable
183 navigationFormatter
: function(i
, panel
){
184 return panel
.find('h2').text();
187 autoPlay
: false, // If true, the slideshow will start running; replaces "startStopped" option
188 autoPlayLocked
: false, // If true, user changing slides will not stop the slideshow
189 autoPlayDelayed
: false, // If true, starting a slideshow will delay advancing slides; if false, the slider will immediately advance to the next slide when slideshow starts
190 pauseOnHover
: true, // If true & the slideshow is active, the slideshow will pause on hover
191 stopAtEnd
: false, // If true & the slideshow is active, the slideshow will stop on the last page. This also stops the rewind effect when infiniteSlides is false.
192 playRtl
: false, // If true, the slideshow will move right-to-left
195 delay
: 3000, // How long between slideshow transitions in AutoPlay mode (in milliseconds)
196 resumeDelay
: 15000, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).
197 animationTime
: 600, // How long the slideshow transition takes (in milliseconds)
198 delayBeforeAnimate
: 0, // How long to pause slide animation before going to the desired slide (used if you want your "out" FX to show).
201 onBeforeInitialize
: function(e
, slider
) {}, // Callback before the plugin initializes
202 onInitialized
: function(e
, slider
) {}, // Callback when the plugin finished initializing
203 onShowStart
: function(e
, slider
) {}, // Callback on slideshow start
204 onShowStop
: function(e
, slider
) {}, // Callback after slideshow stops
205 onShowPause
: function(e
, slider
) {}, // Callback when slideshow pauses
206 onShowUnpause
: function(e
, slider
) {}, // Callback when slideshow unpauses - may not trigger properly if user clicks on any controls
207 onSlideInit
: function(e
, slider
) {}, // Callback when slide initiates, before control animation
208 onSlideBegin
: function(e
, slider
) {}, // Callback before slide animates
209 onSlideComplete
: function(slider
) {}, // Callback when slide completes; this is the only callback without an event "e" parameter
212 clickForwardArrow
: "click", // Event used to activate forward arrow functionality (e.g. add jQuery mobile's "swiperight")
213 clickBackArrow
: "click", // Event used to activate back arrow functionality (e.g. add jQuery mobile's "swipeleft")
214 clickControls
: "click focusin", // Events used to activate navigation control functionality
215 clickSlideshow
: "click", // Event used to activate slideshow play/stop button
216 allowRapidChange
: true, // If true, allow rapid changing of the active pane, instead of ignoring activity during animation
219 resumeOnVideoEnd
: true, // If true & the slideshow is active & a supported video is playing, it will pause the autoplay until the video is complete
220 resumeOnVisible
: true, // If true the video will resume playing (if previously paused, except for YouTube iframe - known issue); if false, the video remains paused.
221 addWmodeToObject
: "opaque", // If your slider has an embedded object, the script will automatically add a wmode parameter with this setting
222 isVideoPlaying
: function(base
){ return false; } // return true if video is playing or false if not - used by video extension
227 <script language
="JavaScript">
228 <?php
require_once("$srcdir/restoreSession.php"); ?
>
231 <!-- Add Font stuff
for the look
and feel
. -->
232 <link rel
="stylesheet" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/bootstrap-3-3-4/dist/css/bootstrap.min.css">
233 <link rel
="stylesheet" href
="<?php echo $GLOBALS['css_header']; ?>" type
="text/css">
234 <link rel
="stylesheet" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/jquery-ui-1-11-4/themes/excite-bike/jquery-ui.css">
235 <link rel
="stylesheet" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/pure-0-5-0/pure-min.css">
236 <link rel
="stylesheet" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/qtip2-2-2-1/jquery.qtip.min.css" />
237 <link rel
="stylesheet" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/font-awesome-4-6-3/css/font-awesome.min.css">
238 <link rel
="stylesheet" href
="<?php echo $GLOBALS['webroot']; ?>/interface/forms/<?php echo $form_folder; ?>/css/style.css" type
="text/css">
240 <meta charset
="utf-8">
241 <meta http
-equiv
="X-UA-Compatible" content
="IE=edge">
242 <meta name
="viewport" content
="width=device-width, initial-scale=1">
243 <meta name
="description" content
="openEMR: Eye Exam">
244 <meta name
="author" content
="openEMR: Ophthalmology">
245 <meta name
="viewport" content
="width=device-width, initial-scale=1">
248 /* New in version 1.7+ */
254 /* CSS to expand the image to fit inside colorbox */
255 #cboxPhoto { width: 100%; height: 100%; margin: 0 !important; }
256 /* Change metallic theme defaults to show thumbnails */
257 div
.anythingControls
{
258 bottom
: 25px
; /* thumbnail images are larger than the original bullets; move it up */
260 .anythingSlider
-metallic
.thumbNav a
{
261 background
-image
: url();
264 border
: #000 1px solid;
266 -moz
-border
-radius
: 2px
;
267 -webkit
-border
-radius
: 2px
;
270 .anythingSlider
-metallic
.thumbNav a span
{
271 visibility
: visible
; /* span changed to visibility hidden in v1.7.20 */
273 /* border around link (image) to show current panel */
274 .anythingSlider
-metallic
.thumbNav a
:hover
,
275 .anythingSlider
-metallic
.thumbNav a
.cur
{
278 /* reposition the start/stop button */
279 .anythingSlider
-metallic
.start
-stop
{
289 <nav
class="navbar-fixed-top navbar-custom navbar-bright navbar-inner" role
="banner" role
="navigation" style
="margin-bottom: 0;z-index:1999999;font-size: 1.4em;">
290 <!-- Brand
and toggle get grouped
for better mobile display
-->
291 <div
class="container-fluid">
292 <div
class="navbar-header brand" style
="color:black;">
293 <button type
="button" class="navbar-toggle" data
-toggle
="collapse" data
-target
="#oer-navbar-collapse-1">
294 <span
class="sr-only"><?php
echo xlt('Toggle navigation'); ?
></span
>
295 <span
class="icon-bar"></span
>
296 <span
class="icon-bar"></span
>
297 <span
class="icon-bar"></span
>
299  
;<img src
="<?php echo $GLOBALS['webroot']; ?>/sites/default/images/login_logo.gif" class="little_image">
300 <?php
echo xlt('Eye Exam'); ?
>
302 <div
class="navbar-collapse collapse" id
="oer-navbar-collapse-1">
303 <ul
class="navbar-nav">
304 <li
class="dropdown">
305 <a
class="dropdown-toggle" data
-toggle
="dropdown" id
="menu_dropdown_file" role
="button" aria
-expanded
="true"><?php
echo xlt('File'); ?
> </b
></a
>
306 <ul
class="dropdown-menu" role
="menu">
307 <li id
="menu_PREFERENCES" name
="menu_PREFERENCES" ><a id
="BUTTON_PREFERENCES_menu" target
="RTop" href
="<?php echo $GLOBALS['webroot']; ?>/interface/super/edit_globals.php">
308 <i
class="fa fa-angle-double-up" title
="<?php echo xla('Opens in Top frame'); ?>"></i
>
309 <?php
echo xlt('Preferences'); ?
></a
></li
>
310 <li
class="divider"></li
>
311 <li id
="menu_HPI" name
="menu_HPI" ><a href
="#" onclick
='window.close();'><?php
echo xlt('Quit'); ?
></a
></li
>
315 <li
class="dropdown">
316 <a
class="dropdown-toggle" data
-toggle
="dropdown" id
="menu_dropdown_view" role
="button" aria
-expanded
="true"><?php
echo xlt('Images'); ?
></a
>
317 <ul
class="dropdown-menu" role
="menu">
320 foreach ($documents['zones'] as $zone) {
321 if ($zone[0]['value'] == "DRAW") {
322 continue; //for now DRAW is under OTHER...
325 //menu friendly names:
326 if ($zone[0]['value'] == "EXT") {
327 $name = xl("External");
330 if ($zone[0]['value'] == "ANTSEG") {
331 $name = xl("Anterior Segment");
334 if ($zone[0]['value'] == "POSTSEG") {
335 $name = xl("Posterior Segment");
338 if ($zone[0]['value'] == "NEURO") {
339 $name = xl("Neuro-physiology");
343 if ($category_id == $zone[0]['id']) {
344 $appends = "<i class='fa fa-arrow-down'></i>";
347 if (count($documents['docs_in_zone'][$zone[0][value
]]) >'0') {
348 if ($zone[0][value
] == $category_name) {
354 $count = count($documents['docs_in_zone'][$zone[0][value
]]);
356 $s =xla('s{{suffix to make Document plural, ie. Documents}}');
361 $response[$zone[0][value
]] = '<a title="'.$count.' '.xla('Document'). $s.'"
363 href="Anything_simple.php?display=i&encounter='.attr($encounter).'&category_name='.attr($zone[0][value
]).'">'.
366 $menu[$zone[0][value
]] = '<li><a title="'.$count.' '.xla('Document'). $s.'"
368 href="Anything_simple.php?display=i&encounter='.attr($encounter).'&category_name='.attr($zone[0][value
]).'">'.
369 text($name).' <span class="menu_icon">+'.$count.'</span></a></li>';
372 $response[$zone[0][value
]] = '<a title="'.xla('No Documents').'"
373 class="'.$class.' borderShadow"
374 disabled >'.text($name).'</a>
376 $menu[$zone[0][value
]] = '<li><a title="'.$count.' '.xla('Document'). $s.'"
378 href="Anything_simple.php?display=i&encounter='.attr($encounter).'&category_name='.attr($zone[0][value
]).'">'.
379 text($name).'</a></li>';
383 echo $menu['EXT'].$menu['ANTSEG'].$menu['POSTSEG'].$menu['NEURO'];
385 if ($category_name == "OTHER") {
391 echo '<li><a title="'.xla('Other Documents').'"
392 class="'.$class.'" style="'.$style.'"
393 href="Anything_simple.php?display=i&encounter='.attr($encounter).'&category_name=OTHER">
394 '.xlt('OTHER').'<span class="menu_icon">+</span></a></li>
400 <li
class="dropdown">
401 <a
class="dropdown-toggle" class="disabled" role
="button" id
="menu_dropdown_patients" data
-toggle
="dropdown"><?php
echo xlt("Patients"); ?
> </a
>
402 <ul
class="dropdown-menu" role
="menu" aria
-labelledby
="menu1">
403 <li role
="presentation"><a role
="menuitem" tabindex
="-1" target
="RTop" href
="<?php echo $GLOBALS['webroot']; ?>/interface/main/finder/dynamic_finder.php">
404 <i
class="fa fa-angle-double-up" title
="<?php echo xla('Opens in Top frame'); ?>"></i
>
405 <?php
echo xlt("Patients"); ?
></a
></li
>
406 <li role
="presentation"><a tabindex
="-1" target
="RTop" href
="<?php echo $GLOBALS['webroot']; ?>/interface/new/new.php">
407 <i
class="fa fa-angle-double-up" title
="<?php echo xla('Opens in Top frame'); ?>"></i
>
408 <?php
echo xlt("New/Search"); ?
></a
> </li
>
409 <li role
="presentation"><a role
="menuitem" tabindex
="-1" target
="RTop" href
="<?php echo $GLOBALS['webroot']; ?>/interface/patient_file/summary/demographics.php">
410 <i
class="fa fa-angle-double-up" title
="<?php echo xla('Opens in Top frame'); ?>"></i
>
411 <?php
echo xlt("Summary"); ?
></a
></li
>
412 <li role
="presentation" class="divider"></li
>
413 <li role
="presentation"><a role
="menuitem" tabindex
="-1" target
="RTop" href
="<?php echo $GLOBALS['webroot']; ?>/interface/patient_file/transaction/record_request.php">
414 <i
class="fa fa-angle-double-up" title
="<?php echo xla('Opens in Top frame'); ?>"></i
>
415 <?php
echo xlt("Record Request"); ?
></a
></li
>
416 <li role
="presentation" class="divider"></li
>
417 <li role
="presentation"><a role
="menuitem" tabindex
="-1" target
="RTop" href
="<?php echo $GLOBALS['webroot']; ?>/interface/patient_file/ccr_import.php">
418 <i
class="fa fa-angle-double-up" title
="<?php echo xla('Opens in Top frame'); ?>"></i
>
419 <?php
echo xlt("Upload Item"); ?
></a
></li
>
420 <li role
="presentation" ><a role
="menuitem" tabindex
="-1" target
="RTop" href
="<?php echo $GLOBALS['webroot']; ?>/interface/patient_file/ccr_pending_approval.php">
421 <i
class="fa fa-angle-double-up" title
="<?php echo xla('Opens in Top frame'); ?>"></i
>
422 <?php
echo xlt("Pending Approval"); ?
></a
></li
>
425 <!-- let
's import the original openEMR menu_bar here. Needs to add restoreSession stuff? -->
427 $reg = Menu_myGetRegistered();
429 $StringEcho= '<li
class="dropdown">';
430 if ($encounterLocked === false || !(isset($encounterLocked))) {
431 foreach ($reg as $entry) {
432 $new_category = trim($entry['category
']);
433 $new_nickname = trim($entry['nickname
']);
434 if ($new_category == '') {
435 $new_category = htmlspecialchars(xl('Miscellaneous
'), ENT_QUOTES);
438 if ($new_nickname != '') {
439 $nickname = $new_nickname;
441 $nickname = $entry['name
'];
444 if ($old_category != $new_category) { //new category, new menu section
445 $new_category_ = $new_category;
446 $new_category_ = str_replace(' ', '_
', $new_category_);
447 if ($old_category != '') {
451 <li class='dropdown
'>
456 <a
class="dropdown-toggle" data
-toggle
="dropdown"
457 id
="menu_dropdown_'.attr($new_category_).'" role
="button"
458 aria
-expanded
="false">'.text($new_category).' </a
>
459 <ul
class="dropdown-menu" role
="menu">
461 $old_category = $new_category;
465 <a target='RBot
' href='".$GLOBALS['webroot']."/interface/patient_file
/encounter
/load_form
.php?formname
=" .urlencode($entry['directory'])."'>
466 <i class='fa fa
-angle
-double-down
' title='". xla('Opens in Bottom frame')."'></i>".
467 xl_form_title($nickname) . "</a></li>";
479 <li class="dropdown">
480 <a class="dropdown-toggle" data-toggle="dropdown"
481 id="menu_dropdown_library" role="button"
482 aria-expanded="true"><?php echo xlt("Library"); ?> </a>
483 <ul class="dropdown-menu" role="menu">
484 <li role="presentation"><a role="menuitem" tabindex="-1" target="RTop"
485 href="<?php echo $GLOBALS['webroot
']; ?>/interface/main/calendar/index.php?module=PostCalendar&viewtype=day&func=view&framewidth=1020">
486 <i class="fa fa-angle-double-up" title="<?php echo xla('Opens in Top frame
'); ?>"></i> <?php echo xlt("Calendar"); ?><span class="menu_icon"><i class="fa fa-calendar"></i> </span></a></li>
487 <li role="presentation" class="divider"></li>
488 <li role="presentation"><a target="RTop" role="menuitem" tabindex="-1"
489 href="<?php echo $GLOBALS['webroot
']; ?>/controller.php?document&list&patient_id=<?php echo attr($pid); ?>">
490 <i class="fa fa-angle-double-up" title="<?php echo xla('Opens in Top frame
'); ?>"></i>
491 <?php echo xlt("Documents"); ?></a></li>
494 <li class="dropdown">
495 <a class="dropdown-toggle" data-toggle="dropdown"
496 id="menu_dropdown_help" role="button"
497 aria-expanded="true"><?php echo xlt("Help"); ?> </a>
498 <ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
499 <li role="presentation"><a role="menuitem" tabindex="-1" target="_blank" href="<?php echo $GLOBALS['webroot
']; ?>/interface/forms/eye_mag/help.php">
500 <i class="fa fa-help"></i> <?php echo xlt("Shorthand Help"); ?><span class="menu_icon"><i title="<?php echo xla('Click
for Shorthand Help
.'); ?>" class="fa fa-info-circle fa-1"></i></span></a>
510 <div class="borderShadow" style="margin:0px 0px 5px 0px;padding:10px;">
511 <div style="position:absolute;margin:0 5px 10px 0; top:0.0in;text-align:center;width:95%;font-size:0.75em;;">
512 <!-- Links to other demo pages & docs -->
513 <div id="nav" style="position:absolute;top:0.0in;text-align:center;">
515 foreach ($documents['zones
'][$category_name] as $zone) {
518 if ($category_id == $zone['id
']) {
520 $append = "<i class='fa fa
-arrow
-down
'></i>";
523 if ($zone['name
'] == xl('Advance Directives
') ||
524 $zone['name
'] == xl('Durable Power of Attorney
') ||
525 $zone['name
'] == xl('Patient Information
') ||
526 $zone['name
'] == xl('Living Will
') ||
527 $zone['name
'] == xl('Imaging
')) {
529 $count = count($documents['docs_in_name
'][$zone['name
']]);
539 $disabled = "disabled='disabled
'";
540 echo ' <a
'.$disabled.' title
="'.$count.' '.xla('Document').$s.'" class="" >
541 <span
class="borderShadow '.$class.'">'.text($zone['name
']).'</span
></a
>
544 echo ' <a
'.$disabled.' title
="'.$count.' '.xla('Document').$s.'" class="'.$class.'"
545 href
="Anything_simple.php?display=i&category_id='.$zone['id'].'&encounter='.$encounter.'&category_name='.$category_name.'">
546 <span
class="borderShadow">'.text($zone['name
']).'</span
></a
>
557 <!-- Simple AnythingSlider -->
562 $counter = count($documents['docs_in_cat_id
'][$category_id]) -10;
567 for ($i=$counter; $i < count($documents['docs_in_cat_id
'][$category_id]); $i++) {
569 <object><embed src
="'.$GLOBALS['webroot'].'/controller.php?document&retrieve&patient_id='.$pid.'&document_id='.attr($documents['docs_in_cat_id'][$category_id][$i][id]).'&as_file=false" frameborder
="0"
570 type
="'.attr($documents['docs_in_cat_id'][$category_id][$i]['mimetype']).'" allowscriptaccess
="always" allowfullscreen
="true" width
="800px" height
="600px"></embed
></object>
574 $counter = count($documents['docs_in_zone
'][$category_id]) -10;
579 for ($i=$counter; $i < count($documents['docs_in_zone
'][$category_name]); $i++) {
581 <object><embed src
="'.$GLOBALS['webroot'].'/controller.php?document&retrieve&patient_id='.$pid.'&document_id='.attr($documents['docs_in_zone'][$category_name][$i][id]).'&as_file=false" frameborder
="0"
582 type
="'.attr($documents['docs_in_zone'][$category_name][$i]['mimetype']).'" allowscriptaccess
="always" allowfullscreen
="true" width
="800px" height
="600px"></embed
></object>
589 <!-- END AnythingSlider -->
592 $output = menu_overhaul_left($pid, $encounter);
597 if ($display=="fullscreen") {
598 // this function is in php/".$form_name."_functions.php
599 $output = menu_overhaul_bottom($pid, $encounter);