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 <?php
html_header_show();?
>
20 <link rel
=stylesheet href
="<?php echo $css_header;?>" type
="text/css">
21 <title
><?php
xl('EOB Posting - Patient Note','e')?
></title
>
25 $patient_id = $_GET['patient_id'];
26 if (! $patient_id) die(xl("You cannot access this page directly."));
28 if ($_POST['form_save']) {
29 $thevalue = trim($_POST['form_note']);
30 $thename = $thevalue ?
"Billing" : "";
32 sqlStatement("UPDATE patient_data SET " .
33 "genericname2 = '$thename', " .
34 "genericval2 = '$thevalue' " .
35 "WHERE pid = '$patient_id'");
37 echo "<script language='JavaScript'>\n";
38 if ($info_msg) echo " alert('$info_msg');\n";
39 echo " window.close();\n";
40 echo "</script></body></html>\n";
44 $row = sqlQuery("select fname, lname, genericname2, genericval2 " .
45 "from patient_data where pid = '$patient_id' limit 1");
49 <h2
><?php
echo xl('Billing Note for '). $row['fname'] . " " . $row['lname'] ?
></h2
>
52 <form method
='post' action
='sl_eob_patient_note.php?patient_id=<?php echo $patient_id ?>'>
55 <input type
='text' name
='form_note' size
='60' maxlength
='255'
56 value
='<?php echo addslashes($row['genericval2
']) ?>' />
60 <input type
='submit' name
='form_save' value
='<?php xl("Save","e")?>'>
62 <input type
='button' value
='<?php xl("Cancel","e")?>' onclick
='window.close()'>