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();
7 <script language
="JavaScript">
10 if(d
.prescribe_date
.value
==""){
11 alert("<?php echo $LDPlsEnterDate; ?>");
12 d
.prescribe_date
.focus();
14 }else if(d
.article
.value
==""){
15 alert("<?php echo $LDPlsEnterMedicine; ?>");
18 }else if(d
.dosage
.value
==""){
19 alert("<?php echo $LDPlsEnterDosage; ?>");
22 }else if(d
.application_type_nr
.value
==""){
23 alert("<?php echo $LDPlsSelectAppType; ?>");
24 d
.application_type_nr
.focus();
26 }else if(d
.prescriber
.value
==""){
27 alert("<?php echo $LDPlsEnterFullName; ?>");
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
>
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');
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
>
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'];
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
>
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
>
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
>
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
>
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'];
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
>
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
>
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
>
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'); ?
>>