6 include_once("../../globals.php");
7 include_once("$srcdir/api.inc");
8 formHeader("Form: note");
9 $returnurl = 'encounter_top.php';
10 $provider_results = sqlQuery("select fname, lname from users where username=?", array($_SESSION{"authUser"}));
12 /* name of this form */
15 // get the record from the database
16 if ($_GET['id'] != "") {
17 $obj = formFetch("form_".$form_name, $_GET["id"]);
20 /* remove the time-of-day from the date fields */
21 if ($obj['date_of_signature'] != "") {
22 $dateparts = explode(" ", $obj['date_of_signature']);
23 $obj['date_of_signature'] = $dateparts[0];
27 <?php
html_header_show();?
>
28 <link rel
="stylesheet" href
="<?php echo $css_header;?>" type
="text/css">
30 <!-- supporting javascript code
-->
31 <script type
="text/javascript" src
="<?php echo $GLOBALS['assets_static_relative']; ?>/jquery-min-1-2-2/index.js"></script
>
34 <body
class="body_top">
36 <form method
=post action
="">
37 <span
class="title"><?php
echo xlt('Work/School Note'); ?
></span
><br
></br
>
38 <?php
echo xlt('Printed'); ?
> <?php
echo dateformat(); ?
>
40 <select name
="note_type">
41 <option value
="WORK NOTE" <?php
if ($obj['note_type']=="WORK NOTE") {
43 } ?
>><?php
echo xlt('WORK NOTE'); ?
></option
>
44 <option value
="SCHOOL NOTE" <?php
if ($obj['note_type']=="SCHOOL NOTE") {
46 } ?
>><?php
echo xlt('SCHOOL NOTE'); ?
></option
>
49 <b
><?php
echo xlt('MESSAGE:'); ?
></b
>
51 <div style
="border: 1px solid black; padding: 5px; margin: 5px;"><?php
echo text($obj["message"]);?
></div
>
56 <span
class=text
><?php
echo xlt('Doctor:'); ?
> </span
><input type
=text name
="doctor" value
="<?php echo attr($obj["doctor
"]);?>">
58 <span
class="text"><?php
echo xlt('Date'); ?
></span
>
59 <input type
='text' size
='10' name
='date_of_signature' id
='date_of_signature'
60 value
='<?php echo attr($obj['date_of_signature
']); ?>'
69 <script language
="javascript">
70 // jQuery stuff to make the page a little easier to use
72 $
(document
).ready(function(){
73 var win
= top
.printLogPrint ? top
: opener
.top
;
74 win
.printLogPrint(window
);