Update to 4.0 Documentation
[openemr.git] / interface / main / main_title.php
blob65f289c4f6f9b1675849362089a1ac602af402bb
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 <script type="text/javascript" language="javascript">
10 function toencounter(rawdata) {
11 //This is called in the on change event of the Encounter list.
12 //It opens the corresponding pages.
13 document.getElementById('EncounterHistory').selectedIndex=0;
14 if(rawdata=='')
16 return false;
18 else if(rawdata=='New Encounter')
20 top.window.parent.left_nav.loadFrame2('nen1','RBot','forms/newpatient/new.php?autoloaded=1&calenc=')
21 return true;
23 else if(rawdata=='Past Encounter List')
25 top.window.parent.left_nav.loadFrame2('pel1','RBot','patient_file/history/encounters.php')
26 return true;
28 var parts = rawdata.split("~");
29 var enc = parts[0];
30 var datestr = parts[1];
31 var f = top.window.parent.left_nav.document.forms[0];
32 frame = 'RBot';
33 if (!f.cb_bot.checked) frame = 'RTop'; else if (!f.cb_top.checked) frame = 'RBot';
35 top.restoreSession();
36 <?php if ($GLOBALS['concurrent_layout']) { ?>
37 parent.left_nav.setEncounter(datestr, enc, frame);
38 parent.left_nav.setRadio(frame, 'enc');
39 top.frames[frame].location.href = '../patient_file/encounter/encounter_top.php?set_encounter=' + enc;
40 <?php } else { ?>
41 top.Title.location.href = '../patient_file/encounter/encounter_title.php?set_encounter=' + enc;
42 top.Main.location.href = '../patient_file/encounter/patient_encounter.php?set_encounter=' + enc;
43 <?php } ?>
46 </script>
47 </head>
48 <body class="body_title">
50 <?php
51 $res = sqlQuery("select * from users where username='".$_SESSION{"authUser"}."'");
54 <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
55 <tr>
56 <td valign="middle" class = 'text'>
57 <?php if ($GLOBALS['concurrent_layout']) { ?>
58 <a href='' class="css_button_small" id='new0' style="font-weight:bold" onClick=" return top.window.parent.left_nav.loadFrame2('new0','RTop','new/new.php')"><span><?php echo htmlspecialchars( xl('NEW PATIENT'), ENT_QUOTES) ?></span></a>
59 <?php } else { ?>
60 &nbsp;
61 <?php } ?>
62 </td>
63 <td valign="middle">
64 <div style='margin-left:10px; float:left; display:none' id="current_patient_block">
65 <span class='text'><?php xl('Patient','e'); ?>:&nbsp;</span><span class='title_bar_top' id="current_patient"><b><?php xl('None','e'); ?></b></span>
66 </div>
67 </td>
68 <td valign="middle">
69 <div style='margin-left:10px; float:left; display:none' id="past_encounter_block">
70 <span class='title_bar_top' id="past_encounter"><b><?php echo htmlspecialchars( xl('None'), ENT_QUOTES) ?></b></span></td>
71 </div>
72 </td>
73 <td valign="middle">
74 <div style='margin-left:5px; float:left; display:none' class='text' id="current_encounter_block" >
75 <span class='text'><?php xl('Encounter','e'); ?>:&nbsp;</span><span class='title_bar_top' id="current_encounter"><b><?php xl('None','e'); ?></b></span>
76 </div>
77 </td>
79 <td valign="middle">
80 <div style='float:right; margin-left:5px'>
81 <div style='float:left; margin-top:3px' class = 'text'>
82 <a href="javascript:;" onclick="javascript:parent.left_nav.goHome();" ><?php xl('Home','e'); ?></a>
83 &nbsp;|&nbsp;
84 <a href="../../Documentation/User_Guide/index.html" target="_blank" id="help_link" onclick="top.restoreSession()"> <?php xl('Manual','e'); ?></a>
85 <br>
86 <span class='text'><?php xl('Logged in','e'); ?></span>:&nbsp;<span class="title_bar_top"><?php echo $res{"fname"}.' '.$res{"lname"};?></span>
87 <span style="font-size:0.7em;"> (<?php echo $_SESSION['authGroup']?>)</span>
88 </div>
89 <div style='float:right;margin-left:5px'>
90 <a href="../logout.php?auth=logout" target="_top" class="css_button_small" id="logout_link" onclick="top.restoreSession()" >
91 <span><?php xl('Logout', 'e'); ?></span></a>
92 </div>
93 </div>
94 </td>
97 </tr>
98 </table>
100 </body>
101 </html>