} } if ($edit) { echo '</a>'; } echo '</td><td>'; if ($edit) { echo '<a href="javascript:setM(\'' . $LD_Elements[$j][$i]['id'] . '\')">' . $LD_Elements[$j][$i]['value'] . '</a>'; } else { echo $LD_Elements[$j][$i]['value']; } echo '</td><td>'; if (isset($stored_param[$LD_Elements[$j][$i]['id']]) && !empty($stored_param[$LD_Elements[$j][$i]['id']])) { require_once $root_path . 'include/care_api_classes/class_lab.php'; $lab_obj = new Lab(); $lab_bill = $lab_obj->getLabBillNoByBatch($batch_nr, $LD_Elements[$j][$i]['id']); if ($lab_bill > 0) { echo '<font color="green">' . $LDLabRequestBilled . ' ' . $lab_bill . '</font>'; } else { if ($glob_obj->getConfigValue("restrict_unbilled_items") !== "1") { echo '<img src="../../gui/img/common/default/warn.gif" border=0 alt="" style="filter:alpha(opacity=70)"> <font color="red">' . $LDLabRequestNotBilled . '</font> <img src="../../gui/img/common/default/warn.gif" border=0 alt="" style="filter:alpha(opacity=70)">'; } else { if ($glob_obj->getConfigValue("restrict_unbilled_items") == "1" && $h_encounter_class_nr != "2") { echo '<img src="../../gui/img/common/default/warn.gif" border=0 alt="" style="filter:alpha(opacity=70)"> <font color="red">' . $LDLabRequestNotBilled . '</font> <img src="../../gui/img/common/default/warn.gif" border=0 alt="" style="filter:alpha(opacity=70)">'; } } } } echo '</td>'; } else { echo '<td colspan=3> </td>';
//print_r($requestData); $collimit = 0; while (list($group, $pm) = each($requestData)) { $gName = $lab_obj->getGroupName($group); echo ' <tr>'; echo '<td colspan="' . COL_MAX . '" bgcolor="#ffffee" class="a10_a"><b>'; echo $gName->fields['name']; echo '</b></td></tr><tr>'; while (list($pId, $not) = each($pm)) { // echo $enc_obj->EncounterClass(); //Get the encounter class //Check if item is billed if ($glob_obj->getConfigValue("restrict_unbilled_items") === "1" && $enc_obj->EncounterClass() === "2") { //Check the restriction status if ($lab_obj->getLabBillNoByBatch($job_id, $pId) > 0) { $pName = $lab_obj->TestParamsDetails($pId); echo '<td bgcolor="#ffffee" class="a10_b"><b>'; echo $pName->fields['name'] . '</b></td>'; echo '<td>'; //it's a dropdown if ($pName->fields['field_type'] == 'drop_down') { $inputValue = '<select name="' . $pId . '" size="1">'; do { $inputValue .= '<option value=' . $pDropDown['input_value']; if ($pDropDown['input_value'] == $pdata[$pId]['value']) { $inputValue .= ' selected="selected" '; } $inputValue .= '>' . $pDropDown['input_value'] . '</option>'; } while ($pDropDown = $pName->FetchRow()); $inputValue .= '</select>';