taskgt1.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. sesCheck();
  5. $userid=returnuserid($_SESSION[SHOPUSER]);
  6. $bh=$_GET[bh];
  7. $hfid=$_GET[hfid];
  8. $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);
  9. if(!$rowtaskhf=mysql_fetch_array($restaskhf)){php_toheader("tasklist1.php");}
  10. $sqltask="select * from yjcode_task where bh='".$bh."' and taskty=1";mysql_query("SET NAMES 'GBK'");$restask=mysql_query($sqltask);
  11. if(!$rowtask=mysql_fetch_array($restask)){php_toheader("tasklist1.php");}
  12. //函数开始
  13. if($_GET[control]=="add"){
  14. zwzr();
  15. $txt=sqlzhuru1($_POST[content]);
  16. $sj=date("Y-m-d H:i:s");
  17. intotable("yjcode_tasklog","bh,userid,useridhf,admin,txt,sj,fj","'".$bh."',".$rowtask[userid].",".$userid.",2,'".$txt."','".$sj."',''");
  18. php_toheader("taskgt1.php?t=suc&bh=".$bh."&hfid=".$hfid);
  19. }
  20. //函数结果
  21. ?>
  22. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  23. <html xmlns="http://www.w3.org/1999/xhtml">
  24. <head>
  25. <meta http-equiv="x-ua-compatible" content="ie=7" />
  26. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  27. <title>用户管理面板 - <?=webname?></title>
  28. <? include("cssjs.html");?>
  29. <link href="css/task.css" rel="stylesheet" type="text/css" />
  30. <script type="text/javascript" src="../config/ueditor/ueditor.config.js"></script>
  31. <script type="text/javascript" src="../config/ueditor/ueditor.all.min.js"> </script>
  32. <script type="text/javascript" src="../config/ueditor/lang/zh-cn/zh-cn.js"></script>
  33. <script type="text/javascript">
  34. function tj(){
  35. layer.msg('正在处理数据,请稍候', {icon: 16 ,time: 0,shade :0.25});
  36. tjwait();
  37. f1.action="taskgt1.php?bh=<?=$bh?>&control=add&hfid=<?=$hfid?>";
  38. }
  39. </script>
  40. </head>
  41. <body>
  42. <? include("../tem/top.html");?>
  43. <? include("top.php");?>
  44. <div class="yjcode">
  45. <? include("left.php");?>
  46. <!--RB-->
  47. <div class="userright">
  48. <? include("rcap9.php");?>
  49. <script language="javascript">
  50. document.getElementById("rcap2").className="l1 l2";
  51. </script>
  52. <!--白B-->
  53. <div class="rkuang">
  54. <? include("taskv1.php");?>
  55. <div class="taskgtlist">
  56. <div class="cap">&nbsp;&nbsp;沟通记录</div>
  57. <ul class="u1">
  58. <li class="l1"><img src="<?=returntppd("../upload/".$rowtask[userid]."/user.jpg","img/nonetx.gif")?>" width="40" height="40" /></li>
  59. <li class="l2">[雇主] 发起任务<br><?=$rowtask[sj]?></li>
  60. </ul>
  61. <?
  62. while1("*","yjcode_tasklog where bh='".$bh."' and userid=".$rowtask[userid]." and useridhf=".$userid." order by sj asc");while($row1=mysql_fetch_array($res1)){
  63. $txt=$row1[txt];
  64. if($row1[admin]==1){$tp=returntppd("../upload/".$row1[userid]."/user.jpg","img/nonetx.gif");$sf="雇主";}
  65. elseif($row1[admin]==2){$tp=returntppd("../upload/".$row1[useridhf]."/user.jpg","img/nonetx.gif");$sf="接手方";}
  66. elseif($row1[admin]==3){$tp="img/nonetx.jpg";$sf="平台";}
  67. ?>
  68. <ul class="u1">
  69. <li class="l1"><img src="<?=$tp?>" width="40" height="40" /></li>
  70. <li class="l2">[<?=$sf?>] <?=$txt?><br><?=$row1[sj]?></li>
  71. </ul>
  72. <? }?>
  73. <? if($row[zt]==0 || $row[zt]==1){?>
  74. <form name="f1" method="post" onsubmit="return tj()">
  75. <ul class="u2">
  76. <li class="l1">回复内容:</li>
  77. <li class="l2"><script id="editor" name="content" type="text/plain" style="width:810px;height:400px;"></script></li>
  78. <li class="l3"><? tjbtnr("下一步","taskhflist1.php")?></li>
  79. </ul>
  80. </form>
  81. <? }?>
  82. </div>
  83. <div class="clear clear10"></div>
  84. </div>
  85. <!--白E-->
  86. </div>
  87. <!--RE-->
  88. </div>
  89. <script language="javascript">
  90. //实例化编辑器
  91. var ue= UE.getEditor('editor'
  92. , {
  93. toolbars:[
  94. ['fullscreen', 'source', '|', 'undo', 'redo', '|',
  95. 'removeformat', 'formatmatch' ,'|', 'forecolor',
  96. 'fontsize', '|',
  97. 'link', 'unlink',
  98. 'insertimage', 'emotion', 'attachment']
  99. ]
  100. });
  101. </script>
  102. <div class="clear clear15"></div>
  103. <? include("../tem/bottom.html");?>
  104. </body>
  105. </html>