chore: complete integration of flex-3.20 (alpine 3.20) into ci (#7538)
[openemr.git] / interface / patient_file / encounter / other.php
blob249fc6e957a2cd10297bc545b75e0b1746798a44
1 <?php
3 /**
4 * other.php
6 * @package OpenEMR
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:
19 $N = 10
22 <html>
23 <head>
24 <?php Header::setupHeader(); ?>
25 </head>
26 <body class="body_bottom">
28 <table class="table-borderless h-100" cellspacing='0' cellpadding='0'>
29 <tr>
31 <td class="align-top">
33 <dl>
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()'>
37 <script>
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'); ?>);
53 return false;
55 return true; }
56 </script>
57 <dt><span class='title'><?php echo xlt('Other'); ?></span></dt>
59 <br />
60 <table>
61 <tr>
62 <td class="text"><?php echo xlt('code'); ?></td>
63 <td class="text"><?php echo xlt('description'); ?></td>
64 <td class="text">&nbsp;&nbsp;&nbsp;<?php echo xlt('fee'); ?></td>
65 <td class="text"><?php echo xlt('units'); ?></td>
66 <td></td>
67 </tr>
68 <tr>
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' />&nbsp;&nbsp;</td>
74 <td class="text"><input type='entry' name='textH' size='13' value="" />&nbsp;&nbsp;</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>&nbsp;<a class='text' onclick="clearform('clear')" href="javascript:top.restoreSession();document.other_form.submit();">
78 <?php echo xlt('Save'); ?> </a>
79 </td>
80 </tr>
81 </table>
82 </form>
84 </dl>
86 </td>
87 </tr>
88 </table>
90 </body>
91 </html>