Insurance/Add/Search now all modal and selections pass back up the chain either way.
[openemr.git] / interface / main / main_title.php
blob394ea7588880c74cfa23534f3536f432eed93ee1
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'><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></td>
57 <td valign="middle">
58 <div style='margin-left:10px; float:left; display:none' id="current_patient_block">
59 <span class='text'><?php xl('Patient','e'); ?>:&nbsp;</span><span class='title_bar_top' id="current_patient"><b><?php xl('None','e'); ?></b></span>
60 </div>
61 </td>
62 <td valign="middle">
63 <div style='margin-left:10px; float:left; display:none' id="past_encounter_block">
64 <span class='title_bar_top' id="past_encounter"><b><?php echo htmlspecialchars( xl('None'), ENT_QUOTES) ?></b></span></td>
65 </div>
66 </td>
67 <td valign="middle">
68 <div style='margin-left:5px; float:left; display:none' class='text' id="current_encounter_block" >
69 <span class='text'><?php xl('Encounter','e'); ?>:&nbsp;</span><span class='title_bar_top' id="current_encounter"><b><?php xl('None','e'); ?></b></span>
70 </div>
71 </td>
73 <td valign="middle">
74 <div style='float:right; margin-left:5px'>
75 <div style='float:left; margin-top:3px' class = 'text'>
76 <a href="javascript:;" onclick="javascript:parent.left_nav.goHome();" ><?php xl('Home','e'); ?></a>
77 &nbsp;|&nbsp;
78 <a href="../../Documentation/User_Guide/" target="RTop" id="help_link" onclick="top.restoreSession()"> <?php xl('Manual','e'); ?></a>
79 <br>
80 <span class='text'><?php xl('Logged in','e'); ?></span>:&nbsp;<span class="title_bar_top"><?php echo $res{"fname"}.' '.$res{"lname"};?></span>
81 <span style="font-size:0.7em;"> (<?php echo $_SESSION['authGroup']?>)</span>
82 </div>
83 <div style='float:right;margin-left:5px'>
84 <a href="../logout.php?auth=logout" target="_top" class="css_button_small" id="logout_link" onclick="top.restoreSession()" >
85 <span><?php xl('Logout', 'e'); ?></span></a>
86 </div>
87 </div>
88 </td>
91 </tr>
92 </table>
94 </body>
95 </html>