2024-10-10
This commit is contained in:
65
web/template/syzoj/ranklist.php
Normal file
65
web/template/syzoj/ranklist.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php $show_title="$MSG_RANKLIST - $OJ_NAME"; ?>
|
||||
<?php include("template/$OJ_TEMPLATE/header.php");?>
|
||||
|
||||
<div class="padding">
|
||||
<a href="ranklist.php?scope=d">Day</a>
|
||||
<a href="ranklist.php?scope=w">Week</a>
|
||||
<a href="ranklist.php?scope=m">Month</a>
|
||||
<a href="ranklist.php?scope=y">Year</a>
|
||||
<form action="ranklist.php" class="ui mini form" method="get" role="form" style="margin-bottom: 25px; text-align: right; ">
|
||||
<div class="ui action left icon input inline" style="width: 180px; margin-right: 77px; ">
|
||||
<i class="search icon"></i><input name="prefix" placeholder="<?php echo $MSG_USER?>" type="text" value="<?php echo htmlentities(isset($_GET['prefix'])?$_GET['prefix']:"",ENT_QUOTES,"utf-8") ?>">
|
||||
<button class="ui mini button" type="submit"><?php echo $MSG_SEARCH?></button>
|
||||
</div>
|
||||
<div class="ui action left icon input inline" style="width: 180px; margin-right: 77px; ">
|
||||
<i class="search icon"></i><input name="group_name" placeholder="<?php echo $MSG_GROUP_NAME ?>" type="text" value="<?php echo htmlentities(isset($_GET['group_name']) ? $_GET['group_name'] : "", ENT_QUOTES, "utf-8") ?>">
|
||||
<button class="ui mini button" type="submit"><?php echo $MSG_SEARCH ?></button>
|
||||
</div>
|
||||
</form>
|
||||
<table class="ui very basic center aligned table" style="table-layout: fixed; ">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 60px; "><?php echo $MSG_Number?></th>
|
||||
<th style="width: 180px; "><?php echo $MSG_USER?></th>
|
||||
<th><?php echo $MSG_NICK?></th>
|
||||
<th><?php echo $MSG_GROUP_NAME?></th>
|
||||
<th style="width: 100px; "><?php echo $MSG_SOVLED?></th>
|
||||
<th style="width: 100px; "><?php echo $MSG_SUBMIT?></th>
|
||||
<th style="width: 100px; "><?php echo $MSG_RATIO?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach($view_rank as $row){
|
||||
echo "<tr>";
|
||||
foreach($row as $table_cell){
|
||||
echo "<td>";
|
||||
echo "\t".$table_cell;
|
||||
echo "</td>";
|
||||
}
|
||||
echo "</tr>";
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<div style="margin-bottom: 30px; ">
|
||||
|
||||
<div style="text-align: center; ">
|
||||
<div class="ui pagination" style="box-shadow: none; ">
|
||||
<?php
|
||||
for($i = 0; $i <$view_total ; $i += $page_size) {
|
||||
$str= "<a class=\"ui button\" href='./ranklist.php?start=" . strval ( $i ).($scope?"&scope=$scope":"") . "'>";
|
||||
$str.= strval ( $i + 1 );
|
||||
$str.= "-";
|
||||
$str.= strval ( $i + $page_size );
|
||||
$str.= "</a>";
|
||||
echo $str;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include("template/$OJ_TEMPLATE/footer.php");?>
|
||||
Reference in New Issue
Block a user