} else { $at = "-"; } $ud = rawurlencode($i[2]); list($fc, $lc) = Agecol($i[4], $i[5], $row % 2); echo "<tr bgcolor=#{$bg}><th>{$i['0']}</th><th bgcolor={$bi}><img src=img/16/" . $mico[$i[1]] . ".png title=\"" . $mlvl[$i[1]] . "\"></th>\n"; echo "<th><a href=Monitoring-Messages.php?ina=source&opa==&sta={$ud}>{$i['2']}</th><td>{$i['3']} deps</td>\n"; echo "<td bgcolor=#{$fc}>{$fs}</td><td bgcolor=#{$fc}>{$ls}</td><th>{$i['6']}</th><td>{$at}</td>"; ?> <td> <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?> "> <img src=img/16/<?php echo Cimg($i[8]); ?> .png> <input type="hidden" name="uca" value="<?php echo $i[0]; ?> "> <input type="hidden" name="who" value="<?php echo $i[6] ? $i[6] : $_SESSION['user']; ?> "> <input type="hidden" name="tme" value="<?php echo $i[7] ? $i[7] : time(); ?> "> <input type="hidden" name="lim" value="<?php
$curi[$t][] = $id; } } } if ($then['wday'] == 0 or $then['wday'] == 6) { $cl = "class=red"; } else { $cl = "class=blu"; } echo "<th {$cl}>"; if (isset($curi[$t])) { if ($ord) { $ni = 0; foreach ($curi[$t] as $id) { $ni++; $cimg = Cimg($incat[$id]); $tit = $indev[$id] . " had " . $icat[$incat[$id]] . " incident on {$then['weekday']}"; echo "<a href=Monitoring-Incidents.php?id={$id}>"; echo "<img src=img/16/{$cimg}.png border=0 title=\"{$tit}\">"; if ($ni == 4) { echo "<br>"; $ni = 0; } echo "</a>"; } } else { $ninc = count($curi[$t]); if ($ninc == 1) { echo "<img src=img/16/bomb.png border=0 title=\"Only {$ninc} incident on {$then['weekday']}\"></a>"; } elseif ($ninc < 10) { echo "<img src=img/16/impt.png border=0 title=\"{$ninc} incidents on {$then['weekday']}\"></a>";