www.gusucode.com > 仿51.com的php源码 1.1 > admin/admin_jb.php
<?php include("ck_login.php"); include("../include/dbclass.php"); include("../include/page.php"); $dbc=new DbConn(); $maxline = 25; $key=$_GET["key"]; $page=(int)$_GET["page"]; //$deferentparameter="&key=".$key; if($_GET["act"]=="dels") { $id=$_GET["id"]; $sql="delete from jb where id='$id'"; $dbc->Execute($sql); echo "<script>alert('删除完成!');location.href='admin_jb.php?page=$page';</script>"; } ?><!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=gb2312" /> <title>无标题文档</title> <link rel="stylesheet" href="admin_style.css"> <style type="text/css"> <!-- .STYLE1 { color: #000000; font-weight: bold; } --> </style> </head> <body> <table cellpadding="2" cellspacing="1" border="0" width="100%" class="border" align=center> <tr align="center"> <td height=25 colspan=2 class="topbg"><span class="STYLE1"> 举报管理</span></tr> <tr><td> </td> </tr> </table> <br> <table cellspacing="1" border="0" class="border" align=center width="100%" id="table1" height="25"> <tr align=center> <td class="topbg" height="28"><b>被举报人</b></td> <td class="topbg" height="28" ><b>类 型</b></td> <td class="topbg" height="28"><b>举报人</b></td> <td class="topbg" height="28" ><b>举报类型</b></td> <td class="topbg" height="28" ><b>举报理由</b></td> <td class="topbg" height="28" ><b>时 间</b></td> <td class="topbg" height="28" ><b>是否查看</b></td> <td class="topbg" height="28" ><b>地址</b></td> <td class="topbg" height="28" ><b>删 除</b></td> </tr> <?php $sql="select * from jb order by readed asc ,jbtime desc"; $news = $dbc->getGopageRs($sql,$maxline); //echo "$sql"; $gopage = new GoPage($dbc->tpages,$dbc->total);//建立翻页程序 $backurl = "jb.php?".$dbc->getParameter(); for($i=0;$i<$dbc->num_rows;$i++) {?> <tr align=center> <td class="tdbg" height=25 ><a href="/home.php?user=<?php echo $news[$i]["user"]; ?>" target="_blank" ><?php echo $news[$i]["user"]; ?></a></td> <td class="tdbg" height=25 > <?php echo $news[$i]["type"]; ?></td> <td class="tdbg" height=25 > <?php echo $news[$i]["name"]; ?></td> <td class="tdbg" height=25 ><?php echo $news[$i]["selectType"]; ?></td> <td class="tdbg" height=25 ><?php echo $news[$i]["memo"]; ?></td> <td class="tdbg" height=25 ><?php echo date("Y-m-d",strtotime($news[$i]["jbtime"]));?></td> <td class="tdbg" height=25 ><?php if($news[$i]["readed"]==0){?><font color=red>未查看</font><?php }else{?>已查看<?php }?></td> <td class="tdbg" height=25 ><a href="<?php echo $news[$i]["url"]; ?>" target="_blank" >连接地址</a></td> <td class="tdbg" height=25 ><a href="?act=dels&id=<?php echo $news[$i]["id"]; ?>&page=<?php echo $page; ?>">删除</a></td> </tr> <?php }?> </table> <br> <table cellspacing="1" border="0" class="border" align=center width="100%" id="table1" height="25"><tr align=center><td class="tdbg"><?=$gopage->style(2)?></td></table> </body> </html>