Multiple improvements from IPPF related to layouts. (#1081)
[openemr.git] / interface / patient_file / encounter / other.php
blob6aa49c4a7a1d361a5d2100522c9219d74d6afd2d
1 <?php
2 include_once("../../globals.php");
4 //the number of rows to display before resetting and starting a new column:
5 $N=10
6 ?>
8 <html>
9 <head>
10 <?php html_header_show();?>
12 <link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
13 </head>
14 <body class="body_bottom">
16 <table border=0 cellspacing=0 cellpadding=0 height=100%>
17 <tr>
19 <td valign=top>
21 <dl>
23 <form method='post' name='other_form' action="diagnosis.php?mode=add&type=OTHER"
24 target='Diagnosis' onsubmit='return top.restoreSession()'>
25 <script type="text/javascript">
26 function clearform(atrib){
27 document.other_form.text.value=document.other_form.textH.value;
28 document.other_form.code.value=document.other_form.codeH.value;
29 document.other_form.fee.value=document.other_form.feeH.value*document.other_form.noofunits.value;
30 document.other_form.units.value=document.other_form.noofunits.value;
31 document.other_form.textH.value='';
32 document.other_form.codeH.value='';
33 document.other_form.feeH.value='';
34 document.other_form.noofunits.value='1';
36 function isNumberKey(evt)
37 {var charCode = (evt.which) ? evt.which : event.keyCode
38 if (charCode > 31 && (charCode < 48 || charCode > 57))
40 alert("<?php xl('Units must be a number', 'e'); ?>");
41 return false;
43 return true; }
44 </script>
45 <dt><span class=title><?php xl('Other', 'e'); ?></span></dt>
47 <br>
48 <table>
49 <tr>
50 <td class="text"><?php xl('code', 'e'); ?></td>
51 <td class="text"><?php xl('description', 'e'); ?></td>
52 <td class="text">&nbsp;&nbsp;&nbsp;<?php xl('fee', 'e'); ?></td>
53 <td class="text"><?php xl('units', 'e'); ?></td>
54 <td></td>
55 </tr>
56 <tr>
57 <input type=hidden name=code>
58 <input type=hidden name=text>
59 <input type=hidden name=fee>
60 <input type=hidden name=units>
61 <td class="text"><input type=entry name=codeH size=4>&nbsp;&nbsp;</td>
62 <td class="text"><input type=entry name=textH size=13 value="">&nbsp;&nbsp;</td>
63 <td class="text"><?php xl('$', 'e'); ?> </span><input type=entry name=feeH size=5></td>
64 <td> <input type=text name="noofunits" onkeypress="return isNumberKey(event)" size=3 value=1></td>
65 <td>&nbsp;<a class='text' onclick="clearform('clear')" href="javascript:top.restoreSession();document.other_form.submit();">
66 <?php xl('Save', 'e'); ?> </a>
67 </td>
68 </tr>
69 </table>
70 </form>
72 </dl>
74 </td>
75 </tr>
76 </table>
78 </body>
79 </html>