in some php versions touch will give an error, error output supressed by @
[openemr.git] / interface / billing / billing_report_xml.php
bloba21d826c63942eaaa97531526fd032729199ce08
1 <?
2 include_once("../globals.php");
3 include_once("$srcdir/upload.inc");
5 include_once("$srcdir/patient.inc");
6 include_once("$srcdir/billrep.inc");
7 include_once("$srcdir/log.inc");
10 //global variables:
11 if (!isset($_POST["mode"])) {
12 if (!isset($_POST["from_date"])) {
13 $from_date=date("Y-m-d");
14 } else {
15 $from_date = $_POST["from_date"];
17 if (!isset($_POST["to_date"])) {
18 $to_date = date("Y-m-d");
19 } else {
20 $to_date = $_POST["to_date"];
22 if (!isset($_POST["code_type"])) {
23 $code_type="all";
24 } else {
25 $code_type = $_POST["code_type"];
27 if (!isset($_POST["unbilled"])) {
28 $unbilled = "on";
29 } else {
30 $unbilled = $_POST["unbilled"];
32 if (!isset($_POST["authorized"])) {
33 $my_authorized = "on";
34 } else {
35 $my_authorized = $_POST["authorized"];
37 } else {
38 $from_date = $_POST["from_date"];
39 $to_date = $_POST["to_date"];
40 $code_type = $_POST["code_type"];
41 $unbilled = $_POST["unbilled"];
42 $my_authorized = $_POST["authorized"];
48 <html>
49 <head>
52 <link rel=stylesheet href="<?echo $css_header;?>" type="text/css">
54 </head>
55 <body <?echo $top_bg_line;?> topmargin=0 rightmargin=0 leftmargin=2 bottommargin=0 marginwidth=2 marginheight=0>
59 if ($userauthorized) {
61 <a href="../main/main.php" target=Main><font class=title>Billing Report</font><font class=more><?echo $tback;?></font></a>
62 <?} else {?>
63 <a href="../main/onotes/office_comments.php" target=Main><font class=title>Billing Report</font><font class=more><?echo $tback;?></font></a>
67 <br>
68 No billing system is currently active<br />
72 print_r($_POST);
75 </body>
76 </html>