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();
6 <script language
="JavaScript">
10 alert("<?php echo $LDPlsEnterDate; ?>");
13 }else if(d
.type
.value
==""){
14 alert("<?php echo $LDPlsEnterMedType; ?>");
17 }else if(d
.medicine
.value
==""){
18 alert("<?php echo $LDPlsEnterMedicine; ?>");
21 }else if(d
.dosage
.value
==""){
22 alert("<?php echo $LDPlsEnterDosage; ?>");
25 }else if(d
.application_type_nr
.value
==""){
26 alert("<?php echo $LDPlsSelectAppType; ?>");
27 d
.application_type_nr
.focus();
29 }else if(d
.application_by
.value
==""){
30 alert("<?php echo $LDPlsEnterFullName; ?>");
31 d
.application_by
.focus();
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");
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
>
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);
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
>
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
>
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
>
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
>
78 <tr bgcolor
="#f6f6f6">
79 <td
><FONT SIZE
=-1 FACE
="Arial" color
="#000066"><?php
echo $LDRefreshDate; ?
></td
>
82 //gjergji : new calendar
83 echo $calendar->show_calendar($calendar,$date_format,'refresh_date');
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
>
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'];
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
>
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
>
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'); ?
>>