added referral interface
[openemr.git] / interface / patient_file / navigation.php
blob0d3462c2db1a8b8ea83e0d211ccc242c81332e3f
1 <?
2 include_once("../globals.php");
3 include_once("$srcdir/acl.inc");
5 $ie_auth = (acl_check('encounters', 'notes') == 'write' &&
6 acl_check('patients', 'med') == 'write');
7 ?>
8 <html>
9 <head>
10 <title>Navigation</title>
11 <link rel=stylesheet href="<?echo $css_header;?>" type="text/css">
12 <script type="text/javascript" src="../../library/dialog.js"></script>
13 <script language="JavaScript">
14 // This is invoked to pop up some window when a popup item is selected.
15 function selpopup(selobj) {
16 var i = selobj.selectedIndex;
17 var opt = selobj.options[i];
18 if (i > 0) {
19 var width = 750;
20 var height = 550;
21 if (opt.text == 'Export' || opt.text == 'Import') {
22 width = 500;
23 height = 400;
25 else if (opt.text == 'Refer') {
26 width = 700;
27 height = 500;
29 dlgopen(opt.value, '_blank', width, height);
31 selobj.selectedIndex = 0;
33 </script>
34 </head>
36 <body <? echo $nav_bg_line ?> topmargin='0' rightmargin='0' leftmargin='5'
37 marginheight='0' bottommargin='0'
38 link='#000000' vlink='#000000' alink='#000000'>
40 <form>
41 <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
42 <tr>
43 <td align="center" valign="middle">
44 <a href="javascript: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">Summary</a>
45 </td>
46 <td align="center" valign="middle">
47 <a href="javascript: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">History</a>
48 </td>
49 <td align="center" valign="middle">
50 <a href="javascript: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">Encounter</a>
51 </td>
52 <td align="center" valign="middle">
53 <a href="javascript: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">Transaction</a>
54 </td>
55 <td align="center" valign="middle">
56 <a href="<?echo $GLOBALS['web_root'];?>/controller.php?document&list&patient_id=<?=$pid?>" target="Main" class="menu">Documents</a>
57 </td>
58 <td align="center" valign="middle">
59 <a href="javascript: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">Report</a>
60 </td>
61 <td align="center" align="right" valign="middle">
62 <a href="../main/main_screen.php" target="_top" class="logout">Close</a>&nbsp;&nbsp;
63 </td>
64 <td align="right" valign="middle">
65 <select onchange='selpopup(this)' style='background-color:transparent'>
66 <option value=''>Popups</option>
67 <? if ($ie_auth) { ?>
68 <option value='problem_encounter.php'>Issues</option>
69 <? } ?>
70 <option value='../../custom/export_xml.php'>Export</option>
71 <option value='../../custom/import_xml.php'>Import</option>
72 <? if ($GLOBALS['athletic_team']) { ?>
73 <option value='../reports/players_report.php'>Roster</option>
74 <? } ?>
75 <option value='../reports/appointments_report.php'>Appts</option>
76 <? if (file_exists("$webserver_root/custom/refer.php")) { ?>
77 <option value='../../custom/refer.php'>Refer</option>
78 <? } ?>
79 </select>
80 </td>
81 </tr>
82 </table>
83 </form>
85 </body>
86 </html>