fix for billed date from Joe Holzer
[openemr.git] / templates / prescription / general_list.html
blob3c2181b37ca097c55dcef8fec487afb67aab913a
1 <html>
2 <head>
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>
7 {literal}
8 <style type="text/css" title="mystyles" media="all">
9 .inactive {
10 color:#777777;
12 td, th {
13 font-size:0.7em;
14 border-bottom: 1px solid #999;
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 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>
38 <br>
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>
40 </div>
42 <table>
43 <tr>
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>
51 </tr>
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}
57 </td>
58 <td class="editscript" id="{$prescription->id}">
59 {$prescription->date_added}<br />
60 {$prescription->date_modified}
61 </td>
62 <td class="editscript" id="{$prescription->id}">
63 {$prescription->get_dosage_display()}
64 </td>
65 <td class="editscript" id="{$prescription->id}">
66 {$prescription->quantity}
67 </td>
68 <td class="editscript" id="{$prescription->id}">
69 {$prescription->get_unit_display()}
70 </td>
71 <td class="editscript" id="{$prescription->id}">
72 {$prescription->provider->get_name_display()}
73 </td>
74 <td>
75 <input type="checkbox" value="{$prescription->id}" onclick="changeLinkHref('multiprint',this.checked, this.value)" title="Select for printing">
76 </td>
77 </tr>
78 {foreachelse}
79 <tr>
80 <td colspan="6">{xl t='No Prescriptions Found'}</td>
81 </tr>
82 {/foreach}
83 </table>
84 </div>
85 </body>
86 {literal}
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"); });
93 });
95 var ShowScript = function(eObj) {
96 top.restoreSession();
97 objID = eObj.id;
98 document.location.href="controller.php?prescription&edit&id="+objID;
99 return true;
102 </script>
103 {/literal}
104 </html>