function print_error_local($str){ print ("<CENTER><FONT COLOR=\"#FF0000\">An error occured!</FONT>\n"); print ("<P><B>$str</B></CENTER>\n"); print_bottom(); exit; }
} echo "<td {$add} nowrap='nowrap'>" . $row[$value . $i] . "</td>"; } } $admin_str = ""; if ($row['status'] != 0) { $admin_str .= "<a href=admin.php?tid={$row[0]}&op=0>Pending</a>\n"; } if ($row['status'] != 1) { $admin_str .= "<a href=admin.php?tid={$row[0]}&op=1>Accepted</a>\n"; } if ($row['status'] != 2) { $admin_str .= "<a href=admin.php?tid={$row[0]}&op=2>Rejected</a>\n"; } $created_time = date('Y-m-d H:i:s', $row['created']); $changed_time = date('Y-m-d H:i:s', $row['changed']); $ajax = "<a href=show.php class=lightview data-lightview-caption='如不能正常显示<a href=show.php?tid={$tid}&y={$year}>点击这里</a>' data-lightview-type=ajax data-lightview-options=\"ajax:{data:'tid={$tid}&y={$year}'},skin:'mac',radius:0,padding:0 \">管理</a>"; $str = "<td nowrap='nowrap'>{$status[$row['status']]}</td>"; if (isset($_SESSION['right']) && strtoupper($_SESSION['right']) == 'ADMINISTRATOR') { $str .= "<td nowrap='nowrap'>{$ajax}</td>"; } $str .= "</tr>\n"; echo $str; $num++; } ?> </table> </div> <?php print_bottom();