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