?>
></img></a></nobr></td>
</tr>
<tr align="center">
<td  bgcolor=#dde1ec colspan=2>

<FONT    SIZE=-1  FACE="Arial">


<table border=0 bgcolor=#ffdddd cellspacing=1 cellpadding=1 width="100%">
<tr>
<td  bgcolor=#ff0000 colspan=2><FONT SIZE=2  FACE="Verdana,Arial" color="#ffffff">
<b>
<?php 
if (isset($tp['group_id']) && !empty($tp['group_id'])) {
    $paramName =& $lab_obj->getGroupName($tp['group_id']);
    $paramName =& $paramName->FetchRow();
    echo $paramName['name'];
}
?>
</b>
</td>
</tr>
<tr>
<td  colspan=2>

<form action="<?php 
echo $thisfile;
?>
" method="post" name="paramedit">
    $jIDArray[] = $job_id;
    foreach ($paramgroupvalue as $paramgroup_a => $paramvalue_a) {
        foreach ($paramvalue_a as $paramgroup => $paramvalue) {
            $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++;
?>
=window.open(urlholder,"editparam_<?php 
echo $sid;
?>
","width=590,height=390,menubar=no,resizable=yes,scrollbars=yes");
}
// -->
</script>
<script src="../../js/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="../../js/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
<?php 
$sTemp = ob_get_contents();
ob_end_clean();
$smarty->append('JavaScript', $sTemp);
$sTempNew = '<a href="javascript:newParam()"><img ' . createLDImgSrc($root_path, 'newplan.gif', '0') . '></a>';
$paramName =& $lab_obj->getGroupName($parameterselect);
if (isset($paramName) && !empty($paramName)) {
    $paramName = $paramName->fetchRow();
}
# Assign elements
$smarty->assign('sParamNew', $sTempNew);
$smarty->assign('sParamGroup', $sTemp . $paramName['name']);
$smarty->assign('LDParameter', $LDParameter);
$smarty->assign('LDMsrUnit', $LDMsrUnit);
$smarty->assign('LDMedian', $LDMedian);
$smarty->assign('LDLowerBound', $LDLowerBound);
$smarty->assign('LDUpperBound', $LDUpperBound);
$smarty->assign('LDLowerCritical', $LDLowerCritical);
$smarty->assign('LDUpperCritical', $LDUpperCritical);
$smarty->assign('LDLowerToxic', $LDLowerToxic);
$smarty->assign('LDUpperToxic', $LDUpperToxic);