3 {php}html_header_show();{/php}
4 <link rel=
"stylesheet" href=
"{php}echo $GLOBALS['css_header']; {/php}" type=
"text/css">
5 <script type=
"text/javascript" src=
"{$WEBROOT}/library/js/jquery-1.2.2.min.js"></script>
8 <style type=
"text/css" title=
"mystyles" media=
"all">
14 border-bottom:
1px solid #
999;
18 <script language=
"javascript">
20 function changeLinkHref(id
,addValue
,value
) {
21 var myRegExp
= new RegExp(":" + value
+ ":");
22 if (addValue
){ //add value to href
23 document
.getElementById(id
).href
+= ':' + value
+ ':';
25 else { //remove value from href
26 document
.getElementById(id
).href
= document
.getElementById(id
).href
.replace(myRegExp
,'');
34 <body class=
"body_bottom">
35 <div id=
"prescription_list">
36 <div id=
"print_links">
37 <a id=
"multiprint" target=
"_new" href=
"{$CONTROLLER}prescription&multiprint&id={$printm}" onclick=
"top.restoreSession()">Print Multiple
</a>
39 <a id=
"four_panel_rx" target=
"_new" href=
"{$WEBROOT}/interface/forms/CAMOS/rx_print.php?sigline=plain" onclick=
"top.restoreSession()">Print Four Panel
</a>
44 <th>{xl t='Drug'}
</th>
45 <th>{xl t='Created'}
<br />{xl t='Changed'}
</th>
46 <th>{xl t='Dosage'}
</th>
47 <th>{xl t='Qty'}.
</th>
48 <th>{xl t='Unit'}
</th>
49 <th>{xl t='Provider'}
</th>
50 <th>{xl t='Select'}
</th>
53 {foreach from=$prescriptions item=prescription}
54 <tr id=
"{$prescription->id}" class=
"onescript {if $prescription->active <= 0} inactive{/if}" title=
"Click to view/edit">
55 <td class=
"editscript" id=
"{$prescription->id}">
56 {if $prescription-
>active
> 0}
<b>{/if}{$prescription-
>drug}{if $prescription-
>active
> 0}
</b>{/if}
58 <td class=
"editscript" id=
"{$prescription->id}">
59 {$prescription-
>date_added}
<br />
60 {$prescription-
>date_modified}
62 <td class=
"editscript" id=
"{$prescription->id}">
63 {$prescription-
>get_dosage_display()}
65 <td class=
"editscript" id=
"{$prescription->id}">
66 {$prescription-
>quantity}
68 <td class=
"editscript" id=
"{$prescription->id}">
69 {$prescription-
>get_unit_display()}
71 <td class=
"editscript" id=
"{$prescription->id}">
72 {$prescription-
>provider-
>get_name_display()}
75 <input type=
"checkbox" value=
"{$prescription->id}" onclick=
"changeLinkHref('multiprint',this.checked, this.value)" title=
"Select for printing">
80 <td colspan=
"6">{xl t='No Prescriptions Found'}
</td>
87 <script language='JavaScript'
>
89 $(document
).ready(function(){
90 $(".editscript").click(function() { ShowScript(this); });
91 $(".onescript").mouseover(function() { $(this).children().toggleClass("highlight"); });
92 $(".onescript").mouseout(function() { $(this).children().toggleClass("highlight"); });
95 var ShowScript = function(eObj
) {
98 document
.location
.href
="controller.php?prescription&edit&id="+objID
;