Migrated fax/scan options from global.php to Administration => Globals.
[openemr.git] / interface / main / main_navigation.php
blob7e6facd8fcd14ca751f2582958a5cfcbca280292
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="<?php echo $css_header;?>" type="text/css">
11 </head>
12 <body class="body_nav">
14 <form border=0 method=post target="_top" name="find_patient" action="<?php echo $rootdir?>/main/finder/patient_finder.php">
16 <div id="nav_topmenu">
17 <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
18 <tr>
19 <td width="10%" nowrap>
20 <?php ///<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="Last" selected><?php xl ('Name','e'); ?></option>
24 <option value="Phone"><?php xl ('Phone','e'); ?></option>
25 <option value="ID"><?php xl ('ID','e'); ?></option>
26 <option value="SSN"><?php xl ('SSN','e'); ?></option>
27 <option value="DOB"><?php xl ('DOB','e'); ?></option>
28 </select>
29 </td>
31 <td width="5%" nowrap>
32 <a href="javascript:top.restoreSession();document.find_patient.action='<?php echo $rootdir?>/main/finder/patient_finder.php';document.find_patient.submit();"
33 class='link'>&nbsp;<?php xl('Find','e'); ?>&nbsp;<?php xl('Patient','e'); ?></a>
34 &nbsp;
35 </td>
37 <?php
38 $npauth = acl_check('patients', 'demo');
39 if ($npauth == 'write' || $npauth == 'addonly') {
41 <td align="center" nowrap>
42 &nbsp;<a class="menu" target=_top href="../new/new_patient.php" onclick="top.restoreSession()">
43 <?php xl('New','e'); ?>&nbsp;<?php xl('Patient','e'); ?></a>&nbsp;
44 </td>
45 <?php } ?>
47 <td align="center" nowrap>
48 &nbsp;<a href="../usergroup/user_info.php" target="Main" class="menu" onclick="top.restoreSession()">
49 <?php xl('Password','e'); ?></a>&nbsp;
50 </td>
52 <?php if (acl_check('admin', 'calendar') || acl_check('admin', 'database') ||
53 acl_check('admin', 'forms') || acl_check('admin', 'practice') ||
54 acl_check('admin', 'users') || acl_check('admin', 'acl')) { ?>
55 <td align="center" nowrap>
56 &nbsp;<a class="menu" target=_top href="../usergroup/usergroup.php" onclick="top.restoreSession()">
57 <?php xl('Admin','e'); ?></a>&nbsp;
58 </td>
59 <?php } ?>
61 <td align="center" nowrap>
62 &nbsp;<a href="../reports/appointments_report.php" target="_new" class="menu"> <?php xl('Appts','e'); ?></a>&nbsp;&nbsp;
63 </td>
64 <td align="center" nowrap>
65 &nbsp;<a href="../reports/index.php" target="Main" class="menu" onclick="top.restoreSession()">
66 <?php xl('Reports','e'); ?></a>&nbsp;
67 </td>
69 <td align="center" nowrap>
70 &nbsp;<a href="onotes/office_comments.php" target="Main" class="menu" onclick="top.restoreSession()">
71 <?php xl('Notes','e'); ?></a>&nbsp;
72 </td>
74 <td align="center" nowrap>
75 &nbsp;<a href="../usergroup/addrbook_list.php" target="Main" class="menu" onclick="top.restoreSession()">
76 <?php xl('AB','e'); ?></a>&nbsp;
77 </td>
79 <?php
80 $tmp = acl_check('patients', 'demo');
81 if (($tmp == 'write' || $tmp == 'addonly') &&
82 is_readable("$webserver_root/custom/import.php")) {
84 <td align="center" nowrap>
85 &nbsp;<a href="<?php echo $web_root; ?>/custom/import.php" target="Main" class="menu"
86 onclick="top.restoreSession()"><?php xl('Import','e'); ?></a>&nbsp;
87 </td>
88 <?php } ?>
90 <?php
91 if ($GLOBALS['enable_hylafax'] || $GLOBALS['enable_scanner']) {
92 $faxcount = 0;
93 if ($GLOBALS['enable_hylafax']) {
94 // Count the number of faxes in the recvq:
95 $statlines = array();
96 exec("faxstat -r -l -h " . $GLOBALS['hylafax_server'], $statlines);
97 foreach ($statlines as $line) {
98 if (substr($line, 0, 1) == '-') ++$faxcount;
101 $faxcount = $faxcount ? "($faxcount)" : "";
103 <td align="center" nowrap>
104 &nbsp;<a href="../fax/faxq.php" target="Main" class="menu" onclick="top.restoreSession()">
105 <?php echo xl('Docs') . $faxcount; ?></a>&nbsp;
106 </td>
107 <?php } ?>
109 <?php if (acl_check('acct', 'rep') || acl_check('acct', 'eob') || acl_check('acct', 'bill')) { ?>
110 <td align="center" nowrap>
111 &nbsp;<a href="../billing/billing_report.php" target="Main" class="menu" onclick="top.restoreSession()">
112 <?php xl('Billing','e'); ?></a>&nbsp;
113 </td>
114 <?php } ?>
116 <?php if ($GLOBALS['athletic_team']) { ?>
118 <td align="center" nowrap>
119 &nbsp;<a href="../reports/players_report.php?embed=1" target="Main" class="menu" onclick="top.restoreSession()">
120 <?php xl('Roster','e'); ?></a>&nbsp;
121 </td>
122 <td align="center" nowrap>
123 &nbsp;<a href="main.php" target="Main" class="menu" onclick="top.restoreSession()">
124 <?php xl('Calendar','e'); ?></a>&nbsp;
125 </td>
127 <?php } else { ?>
129 <td align="center" nowrap>
130 &nbsp;<a href="main.php" target="Main" class="menu" onclick="top.restoreSession()">
131 <?php xl('Home','e'); ?></a>&nbsp;
132 </td>
134 <?php } ?>
136 <td align="center" nowrap>
137 &nbsp;<a href="../logout.php?auth=logout" target="_top" class="menu" onclick="top.restoreSession()">
138 <?php xl('Logout','e'); ?></a>&nbsp;&nbsp;
139 </td>
141 <td align="center" nowrap>
142 &nbsp;<a href="../../Documentation/User_Guide/" target="_blank" class="menu" onclick="top.restoreSession()">
143 <?php xl('Help','e'); ?></a>&nbsp;&nbsp;
144 </td>
146 </tr>
147 </table>
148 </div>
150 </form>
152 </body>
153 </html>