set default margins to 5
[openemr.git] / interface / dbc / dbc_totaldbc.php
blob62a34f57fce6b636ffb41ec83d0db5bfcfb2fe14
1 <?php
2 /**
3 * VEKTIS
5 * @author Cristian NAVALICI
6 * @version 1.0 feb 2008
8 */
10 require_once("../globals.php");
11 require_once("$srcdir/acl.inc");
13 // Check authorization.
14 $thisauth = acl_check('admin', 'dbc');
15 if (!$thisauth) die("Not authorized.");
17 // get the results
18 $result = df_allopendbc_wtimes();
21 <html>
23 <head>
25 <link rel=stylesheet href='<?php echo $css_header ?>' type='text/css'>
26 <LINK href="<?php echo $css_dbc ?>" rel="stylesheet" type="text/css">
27 <title>DBC Report</title>
28 </head>
30 <body <?php echo $top_bg_line;?>>
32 <h3>List of opened DBC's with total time per years.</h3>
34 <table id = "tbl_future">
35 <tr>
36 <th>Nr</th><th>PID</th><th>Name</th><th>DBC ID</th><th>Opening date</th>
37 <th>Total time (2007)</th><th>Total time (2008)</th>
38 </tr>
39 <?php
40 foreach ( $result as $r ) {
41 $dutch_name = dutch_name($r['pid']);
42 $age = df_dbc_age($r['ax_id']);
44 echo "<tr>
45 <td align='center'>$i</td>
46 <td align='center'>{$r['pid']}</td>
47 <td>$dutch_name</td>
48 <td align='center'>{$r['dbcid']}</td>
49 <td>{$r['odate']}</td>
50 <td>{$r['2007']}</td>
51 <td>{$r['2008']}</td>
52 </tr>";
53 $i++;
54 } // foreach
56 </table>
57 </body>
58 </html>