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