-
Notifications
You must be signed in to change notification settings - Fork 0
/
bask_race.php
41 lines (39 loc) · 1.29 KB
/
bask_race.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<html>
<head>
<meta http-equiv="content-type"content="text/html;charset=utf-8"/>
<title>篮球赛事</title>
</head>
<body>
<?php
require_once 'baskService.class.php';
require_once 'paging.class.php';
$baskService=new BaskService();
$paging=new Paging();
$paging->pageNow=1;
$paging->pageSize=10;
$paging->gotoUrl='bask_race.php';
if(!empty($_GET['pageNow']))
{
$paging->pageNow=$_GET['pageNow'];
}
$opt="bask_race";
$baskService->getPaging($paging, $opt);
echo"<h1>相关赛事</h1><br/><br/>";
for($i=0;$i<count($paging->res);$i++){
echo"<a href='bask_showInfo.php?id=".$paging->res[$i]['id']."&opt=bask_race'><font color='black'>";
echo "<div style='float:right; text-align:right'>".substr($paging->res[$i]['date'],0,10)."</div>".$paging->res[$i]['title'];
echo"<br/>";
echo "<font color='silver'>".$paging->res[$i]['username']."</font>";
echo"</a></font>";
echo"<br/>";
}
echo"$paging->navigate";
echo"当前页{$paging->pageNow}/共有{$paging->pageCount}页";
echo"<br/><br/>";
?>
<form action="bask_race.php">
跳转到:<input type="text"name="pageNow"/>
<input type="submit" value="Go"/>
</form>
</body>
</html>