2024-10-10
This commit is contained in:
37
web/contest-header.php
Normal file
37
web/contest-header.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
require_once('./include/cache_start.php');
|
||||
|
||||
|
||||
require_once('./include/db_info.inc.php');
|
||||
|
||||
if(isset($OJ_LANG)){
|
||||
require_once("./lang/$OJ_LANG.php");
|
||||
}
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link rel=stylesheet href='./include/<?php echo isset($OJ_CSS)?$OJ_CSS:"hoj.css" ?>' type='text/css'>
|
||||
</head>
|
||||
<?php if(isset($_GET['cid']))
|
||||
$cid=intval($_GET['cid']);
|
||||
if (isset($_GET['pid']))
|
||||
$pid=intval($_GET['pid']);
|
||||
?>
|
||||
<table width=100% class=toprow><tr align=center>
|
||||
<td width=15%><a class=hd href='./'><?php echo $MSG_HOME?></a>
|
||||
<td width=15%><a class=hd href='./bbs.php?cid=<?php echo $cid?>'><?php echo $MSG_BBS?></a>
|
||||
<td width=15%><a class=hd href='./contest.php?cid=<?php echo $cid?>'><?php echo $MSG_PROBLEMS?></a>
|
||||
<td width=15%><a class=hd href='./contestrank.php?cid=<?php echo $cid?>'><?php echo $MSG_STANDING?></a>
|
||||
<td width=15%><a class=hd href='./status.php?cid=<?php echo $cid?>'><?php echo $MSG_STATUS?></a>
|
||||
<td width=15%><a class=hd href='./conteststatistics.php?cid=<?php echo $cid?>'><?php echo $MSG_STATISTICS?></a>
|
||||
</tr></table>
|
||||
<?php
|
||||
$view_marquee_msg=file_get_contents($OJ_SAE?"saestor://web/msg.txt":"./admin/msg.txt");
|
||||
|
||||
?>
|
||||
<div id=broadcast>
|
||||
<marquee id=broadcast scrollamount=1 direction=up scrolldelay=250 onMouseOver='this.stop()' onMouseOut='this.start()';>
|
||||
<?php echo $view_marquee_msg?>
|
||||
</marquee>
|
||||
</div><!--end broadcast-->
|
||||
Reference in New Issue
Block a user