Updated to document new features, particularly multibox buttons.
[openemr.git] / interface / patient_file / navigation.php
blob8e236226c509e60220f8cd21accccb2722b655b1
1 <?php
2 include_once("../globals.php");
3 include_once("$srcdir/acl.inc");
5 $ie_auth = ((acl_check('encounters', 'notes') == 'write' ||
6 acl_check('encounters', 'notes_a') == 'write') &&
7 acl_check('patients', 'med') == 'write');
8 ?>
9 <html>
10 <head>
11 <title><?php xl('Navigation','e'); ?></title>
12 <link rel=stylesheet href="<?echo $css_header;?>" type="text/css">
13 <script type="text/javascript" src="../../library/dialog.js"></script>
14 <script language="JavaScript">
15 // This is invoked to pop up some window when a popup item is selected.
16 function selpopup(selobj) {
17 var i = selobj.selectedIndex;
18 var opt = selobj.options[i];
19 if (i > 0) {
20 var width = 750;
21 var height = 550;
22 if (opt.text == 'Export' || opt.text == 'Import') {
23 width = 500;
24 height = 400;
26 else if (opt.text == 'Refer') {
27 width = 700;
28 height = 500;
30 dlgopen(opt.value, '_blank', width, height);
32 selobj.selectedIndex = 0;
34 </script>
35 </head>
37 <body <?php echo $nav_bg_line ?> topmargin='0' rightmargin='0' leftmargin='5'
38 marginheight='0' bottommargin='0'
39 link='#000000' vlink='#000000' alink='#000000'>
41 <form>
42 <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
43 <tr>
44 <td align="center" valign="middle">
45 <a href="javascript:top.restoreSession();parent.Title.location.href='<?echo $rootdir;?>/patient_file/summary/summary_title.php';parent.Main.location.href='<?echo $rootdir;?>/patient_file/summary/patient_summary.php'" target="Main" class="menu"><? xl('Summary','e'); ?></a>
46 </td>
47 <td align="center" valign="middle">
48 <a href="javascript:top.restoreSession();parent.Title.location.href='<?echo $rootdir;?>/patient_file/history/history_title.php';parent.Main.location.href='<?echo $rootdir;?>/patient_file/history/patient_history.php'" target="Main" class="menu"><? xl('History','e'); ?></a>
49 </td>
50 <td align="center" valign="middle">
51 <a href="javascript:top.restoreSession();parent.Title.location.href='<?echo $rootdir;?>/patient_file/encounter/encounter_title.php';parent.Main.location.href='<?echo $rootdir;?>/patient_file/encounter/patient_encounter.php?mode=new'" target="Main" class="menu"><? xl('Encounter','e'); ?></a>
52 </td>
53 <td align="center" valign="middle">
54 <a href="javascript:top.restoreSession();parent.Title.location.href='<?echo $rootdir;?>/patient_file/transaction/transaction_title.php';parent.Main.location.href='<?echo $rootdir;?>/patient_file/transaction/patient_transaction.php'" target="Main" class="menu"><? xl('Transaction','e'); ?></a>
55 </td>
56 <td align="center" valign="middle">
57 <a href="<?echo $GLOBALS['web_root'];?>/controller.php?document&list&patient_id=<?=$pid?>"
58 target="Main" class="menu" onclick="top.restoreSession()"><? xl('Documents','e'); ?></a>
59 </td>
60 <td align="center" valign="middle">
61 <a href="javascript:top.restoreSession();parent.Title.location.href='<?echo $rootdir;?>/patient_file/report/report_title.php';parent.Main.location.href='<?echo $rootdir;?>/patient_file/report/patient_report.php'" target="Main" class="menu"><? xl('Report','e'); ?></a>
62 </td>
63 <td align="center" align="right" valign="middle">
64 <a href="../main/main_screen.php" target="_top" class="logout" onclick="top.restoreSession()"><? xl('Close','e'); ?></a>&nbsp;&nbsp;
65 </td>
66 <td align="right" valign="middle">
67 <select onchange='selpopup(this)' style='background-color:transparent'>
68 <option value=''><? xl('Popups','e'); ?></option>
69 <?php if ($ie_auth) { ?>
70 <option value='problem_encounter.php'><? xl('Issues','e'); ?></option>
71 <?php } ?>
72 <option value='../../custom/export_xml.php'><? xl('Export','e'); ?></option>
73 <option value='../../custom/import_xml.php'><? xl('Import','e'); ?></option>
74 <?php if ($GLOBALS['athletic_team']) { ?>
75 <option value='../reports/players_report.php'><? xl('Roster','e'); ?></option>
76 <?php } ?>
77 <option value='../reports/appointments_report.php?patient=<?php echo $pid ?>'><? xl('Appts','e'); ?></option>
78 <?php if (file_exists("$webserver_root/custom/refer.php")) { ?>
79 <option value='../../custom/refer.php'><? xl('Refer','e'); ?></option>
80 <?php } ?>
81 <?php if ($GLOBALS['inhouse_pharmacy']) { ?>
82 <option value='pos_checkout.php'><? xl('Payment','e'); ?></option>
83 <?php } else { ?>
84 <option value='front_payment.php'><? xl('Payment','e'); ?></option>
85 <?php } ?>
86 <option value='letter.php'><? xl('Letter','e'); ?></option>
87 </select>
88 </td>
89 </tr>
90 </table>
91 </form>
93 </body>
94 </html>