Translation support with xl() function added. There are some other bugs I need to...
[openemr.git] / templates / prescription / general_list.html
blob60f08e09ae2bb85a1646fe1769e2e6f420a42016
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;
15 -->
16 </style>
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,'');
30 </script>
32 {/literal}
33 </head>
34 <body {$STYLE.BOTTOM_BG_LINE}>
35 <table>
36 <tr>
37 <td colspan="12" align="right">
38 <a id="multiprint" target="_new" href="{$CONTROLLER}prescription&multiprint&id={$printm}" onclick="top.restoreSession()">Print Multiple</a>
39 </td>
40 </tr>
42 <tr>
43 <td>{xl t='Drug'}</td>
44 <td rowspan="50">&nbsp;</td>
45 <td>{xl t='Created'}<br />{xl t='Changed'}</td>
46 <td rowspan="50">&nbsp;</td>
47 <td>{xl t='Dosage'}</td>
48 <td rowspan="50">&nbsp;</td>
49 <td>{xl t='Unit'}</td>
50 <td rowspan="50">&nbsp;</td>
51 <td>{xl t='Qty'}.</td>
52 <td rowspan="50">&nbsp;</td>
53 <td>{xl t='Provider'}</td>
54 <td>{xl t='Select'}</td>
56 </tr>
57 {foreach from=$prescriptions item=prescription}
58 <tr>
59 <td><a href="{$CONTROLLER}prescription&edit&id={$prescription->id}" onclick="top.restoreSession()">{$prescription->drug}</a></td>
60 <td><a href="{$CONTROLLER}prescription&edit&id={$prescription->id}" onclick="top.restoreSession()">{$prescription->date_added}</a><br /><a href="{$CONTROLLER}prescription&edit&id={$prescription->id}" onclick="top.restoreSession()">{$prescription->date_modified}</a></td>
61 <td>{$prescription->get_dosage_display()}</td>
62 <td>{$prescription->get_unit_display()}</td>
63 <td>{$prescription->quantity}</td>
64 <td>{$prescription->provider->get_name_display()}</td>
65 <td><input type=checkbox value="{$prescription->id}" onclick="changeLinkHref('multiprint',this.checked, this
66 .value)"></td>
67 </tr>
68 {foreachelse}
69 <tr>
70 <td colspan="6">{xl t='No Prescriptions Found'}</td>
71 </tr>
72 {/foreach}
73 </table>
74 </body>
75 </html>