added display of last statement date
[openemr.git] / interface / dbc / dbc_future.php
blob7e187ae9d5e756096ce67cca18d365f9f8a830a4
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_future_events();
19 $i = 1;
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 without future events</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><th>Age(days)</th>
37 </tr>
38 <?php
39 foreach ( $result as $r ) {
40 $dutch_name = dutch_name($r['pid']);
41 $age = df_dbc_age($r['ax_id']);
42 echo "<tr>
43 <td align='center'>$i</td>
44 <td align='center'>{$r['pid']}</td>
45 <td>$dutch_name</td>
46 <td align='center'>{$r['ax_id']}</td>
47 <td>{$r['ax_odate']}</td>
48 <td>$age</td>
49 </tr>";
50 $i++;
51 } // foreach
53 </table>
54 </body>
55 </html>