📄 managetag.php
字号:
<? include("../conn.php");?>
<? include("../include/function.php");?>
<?
session_start();
$manager=$_SESSION[manager];
if($manager!="oktop"){
header("Location:error.htm");
}
?>
<html>
<head>
<meta http-equiv="content-Type" content="text/html; charset=gb2312">
<title>网摘管理</title>
<link href="../style/default.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellspacing="3">
<tr>
<td width="634" ></td>
<td width="43" ></td>
<td width="42" ></td>
<td width="123" ></td>
<td width="40" ></td>
<td width="94"></td>
</tr>
<?
$rcperpage=20;
$page=$_GET[page];
if(!$page){
$page=1;
}
$sql="select tag from tags where ispass='y' group by tag limit ".trim(($page-1)*$rcperpage).",$rcperpage";
$tsql="select count( DISTINCT tag) from tags where ispass='y' ";
$pgcount=$_GET[pacount];
if(!$pgcount){
$tqr=mysql_query($tsql);
$total=mysql_fetch_array($tqr);
$pgcount=floor((chop($total[0])-1)/$rcperpage)+1;
}
$query=mysql_query($sql);
while($rs=mysql_fetch_array($query)){
?>
<tr>
<td ><? echo $rs[tag];?></td>
<td ><a href="modtag.php?tag=<? echo $rs[tag];?>">修改</a></td>
<td ><a href="deltag.php?tag=<? echo $rs[tag];?>">删除</a></td>
<td ><a href="unpasstag.php?tag=<? echo $rs[tag];?>">取消通过</a></td>
<td ></td>
<td></td>
</tr>
<?
}
?>
</table>
<table width="100%" border="0">
<tr>
<td></br>第 <? echo $page;?> 页 共 <? echo $pgcount;?> 页
<?
if($page>1){
echo(" <a href='?page=1&pgcount=$pgcount;'>第一页</a>");
echo(" <a href='?pgcount=$pgcount&page=".($page-1)."'>上一页</a>");
}else{
echo(" 第一页");
echo(" 上一页");
}
if($page < $pgcount){
echo(" <a href='?pgcount=$pgcount&page=".($page+1)."'>下一页</a>");
echo(" <a href='?pgcount=$pgcount&page=".$pgcount."'>最末页</a>");
}else{
echo(" 下一页");
echo(" 最末页");
}
?>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -