后台留言管理
时间: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>
通过把数据库中的数据调入
传参删除选中的留言
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
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28