- 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_immunization.php
blob8c4a45a3fdba408a7978f6753402cccdc46a52ec
1 <?php
2 include_once($root_path.'include/care_api_classes/class_immunization.php');
3 if(!isset($imm_obj)) $imm_obj=new Immunization;
4 $imm_types=$imm_obj->getAppTypes();
5 ?>
6 <script language="JavaScript">
7 <!-- Script Begin
8 function chkform(d) {
9 if(d.date.value==""){
10 alert("<?php echo $LDPlsEnterDate; ?>");
11 d.date.focus();
12 return false;
13 }else if(d.type.value==""){
14 alert("<?php echo $LDPlsEnterMedType; ?>");
15 d.type.focus();
16 return false;
17 }else if(d.medicine.value==""){
18 alert("<?php echo $LDPlsEnterMedicine; ?>");
19 d.medicine.focus();
20 return false;
21 }else if(d.dosage.value==""){
22 alert("<?php echo $LDPlsEnterDosage; ?>");
23 d.dosage.focus();
24 return false;
25 }else if(d.application_type_nr.value==""){
26 alert("<?php echo $LDPlsSelectAppType; ?>");
27 d.application_type_nr.focus();
28 return false;
29 }else if(d.application_by.value==""){
30 alert("<?php echo $LDPlsEnterFullName; ?>");
31 d.application_by.focus();
32 return false;
33 }else{
34 return true;
38 function popSearchWin(target,obj_val,obj_name){
39 urlholder="./data_search.php<?php echo URL_REDIRECT_APPEND; ?>&target="+target+"&obj_val="+obj_val+"&obj_name="+obj_name;
40 DSWIN<?php echo $sid ?>=window.open(urlholder,"wblabel<?php echo $sid ?>","menubar=no,width=400,height=550,resizable=yes,scrollbars=yes");
43 // Script End -->
44 </script>
46 <form method="post" name="reportform" onSubmit="return chkform(this)">
47 <table border=0 cellpadding=2 width=100%>
48 <tr bgcolor="#f6f6f6">
49 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDDate; ?></td>
50 <td>
51 <?php
52 //gjergji : new calendar
53 require_once ('../../js/jscalendar/calendar.php');
54 $calendar = new DHTML_Calendar('../../js/jscalendar/', $lang, 'calendar-system', true);
55 $calendar->load_files();
57 echo $calendar->show_calendar($calendar,$date_format,'date',$date);
58 ?>
59 </td>
60 </tr>
61 <tr bgcolor="#f6f6f6">
62 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDType; ?></td>
63 <td><input type="text" name="type" size=40 maxlength=60 alue="<?php echo $type; ?>" >
64 <a href="javascript:popSearchWin('immunization','reportform.nr','reportform.type')"><img <?php echo createComIcon($root_path,'b-write_addr.gif','0','',TRUE) ?>></a></td>
65 </tr>
66 <tr bgcolor="#f6f6f6">
67 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDMedicine; ?></td>
68 <td><input type="text" name="medicine" size=50 maxlength=60></td>
69 </tr>
70 <tr bgcolor="#f6f6f6">
71 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDDosage; ?></td>
72 <td><input type="text" name="dosage" size=50 maxlength=60></td>
73 </tr>
74 <tr bgcolor="#f6f6f6">
75 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDTiter; ?></td>
76 <td><input type="text" name="titer" size=10 maxlength=10></td>
77 </tr>
78 <tr bgcolor="#f6f6f6">
79 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDRefreshDate; ?></td>
80 <td>
81 <?php
82 //gjergji : new calendar
83 echo $calendar->show_calendar($calendar,$date_format,'refresh_date');
84 //gjergji : end
85 ?>
86 </td>
87 </tr>
88 <tr bgcolor="#f6f6f6">
89 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDAppType; ?></td>
90 <td><select name="application_type_nr">
91 <option value=""></option>
92 <?php
93 while(list($x,$v)=each($imm_types)){
94 echo '<option value="'.$v['nr'].'">';
95 if(isset($$v['LD_var'])&&!empty($$v['LD_var'])) echo $$v['LD_var'];
96 else echo $v['name'];
97 echo '</option>
101 </select>
102 </td>
103 </tr>
104 <tr bgcolor="#f6f6f6">
105 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDAppBy; ?></td>
106 <td><input type="text" name="application_by" size=50 maxlength=60 value="<?php echo $HTTP_SESSION_VARS['sess_user_name']; ?>" readonly></td>
107 </tr>
108 <tr bgcolor="#f6f6f6">
109 <td><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDNotes; ?></td>
110 <td><textarea name="notes" cols=40 rows=3 wrap="physical"></textarea>
111 </td>
112 </tr>
113 </table>
114 <input type="hidden" name="encounter_nr" value="<?php echo $HTTP_SESSION_VARS['sess_en']; ?>">
115 <input type="hidden" name="pid" value="<?php echo $HTTP_SESSION_VARS['sess_pid']; ?>">
116 <input type="hidden" name="modify_id" value="<?php echo $HTTP_SESSION_VARS['sess_user_name']; ?>">
117 <input type="hidden" name="create_id" value="<?php echo $HTTP_SESSION_VARS['sess_user_name']; ?>">
118 <input type="hidden" name="create_time" value="null">
119 <input type="hidden" name="mode" value="create">
120 <input type="hidden" name="target" value="<?php echo $target; ?>">
121 <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"; ?>">
122 <input type="image" <?php echo createLDImgSrc($root_path,'savedisc.gif','0'); ?>>
124 </form>