Minor fixes to links and comments
[openemr.git] / contrib / acog / acog_menu.inc
blobf750c01c55e90fd2bc7910956abd717e6b2a4df7
1 <?
2   if (($_SESSION['encounter'] == '') && ($encounter == '')){
3     $_SESSION['encounter'] = '0';
4   }
5   if ( stristr($_SERVER['HTTP_USER_AGENT'], "Mozilla") && (!(stristr($_SERVER['HTTP_USER_AGENT'], "compatible"))) ){
6     $height_tag="min-height";
7   } else {
8     $height_tag="height";
9   }
11 <div id="jtf" style="float: left; position: absolute; top: 10px; left:0;width:230px;margin-left:-214px;z-index:1;"
12   onMouseOver="MM_changeProp('jtf','','style.marginLeft','0px','DIV');" onMouseOut="getMouseXY;MM_changeProp('jtf','','style.marginLeft','-214px','DIV');">
13   <img src="../../pic/hdrjtoform.png" width="18" height="119" align="right">
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;">
15     <h2 style="margin-bottom: 4px;"><img src="../../pic/menu/doc1.png" height="16" width="16" align="left">&nbsp;Form navigator</h2>
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>
17     <? echo $addmenu; ?></p></div>
18   </div>
19   <div id="jtef" style="position: absolute; top: 115px; left:0;width:200px;margin-left:-184px;z-index:2;"
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">
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;">
22     <h2 style="margin-bottom: 4px;"><img src="../../pic/menu/doc1.png" height="16" width="16" align="left">&nbsp;Encounter</h2>
23     <small>Encounter for: <? echo $patient{'fname'}.' '.$patient{'mname'}.' '.$patient{'lname'}; ?></small>
24 <div style="width:98%; overflow: hidden;">
26 if ($result = getFormByEncounter($pid, $encounter, "id,date,form_id,form_name,formdir,user")) {
27         foreach ($result as $iter) {            
28                 $form_info = getFormInfoById($iter['id']);
29                 $user = $iter['user'];
30                 $user = getNameFromUsername($user);
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";
32         }       
34 ?>      
35 </div></div></div>
36 <style type="text/css">
37 <!--
38 .tabmenu{
39   width: 90%;
40   height: 16px;
41   padding: 1px;
42   text-align: top;
44 .tabmenu a{
45   font-size: 10px ! important;
46   text-transform: uppercase;
47   text-decoration: none;
49 .tabmenu:hover{
50  background-color: #ccccff;
52 .tabmenu a:hover{
53   text-decoration: none; 
55 -->
56 </style>
57 <div id="atab" style="float: left; position: absolute; top: 242px; left:0;width:230px;margin-left:-214px;z-index:3;"
58   onMouseOver="MM_changeProp('atab','','style.marginLeft','0px','DIV');" onMouseOut="getMouseXY;MM_changeProp('atab','','style.marginLeft','-214px','DIV');">
59   <img src="../../pic/hdractions.png" width="18" height="89" align="right">
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;">
61     <h2 style="margin-bottom: 4px;"><img src="../../pic/menu/doc1.png" height="16" width="16" align="left">&nbsp;Form actions</h2>
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>
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>
64     <? if ($id != '') {?>
65     <hr width="90%" align="left">
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>
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>
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>
69     <? } else { ?>
70     <p><br>
71     Save filled form to make additional actions (printable, email, pdf) visible.
72     </p>
73     <? } ?>
74   </div>
75 </div>