Beispiel #1
0
     }
     echo "    <option value='" . attr($fs_codes) . "'>" . text(substr($fs_option, 1)) . "</option>\n";
 }
 endFSCategory();
 // Create drop-lists based on categories defined within the codes.
 $pres = sqlStatement("SELECT option_id, title FROM list_options " . "WHERE list_id = 'superbill' ORDER BY seq");
 while ($prow = sqlFetchArray($pres)) {
     global $code_types;
     ++$i;
     echo $i <= 1 ? " <tr>\n" : "";
     echo "  <td width='50%' align='center' nowrap>\n";
     echo "   <select style='width:96%' onchange='codeselect(this)'>\n";
     echo "    <option value=''> " . text($prow['title']) . "\n";
     $res = sqlStatement("SELECT code_type, code, code_text,modifier FROM codes " . "WHERE superbill = ? AND active = 1 " . "ORDER BY code_text", array($prow['option_id']));
     while ($row = sqlFetchArray($res)) {
         $ctkey = alphaCodeType($row['code_type']);
         if ($code_types[$ctkey]['nofs']) {
             continue;
         }
         echo "    <option value='" . attr($ctkey) . "|" . attr($row['code']) . ':' . attr($row['modifier']) . "|'>" . text($row['code_text']) . "</option>\n";
     }
     echo "   </select>\n";
     echo "  </td>\n";
     if ($i >= $FEE_SHEET_COLUMNS) {
         echo " </tr>\n";
         $i = 0;
     }
 }
 // Create one more drop-list, for Products.
 if ($GLOBALS['sell_non_drug_products']) {
     ++$i;
Beispiel #2
0
         echo "    <option value=''> " . substr($fs_category, 1) . "</option>\n";
     }
     echo "    <option value='{$fs_codes}'>" . substr($fs_option, 1) . "</option>\n";
 }
 endFSCategory();
 // Create drop-lists based on categories defined within the codes.
 $pres = sqlStatement("SELECT option_id, title FROM list_options " . "WHERE list_id = 'superbill' ORDER BY seq");
 while ($prow = sqlFetchArray($pres)) {
     ++$i;
     echo $i <= 1 ? " <tr>\n" : "";
     echo "  <td width='50%' align='center' nowrap>\n";
     echo "   <select style='width:96%' onchange='codeselect(this)'>\n";
     echo "    <option value=''> " . $prow['title'] . "\n";
     $res = sqlStatement("SELECT code_type, code, code_text,modifier FROM codes " . "WHERE superbill = '" . $prow['option_id'] . "' AND active = 1 " . "ORDER BY code_text");
     while ($row = sqlFetchArray($res)) {
         echo "    <option value='" . alphaCodeType($row['code_type']) . '|' . $row['code'] . ':' . $row['modifier'] . "|'>" . $row['code_text'] . "</option>\n";
     }
     echo "   </select>\n";
     echo "  </td>\n";
     if ($i >= $FEE_SHEET_COLUMNS) {
         echo " </tr>\n";
         $i = 0;
     }
 }
 // Create one more drop-list, for Products.
 if ($GLOBALS['sell_non_drug_products']) {
     ++$i;
     echo $i <= 1 ? " <tr>\n" : "";
     echo "  <td width='50%' align='center' nowrap>\n";
     echo "   <select name='Products' style='width:96%' onchange='codeselect(this)'>\n";
     echo "    <option value=''> " . xl('Products') . "\n";