Added link to very useful appointments report.
[openemr.git] / interface / main / main_navigation.php
blob3e54d9f1baffefcfd486b49d7c8c31bfd1fe4629
1 <?php
2 include_once("../globals.php");
3 include_once("../../library/acl.inc");
4 ?>
5 <html>
6 <head>
7 <title>Navigation</title>
9 <link rel=stylesheet href="<?echo $css_header;?>" type="text/css">
11 </head>
12 <body <?echo $nav_bg_line;?> topmargin=0 rightmargin=4 leftmargin=2 marginheight=0 bottommargin=0 link=#000000 vlink=#000000 alink=#000000>
14 <form border=0 method=post target="_top" name="find_patient" action="<?echo $rootdir?>/main/finder/patient_finder.php">
15 <?//<form border=0>?>
17 <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
18 <tr>
19 <td width="10%" nowrap>
20 <?//<a href="javascript:document.find_patient.action='finder/patient_finder_keyboard.php';document.find_patient.submit();" class=link>Find Patient:</a>?>
21 <input type="entry" size="10" name="patient" />
22 <select name="findBy" size=1>
23 <option value="ID"><? xl ('ID','e'); ?></option>
24 <option value="Last" selected><? xl ('Name','e'); ?></option>
25 <option value="SSN"><? xl ('SSN','e'); ?></option>
26 <option value="DOB"><? xl ('DOB','e'); ?></option>
27 </select>
28 </td>
30 <td width="5%" nowrap>
31 <a href="javascript:top.restoreSession();document.find_patient.action='<?echo $rootdir?>/main/finder/patient_finder.php';document.find_patient.submit();"
32 class='link'>&nbsp;<? xl('Find','e'); ?>&nbsp;<? xl('Patient','e'); ?></a>
33 &nbsp;
34 </td>
37 $npauth = acl_check('patients', 'demo');
38 if ($npauth == 'write' || $npauth == 'addonly') {
40 <td align="center" nowrap>
41 &nbsp;<a class="menu" target=_top href="../new/new_patient.php" onclick="top.restoreSession()">
42 <? xl('New','e'); ?>&nbsp;<? xl('Patient','e'); ?></a>&nbsp;
43 </td>
44 <? } ?>
46 <td align="center" nowrap>
47 &nbsp;<a href="../usergroup/user_info.php" target="Main" class="menu" onclick="top.restoreSession()">
48 <? xl('Password','e'); ?></a>&nbsp;
49 </td>
51 <? if (acl_check('admin', 'calendar') || acl_check('admin', 'database') ||
52 acl_check('admin', 'forms') || acl_check('admin', 'practice') ||
53 acl_check('admin', 'users')) { ?>
54 <td align="center" nowrap>
55 &nbsp;<a class=menu target=_top href="../usergroup/usergroup.php" onclick="top.restoreSession()">
56 <? xl('Admin','e'); ?></a>&nbsp;
57 </td>
58 <? } ?>
60 <td align="center" nowrap>
61 &nbsp;<a href="../reports/appointments_report.php" target="_new" class="menu"> <? xl('Appts','e'); ?></a>&nbsp;&nbsp;
62 </td>
63 <td align="center" nowrap>
64 &nbsp;<a href="../reports/index.php" target="Main" class="menu" onclick="top.restoreSession()">
65 <? xl('Reports','e'); ?></a>&nbsp;
66 </td>
68 <td align="center" nowrap>
69 &nbsp;<a href="onotes/office_comments.php" target="Main" class="menu" onclick="top.restoreSession()">
70 <? xl('Notes','e'); ?></a>&nbsp;
71 </td>
73 <td align="center" nowrap>
74 &nbsp;<a href="../usergroup/addrbook_list.php" target="Main" class="menu" onclick="top.restoreSession()">
75 <? xl('AB','e'); ?></a>&nbsp;
76 </td>
78 <?php
79 $tmp = acl_check('patients', 'demo');
80 if (($tmp == 'write' || $tmp == 'addonly') &&
81 is_readable("$webserver_root/custom/import.php")) {
83 <td align="center" nowrap>
84 &nbsp;<a href="<?php echo $web_root; ?>/custom/import.php" target="Main" class="menu"
85 onclick="top.restoreSession()"><? xl('Import','e'); ?></a>&nbsp;
86 </td>
87 <?php } ?>
89 <?php
90 if ($GLOBALS['hylafax_server'] || $GLOBALS['scanner_output_directory']) {
91 $faxcount = 0;
92 if ($GLOBALS['hylafax_server']) {
93 // Count the number of faxes in the recvq:
94 $statlines = array();
95 exec("faxstat -r -l -h " . $GLOBALS['hylafax_server'], $statlines);
96 foreach ($statlines as $line) {
97 if (substr($line, 0, 1) == '-') ++$faxcount;
100 $faxcount = $faxcount ? "($faxcount)" : "";
102 <td align="center" nowrap>
103 &nbsp;<a href="../fax/faxq.php" target="Main" class="menu" onclick="top.restoreSession()">
104 <?php echo xl('Docs') . $faxcount; ?></a>&nbsp;
105 </td>
106 <?php } ?>
108 <? if (acl_check('acct', 'rep') || acl_check('acct', 'eob') || acl_check('acct', 'bill')) { ?>
109 <td align="center" nowrap>
110 &nbsp;<a href="../billing/billing_report.php" target="Main" class="menu" onclick="top.restoreSession()">
111 <? xl('Billing','e'); ?></a>&nbsp;
112 </td>
113 <? } ?>
115 <? if ($GLOBALS['athletic_team']) { ?>
116 <td align="center" nowrap>
117 &nbsp;<a href="../reports/players_report.php?embed=1" target="Main" class="menu" onclick="top.restoreSession()">
118 <? xl('Roster','e'); ?></a>&nbsp;
119 </td>
120 <td align="center" nowrap>
121 &nbsp;<a href="main.php" target="Main" class="menu" onclick="top.restoreSession()">
122 <? xl('Calendar','e'); ?></a>&nbsp;
123 </td>
124 <? } else { ?>
125 <td align="center" nowrap>
126 &nbsp;<a href="main.php" target="Main" class="menu" onclick="top.restoreSession()">
127 <? xl('Home','e'); ?></a>&nbsp;
128 </td>
129 <? } ?>
131 <td align="center" nowrap>
132 &nbsp;<a href="../logout.php?auth=logout" target="_top" class="menu" onclick="top.restoreSession()">
133 <? xl('Logout','e'); ?></a>&nbsp;&nbsp;
134 </td>
136 </tr>
137 </table>
139 </form>
141 </body>
142 </html>