7 * @link http://www.open-emr.org
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2018 Brady Miller <brady.g.miller@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 require_once("../../globals.php");
15 use OpenEMR\Common\Csrf\CsrfUtils
;
16 use OpenEMR\Core\Header
;
18 //the number of rows to display before resetting and starting a new column:
24 <?php Header
::setupHeader(); ?
>
26 <body
class="body_bottom">
28 <table
class="table-borderless h-100" cellspacing
='0' cellpadding
='0'>
31 <td
class="align-top">
35 <form method
='post' name
='other_form' action
="diagnosis.php?mode=add&type=OTHER&csrf_token_form=<?php echo attr_url(CsrfUtils::collectCsrfToken()); ?>"
36 target
='Diagnosis' onsubmit
='return top.restoreSession()'>
38 function clearform(atrib
){
39 document
.other_form
.text
.value
=document
.other_form
.textH
.value
;
40 document
.other_form
.code
.value
=document
.other_form
.codeH
.value
;
41 document
.other_form
.fee
.value
=document
.other_form
.feeH
.value
*document
.other_form
.noofunits
.value
;
42 document
.other_form
.units
.value
=document
.other_form
.noofunits
.value
;
43 document
.other_form
.textH
.value
='';
44 document
.other_form
.codeH
.value
='';
45 document
.other_form
.feeH
.value
='';
46 document
.other_form
.noofunits
.value
='1';
48 function isNumberKey(evt
)
49 {var charCode
= (evt
.which
) ? evt
.which
: event
.keyCode
50 if (charCode
> 31 && (charCode
< 48 || charCode
> 57))
52 alert(<?php
echo xlj('Units must be a number'); ?
>);
57 <dt
><span
class='title'><?php
echo xlt('Other'); ?
></span
></dt
>
62 <td
class="text"><?php
echo xlt('code'); ?
></td
>
63 <td
class="text"><?php
echo xlt('description'); ?
></td
>
64 <td
class="text"> 
; 
; 
;<?php
echo xlt('fee'); ?
></td
>
65 <td
class="text"><?php
echo xlt('units'); ?
></td
>
69 <input type
='hidden' name
='code' />
70 <input type
='hidden' name
='text' />
71 <input type
='hidden' name
='fee' />
72 <input type
='hidden' name
='units' />
73 <td
class="text"><input type
='entry' name
='codeH' size
='4' /> 
; 
;</td
>
74 <td
class="text"><input type
='entry' name
='textH' size
='13' value
="" /> 
; 
;</td
>
75 <td
class="text"><?php
echo xlt('$'); ?
> </span
><input type
='entry' name
='feeH' size
='5' /></td
>
76 <td
> <input type
='text' name
="noofunits" onkeypress
="return isNumberKey(event)" size
='3' value
='1' /></td
>
77 <td
> 
;<a
class='text' onclick
="clearform('clear')" href
="javascript:top.restoreSession();document.other_form.submit();">
78 <?php
echo xlt('Save'); ?
> </a
>