Added a link to new prescription generator.
[openemr.git] / templates / prescription / general_list.html
blobd4fffa6979e15e8b49c049ceafe4bdcae0f68a28
1 <html>
2 <head>
3 {php}html_header_show();{/php}
5 {literal}
6 <style type="text/css" title="mystyles" media="all">
7 <!--
8 td {
9 font-size:8pt;
10 font-family:helvetica;
12 a {
13 font-size:8pt;
14 font-family:helvetica;
15 text-decoration:none;
17 .inactive {
18 color:#777777;
20 -->
21 </style>
23 <script language="javascript">
25 function changeLinkHref(id,addValue,value) {
26 var myRegExp = new RegExp(":" + value + ":");
27 if (addValue){ //add value to href
28 document.getElementById(id).href += ':' + value + ':';
30 else { //remove value from href
31 document.getElementById(id).href = document.getElementById(id).href.replace(myRegExp,'');
35 </script>
37 {/literal}
38 </head>
39 <body {$STYLE.BOTTOM_BG_LINE}>
40 <table>
41 <tr>
42 <td colspan="12" align="right">
43 <a id="multiprint" target="_new" href="{$CONTROLLER}prescription&multiprint&id={$printm}" onclick="top.restoreSession()">Print Multiple</a>
44 </td>
45 </tr>
46 <tr>
47 <td colspan="12" align="right">
48 <?php echo $GLOBALS['webroot']; ?>
49 <a id="four_panel_rx" target="_new" href="{$WEBROOT}/interface/forms/CAMOS/rx_print.php?sigline=plain" onclick="top.restoreSession()">Print Four Panel</a>
50 </td>
51 </tr>
53 <tr>
54 <td>{xl t='Drug'}</td>
55 <td rowspan="50">&nbsp;</td>
56 <td>{xl t='Created'}<br />{xl t='Changed'}</td>
57 <td rowspan="50">&nbsp;</td>
58 <td>{xl t='Dosage'}</td>
59 <td rowspan="50">&nbsp;</td>
60 <td>{xl t='Unit'}</td>
61 <td rowspan="50">&nbsp;</td>
62 <td>{xl t='Qty'}.</td>
63 <td rowspan="50">&nbsp;</td>
64 <td>{xl t='Provider'}</td>
65 <td>{xl t='Select'}</td>
67 </tr>
68 {foreach from=$prescriptions item=prescription}
69 <tr>
70 <td{if $prescription->active <= 0} class="inactive"{/if}>
71 {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}
72 </td>
73 <td{if $prescription->active <= 0} class="inactive"{/if}>
74 <a href="{$CONTROLLER}prescription&edit&id={$prescription->id}" onclick="top.restoreSession()"{if $prescription->active <= 0} class="inactive"{/if}>{$prescription->date_added}</a><br />
75 <a href="{$CONTROLLER}prescription&edit&id={$prescription->id}" onclick="top.restoreSession()"{if $prescription->active <= 0} class="inactive"{/if}>{$prescription->date_modified}</a>
76 </td>
77 <td{if $prescription->active <= 0} class="inactive"{/if}>
78 {$prescription->get_dosage_display()}
79 </td>
80 <td{if $prescription->active <= 0} class="inactive"{/if}>
81 {$prescription->get_unit_display()}
82 </td>
83 <td{if $prescription->active <= 0} class="inactive"{/if}>
84 {$prescription->quantity}
85 </td>
86 <td{if $prescription->active <= 0} class="inactive"{/if}>
87 {$prescription->provider->get_name_display()}
88 </td>
89 <td{if $prescription->active <= 0} class="inactive"{/if}>
90 <input type=checkbox value="{$prescription->id}" onclick="changeLinkHref('multiprint',this.checked, this.value)">
91 </td>
92 </tr>
93 {foreachelse}
94 <tr>
95 <td colspan="6">{xl t='No Prescriptions Found'}</td>
96 </tr>
97 {/foreach}
98 </table>
99 </body>
100 </html>