Removes frames from login gui and condense login gui into a single file.
[openemr.git] / interface / billing / sl_eob_patient_note.php
blob5bc795700adfba63514085256782d059ba9e8142
1 <?php
2 /**
3 * This allos entry and editing of a "billing note" for the patient.
4 *
5 * Copyright (C) 2005 Rod Roark <rod@sunsetsystems.com>
7 * LICENSE: This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
18 * @package OpenEMR
19 * @author Rod Roark <rod@sunsetsystems.com>
20 * @author Roberto Vasquez <robertogagliotta@gmail.com>
21 * @link http://www.open-emr.org
24 include_once("../globals.php");
25 include_once("../../library/patient.inc");
26 include_once("../../library/forms.inc");
28 $info_msg = "";
30 <html>
31 <head>
32 <?php html_header_show();?>
33 <link rel=stylesheet href="<?php echo $css_header;?>" type="text/css">
34 <title><?php xl('EOB Posting - Patient Note','e')?></title>
35 </head>
36 <body>
37 <?php
38 $patient_id = $_GET['patient_id'];
39 if (! $patient_id) die(xl("You cannot access this page directly."));
41 if ($_POST['form_save']) {
42 $thevalue = trim($_POST['form_note']);
44 sqlStatement("UPDATE patient_data SET " .
45 "billing_note = ? " .
46 "WHERE pid = ? ", array($thevalue, $patient_id));
48 echo "<script language='JavaScript'>\n";
49 if ($info_msg) echo " alert('$info_msg');\n";
50 echo " window.close();\n";
51 echo "</script></body></html>\n";
52 exit();
55 $row = sqlQuery("select fname, lname, billing_note " .
56 "from patient_data where pid = '$patient_id' limit 1");
58 <center>
60 <h2><?php echo xl('Billing Note for '). $row['fname'] . " " . $row['lname'] ?></h2>
61 <p>&nbsp;</p>
63 <form method='post' action='sl_eob_patient_note.php?patient_id=<?php echo $patient_id ?>'>
65 <p>
66 <input type='text' name='form_note' size='60' maxlength='255'
67 value='<?php echo addslashes($row['billing_note']) ?>' />
68 </p>
70 <p>&nbsp;</p>
71 <input type='submit' name='form_save' value='<?php xl("Save","e")?>'>
72 &nbsp;
73 <input type='button' value='<?php xl("Cancel","e")?>' onclick='window.close()'>
75 </form>
76 </center>
78 </body>
79 </html>