//new
             //new
             case 8:
                 echo $arrDecissionState['strCurStation'];
                 break;
             case 16:
                 $bStopped = true;
                 echo "<img src=\"../images/circ_stop.gif\">&nbsp;<em>{$CIRCULATION_MNGT_CIRC_STOP}</em>";
                 break;
         }
     }
     break;
 case 'COL_CIRCULATION_PROCESS_DAYS':
     if ($archivemode == 0) {
         echo "<td nowrap " . getColHighlight($nIndex, $sortby, 'COL_CIRCULATION_PROCESS_DAYS') . " align=\"left\">";
         echo "<span style=\"color:" . getDelayColor($arrDecissionState["nDaysInProgress"]) . ";\">" . $arrDecissionState["nDaysInProgress"] . "</span>";
     }
     break;
 case 'COL_CIRCULATION_PROCESS_START':
     echo "<td nowrap " . getColHighlight($nIndex, $sortby, 'COL_CIRCULATION_PROCESS_START') . " align=\"left\">";
     echo $strStartDate;
     break;
 case 'COL_CIRCULATION_SENDER':
     echo "<td nowrap " . getColHighlight($nIndex, $sortby, 'COL_CIRCULATION_SENDER') . " align=\"left\">";
     echo $strSender;
     break;
 case 'COL_CIRCULATION_MAILLIST':
     echo "<td nowrap " . getColHighlight($nIndex, $sortby, 'COL_CIRCULATION_MAILLIST') . " align=\"left\">";
     echo $strMaillist;
     break;
 case 'COL_CIRCULATION_TEMPLATE':
