Adjusts fileroot for document paths at the moment that the document is to be displayed.
[openemr.git] / templates / prescription / general_lookup.html
blob21ad20a01750519a942c5fb3490a8f932adac7e9
1 <html>
2 <head><script language="Javascript">
3 {literal}
4 function my_process () {
5 // Pass the variable
6 {/literal}
7 opener.document.prescribe.drug.value = document.lookup.drug.value;
8 // Close the window
9 window.self.close();
10 {literal}
12 {/literal}
13 </script>
14 {literal}
15 <style type="text/css" title="mystyles" media="all">
16 <!--
17 td {
18 font-size:8pt;
19 font-family:helvetica;
21 input {
22 font-size:8pt;
23 font-family:helvetica;
25 select {
26 font-size:8pt;
27 font-family:helvetica;
29 a {
30 font-size:8pt;
31 font-family:helvetica;
33 textarea {
34 font-size:8pt;
35 font-family:helvetica;
37 -->
38 </style>
39 {/literal}
40 </head>
41 <body onload="javascript:document.lookup.drug.focus();"
42 <div ALIGN="CENTER">
43 <form NAME="lookup" ACTION="{$FORM_ACTION}" METHOD="POST" onsubmit="return top.restoreSession()">
44 {if $drug_options}
45 {html_options name="drug" values=$drug_values options=$drug_options}<input class="button" TYPE="BUTTON" NAME="select" VALUE="{xl t='Select'}" onClick="my_process(); return true;">
46 <br><a href="{$CONTROLLER_THIS}" onclick="top.restoreSession()">{xl t='search again'}</a>
47 {else}
48 {$NO_RESULTS}
50 <input TYPE="HIDDEN" NAME="varname" VALUE=""/>
51 <input TYPE="HIDDEN" NAME="formname" VALUE=""/>
52 <input TYPE="HIDDEN" NAME="submitname" VALUE=""/>
53 <input TYPE="HIDDEN" NAME="action" VALUE="{xl t='Search'}">
54 <div ALIGN="CENTER" CLASS="infobox">
55 Drug:
56 <input TYPE="TEXT" NAME="drug" VALUE=""/>
57 <input TYPE="SUBMIT" NAME="action" VALUE="{xl t='Search'}" class="button"/>
58 </div>
59 <input type="hidden" name="process" value="{$PROCESS}" />
61 {/if}
62 </form>
63 </div>
64 </body>
65 </html>