couple more fixes in prior transactions improvements
[openemr.git] / contrib / acog / acog_menu.inc
blob823e9ebd93d5151b5a038f51346a35fcee20d167
1 <?php
3   if (($_SESSION['encounter'] == '') && ($encounter == '')){
4     $_SESSION['encounter'] = '0';
5   }
6   if ( stristr($_SERVER['HTTP_USER_AGENT'], "Mozilla") && (!(stristr($_SERVER['HTTP_USER_AGENT'], "compatible"))) ){
7     $height_tag="min-height";
8   } else {
9     $height_tag="height";
10   }
12 <div id="jtf" style="float: left; position: absolute; top: 10px; left:0;width:230px;margin-left:-214px;z-index:1;"
13   onMouseOver="MM_changeProp('jtf','','style.marginLeft','0px','DIV');" onMouseOut="getMouseXY;MM_changeProp('jtf','','style.marginLeft','-214px','DIV');">
14   <img src="../../pic/hdrjtoform.png" width="18" height="119" align="right">
15   <div style="padding: 2px; border: 2px solid black; border-left:none; border-right:1px solid black; margin-right: 17px; <?php echo $height_tag; ?>: 111px; background-color: white;">
16     <h2 style="margin-bottom: 4px;"><img src="../../pic/menu/doc1.png" height="16" width="16" align="left">&nbsp;Form navigator</h2>
17     <p><a href="<?php echo $rootdir; ?>/patient_file/encounter/load_form.php?formname=physician_history">PHYSICIAN HISTORY </a> | <a href="<?php echo $rootdir; ?>/patient_file/encounter/load_form.php?formname=medical_decision">MEDICAL DECISION</a> | <a href="<?php echo $rootdir; ?>/patient_file/encounter/load_form.php?formname=physical_examination">PHYSICAL EXAMINATION </a> | <a href="<?php echo $rootdir; ?>/patient_file/encounter/load_form.php?formname=patient_intake_history">PATIENT INTAKE HISTORY </a>| <a href="<?php echo $rootdir; ?>/patient_file/encounter/load_form.php?formname=plist">PROBLEM LIST</a> | <a href="<?php echo $rootdir; ?>/patient_file/encounter/load_form.php?formname=immunization_record">IMMUNIZATION RECORD </a>| <a href="<?php echo $rootdir; ?>/patient_file/encounter/load_form.php?formname=routine_screening_record">ROUTINE SCREENING RECORD </a>|<a href="<?php echo $rootdir; ?>/patient_file/encounter/load_form.php?formname=high_risk_screening_record"> HIGH-RISK SCREENING RECORD </a>
18     <?php echo $addmenu; ?></p></div>
19   </div>
20   <div id="jtef" style="position: absolute; top: 115px; left:0;width:200px;margin-left:-184px;z-index:2;"
21   onMouseOver="MM_changeProp('jtef','','style.marginLeft','0px','DIV');" onMouseOut="MM_changeProp('jtef','','style.marginLeft','-184px','DIV');"  ><img src="../../pic/hdrjtoeform.png" width="18" height="142" align="right">
22   <div style="padding: 2px; border: 2px solid black; border-left:none; border-right:1px solid black; margin-right: 17px; <?php echo $height_tag; ?>: 134px; background-color: white;">
23     <h2 style="margin-bottom: 4px;"><img src="../../pic/menu/doc1.png" height="16" width="16" align="left">&nbsp;Encounter</h2>
24     <small>Encounter for: <?php echo $patient{'fname'}.' '.$patient{'mname'}.' '.$patient{'lname'}; ?></small>
25 <div style="width:98%; overflow: hidden;">
26 <?php
28 if ($result = getFormByEncounter($pid, $encounter, "id,date,form_id,form_name,formdir,user")) {
29         foreach ($result as $iter) {            
30                 $form_info = getFormInfoById($iter['id']);
31                 $user = $iter['user'];
32                 $user = getNameFromUsername($user);
33                 echo "<p><a target=_self href='$rootdir/patient_file/encounter/view_form.php?formname=".$iter{"formdir"}."&id=".$iter{"form_id"}."'>".$iter{"form_name"}."</a> by <small>".$user['fname']." ".$user['lname'] ."</small></p>\n";
34         }       
36 ?>      
37 </div></div></div>
38 <style type="text/css">
39 <!--
40 .tabmenu{
41   width: 90%;
42   height: 16px;
43   padding: 1px;
44   text-align: top;
46 .tabmenu a{
47   font-size: 10px ! important;
48   text-transform: uppercase;
49   text-decoration: none;
51 .tabmenu:hover{
52  background-color: #ccccff;
54 .tabmenu a:hover{
55   text-decoration: none; 
57 -->
58 </style>
59 <div id="atab" style="float: left; position: absolute; top: 242px; left:0;width:230px;margin-left:-214px;z-index:3;"
60   onMouseOver="MM_changeProp('atab','','style.marginLeft','0px','DIV');" onMouseOut="getMouseXY;MM_changeProp('atab','','style.marginLeft','-214px','DIV');">
61   <img src="../../pic/hdractions.png" width="18" height="89" align="right">
62   <div style="padding: 2px; border: 2px solid black; border-left:none; border-right:1px solid black; margin-right: 17px; <?php echo $height_tag; ?>: 111px; background-color: white;">
63     <h2 style="margin-bottom: 4px;"><img src="../../pic/menu/doc1.png" height="16" width="16" align="left">&nbsp;Form actions</h2>
64     <div class="tabmenu"><img src="../../pic/menu/save.png" height="16" width="16" align="left">&nbsp;<a href="javascript:document.my_form.submit();">Save</a></div>
65     <div class="tabmenu"><img src="../../pic/menu/trash.png" height="16" width="16" align="left">&nbsp;<a href="<?php echo "$rootdir/patient_file/encounter/patient_encounter.php";?>">Cancel</a></div>
66     <?php if ($id != '') {?>
67     <hr width="90%" align="left">
68     <div class="tabmenu"><img src="../../pic/menu/print.png" height="16" width="16" align="left">&nbsp;<a href="<?php echo $rootdir; ?>/patient_file/encounter/print_form.php?id=<?php echo $id; ?>&formname=<?php echo $formname; ?>" target="_blank">Printable form</a></div>
69     <div class="tabmenu"><img src="../../pic/menu/mail.png" height="16" width="16" align="left">&nbsp;<a href="<?php echo $rootdir; ?>/patient_file/encounter/send_form.php?id=<?php echo $id; ?>&formname=<?php echo $formname; ?>">Email form</a></div>
70     <div class="tabmenu"><img src="../../pic/menu/pdf.png" height="16" width="16" align="left">&nbsp;<a href="<?php echo $rootdir; ?>/patient_file/encounter/pdf_form.php?id=<?php echo $id; ?>&formname=<?php echo $formname; ?>" target="_blank">Open as PDF</a></div>
71     <?php } else { ?>
72     <p><br>
73     Save filled form to make additional actions (printable, email, pdf) visible.
74     </p>
75     <?php } ?>
76   </div>
77 </div>