- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / modules / registration_admission / gui_bridge / default / gui_input_show_prescription.php
blob26c3d917804194d428a1f802dbc32671b73f2343
1 <?php
2 include_once($root_path.'include/care_api_classes/class_prescription.php');
3 if(!isset($pres_obj)) $pres_obj=new Prescription;
4 $app_types=$pres_obj->getAppTypes();
5 $pres_types=$pres_obj->getPrescriptionTypes();
6 ?>
7 <script language="JavaScript">
8 <!-- Script Begin
9 function chkform(d) {
10 if(d.prescribe_date.value==""){
11 alert("<?php echo $LDPlsEnterDate; ?>");
12 d.prescribe_date.focus();
13 return false;
14 }else if(d.article.value==""){
15 alert("<?php echo $LDPlsEnterMedicine; ?>");
16 d.article.focus();
17 return false;
18 }else if(d.dosage.value==""){
19 alert("<?php echo $LDPlsEnterDosage; ?>");
20 d.dosage.focus();
21 return false;
22 }else if(d.application_type_nr.value==""){
23 alert("<?php echo $LDPlsSelectAppType; ?>");
24 d.application_type_nr.focus();
25 return false;
26 }else if(d.prescriber.value==""){
27 alert("<?php echo $LDPlsEnterFullName; ?>");
28 d.prescriber.focus();
29 return false;
30 }else{
31 return true;
34 // Script End -->
35 </script>
37 <form method="post" name="reportform" onSubmit="return chkform(this)">
38 <table border=0 cellpadding=2 width=100%>
39 <tr bgcolor="#f6f6f6">
40 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDDate; ?></td>
41 <td><?php
42 //gjergji : new calendar
43 require_once ('../../js/jscalendar/calendar.php');
44 $calendar = new DHTML_Calendar('../../js/jscalendar/', $lang, 'calendar-system', true);
45 $calendar->load_files();
47 echo $calendar->show_calendar($calendar,$date_format,'prescribe_date');
48 //gjergji : end
49 ?>
50 </td>
51 </tr>
53 <tr bgcolor="#f6f6f6">
54 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDPrescription.' '.$LDType; ?></td>
55 <td><select name="prescription_type_nr">
56 <option value=""></option>
57 <?php
58 while(list($x,$v)=each($pres_types)){
59 echo '<option value="'.$v['nr'].'">';
60 if(isset($$v['LD_var'])&&!empty($$v['LD_var'])) echo $$v['LD_var'];
61 else echo $v['name'];
62 echo '</option>
66 </select>
67 </td>
68 </tr>
70 <tr bgcolor="#f6f6f6">
71 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDMedicine; ?></td>
72 <td><input type="text" name="article" size=50 maxlength=60></td>
73 </tr>
74 <tr bgcolor="#f6f6f6">
75 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDDosage; ?></td>
76 <td><input type="text" name="dosage" size=50 maxlength=60></td>
77 </tr>
78 <tr bgcolor="#f6f6f6">
79 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDDrugClass; ?></td>
80 <td><input type="text" name="drug_class" size=50 maxlength=60></td>
81 </tr>
82 <tr bgcolor="#f6f6f6">
83 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDAppType; ?></td>
84 <td><select name="application_type_nr">
85 <option value=""></option>
86 <?php
87 while(list($x,$v)=each($app_types)){
88 echo '<option value="'.$v['nr'].'">';
89 if(isset($$v['LD_var'])&&!empty($$v['LD_var'])) echo $$v['LD_var'];
90 else echo $v['name'];
91 echo '</option>
95 </select>
96 </td>
97 </tr>
98 <tr bgcolor="#f6f6f6">
99 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDApplication.' '.$LDNotes; ?></td>
100 <td><textarea name="notes" cols=40 rows=3 wrap="physical"></textarea>
101 </td>
102 </tr>
103 <tr bgcolor="#f6f6f6">
104 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDPharmOrderNr; ?></td>
105 <td><input type="text" name="order_nr" size=50 maxlength=60 ></td>
106 </tr>
107 <tr bgcolor="#f6f6f6">
108 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDPrescribedBy; ?></td>
109 <td><input type="text" name="prescriber" size=50 maxlength=60 value="<?php echo $HTTP_SESSION_VARS['sess_user_name']; ?>" readonly></td>
110 </tr>
111 </table>
112 <input type="hidden" name="encounter_nr" value="<?php echo $HTTP_SESSION_VARS['sess_en']; ?>">
113 <input type="hidden" name="pid" value="<?php echo $HTTP_SESSION_VARS['sess_pid']; ?>">
114 <!--<input type="hidden" name="modify_id" value="<?php echo $HTTP_SESSION_VARS['sess_user_name']; ?>">-->
115 <!--<input type="hidden" name="create_id" value="<?php echo $HTTP_SESSION_VARS['sess_user_name']; ?>">-->
116 <!--<input type="hidden" name="create_time" value="null">-->
117 <input type="hidden" name="mode" value="create">
118 <input type="hidden" name="target" value="<?php echo $target; ?>">
119 <input type="hidden" name="history" value="Created: <?php echo date('Y-m-d H:i:s'); ?> : <?php echo $HTTP_SESSION_VARS['sess_user_name']."\n"; ?>">
120 <input type="image" <?php echo createLDImgSrc($root_path,'savedisc.gif','0'); ?>>
122 </form>