Added stripe package (#1085)
[openemr.git] / interface / forms / note / print.php
blobf01ca2f4a9c6c6ed38201266bd7b752cb17b3f24
1 <?php
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 */
13 $form_name = "note";
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];
26 <html><head>
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>
33 </head>
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(); ?>
39 <br><br>
40 <select name="note_type">
41 <option value="WORK NOTE" <?php if ($obj['note_type']=="WORK NOTE") {
42 echo " SELECTED";
43 } ?>><?php echo xlt('WORK NOTE'); ?></option>
44 <option value="SCHOOL NOTE" <?php if ($obj['note_type']=="SCHOOL NOTE") {
45 echo " SELECTED";
46 } ?>><?php echo xlt('SCHOOL NOTE'); ?></option>
47 </select>
48 <br>
49 <b><?php echo xlt('MESSAGE:'); ?></b>
50 <br>
51 <div style="border: 1px solid black; padding: 5px; margin: 5px;"><?php echo text($obj["message"]);?></div>
52 <br></br>
54 <table>
55 <tr><td>
56 <span class=text><?php echo xlt('Doctor:'); ?> </span><input type=text name="doctor" value="<?php echo attr($obj["doctor"]);?>">
57 </td><td>
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']); ?>'
62 </td></tr>
63 </table>
65 </form>
67 </body>
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);
75 });
77 </script>
79 </html>