reply.php
来自「聪明星企业wap网站系统 Version 1.0」· PHP 代码 · 共 88 行
PHP
88 行
<?
/* ======================================
* ******smartstar firm wap system******
* ======================================
* AUTHOR :
* =======
* Copyright (C) 2006 Wap-system - A wap system designed for firm
* by smartstar.
*/
?>
<?
include("../admin/function.inc.php");
include("../chinese/class.Chinese.php");
?>
<link href=js/common.css rel=stylesheet type=text/css>
<?
if ($_POST)
{
if(!empty($_POST['reply']))
{
include("../db_connect.php");
$id=$_POST['id'];
$id=intval($id);
$reply=$_POST['reply'];
$chs_r = new Chinese("GB2312","UTF8",trim($reply));
$reply = $chs_r->ConvertIT();
mysql_query("update feedback set reply='$reply' where id='$id'",$db) or die ("query failed");
mysql_close($db);
echo "<p align=center>回复成功,3秒后自动返回留言管理页!";
echo "<script>window.setTimeout(\"location.href='admin.php'\",3000);</script></p>";
exit;
}
else
{
echo "<p align=center>请填写回复内容!</p>";
echo "<a href=\"reply.php\">返回</a></p>";
exit;
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>留言回复</title></head>
<body><form method="post" action="reply.php">
<?
include("../db_connect.php");
$title=mysql_query("select title from feedback where id='$id'",$db) or die ("query failed");
$title_row=mysql_fetch_row($title);
$title=$title_row[0];
$chs_t = new Chinese("UTF8","GB2312",trim($title));
$title = $chs_t->ConvertIT();
?>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DEDFDE">
<form name="myform" type="POST" action="reply.php"><tr>
<td colspan="2" bgcolor="#f7f7f7"><div align="center">
<strong>留 言 回 复</strong></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">留言标题:</td>
<td bgcolor="#FFFFFF"><? echo $title; ?></td>
</tr>
<tr>
<td width="120" bgcolor="#FFFFFF"><p>回复内容:</p>
</td>
<td bgcolor="#FFFFFF">
<textarea name="reply" class="input_text" rows="8" cols="54"></textarea>
<input type="hidden" name="id" value="<? echo $id; ?>">
</td>
</tr>
<tr>
<td height="40" colspan="2" bgcolor="#FFFFFF"><div align="center">
<input type="submit" name="Submit" value=" 提 交 " class="input_submit">
<input type="reset" name="reset" value=" 重 置 " class="input_submit">
</div></td>
</tr>
</form>
</table>
<?
echo "<a href=\"admin.php\">返回</a>";
mysql_close($db);
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?