2 // Copyright (C) 2005 Rod Roark <rod@sunsetsystems.com>
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
9 // This allows entry and editing of a "billing note" for the patient.
11 include_once("../globals.php");
12 include_once("../../library/patient.inc");
13 include_once("../../library/forms.inc");
19 <link rel
=stylesheet href
="<?php echo $css_header;?>" type
="text/css">
20 <title
><?php
xl('EOB Posting - Patient Note','e')?
></title
>
24 $patient_id = $_GET['patient_id'];
25 if (! $patient_id) die(xl("You cannot access this page directly."));
27 if ($_POST['form_save']) {
28 $thevalue = trim($_POST['form_note']);
29 $thename = $thevalue ?
"Billing" : "";
31 sqlStatement("UPDATE patient_data SET " .
32 "genericname2 = '$thename', " .
33 "genericval2 = '$thevalue' " .
34 "WHERE pid = '$patient_id'");
36 echo "<script language='JavaScript'>\n";
37 if ($info_msg) echo " alert('$info_msg');\n";
38 echo " window.close();\n";
39 echo "</script></body></html>\n";
43 $row = sqlQuery("select fname, lname, genericname2, genericval2 " .
44 "from patient_data where pid = '$patient_id' limit 1");
48 <h2
><?php
echo xl('Billing Note for '). $row['fname'] . " " . $row['lname'] ?
></h2
>
51 <form method
='post' action
='sl_eob_patient_note.php?patient_id=<?php echo $patient_id ?>'>
54 <input type
='text' name
='form_note' size
='60' maxlength
='255'
55 value
='<?php echo addslashes($row['genericval2
']) ?>' />
59 <input type
='submit' name
='form_save' value
='<?php xl("Save","e")?>'>
61 <input type
='button' value
='<?php xl("Cancel","e")?>' onclick
='window.close()'>