change viewer calling paths (#1410)
[openemr.git] / interface / billing / sl_eob_patient_note.php
blob38270aef34b0639fe2b49d1f8353a5b66ca3d1cf
1 <?php
2 /**
3 * This allos entry and editing of a "billing note" for the patient.
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) {
40 die(xl("You cannot access this page directly."));
43 if ($_POST['form_save']) {
44 $thevalue = trim($_POST['form_note']);
46 sqlStatement("UPDATE patient_data SET " .
47 "billing_note = ? " .
48 "WHERE pid = ? ", array($thevalue, $patient_id));
50 echo "<script language='JavaScript'>\n";
51 if ($info_msg) {
52 echo " alert('$info_msg');\n";
55 echo " window.close();\n";
56 echo "</script></body></html>\n";
57 exit();
60 $row = sqlQuery("select fname, lname, billing_note " .
61 "from patient_data where pid = '$patient_id' limit 1");
63 <center>
65 <h2><?php echo xl('Billing Note for '). $row['fname'] . " " . $row['lname'] ?></h2>
66 <p>&nbsp;</p>
68 <form method='post' action='sl_eob_patient_note.php?patient_id=<?php echo $patient_id ?>'>
70 <p>
71 <input type='text' name='form_note' size='60' maxlength='255'
72 value='<?php echo addslashes($row['billing_note']) ?>' />
73 </p>
75 <p>&nbsp;</p>
76 <input type='submit' name='form_save' value='<?php xl("Save", "e")?>'>
77 &nbsp;
78 <input type='button' value='<?php xl("Cancel", "e")?>' onclick='window.close()'>
80 </form>
81 </center>
83 </body>
84 </html>