6ec9063001786d048f304ba3d161900292ad6da7
[openemr.git] / interface / main / main_title.php
blob6ec9063001786d048f304ba3d161900292ad6da7
1 <?php
2 include_once("../globals.php");
3 ?>
5 <html>
6 <head>
8 <link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
9 <style type="text/css">
10 .hidden {
11 display:none;
13 .visible{
14 display:block;
16 </style>
17 <script type="text/javascript" language="javascript">
18 function toencounter(rawdata) {
19 //This is called in the on change event of the Encounter list.
20 //It opens the corresponding pages.
21 document.getElementById('EncounterHistory').selectedIndex=0;
22 if(rawdata=='')
24 return false;
26 else if(rawdata=='New Encounter')
28 top.window.parent.left_nav.loadFrame2('nen1','RBot','forms/newpatient/new.php?autoloaded=1&calenc=')
29 return true;
31 else if(rawdata=='Past Encounter List')
33 top.window.parent.left_nav.loadFrame2('pel1','RBot','patient_file/history/encounters.php')
34 return true;
36 var parts = rawdata.split("~");
37 var enc = parts[0];
38 var datestr = parts[1];
39 var f = top.window.parent.left_nav.document.forms[0];
40 frame = 'RBot';
41 if (!f.cb_bot.checked) frame = 'RTop'; else if (!f.cb_top.checked) frame = 'RBot';
43 top.restoreSession();
44 <?php if ($GLOBALS['concurrent_layout']) { ?>
45 parent.left_nav.setEncounter(datestr, enc, frame);
46 parent.left_nav.setRadio(frame, 'enc');
47 top.frames[frame].location.href = '../patient_file/encounter/encounter_top.php?set_encounter=' + enc;
48 <?php } else { ?>
49 top.Title.location.href = '../patient_file/encounter/encounter_title.php?set_encounter=' + enc;
50 top.Main.location.href = '../patient_file/encounter/patient_encounter.php?set_encounter=' + enc;
51 <?php } ?>
53 function showhideMenu() {
54 var m = parent.document.getElementById("fsbody");
55 var targetWidth = '0,*';
56 if (m.cols == targetWidth) {
57 m.cols = '<?php echo $GLOBALS['gbl_nav_area_width'] ?>,*';
58 document.getElementById("showMenuLink").innerHTML = '<?php echo htmlspecialchars( xl('Hide Menu'), ENT_QUOTES); ?>';
59 } else {
60 m.cols = targetWidth;
61 document.getElementById("showMenuLink").innerHTML = '<?php echo htmlspecialchars( xl('Show Menu'), ENT_QUOTES); ?>';
64 </script>
65 </head>
66 <body class="body_title">
68 <?php
69 $res = sqlQuery("select * from users where username='".$_SESSION{"authUser"}."'");
72 <table cellspacing="0" cellpadding="0" width="100%" height="100%">
73 <tr>
74 <td align="left">
75 <?php if ($GLOBALS['concurrent_layout']) { ?>
76 <table cellspacing="0" cellpadding="1" style="margin:0px 0px 0px 3px;">
78 <?php if (acl_check('patients','demo','',array('write','addonly') )) { ?>
79 <tr><td style="vertical-align:text-bottom;">
80 <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')">
81 <span><?php echo htmlspecialchars( xl('NEW PATIENT'), ENT_QUOTES); ?></span></a>
82 </td>
83 <td style="vertical-align:text-bottom;">
84 <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;">
85 <span><?php echo htmlspecialchars( xl('CLEAR ACTIVE PATIENT'), ENT_QUOTES); ?></span></a>
86 </td>
87 </tr>
88 <?php } //end of acl_check('patients','demo','',array('write','addonly') if ?>
90 <tr><td valign="baseline"><B>
91 <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>
92 </td></tr></table>
93 <?php } else { ?>
94 &nbsp;
95 <?php } ?>
96 </td>
97 <td style="margin:3px 0px 3px 0px;vertical-align:middle;">
98 <div style='margin-left:10px; float:left; display:none' id="current_patient_block">
99 <span class='text'><?php xl('Patient','e'); ?>:&nbsp;</span><span class='title_bar_top' id="current_patient"><b><?php xl('None','e'); ?></b></span>
100 </div>
101 </td>
102 <td style="margin:3px 0px 3px 0px;vertical-align:middle;" align="left">
103 <table cellspacing="0" cellpadding="1" ><tr><td>
104 <div style='margin-left:5px; float:left; display:none' id="past_encounter_block">
105 <span class='title_bar_top' id="past_encounter"><b><?php echo htmlspecialchars( xl('None'), ENT_QUOTES) ?></b></span>
106 </div></td></tr>
107 <tr><td valign="baseline" align="center">
108 <div style='display:none' class='text' id="current_encounter_block" >
109 <span class='text'><?php xl('Selected Encounter','e'); ?>:&nbsp;</span><span class='title_bar_top' id="current_encounter"><b><?php xl('None','e'); ?></b></span>
110 </div></td></tr></table>
111 </td>
113 <td align="right">
114 <table cellspacing="0" cellpadding="1" style="margin:0px 3px 0px 0px;"><tr>
115 <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>
116 &nbsp;|&nbsp;
117 <a href="http://open-emr.org/wiki/index.php/OpenEMR_4.1.1_Users_Guide" target="_blank" id="help_link" >
118 <?php xl('Manual','e'); ?></a>&nbsp;</td>
119 <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()" >
120 <span><?php echo htmlspecialchars( xl('Logout'), ENT_QUOTES) ?></span></a></td>
121 </tr><tr>
122 <td colspan='2' valign="baseline" align='right'><B>
123 <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>
124 </tr></table>
125 </td>
126 </tr>
127 </table>
129 <script type="text/javascript" language="javascript">
130 parent.loadedFrameCount += 1;
131 </script>
133 </body>
134 </html>