+ -
当前位置:首页 → 问答吧 → 后台留言管理

后台留言管理

时间:2010-08-11

来源:互联网

<?php
include_once ('admin_global.php');
$r=$db->Get_user_shell_check($uid, $shell);
$query=$db->findall("message ");
    while($row=$db->fetch_array($query)){
     $news_class_arr[$row[id]]=$row[title];
    }
if(isset($_GET[del])){
 mysql_query("delete from `message` where `id`='$_GET[del]' limit 1;");
 $db->Get_admin_msg("admin_message_edit.php","删除成功");
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>后台管理</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content=Alan name=Author><LINK rev=MADE
href="mailto:[email protected]"><LINK href="images/private.css"
type=text/css rel=stylesheet>
<META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD>
<BODY>
<TABLE class=navi cellSpacing=1 align=center border=0>
  <TBODY>
  <TR>
    <TH>后台 >> 留言管理</TH></TR></TBODY></TABLE><BR>
 <table border=0 cellspacing=1 align=center class=form>
<tr>
<th width='100'>留言者</th><th width='100'>留言标题</th><th width='100'>留言内容</th><th width='100'>留言日期</th><th width='100'>操作</th>
    </tr>
    <tr>
<?php
$result=$db->query("select id from message");
$total=mysql_num_rows($result);
pageft($total,20 );
if($firstcount < 0) $firstcount= 0;
//$sql= "select * from message limit $firstcount $displaypg; ";
$query=$db->findall("message limit $firstcount ,$displaypg");
//$query=mysql_query($sql);
while($row=$db->fetch_array($query)){
 ?>
<td><?php echo $row[user]?></td><td><?php echo $row[title]?></td>
<td><?php echo $row[content]?></td><td><?php echo date($row[lastdate])?></td>
<td> <a href='?del=<?php echo $row[id]?>'>删除</a></td>
    </tr>
   <?php
}
?>
    <tr>
    <th colspan="5"><?php echo $pagenav;?></th>
    </tr>
  </table>
<br>
 </BODY></HTML>


通过把数据库中的数据调入
传参删除选中的留言

作者: keywinlee   发布时间: 2010-08-11

??????????????????????????????????

作者: 0pao   发布时间: 2010-08-13

相关阅读 更多

热门下载

更多