function printUser($arrRow, $bIsSubstitute, $nUserId, $bLastUser)
{
    global $arrUsers, $_REQUEST;
    global $CIRCDETAIL_RECEIVE, $CIRCDETAIL_STATE_WAITING, $CIRCDETAIL_STATE_OK, $CIRCDETAIL_STATE_STOP;
    global $CIRCDETAIL_STATE_SKIPPED, $CIRCDETAIL_STATE_SUBSTITUTE, $CIRCDETAIL_PROCESS_DURATION;
    global $CIRCDETAIL_DAYS, $CIRCDETAIL_STATE_DENIED, $nMailingListID, $SELF_DELEGATE_USER;
    echo "<tr style=\"height:22px;\">\n";
    if ($bIsSubstitute == false) {
        if ($nUserId != -2) {
            echo "<td width=\"20px\"><img src=\"../images/singleuser.gif\" height=\"16\" width=\"16\"></td>\n";
            echo "<td width=\"140px\">" . $arrUsers[$nUserId]["strUserId"] . "</td>\n";
        } else {
            echo "<td width=\"20px\"><img src=\"../images/user_green.gif\" height=\"16\" width=\"16\"></td>\n";
            echo "<td width=\"140px\">" . $SELF_DELEGATE_USER . "</td>\n";
        }
    } else {
        ?>
			<td width="20" align="right"><img src="../images/right.png" height="16" width="16"></td>
       		<td width="140"><img src="../images/singleuser2.gif" height="16" width="16" align="absmiddle" style="margin-right: 6px;"><?php 
        echo $arrUsers[$arrRow['nUserId']]['strUserId'];
        ?>
</td>
       		<?php 
    }
    //--- The receiving date
    $dateReceive = convertDateFromDB($arrRow["dateInProcessSince"]);
    if (0 == $arrRow["dateInProcessSince"]) {
        $dateReceive = "-";
        echo "<td width=\"150px\">&nbsp;</td>\n";
    } else {
        echo "<td width=\"150px\" nowrap>" . $dateReceive . "</td>\n";
    }
    //--- The process state
    if (!$arrRow) {
        echo "<td width=\"16px\">&nbsp;</td>\n";
        echo "<td width=\"110px\">&nbsp;</td>\n";
    } else {
        switch ($arrRow["nDecissionState"]) {
            case 0:
                $strImage = "state_wait.gif";
                $strText = $CIRCDETAIL_STATE_WAITING;
                break;
            case 1:
                $strImage = "state_ok.png";
                $strText = $CIRCDETAIL_STATE_OK;
                break;
            case 2:
                $strImage = "state_stop.png";
                $strText = "<strong style=\"color:Red;\">{$CIRCDETAIL_STATE_DENIED}</strong>";
                break;
            case 4:
                $strImage = "state_skip.png";
                $strText = $CIRCDETAIL_STATE_SKIPPED;
                break;
            case 8:
                $strImage = "state_skip.png";
                $strText = $CIRCDETAIL_STATE_SUBSTITUTE;
                break;
            case 16:
                $strImage = "stop.gif";
                $strText = "<strong style=\"color:Red;\">{$CIRCDETAIL_STATE_STOP}</strong>";
                break;
        }
        echo "<td width=\"16px\">";
        echo "<img src=\"../images/{$strImage}\" height=\"16\" width=\"16\">";
        echo "</td>\n";
        echo "<td width=\"200px\" nowrap>{$strText}</td>\n";
    }
    //--- the working duration
    if ($dateReceive != "-") {
        if ($arrRow["nDecissionState"] == 0) {
            $diff = abs(time() - $arrRow["dateInProcessSince"]);
            $nDays = floor($diff / (60 * 60 * 24));
        } else {
            if ($arrRow["nDecissionState"] != 16) {
                $dateDecission = $arrRow["dateDecission"];
                $diff = abs($dateDecission - $arrRow["dateInProcessSince"]);
                $nDays = floor($diff / (60 * 60 * 24));
            } else {
                $nDays = "-";
            }
        }
        echo "<td nowrap><strong style=\"color:" . getDelayColor($nDays) . ";\">{$nDays}</strong> {$CIRCDETAIL_DAYS}</td>\n";
    } else {
        echo "<td>&nbsp;</td>\n";
    }
    //--- the actions
    global $objURL;
    echo "<td nowrap>";
    if ($_SESSION["SESSION_CUTEFLOW_ACCESSLEVEL"] == 2 || $_SESSION["SESSION_CUTEFLOW_ACCESSLEVEL"] == 8) {
        if ($dateReceive != "-") {
            $nState = $arrRow["nDecissionState"];
            if ($nState == 0 || $nState == 2) {
                $strParams = 'circid=' . $_REQUEST['circid'] . '&language=' . $_REQUEST['language'] . '&cpid=' . $arrRow['nID'] . '&start=' . $_REQUEST['start'] . '&sortby=' . $_REQUEST['sortby'] . '&archivemode=' . $_REQUEST['archivemode'];
                $strEncyrptedParams = $objURL->encryptURL($strParams);
                ?>
					
					<a onMouseOver="tip('retry_station')" onMouseOut="untip()" href="retryuser.php?key=<?php 
                echo $strEncyrptedParams;
                ?>
">
					<img src="../images/retry.png" border="0" height="16" width="16" style="margin-right: 4px;">
					</a>
					
					<a onMouseOver="tip('skip_station')" onMouseOut="untip()" href="skipuser.php?key=<?php 
                echo $strEncyrptedParams;
                ?>
">
					<img src="../images/stepover_co.png" border="0" height="16" width="16">
					</a>
					
					<?php 
                if ($bIsSubstitute == false) {
                    ?>
					
						<a onMouseOver="tip('change_substitute')" onMouseOut="untip()" href="javascript:BrowseUserlist_Subs('<?php 
                    echo $_REQUEST['circid'];
                    ?>
', '<?php 
                    echo $_REQUEST['language'];
                    ?>
', '<?php 
                    echo $arrRow['nID'];
                    ?>
', '<?php 
                    echo $nMailingListID;
                    ?>
')">
						<img src="../images/cs_subs.jpg" border="0" height="16" width="16" style="margin-left: 4px;">
						</a>
					<?php 
                }
                ?>
					
					<a onMouseOver="tip('change_station')" onMouseOut="untip()" href="javascript:BrowseUserlist('<?php 
                echo $_REQUEST['circid'];
                ?>
', '<?php 
                echo $_REQUEST['language'];
                ?>
', '<?php 
                echo $arrRow['nID'];
                ?>
', '<?php 
                echo $nMailingListID;
                ?>
')">
					<img src="../images/cs.jpg" border="0" height="16" width="16" style="margin-left: 4px;">
					</a>
					<?php 
            }
            /*else if (($bLastUser == true) && ($bIsSubstitute == false) && ($nState != 16) && ($nState != 8))
            		{
            			$strParams				= 'circid='.$_REQUEST['circid'].'&language='.$_REQUEST['language'].'&cpid='.$arrRow['nID'].'&start='.$_REQUEST['start'].'&sortby='.$_REQUEST['sortby'].'&archivemode='.$_REQUEST['archivemode'];
            			$strEncyrptedParams		= $objURL->encryptURL($strParams);
            			?>
            			<a onMouseOver="tip('retry_station')" onMouseOut="untip()" href="retryuser.php?key=<?php echo $strEncyrptedParams ?>">
            			<img src="../images/retry.png" border="0" height="16" width="16">
            			</a>
            			<?php
            		}*/
        }
    }
    echo "&nbsp;</td>";
    echo "</tr>\n";
}