2 include_once("../../globals.php");
3 include_once("$srcdir/sql.inc");
5 //the number of rows to display before resetting and starting a new column:
11 <?php
html_header_show();?
>
13 <link rel
="stylesheet" href
="<?php echo $css_header;?>" type
="text/css">
15 <body
class="body_bottom">
17 <table border
=0 cellspacing
=0 cellpadding
=0 height
=100%
>
24 <form method
='post' name
='other_form' action
="diagnosis.php?mode=add&type=OTHER"
25 target
='Diagnosis' onsubmit
='return top.restoreSession()'>
26 <script type
="text/javascript">
27 function clearform(atrib
){
28 document
.other_form
.text
.value
=document
.other_form
.textH
.value
;
29 document
.other_form
.code
.value
=document
.other_form
.codeH
.value
;
30 document
.other_form
.fee
.value
=document
.other_form
.feeH
.value
*document
.other_form
.noofunits
.value
;
31 document
.other_form
.units
.value
=document
.other_form
.noofunits
.value
;
32 document
.other_form
.textH
.value
='';
33 document
.other_form
.codeH
.value
='';
34 document
.other_form
.feeH
.value
='';
35 document
.other_form
.noofunits
.value
='1';
37 function isNumberKey(evt
)
38 {var charCode
= (evt
.which
) ? evt
.which
: event
.keyCode
39 if (charCode
> 31 && (charCode
< 48 || charCode
> 57))
41 alert("<?php xl('Units must be a number','e'); ?>");
46 <dt
><span
class=title
><?php
xl('Other','e'); ?
></span
></dt
>
51 <td
class="text"><?php
xl('code','e'); ?
></td
>
52 <td
class="text"><?php
xl('description','e'); ?
></td
>
53 <td
class="text"> 
; 
; 
;<?php
xl('fee','e'); ?
></td
>
54 <td
class="text"><?php
xl('units','e'); ?
></td
>
58 <input type
=hidden name
=code
>
59 <input type
=hidden name
=text
>
60 <input type
=hidden name
=fee
>
61 <input type
=hidden name
=units
>
62 <td
class="text"><input type
=entry name
=codeH size
=4> 
; 
;</td
>
63 <td
class="text"><input type
=entry name
=textH size
=13 value
=""> 
; 
;</td
>
64 <td
class="text"><?php
xl('$','e'); ?
> </span
><input type
=entry name
=feeH size
=5></td
>
65 <td
> <input type
=text name
="noofunits" onkeypress
="return isNumberKey(event)" size
=3 value
=1></td
>
66 <td
> 
;<a
class='text' onclick
="clearform('clear')" href
="javascript:top.restoreSession();document.other_form.submit();">
67 <?php
xl('Save','e'); ?
> </a
>