3 * main_title.php - The main titlebar, at the top of the 'concurrent' layout.
6 include_once('../globals.php');
11 <link rel
="stylesheet" href
="<?php echo $css_header;?>" type
="text/css">
12 <style type
="text/css">
21 <script type
="text/javascript" language
="javascript">
22 function toencounter(rawdata
) {
23 //This is called in the on change event of the Encounter list.
24 //It opens the corresponding pages.
25 document
.getElementById('EncounterHistory').selectedIndex
=0;
30 else if(rawdata
=='New Encounter')
32 top
.window
.parent
.left_nav
.loadFrame2('nen1','RBot','forms/newpatient/new.php?autoloaded=1&calenc=')
35 else if(rawdata
=='Past Encounter List')
37 top
.window
.parent
.left_nav
.loadFrame2('pel1','RBot','patient_file/history/encounters.php')
40 var parts
= rawdata
.split("~");
42 var datestr
= parts
[1];
43 var f
= top
.window
.parent
.left_nav
.document
.forms
[0];
45 if (!f
.cb_bot
.checked
) frame
= 'RTop'; else if (!f
.cb_top
.checked
) frame
= 'RBot';
48 <?php
if ($GLOBALS['concurrent_layout']) { ?
>
49 parent
.left_nav
.setEncounter(datestr
, enc
, frame
);
50 parent
.left_nav
.setRadio(frame
, 'enc');
51 top
.frames
[frame
].location
.href
= '../patient_file/encounter/encounter_top.php?set_encounter=' + enc
;
53 top
.Title
.location
.href
= '../patient_file/encounter/encounter_title.php?set_encounter=' + enc
;
54 top
.Main
.location
.href
= '../patient_file/encounter/patient_encounter.php?set_encounter=' + enc
;
57 function showhideMenu() {
58 var m
= parent
.document
.getElementById("fsbody");
59 var targetWidth
= '0,*';
60 if (m
.cols
== targetWidth
) {
61 m
.cols
= '<?php echo $GLOBALS['gbl_nav_area_width
'] ?>,*';
62 document
.getElementById("showMenuLink").innerHTML
= '<?php echo htmlspecialchars( xl('Hide Menu
'), ENT_QUOTES); ?>';
65 document
.getElementById("showMenuLink").innerHTML
= '<?php echo htmlspecialchars( xl('Show Menu
'), ENT_QUOTES); ?>';
70 <body
class="body_title">
72 $res = sqlQuery("select * from users where username='".$_SESSION{"authUser"}."'");
75 <table cellspacing
="0" cellpadding
="0" width
="100%" height
="100%">
78 <?php
if ($GLOBALS['concurrent_layout']) { ?
>
79 <table cellspacing
="0" cellpadding
="1" style
="margin:0px 0px 0px 3px;">
81 <?php
if (acl_check('patients','demo','',array('write','addonly') )) { ?
>
82 <tr
><td style
="vertical-align:text-bottom;">
83 <a href
='' class="css_button_small" style
="margin:0px;vertical-align:top;" id
='new0' onClick
=" return top.window.parent.left_nav.loadFrame2('new0','RTop','new/new.php')">
84 <span
><?php
echo htmlspecialchars( xl('NEW PATIENT'), ENT_QUOTES
); ?
></span
></a
>
86 <td style
="vertical-align:text-bottom;">
87 <a href
='' class="css_button_small" style
="margin:0px;vertical-align:top;display:none;" id
='clear_active' onClick
="javascript:parent.left_nav.clearactive();return false;">
88 <span
><?php
echo htmlspecialchars( xl('CLEAR ACTIVE PATIENT'), ENT_QUOTES
); ?
></span
></a
>
91 <?php
} //end of acl_check('patients','demo','',array('write','addonly') if ?>
93 <tr
><td valign
="baseline"><B
>
94 <a
class="text" style
='vertical-align:text-bottom;' href
="main_title.php" id
='showMenuLink' onclick
='javascript:showhideMenu();return false;'><?php
xl('Hide Menu','e'); ?
></a
></B
>
100 <td style
="margin:3px 0px 3px 0px;vertical-align:middle;">
101 <div style
='margin-left:10px; float:left; display:none' id
="current_patient_block">
102 <span
class='text'><?php
xl('Patient','e'); ?
>: 
;</span
><span
class='title_bar_top' id
="current_patient"><b
><?php
xl('None','e'); ?
></b
></span
>
105 <td style
="margin:3px 0px 3px 0px;vertical-align:middle;" align
="left">
106 <table cellspacing
="0" cellpadding
="1" ><tr
><td
>
107 <div style
='margin-left:5px; float:left; display:none' id
="past_encounter_block">
108 <span
class='title_bar_top' id
="past_encounter"><b
><?php
echo htmlspecialchars( xl('None'), ENT_QUOTES
) ?
></b
></span
>
110 <tr
><td valign
="baseline" align
="center">
111 <div style
='display:none' class='text' id
="current_encounter_block" >
112 <span
class='text'><?php
xl('Selected Encounter','e'); ?
>: 
;</span
><span
class='title_bar_top' id
="current_encounter"><b
><?php
xl('None','e'); ?
></b
></span
>
113 </div
></td
></tr
></table
>
117 <table cellspacing
="0" cellpadding
="1" style
="margin:0px 3px 0px 0px;"><tr
>
118 <td align
="right" class="text" style
="vertical-align:text-bottom;"><a href
='main_title.php' onclick
="javascript:parent.left_nav.goHome();return false;" ><?php
xl('Home','e'); ?
></a
>
120 <a href
="http://open-emr.org/wiki/index.php/OpenEMR_4.1.1_Users_Guide" target
="_blank" id
="help_link" >
121 <?php
xl('Manual','e'); ?
></a
> 
;</td
>
122 <td align
="right" style
="vertical-align:top;"><a href
="../logout.php?auth=logout" target
="_top" class="css_button_small" style
='float:right;' id
="logout_link" onclick
="top.restoreSession()" >
123 <span
><?php
echo htmlspecialchars( xl('Logout'), ENT_QUOTES
) ?
></span
></a
></td
>
125 <td colspan
='2' valign
="baseline" align
='right'><B
>
126 <span
class="text title_bar_top" title
="<?php echo htmlspecialchars( xl('Authorization group') .': '.$_SESSION['authGroup'], ENT_QUOTES); ?>"><?php
echo htmlspecialchars($res{"fname"}.' '.$res{"lname"},ENT_NOQUOTES
); ?
></span
></span
></td
>
132 <script type
="text/javascript" language
="javascript">
133 parent
.loadedFrameCount +
= 1;