indicate number of received faxes in header line
[openemr.git] / interface / main / main_navigation.php
blobd6cee38d30e4d63aed179f4d670c2d6115f3f7eb
1 <?
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:document.find_patient.action='<?echo $rootdir?>/main/finder/patient_finder.php';document.find_patient.submit();" class=link>&nbsp;<? xl('Find','e'); ?>&nbsp;<? xl('Patient','e'); ?></a>
32 &nbsp;
33 </td>
36 $npauth = acl_check('patients', 'demo');
37 if ($npauth == 'write' || $npauth == 'addonly') {
39 <td align="center" nowrap>
40 &nbsp;<a class="menu" target=_top href="../new/new_patient.php"><? xl('New','e'); ?>&nbsp;<? xl('Patient','e'); ?></a>&nbsp;
41 </td>
42 <? } ?>
44 <td align="center" nowrap>
45 &nbsp;<a href="../usergroup/user_info.php" target="Main" class="menu"><? xl('Password','e'); ?></a>&nbsp;
46 </td>
48 <? if (acl_check('admin', 'calendar') || acl_check('admin', 'database') ||
49 acl_check('admin', 'forms') || acl_check('admin', 'practice') ||
50 acl_check('admin', 'users')) { ?>
51 <td align="center" nowrap>
52 &nbsp;<a class=menu target=_top href="../usergroup/usergroup.php"><? xl('Administration','e'); ?></a>&nbsp;
53 </td>
54 <? } ?>
56 <td align="center" nowrap>
57 &nbsp;<a href="../reports/index.php" target="Main" class="menu"><? xl('Reports','e'); ?></a>&nbsp;
58 </td>
60 <td align="center" nowrap>
61 &nbsp;<a href="onotes/office_comments.php" target="Main" class="menu"><? xl('Notes','e'); ?></a>&nbsp;
62 </td>
64 <?php
65 if ($GLOBALS['hylafax_server']) {
66 // Count the number of faxes in the recvq:
67 $statlines = array();
68 exec("faxstat -r -l -h " . $GLOBALS['hylafax_server'], $statlines);
69 $faxcount = 0;
70 foreach ($statlines as $line) {
71 if (substr($line, 0, 1) == '-') ++$faxcount;
73 $faxcount = $faxcount ? "($faxcount)" : "";
75 <td align="center" nowrap>
76 &nbsp;<a href="../fax/faxq.php" target="Main" class="menu"><?php echo xl('Fax') . $faxcount; ?></a>&nbsp;
77 </td>
78 <?php } ?>
80 <? if (acl_check('acct', 'rep') || acl_check('acct', 'eob') || acl_check('acct', 'bill')) { ?>
81 <td align="center" nowrap>
82 &nbsp;<a href="../billing/billing_report.php" target="Main" class="menu"><? xl('Billing','e'); ?></a>&nbsp;
83 </td>
84 <? } ?>
86 <? if ($GLOBALS['athletic_team']) { ?>
87 <td align="center" nowrap>
88 &nbsp;<a href="../reports/players_report.php?embed=1" target="Main" class="menu"><? xl('Roster','e'); ?></a>&nbsp;
89 </td>
90 <td align="center" nowrap>
91 &nbsp;<a href="main.php" target="Main" class="menu"><? xl('Calendar','e'); ?></a>&nbsp;
92 </td>
93 <? } else { ?>
94 <td align="center" nowrap>
95 &nbsp;<a href="main.php" target="Main" class="menu"><? xl('Home','e'); ?></a>&nbsp;
96 </td>
97 <? } ?>
99 <td align="center" nowrap>
100 &nbsp;<a href="../logout.php?auth=logout" target="_top" class="menu"><? xl('Logout','e'); ?></a>&nbsp;&nbsp;
101 </td>
103 </tr>
104 </table>
106 </form>
108 </body>
109 </html>