<body class="body_top"> <form method="post" action="<?php echo $rootdir; ?> /forms/fee_sheet/new.php" onsubmit="return validate(this)"> <span class="title"><?php echo xlt('Fee Sheet'); ?> </span><br> <input type='hidden' name='newcodes' value=''> <center> <?php $isBilled = isEncounterBilled($pid, $encounter); if ($isBilled) { echo "<p><font color='green'>" . xlt("This encounter has been billed. If you need to change it, it must be re-opened.") . "</font></p>\n"; } else { // the encounter is not yet billed ?> <table width='95%'> <?php $i = 0; $last_category = ''; // Create drop-lists based on the fee_sheet_options table. $res = sqlStatement("SELECT * FROM fee_sheet_options " . "ORDER BY fs_category, fs_option"); while ($row = sqlFetchArray($res)) { $fs_category = $row['fs_category']; $fs_option = $row['fs_option'];
?> /forms/fee_sheet/new.php?<?php echo "rde=" . urlencode($rapid_data_entry) . "&addmore=" . urlencode($add_more_items); ?> " onsubmit="return validate(this)"> <span class="title"><?php echo xlt('Fee Sheet'); ?> </span><br> <input type='hidden' name='newcodes' value=''> <center> <?php $isBilled = !$add_more_items && isEncounterBilled($fs->pid, $fs->encounter); if ($isBilled) { echo "<p><font color='green'>" . xlt("This encounter has been billed. To make changes, re-open it or select Add More Items.") . "</font></p>\n"; } else { // the encounter is not yet billed ?> <table width='95%'> <?php $i = 0; $last_category = ''; // Create drop-lists based on the fee_sheet_options table. $res = sqlStatement("SELECT * FROM fee_sheet_options " . "ORDER BY fs_category, fs_option"); while ($row = sqlFetchArray($res)) { $fs_category = $row['fs_category']; $fs_option = $row['fs_option'];