taskgt.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. sesCheck();
  5. $bh=$_GET[bh];
  6. $userid=returnuserid($_SESSION[SHOPUSER]);
  7. $sqltask="select * from yjcode_task where bh='".$bh."' and taskty=0 and useridhf=".$userid."";mysql_query("SET NAMES 'GBK'");$restask=mysql_query($sqltask);
  8. if(!$rowtask=mysql_fetch_array($restask)){php_toheader("taskhflist.php");}
  9. $sqltaskhf="select * from yjcode_taskhf where bh='".$bh."' and taskty=0 and useridhf=".$rowtask[useridhf]." and ifxz=1";mysql_query("SET NAMES 'GBK'");$restaskhf=mysql_query($sqltaskhf);
  10. if(!$rowtaskhf=mysql_fetch_array($restaskhf)){php_toheader("taskhflist.php");}
  11. //函数开始
  12. if($_GET[control]=="add"){
  13. zwzr();
  14. $txt=sqlzhuru1($_POST[content]);
  15. $sj=date("Y-m-d H:i:s");
  16. intotable("yjcode_tasklog","bh,userid,useridhf,admin,txt,sj,fj","'".$bh."',".$rowtask[userid].",".$userid.",2,'".$txt."','".$sj."',''");
  17. php_toheader("taskgt.php?t=suc&bh=".$bh);
  18. }
  19. //函数结果
  20. ?>
  21. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  22. <html xmlns="http://www.w3.org/1999/xhtml">
  23. <head>
  24. <meta http-equiv="x-ua-compatible" content="ie=7" />
  25. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  26. <title>用户管理面板 - <?=webname?></title>
  27. <? include("cssjs.html");?>
  28. <link href="css/task.css" rel="stylesheet" type="text/css" />
  29. <script type="text/javascript" src="../config/ueditor/ueditor.config.js"></script>
  30. <script type="text/javascript" src="../config/ueditor/ueditor.all.min.js"> </script>
  31. <script type="text/javascript" src="../config/ueditor/lang/zh-cn/zh-cn.js"></script>
  32. <script type="text/javascript">
  33. function tj(){
  34. layer.msg('正在处理中,请稍候', {icon: 16 ,time: 0,shade :0.25});
  35. tjwait();
  36. f1.action="taskgt.php?bh=<?=$bh?>&control=add";
  37. }
  38. </script>
  39. </head>
  40. <body>
  41. <? include("../tem/top.html");?>
  42. <? include("top.php");?>
  43. <div class="yjcode">
  44. <? include("left.php");?>
  45. <!--RB-->
  46. <div class="userright">
  47. <? include("rcap9.php");?>
  48. <script language="javascript">
  49. document.getElementById("rcap1").className="l1 l2";
  50. </script>
  51. <!--白B-->
  52. <div class="rkuang">
  53. <? include("taskv.php");?>
  54. <div class="taskgtlist">
  55. <div class="cap">&nbsp;&nbsp;沟通记录</div>
  56. <ul class="u1">
  57. <li class="l1"><img src="<?=returntppd("../upload/".$rowtask[userid]."/user.jpg","img/nonetx.gif")?>" width="40" height="40" /></li>
  58. <li class="l2">[雇主] 发起任务<br><?=$rowtask[sj]?></li>
  59. </ul>
  60. <?
  61. while1("*","yjcode_tasklog where bh='".$bh."' order by sj asc");while($row1=mysql_fetch_array($res1)){
  62. $txt=$row1[txt];
  63. if($row1[admin]==1){$tp=returntppd("../upload/".$row1[userid]."/user.jpg","img/nonetx.gif");$sf="雇主";}
  64. elseif($row1[admin]==2){$tp=returntppd("../upload/".$row1[useridhf]."/user.jpg","img/nonetx.gif");$sf="接手方";}
  65. elseif($row1[admin]==3){$tp="img/nonetx.jpg";$sf="平台";}
  66. ?>
  67. <ul class="u1">
  68. <li class="l1"><img src="<?=$tp?>" width="40" height="40" /></li>
  69. <li class="l2">[<?=$sf?>] <?=$txt?><br><?=$row1[sj]?></li>
  70. </ul>
  71. <? }?>
  72. <? if($rowtask[zt]==3 || $rowtask[zt]==4 || $rowtask[zt]==8){?>
  73. <form name="f1" method="post" onsubmit="return tj()">
  74. <ul class="uk">
  75. <li class="l7">回复内容:</li>
  76. <li class="l8"><script id="editor" name="content" type="text/plain" style="width:750px;height:380px;"></script></li>
  77. <li class="l3"></li>
  78. <li class="l4"><? tjbtnr("下一步","taskhflist.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>