| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <?
- include("../config/conn.php");
- include("../config/function.php");
- sesCheck();
- $userid=returnuserid($_SESSION[SHOPUSER]);
- $bh=$_GET[bh];
- $hfid=$_GET[hfid];
- $sqltaskhf="select * from yjcode_taskhf where bh='".$bh."' and useridhf=".$userid." and taskty=1 and id=".$hfid."";mysql_query("SET NAMES 'GBK'");$restaskhf=mysql_query($sqltaskhf);
- if(!$rowtaskhf=mysql_fetch_array($restaskhf)){php_toheader("tasklist1.php");}
- $sqltask="select * from yjcode_task where bh='".$bh."' and taskty=1";mysql_query("SET NAMES 'GBK'");$restask=mysql_query($sqltask);
- if(!$rowtask=mysql_fetch_array($restask)){php_toheader("tasklist1.php");}
- //函数开始
- if($_GET[control]=="add"){
- zwzr();
- $txt=sqlzhuru1($_POST[content]);
- $sj=date("Y-m-d H:i:s");
- intotable("yjcode_tasklog","bh,userid,useridhf,admin,txt,sj,fj","'".$bh."',".$rowtask[userid].",".$userid.",2,'".$txt."','".$sj."',''");
- php_toheader("taskgt1.php?t=suc&bh=".$bh."&hfid=".$hfid);
- }
- //函数结果
- ?>
- <!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/task.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="taskgt1.php?bh=<?=$bh?>&control=add&hfid=<?=$hfid?>";
- }
- </script>
- </head>
- <body>
- <? include("../tem/top.html");?>
- <? include("top.php");?>
- <div class="yjcode">
- <? include("left.php");?>
- <!--RB-->
- <div class="userright">
-
- <? include("rcap9.php");?>
- <script language="javascript">
- document.getElementById("rcap2").className="l1 l2";
- </script>
- <!--白B-->
- <div class="rkuang">
-
- <? include("taskv1.php");?>
- <div class="taskgtlist">
- <div class="cap"> 沟通记录</div>
- <ul class="u1">
- <li class="l1"><img src="<?=returntppd("../upload/".$rowtask[userid]."/user.jpg","img/nonetx.gif")?>" width="40" height="40" /></li>
- <li class="l2">[雇主] 发起任务<br><?=$rowtask[sj]?></li>
- </ul>
- <?
- while1("*","yjcode_tasklog where bh='".$bh."' and userid=".$rowtask[userid]." and useridhf=".$userid." order by sj asc");while($row1=mysql_fetch_array($res1)){
- $txt=$row1[txt];
- if($row1[admin]==1){$tp=returntppd("../upload/".$row1[userid]."/user.jpg","img/nonetx.gif");$sf="雇主";}
- elseif($row1[admin]==2){$tp=returntppd("../upload/".$row1[useridhf]."/user.jpg","img/nonetx.gif");$sf="接手方";}
- elseif($row1[admin]==3){$tp="img/nonetx.jpg";$sf="平台";}
- ?>
- <ul class="u1">
- <li class="l1"><img src="<?=$tp?>" width="40" height="40" /></li>
- <li class="l2">[<?=$sf?>] <?=$txt?><br><?=$row1[sj]?></li>
- </ul>
- <? }?>
-
- <? if($row[zt]==0 || $row[zt]==1){?>
- <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("下一步","taskhflist1.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>
|