</th> <td width="100"><?php echo _("Authorzation"); ?> </td> </tr> </thead> <tbody> <?php while ($rs->MoveNext()) { $contest = array(); $contest['id'] = $rs->Fields["cid"]; $contest['name'] = $rs->Fields["title"]; $contest['info'] = $rs->Fields["information"]; $authtype = $rs->Fields['authtype']; if (!is_contest_visiable($contest['id'])) { continue; } // snap from contests.php $time = $rs->Fields["starttime"]; $during = $rs->Fields["during"]; $timestamp = strtotime($time); $start = $timestamp; sscanf($during, "%d:%d:%d", $h, $m, $s); $end = $timestamp + $h * 3600 + $m * 60 + $s; if ($now < $start) { $disTime = _("Starts at ") . date('Y-m-d H:i:s', $timestamp); } else { if ($now < $end) { $disTime = _("Running, ") . date('Y-m-d H:i:s', $timestamp) . "<br>" . sprintf(_("%02d:%02d:%02d Left"), ($end - $now) / 3600, ($end - $now) % 3600 / 60, ($end - $now) % 60); } else {
<td width="10%"><?php echo _("Authorzation"); ?> </td> </tr> </thead> <?php $i = 0; while ($rs->MoveNext()) { $i++; $id = $rs->Fields["cid"]; $authtype = $rs->Fields['authtype']; $time = $rs->Fields["starttime"]; $title = $rs->Fields["title"]; $during = $rs->Fields["during"]; if (!is_contest_visiable($id)) { continue; } ?> <tr> <td height=25 align="center"><?php echo $id; ?> </td> <td><a href="contest_detail.php?cid=<?php echo $id; ?> " class="black"><?php echo $title; ?> </a></td>