Adjusts fileroot for document paths at the moment that the document is to be displayed.
[openemr.git] / templates / prescription / general_list.html
blob2b3a85c46370e0ad1c13bc95ab2c68ddec3b6e80
1 <html>
2 <head>
3 {literal}
4 <style type="text/css" title="mystyles" media="all">
5 <!--
6 td {
7 font-size:8pt;
8 font-family:helvetica;
10 a {
11 font-size:8pt;
12 font-family:helvetica;
13 text-decoration:none;
15 .inactive {
16 color:#777777;
18 -->
19 </style>
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,'');
33 </script>
35 {/literal}
36 </head>
37 <body {$STYLE.BOTTOM_BG_LINE}>
38 <table>
39 <tr>
40 <td colspan="12" align="right">
41 <a id="multiprint" target="_new" href="{$CONTROLLER}prescription&multiprint&id={$printm}" onclick="top.restoreSession()">Print Multiple</a>
42 </td>
43 </tr>
45 <tr>
46 <td>{xl t='Drug'}</td>
47 <td rowspan="50">&nbsp;</td>
48 <td>{xl t='Created'}<br />{xl t='Changed'}</td>
49 <td rowspan="50">&nbsp;</td>
50 <td>{xl t='Dosage'}</td>
51 <td rowspan="50">&nbsp;</td>
52 <td>{xl t='Unit'}</td>
53 <td rowspan="50">&nbsp;</td>
54 <td>{xl t='Qty'}.</td>
55 <td rowspan="50">&nbsp;</td>
56 <td>{xl t='Provider'}</td>
57 <td>{xl t='Select'}</td>
59 </tr>
60 {foreach from=$prescriptions item=prescription}
61 <tr>
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}
64 </td>
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>
68 </td>
69 <td{if $prescription->active <= 0} class="inactive"{/if}>
70 {$prescription->get_dosage_display()}
71 </td>
72 <td{if $prescription->active <= 0} class="inactive"{/if}>
73 {$prescription->get_unit_display()}
74 </td>
75 <td{if $prescription->active <= 0} class="inactive"{/if}>
76 {$prescription->quantity}
77 </td>
78 <td{if $prescription->active <= 0} class="inactive"{/if}>
79 {$prescription->provider->get_name_display()}
80 </td>
81 <td{if $prescription->active <= 0} class="inactive"{/if}>
82 <input type=checkbox value="{$prescription->id}" onclick="changeLinkHref('multiprint',this.checked, this.value)">
83 </td>
84 </tr>
85 {foreachelse}
86 <tr>
87 <td colspan="6">{xl t='No Prescriptions Found'}</td>
88 </tr>
89 {/foreach}
90 </table>
91 </body>
92 </html>