<?php
require_once 'common.inc.php';
require_once 'cache.func.php';
if(!$mm_mid){	
	clearcookies();
	mexit('对不起！请管理员后台登入后进行删除！');
}
if(!$adminid){	
	mexit('对不起！请管理员后台登入后进行删除！');
}
if($id){
$db -> query("delete from {$tablepre}ping where id='$id'");
mexit('删除成功<script LANGUAGE="JavaScript">setTimeout(\'window.close();\', 300);</script>');
}
if($pid){
$db -> query("delete from {$tablepre}ping where pid='$pid'");
mexit('删除成功<script LANGUAGE="JavaScript">setTimeout(\'window.close();\', 300);</script>');
}
if($uid){
$db -> query("delete from {$tablepre}ping where uid='$uid'");
mexit('删除成功<script LANGUAGE="JavaScript">setTimeout(\'window.close();\', 300);</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>
<style type="text/css">
<!--
body,td {font-family: Geneva, Arial, Helvetica, sans-serif, Tahoma;font-size: 12px;color:#1876b7;}
.login {font-family: Geneva, Arial, Helvetica, sans-serif, Tahoma;font-size: 12px;height: 16px;border-top-width: 1px;border-right-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-top-color: #FFFFFF;border-right-color: #EEEEEE;border-bottom-color: #EEEEEE;border-left-color: #FFFFFF;background-color: #f2f2f2;}
input,textarea {font-family: Geneva, Arial, Helvetica, sans-serif, Tahoma;font-size: 12px;border-top-width: 1px;border-right-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-top-color: #FFFFFF;border-right-color: #EEEEEE;border-bottom-color: #EEEEEE;border-left-color: #FFFFFF;background-color: #f2f2f2;}
a {color: #1876b7;text-decoration: none;}
a:hover {color: #000000;text-decoration: underline;}
.smalltxt{ font: 11px Arial, Tahoma; }
Input,select,textarea{ font: 11px Tahoma, Verdana; color: #000000; font-weight: normal; background-color: #F8F8F8; }
form{ margin: 0; padding: 0;}
select{ font: 11px Arial, Tahoma; color: #000000; font-weight: normal; background-color: #F8F8F8; }
.nav{ font: 12px Tahoma, Verdana; color: #000000; font-weight: bold; }
.nav a{ color: #000000;}
.header{ font: 12px Tahoma, Verdana; color: #1876B7; font-weight: bold;background-color: #DAEEFA;background-image:url(js/header.gif);}
.header a{ color: #1876b7; }
.category{ font: 11px Arial, Tahoma; color: #000000; background-color: #EEF6F9; }
.tableborder{ background: #DCEEF6; border: 1px solid #98D5EC }
 .smalltxt{ font: 11px Arial, Tahoma; }
.bold{ font-weight: bold; }
.altbg1{ background: #F8F8F8; }
.altbg2{ background: #FFFFFF; }
.maintable{ width: 98%; background-color: #FFFFFF; }
.menu {color:#FFFFFF;}
.menu a{color:#FFFFFF;font-weight:bold;}
.menu a:hover{color:#CCFFFF;}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table cellspacing="0" cellpadding="3" border="0" width="100%" align="center" style="table-layout: fixed"> 
<tr class="header" ><td width="90%" align="left" nowrap>
&nbsp;<a href=index.php>首页</a> &raquo; <a href=#><samp>评论信息</samp></a></td>    
</tr></table>
<table border="0" width="100%" cellspacing="1" cellpadding="3">
 <?php 
$query = $db -> query("select * from {$tablepre}ping order by pid desc");
 while($row = $db->fetch_array($query)){
 ?>
<tr>
<td class="altbg1">[<a href="?id=<?php echo $row["id"];?>">删除 评论id:<?php echo $row["id"];?></a>]  [<a href="?uid=<?php echo $row["uid"];?>">全删 图片id:<?php echo $row["uid"];?>评论</a>]  [<a href="?pid=<?php echo $row["pid"];?>">全删 图集id:<?php echo $row["pid"];?>评论</a>] <?php echo $row["uname"];?> 说： <a href="/pic/<?php echo $row["pid"];?>/<?php echo $row["uid"];?>.html" target="_blank"><?php echo $row["pingl"];?> </a></td></tr>
 <?php }?>
 </table>