Added a link to new prescription generator.
[openemr.git] / interface / patient_file / navigation.php
blobd6c7e46f1c39ce4b36fedccf45338bd72587aa4d
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 <?php html_header_show();?>
12 <title><?php xl('Navigation','e'); ?></title>
13 <link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
14 <script type="text/javascript" src="../../library/dialog.js"></script>
15 <script language="JavaScript">
16 // This is invoked to pop up some window when a popup item is selected.
17 function selpopup(selobj) {
18 var i = selobj.selectedIndex;
19 var opt = selobj.options[i];
20 if (i > 0) {
21 var width = 750;
22 var height = 550;
23 if (opt.text == 'Export' || opt.text == 'Import') {
24 width = 500;
25 height = 400;
27 else if (opt.text == 'Refer') {
28 width = 700;
29 height = 500;
31 dlgopen(opt.value, '_blank', width, height);
33 selobj.selectedIndex = 0;
35 </script>
36 </head>
38 <body class="body_nav">
40 <div id="nav_topmenu">
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='<?php echo $rootdir;?>/patient_file/summary/summary_title.php';parent.Main.location.href='<?php echo $rootdir;?>/patient_file/summary/patient_summary.php'" target="Main" class="menu"><?php xl('Summary','e'); ?></a>
46 </td>
47 <td align="center" valign="middle">
48 <a href="javascript:top.restoreSession();parent.Title.location.href='<?php echo $rootdir;?>/patient_file/history/history_title.php';parent.Main.location.href='<?php echo $rootdir;?>/patient_file/history/patient_history.php'" target="Main" class="menu"><?php xl('History','e'); ?></a>
49 </td>
50 <td align="center" valign="middle">
51 <a href="javascript:top.restoreSession();parent.Title.location.href='<?php echo $rootdir;?>/patient_file/encounter/encounter_title.php';parent.Main.location.href='<?php echo $rootdir;?>/patient_file/encounter/patient_encounter.php?mode=new'" target="Main" class="menu"><?php xl('Encounter','e'); ?></a>
52 </td>
53 <td align="center" valign="middle">
54 <a href="javascript:top.restoreSession();parent.Title.location.href='<?php echo $rootdir;?>/patient_file/transaction/transaction_title.php';parent.Main.location.href='<?php echo $rootdir;?>/patient_file/transaction/patient_transaction.php'" target="Main" class="menu"><?php xl('Transaction','e'); ?></a>
55 </td>
56 <td align="center" valign="middle">
57 <a href="<?php echo $GLOBALS['web_root'];?>/controller.php?document&list&patient_id=<?=$pid?>"
58 target="Main" class="menu" onclick="top.restoreSession()"><?php xl('Documents','e'); ?></a>
59 </td>
60 <td align="center" valign="middle">
61 <a href="javascript:top.restoreSession();parent.Title.location.href='<?php echo $rootdir;?>/patient_file/report/report_title.php';parent.Main.location.href='<?php echo $rootdir;?>/patient_file/report/patient_report.php'" target="Main" class="menu"><?php 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()"><?php 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=''><?php xl('Popups','e'); ?></option>
69 <?php if ($ie_auth) { ?>
70 <option value='problem_encounter.php'><?php xl('Issues','e'); ?></option>
71 <?php } ?>
72 <option value='../../custom/export_xml.php'><?php xl('Export','e'); ?></option>
73 <option value='../../custom/import_xml.php'><?php xl('Import','e'); ?></option>
74 <?php if ($GLOBALS['athletic_team']) { ?>
75 <option value='../reports/players_report.php'><?php xl('Roster','e'); ?></option>
76 <?php } ?>
77 <option value='../reports/appointments_report.php?patient=<?php echo $pid ?>'><?php xl('Appts','e'); ?></option>
78 <?php if (file_exists("$webserver_root/custom/refer.php")) { ?>
79 <option value='../../custom/refer.php'><?php xl('Refer','e'); ?></option>
80 <?php } ?>
81 <?php if (file_exists("$webserver_root/custom/fee_sheet_codes.php")) { ?>
82 <option value='printed_fee_sheet.php'><?php xl('Superbill','e'); ?></option>
83 <?php } ?>
84 <?php if ($GLOBALS['inhouse_pharmacy']) { ?>
85 <option value='front_payment.php'><?php xl('Prepay','e'); ?></option>
86 <option value='pos_checkout.php'><?php xl('Checkout','e'); ?></option>
87 <?php } else { ?>
88 <option value='front_payment.php'><?php xl('Payment','e'); ?></option>
89 <?php } ?>
90 <option value='letter.php'><?php xl('Letter','e'); ?></option>
91 </select>
92 </td>
93 </tr>
94 </table>
95 </form>
96 </div>
98 </body>
99 </html>