最近在用反馈表单在做旅游预订的功能,已基本上实现。因为其中涉及改动不少源文件及数据库结构,所以大家在使用过程请自行根据需要选择。
<?=$ddno?>
<input name="ddno" type="hidden" id="ddno" value="<?=$ddno?>">
<form name="form1" method="post" action="feedback.php">
<input name="enews" type="hidden" id="enews" value="ReOrder">
<input name="bid" type="hidden" id="id" value="<?=$bid?>">
<input name="id" type="hidden" id="id" value="<?=$id?>">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class=tableborder>
<tr class=header>
<td height="25" colspan="2">所属分类:<?=$br[bname]?></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="19%" height="25">提交者:</td>
<td width="81%" height="25">
<?=$username?>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">发布时间:</td>
<td height="25">
<?=$r[saytime]?>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">IP地址:</td>
<td height="25">
<?=$r[ip]?>
</td>
</tr>
<?=$feedbackinfo?>
<tr class=header>
<td height="25" colspan="2">订单处理</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">客服回复:</td>
<td height="25">
<textarea name="retext" cols="60" rows="9" id="retext"><?=$r[retext]?></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25"> </td>
<td height="25">
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" colspan="2"><div align="center">[ <a href="javascript:window.close();">关
闭</a> ]</div></td>
</tr>
</table>
</form>
include "../".LoadLang("pub/fun.php");
elseif($enews=="ReOrder")
{
$id=$_POST['id'];
$bid=$_POST['bid'];
$retext=$_POST['retext'];
ReOrder($id,$bid,$retext,$logininid,$loginin);
}
修改/e/class/com_functions.php 增加ReOrder函数
//回复反馈 2010-10-16 by 成名
function ReOrder($id,$bid,$retext,$userid,$username){
global $empire,$dbtbpre;
$id=(int)$id;
$bid=(int)$bid;
if(!$id||!$retext)
{
printerror("EmptyReGbooktext","history.go(-1)");
}
//验证权限
//CheckLevel($userid,$username,$classid,"feedback");
$sql=$empire->query("update {$dbtbpre}enewsfeedback set retext='$retext' where id='$id';");
if($sql)
{
//操作日志
insert_dolog("id=".$id);
echo"<script>opener.parent.main.location.href='feedback.php?bid=$bid';window.close();</script>";
exit();
}
else
{printerror("DbError","history.go(-1)");}
}
上传以下图片:本网刊登的文章均仅代表作者个人观点,并不代表本网立场。文中的论述和观点,敬请读者注意判断。
2022-05-30
2022-05-29
2022-04-12
2021-08-27
2021-02-08
2021-02-27
2021-02-08
2022-10-26