| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- <?php
- include("../config/conn.php");
- include("../config/function.php");
- AdminSes_audit();
- $id=$_GET[id];
- while0("*","yjcode_gd where id=".$id);if(!$row=mysql_fetch_array($res)){php_toheader("gdlist.php");}
- //函数开始
- if($_GET[control]=="update"){
- zwzr();
- $txt=sqlzhuru1($_POST[content]);
- $sj=date("Y-m-d H:i:s");
- updatetable("yjcode_gd","
- sj='".$_POST[tsj]."',
- mot='".sqlzhuru($_POST[tmot])."',
- mail='".sqlzhuru($_POST[tmail])."',
- txt='".$txt."',
- gdzt=".$_POST[Rgdzt]."
- where id=".$id);
-
- if(sqlzhuru($_POST[Rtz1])=="yes" && !empty($row[mail])){
- require("../config/mailphp/sendmail.php");
- $lj=weburl."user/gdlist.php";
- $tit="您好,您的工单".strip_tags(returngdzt($_POST[Rgdzt]));
- $txt="尊敬的用户:".returnuser($row[userid])." 您好:<br>";
- $txt=$txt."感谢您对".webname."(".weburl.")的支持!<br>";
- $txt=$txt."您于".$row[sj]."提交工单状态已经变更为:".returngdzt($_POST[Rgdzt])."。您可以访问以下链接登录网站查看工单详情<br><a href='".$lj."' target='_blank'>".$lj."</a><hr>";
- $txt=$txt."本邮件由系统自动发出,请勿直接回复!";
- @yjsendmail($tit,$row[mail],$txt);
- }
-
- if(sqlzhuru($_POST[Rtz2])=="yes" && $rowcontrol[ifmob]=="on" && !empty($row[mot])){
- while1("*","yjcode_smsmb where mybh='007'");
- if($row1=mysql_fetch_array($res1)){$txt=$row1[txt];}else{$txt="您的工单状态已经变更为:${zttz}";}
- $yz=strip_tags(returngdzt($_POST[Rgdzt]));
- $yz=iconv('gbk','utf-8',$yz);
- if(empty($rowcontrol[smsmode])){
- include("../config/mobphp/mysendsms.php");
- $str=str_replace("\${zttz}",$yz,$txt);
- yjsendsms($row[mot],$str);
- }else{
- if(1==$rowcontrol[smsmode]){$sms_txt="{zttz:'".$yz."'}";}else{$sms_txt="{\"zttz\":\"".$yz."\"}";}
- $sms_mot=$row[mot];
- $sms_id=$row1[mbid];
- @include("../config/mobphp/mysendsms.php");
- }
- updatetable("yjcode_control","smskc=smskc-1");
- }
-
-
-
- php_toheader("gd.php?t=suc&id=".$id);
- }
- //函数结果
- ?>
- <!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="x-ua-compatible" content="ie=7" />
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title><?=webname?>管理系统</title>
- <link href="css/basic.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="js/jquery.min.js"></script>
- <script language="javascript" src="js/basic.js"></script>
- <script language="javascript" src="js/layer.js"></script>
- <script type="text/javascript" src="../config/ueditor/ueditor.config.js"></script>
- <script type="text/javascript" src="../config/ueditor/ueditor.all.min.js"> </script>
- <script type="text/javascript" src="../config/ueditor/lang/zh-cn/zh-cn.js"></script>
- </head>
- <body>
- <? include("top.php");?>
- <script language="javascript">
- document.getElementById("menu5").className="a1";
- </script>
- <? if(!strstr($adminqx,",0,") && !strstr($adminqx,",0602,")){echo "<div class='noneqx'>无权限</div>";exit;}?>
- <div class="yjcode">
- <? $leftid=4;include("menu_ad.php");?>
- <div class="right">
- <? if($_GET[t]=="suc"){systs("恭喜您,操作成功!","gd.php?id=".$id);}?>
- <div class="bqu1">
- <a href="javascript:void(0);" class="a1">工单管理</a>
- <a href="gdlist.php">返回列表</a>
- </div>
- <!--B-->
- <div class="rkuang">
- <script language="javascript">
- function tj(){
- layer.msg('正在提交', {icon: 16 ,time: 0,shade :0.25});
- f1.action="gd.php?id=<?=$id?>&control=update";
- }
- </script>
- <form name="f1" method="post" onsubmit="return tj()">
- <ul class="uk">
- <li class="l1">工单状态:</li>
- <li class="l21"><?=returngdzt($row[gdzt])?></li>
- <li class="l1">订单编号:</li>
- <li class="l2"><input type="text" size="20" value="<?=$row[orderbh]?>" class="inp" name="tmot" /><span class="fd">[<a href="orderview.php?orderbh=<?=$row[orderbh]?>" target="_blank">查看订单</a>]</span></li>
- <li class="l1">手机号码:</li>
- <li class="l2"><input type="text" size="20" value="<?=$row[mot]?>" class="inp" name="tmot" /></li>
- <li class="l1">联系邮箱:</li>
- <li class="l2"><input type="text" size="20" value="<?=$row["mail"]?>" class="inp" name="tmail" /></li>
- <li class="l10"><span class="red">*</span> 详细描述:</li>
- <li class="l11"><script id="editor" name="content" type="text/plain" style="width:853px;height:330px;"><?=$row[txt]?></script></li>
- </ul>
-
- <ul class="rcap"><li class="l1"></li><li class="l2">管理员操作</li><li class="l3"></li></ul>
- <ul class="uk">
- <li class="l1">发布时间:</li>
- <li class="l2"><input class="inp" name="tsj" value="<?=$row[sj]?>" size="20" type="text"/><span class="fd">正确的时间格式如:2012-12-12 12:12:12</span></li>
- <li class="l1">工单状态:</li>
- <li class="l2">
- <? for($i=1;$i<=4;$i++){?>
- <label><input name="Rgdzt" type="radio" value="<?=$i?>" <? if($i==$row[gdzt]){?>checked="checked"<? }?> /> <strong><?=returngdzt($i)?></strong></label>
- <? }?>
- </li>
- <li class="l1"></li>
- <li class="l21"><a href="gdhf.php?bh=<?=$row[bh]?>"><strong class="red">【查看回复记录】</strong></a></li>
- <li class="l1">发布会员:</li>
- <li class="l2"><input class="inp redony" value="<?=returnuser($row[userid])?>" size="20" type="text"/><span class="fd">[<a href="user_ses.php?uid=<?=returnuser($row[userid])?>" target="_blank">进后台</a>]</span></li>
- <li class="l1">邮件通知:</li>
- <li class="l2">
- <label><input name="Rtz1" checked="checked" type="radio" value="yes" /> <span class="blue">发送邮件</span></label>
- <label><input name="Rtz1" type="radio" value="no" /> 不发送邮件</label>
- </li>
- <li class="l1">短信通知:</li>
- <li class="l2">
- <label><input name="Rtz2" checked="checked" type="radio" value="yes" /> <span class="blue">发送短信</span></label>
- <label><input name="Rtz2" type="radio" value="no" /> 不发送短信</label>
- </li>
- <li class="l3"><input type="submit" value="保存修改" class="btn1" /></li>
- </ul>
- </form>
- </div>
- <!--E-->
-
- </div>
- </div>
- <?php include("bottom.php");?>
- <script type="text/javascript">
- //实例化编辑器
- var ue = UE.getEditor('editor');
- </script>
- </body>
- </html>
|