$ext = substr(stristr($paramgroup, '__'), 2);
            $requestData[$ext][$paramgroup][$job_id] = $paramvalue;
        }
    }
}
//display the values
$class = 'wardlistrow1';
$columns = 0;
$ptrack = 0;
$temp = '';
while (list($groupId, $paramEnc) = each($requestData)) {
    $valueBuff = '';
    $gName = $lab_obj->getGroupName($groupId);
    echo "<tr><td  class=\"va12_n\" colspan=\"" . ($cols + 3) . "\"><b>" . $gName->fields['name'] . "</b></td></tr>";
    while (list($paramId, $encounterNr) = each($paramEnc)) {
        $pName = $lab_obj->TestParamsDetails($paramId);
        echo "<tr>";
        echo "<td class=\"" . $class . "\">" . $pName->fields['name'] . "</td>";
        echo "<td class=\"" . $class . "\">" . medianValue($paramValue, $pName) . "</td>";
        echo "<td class=\"" . $class . "\">" . $pName->fields['msr_unit'] . "</td>";
        for ($i = 0; $i < count($jIDArray); $i++) {
            if (array_key_exists($jIDArray[$i], $encounterNr)) {
                $valueBuff == '' ? $valueBuff = $encounterNr[$jIDArray[$i]] : ($valueBuff .= '~' . $encounterNr[$jIDArray[$i]]);
                $ptrack++;
                $columns++;
            } else {
                $valueBuff == '' ? $valueBuff = '0' : ($valueBuff .= '~' . '0');
                $ptrack++;
                $columns++;
            }
        }
		</td>
		<td class="va12_n"><font color="#000"> &nbsp;
		</td>
		<td  class="j"><font color="#000">&nbsp;</td>';
    for ($i = 1; $i <= $count_job; $i++) {
        $cache .= '
		<td class="a12_b"><font color="#0000cc">&nbsp;<b>' . convertTimeToLocal($parameters[$i]['jobs'][3]) . '</b> ' . $LDOClock . '&nbsp;</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>';
                    if ($arr_task['lo_bound'] && $arr_task['hi_bound']) {
                        $txt .= $arr_task['lo_bound'] . ' - ' . $arr_task['hi_bound'];