📄 select.php
字号:
<?
session_start();
if(!$_SESSION['admin']){
echo "<script language=javascript>
alert('浣犳棤鏉冮檺!');
location.href='http://xsh.gxun.edu.cn';
</script>";
exit(0);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
td {
border:1px solid;
overflow:auto;
}
#top {
width:900px;
margin:0 auto;
border:1px solid #44CBF2;
overflow:auto;
}
.topban {
background-image:url(images/DH.GIF);
background-repeat:repeat-x;
width:100%;
height:25px;
text-align:center;
text-shadow:#3300FF;
font-size:16px;
}
.md {
width:890px;
font-size:12px;
margin-left:4px;
margin-top:5px;
}
.inp {
background-color: #91C4F7;
border:1px;
width:60px;
height:25px;
}
.inpsel {
border:1px;
width:60px;
height:25px;
}
.del {
background-color:#C1C6F9;
border:none;
width:30px;
height:20px;
}
</style>
<title>鏌ョ湅鎶ュ悕璁板綍</title>
</head>
<?php
require "conn.php";
$conn=mysql_connect($host_name,$db_user,$db_pass,$db);
mysql_query("set names utf8;");
$per=10;
mysql_select_db('xshbm');
$sql="select * from xshbm;";
$rs=mysql_query($sql);
$numy=@mysql_num_rows($rs);
if($numy%$per) //涓嶈兘鏁撮櫎
$maxpage=(int)($numy/$per)+1;
else
$maxpage=(int)($numy/$per);
if($numy==0)
$maxpage=1;
$page = $_GET['page'];
if($page<=1)
$page =1; //鑾峰彇褰撳墠椤甸潰鏁
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -