<tr bgcolor="#ffddee" > <td class="va12_n"><font color="#000"> </td> <td class="va12_n"><font color="#000"> </td> <td class="j"><font color="#000"> </td>'; for ($i = 1; $i <= $count_job; $i++) { $cache .= ' <td class="a12_b"><font color="#0000cc"> <b>' . convertTimeToLocal($parameters[$i]['jobs'][3]) . '</b> ' . $LDOClock . ' </td>'; } # Reset array reset($ttime); $cache .= ' </tr>'; # Display the values $tasks =& $lab_obj->TestParams(); while ($t = $tasks->FetchRow()) { $a_task = $lab_obj->TestParamsDetails($t['id']); $arr_task = $a_task->FetchRow(); //$arr_task = $lab_obj->TestParamsDetails($t['id']); $first = true; $imgprep = ""; if ($taskstodo[$t['id']]) { for ($i = 1; $i <= $count_job; $i++) { if (!$first) { $imgprep .= '~'; } $imgprep .= $parameters[$i]['tasks'][$t['id']]; if ($first) { $txt .= '<tr class="wardlistrow2" style="background:#ECEFF9 !important; "> <td class="j" nowrap>' . $arr_task['name'] . '</td><td class="j" nowrap>';
} else { if ($result =& $lab_obj->getResult($job_id, $parameterselect)) { while ($row = $result->FetchRow()) { $pdata[$row['paramater_name']] = $row['parameter_value']; } } else { # disallow update if group does not exist yet $allow_update = false; } } //echo $lab_obj->getLastQuery(); # Get the test test groups $tgroups =& $lab_obj->TestActiveGroups(); # Get the test parameter values //gjergji : take all the params for this group... $tparams =& $lab_obj->TestParams(); # Set the return file if (isset($job_id) && $job_id) { switch ($user_origin) { case 'lab_mgmt': $breakfile = "labor_test_request_admin_chemlabor.php" . URL_APPEND . "&pn={$encounter_nr}&batch_nr={$job_id}&user_origin=lab"; break; default: //$breakfile="labor_data_check_arch.php".URL_APPEND."&versand=1&encounter_nr=$encounter_nr"; $breakfile = "labor.php"; } } else { $breakfile = "labor_data_patient_such.php" . URL_APPEND . "&mode=edit"; } } # Prepare title