www.gusucode.com > 仿51.com的php源码 1.1 > admin/yijian_edit.php

    <?php
include("ck_login.php");
include("../include/dbclass.php");
$dbc=new DbConn();
$id=$_GET["id"];
$page=$_GET["page"];
$sql="select * from yijian where id='$id'";
$rs=$dbc->getRs($sql);
if($rs==null)
{
echo "<script>alert('找不到');history.back();</script>";
exit();
}
$sqlu="update yijian set readed='1' where id='$id'";
$dbc->Execute($sqlu);
if($_GET["act"]=="save")
{
$id=$_GET["id"];
$replay=$_POST["replay"];
$sqlr="update yijian set replayed='1',replay='$replay'";
$dbc->Execute($sqlr);
echo "<script>alert('回复完成!');location.href='yijian.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">
</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"><strong>
	<font color="#FFFFFF">意见回复</font></strong></tr>
<tr><td>
</td>
</tr>
</table>
<br>
<form action="?act=save&id=<?php echo $rs["id"]; ?>&page=<?php echo $page; ?>" method="post" name="edit">
<table cellspacing="1" border="0" class="border" align=center width="100%" id="table1" height="25">
	<tr align=center>
		<td class="topbg" height="25" width="15%"><b>会员名</b></td>
		<td class="tdbg" height="25" width="15%"><a href="http://www.wu-liao.com/home.php?user=<?php echo $rs["User_Account"]; ?>"  target="_blank"  ><?php echo $rs["User_Account"]; ?></a></td>
		<td class="topbg" height="25" width="15%"><b>留言类型</b></td>
		<td class="tdbg" height="25" width="20%"><?php echo $rs["ug_type"]; ?></td>
		<td class="topbg" height="25" width="15%"><b>提交时间</b></td>
		<td class="tdbg" height="25" width="20%"><?php echo date("Y-m-d",strtotime($rs["AddDate"])); ?></td>		
	</tr>
		<tr align=center>
		<td class="topbg" height="25" width="15%"><b>用户名</b></td>
		<td class="tdbg" height="25" width="15%"><?php echo $rs["name"]; ?></td>
		<td class="topbg" height="25" width="15%"><b>联系方式</b></td>
		<td class="tdbg" height="25" width="20%"><?php echo $rs["qq"]; ?></td>
		<td class="topbg" height="25" width="15%"><b>是否VIP</b></td>
		<td class="tdbg" height="25" width="20%"><?php if($rs["tag"]>0){ ?><font color=red>VIP会员</font><?php }else{?>普通会员<?php }?></td>		
	</tr>
		<tr align=center >
		<td  colspan="6" class="tdbg" height="25" width="100%"  ><?php echo $rs['memo']; ?></td>				
	</tr>
		<tr align=center>
		<td  class="tdbg" height="25" width="100%" colspan="6"><textarea name="replay" cols="80" rows="6" style="margin:8px 0;"><?php echo $rs['replay']; ?></textarea></td>			
	</tr>
			<tr align=center>
		<td class="tdbg" height="25" width="100%" colspan="6"><input name="Submit" type="submit" class="btn" value="确定提交" /></td>			
	</tr>
	</table>
	</form>
</body>
</html>