| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <?
- include("../config/conn.php");
- include("../config/function.php");
- sesCheck();
- $userid=returnuserid($_SESSION[SHOPUSER]);
- $bh=$_GET[bh];
- while0("*","yjcode_gd where userid=".$userid." and bh='".$bh."'");if(!$row=mysql_fetch_array($res)){php_toheader("gdlist.php");}
- //函数开始
- if($_GET[control]=="add"){
- zwzr();
- $txt=sqlzhuru1($_POST[content]);
- $sj=date("Y-m-d H:i:s");
- if(!empty($txt)){
- if($row[gdzt]!=4){
- intotable("yjcode_gdhf","userid,gdbh,admin,txt,sj,zt","".$row[userid].",'".$bh."',2,'".$txt."','".$sj."',0");
- }
- }
- updatetable("yjcode_gd","gdzt=1 where id=".$row[id]);
- php_toheader("gdhf.php?t=suc&bh=".$bh);
- }
- //函数结果
- ?>
- <!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>
- <? include("cssjs.html");?>
- <link href="css/hudong.css" rel="stylesheet" type="text/css" />
- <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>
- <script type="text/javascript">
- function tj(){
- layer.msg('正在处理数据,请稍候', {icon: 16 ,time: 0,shade :0.25});
- tjwait();
- f1.action="gdhf.php?bh=<?=$bh?>&control=add";
- }
- </script>
- </head>
- <body>
- <? include("../tem/top.html");?>
- <? include("top.php");?>
- <div class="yjcode">
- <? include("left.php");?>
- <!--RB-->
- <div class="userright">
-
- <? include("rcap12.php");?>
- <script language="javascript">
- document.getElementById("rcap1").className="l1 l2";
- </script>
- <!--白B-->
- <div class="rkuang">
-
- <ul class="uk">
- <li class="l1">工单状态:</li>
- <li class="l21"><?=returngdzt($row[gdzt])?></li>
- </ul>
- <div class="gdhflist">
- <div class="cap"> 沟通记录</div>
- <ul class="u1">
- <li class="l1"><img src="../upload/<?=$row[userid]?>/user.jpg" width="40" height="40" /></li>
- <li class="l2"><?=$row[txt]?><br><?=$row[sj]?></li>
- </ul>
- <?
- while1("*","yjcode_gdhf where gdbh='".$bh."' and zt=0 order by sj asc");while($row1=mysql_fetch_array($res1)){
- $txt=$row1[txt];
- $tp="../upload/".$row1[userid]."/user.jpg";
- if($row1[admin]==1){$txt="<strong>".$txt."</strong>";$tp="img/nonetx.jpg";}
- ?>
- <ul class="u1">
- <li class="l1"><img src="<?=$tp?>" width="40" height="40" /></li>
- <li class="l2"><?=$txt?><br><?=$row1[sj]?></li>
- </ul>
- <? }?>
-
- <? if($row[gdzt]!=4){?>
- <form name="f1" method="post" onsubmit="return tj()">
- <ul class="u2">
- <li class="l1">回复内容:</li>
- <li class="l2"><script id="editor" name="content" type="text/plain" style="width:810px;height:400px;"></script></li>
- <li class="l3"><? tjbtnr("下一步","gdlist.php")?></li>
- </ul>
- </form>
- <? }?>
- </div>
-
- <div class="clear clear10"></div>
-
- </div>
- <!--白E-->
- </div>
- <!--RE-->
- </div>
- <script language="javascript">
- //实例化编辑器
- var ue= UE.getEditor('editor'
- , {
- toolbars:[
- ['fullscreen', 'source', '|', 'undo', 'redo', '|',
- 'removeformat', 'formatmatch' ,'|', 'forecolor',
- 'fontsize', '|',
- 'link', 'unlink',
- 'insertimage', 'emotion', 'attachment']
- ]
- });
- </script>
- <div class="clear clear15"></div>
- <? include("../tem/bottom.html");?>
- </body>
- </html>
|