4 <style type=
"text/css" title=
"mystyles" media=
"all">
12 font-family:helvetica;
21 <script language=
"javascript">
23 function changeLinkHref(id
,addValue
,value
) {
24 var myRegExp
= new RegExp(":" + value
+ ":");
25 if (addValue
){ //add value to href
26 document
.getElementById(id
).href
+= ':' + value
+ ':';
28 else { //remove value from href
29 document
.getElementById(id
).href
= document
.getElementById(id
).href
.replace(myRegExp
,'');
37 <body {$STYLE.BOTTOM_BG_LINE}
>
40 <td colspan=
"12" align=
"right">
41 <a id=
"multiprint" target=
"_new" href=
"{$CONTROLLER}prescription&multiprint&id={$printm}" onclick=
"top.restoreSession()">Print Multiple
</a>
46 <td>{xl t='Drug'}
</td>
47 <td rowspan=
"50"> </td>
48 <td>{xl t='Created'}
<br />{xl t='Changed'}
</td>
49 <td rowspan=
"50"> </td>
50 <td>{xl t='Dosage'}
</td>
51 <td rowspan=
"50"> </td>
52 <td>{xl t='Unit'}
</td>
53 <td rowspan=
"50"> </td>
54 <td>{xl t='Qty'}.
</td>
55 <td rowspan=
"50"> </td>
56 <td>{xl t='Provider'}
</td>
57 <td>{xl t='Select'}
</td>
60 {foreach from=$prescriptions item=prescription}
62 <td{if $prescription-
>active <=
0}
class=
"inactive"{/if}
>
63 {if $prescription-
>active
> 0}
<b>{/if}
<a href=
"{$CONTROLLER}prescription&edit&id={$prescription->id}" onclick=
"top.restoreSession()"{if $prescription-
>active <=
0}
class=
"inactive"{/if}
>{$prescription-
>drug}
</a>{if $prescription-
>active
> 0}
</b>{/if}
65 <td{if $prescription-
>active <=
0}
class=
"inactive"{/if}
>
66 <a href=
"{$CONTROLLER}prescription&edit&id={$prescription->id}" onclick=
"top.restoreSession()"{if $prescription-
>active <=
0}
class=
"inactive"{/if}
>{$prescription-
>date_added}
</a><br />
67 <a href=
"{$CONTROLLER}prescription&edit&id={$prescription->id}" onclick=
"top.restoreSession()"{if $prescription-
>active <=
0}
class=
"inactive"{/if}
>{$prescription-
>date_modified}
</a>
69 <td{if $prescription-
>active <=
0}
class=
"inactive"{/if}
>
70 {$prescription-
>get_dosage_display()}
72 <td{if $prescription-
>active <=
0}
class=
"inactive"{/if}
>
73 {$prescription-
>get_unit_display()}
75 <td{if $prescription-
>active <=
0}
class=
"inactive"{/if}
>
76 {$prescription-
>quantity}
78 <td{if $prescription-
>active <=
0}
class=
"inactive"{/if}
>
79 {$prescription-
>provider-
>get_name_display()}
81 <td{if $prescription-
>active <=
0}
class=
"inactive"{/if}
>
82 <input type=checkbox
value=
"{$prescription->id}" onclick=
"changeLinkHref('multiprint',this.checked, this.value)">
87 <td colspan=
"6">{xl t='No Prescriptions Found'}
</td>