taskgt.php 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?
  2. include("../../config/conn.php");
  3. include("../../config/function.php");
  4. sesCheck_m();
  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. <html>
  22. <head>
  23. <meta http-equiv="x-ua-compatible" content="ie=7" />
  24. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  25. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
  26. <title>会员中心 <?=webname?></title>
  27. <? include("../tem/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 language="javascript">
  33. function tj(){
  34. if(!confirm("确定提交该操作吗?")){return false;}
  35. layer.open({type: 2,content: '正在提交',shadeClose:false});
  36. f1.action="taskgt.php?bh=<?=$bh?>&control=add";
  37. }
  38. </script>
  39. </head>
  40. <body>
  41. <? include("topuser.php");?>
  42. <div class="bfbtop1 box">
  43. <div class="d1" onClick="gourl('../task/view<?=$rowtask[id]?>.html')"><img src="img/topleft.png" height="21" /></div>
  44. <div class="d2">单人任务沟通记录</div>
  45. <div class="d3"></div>
  46. </div>
  47. <? include("taskv.php");?>
  48. <div class="taskmain1 box"><div class="d1"></div><div class="d2">沟通记录</div></div>
  49. <div class="gtlistv box">
  50. <div class="gtlist">
  51. <ul class="u1 u0">
  52. <li class="l1"><img src="<?=returntppd("../../upload/".$rowtask[userid]."/user.jpg","../img/nonetx.gif")?>" width="40" height="40" /></li>
  53. <li class="l2">[雇主] 发起任务<br><?=$rowtask[sj]?></li>
  54. </ul>
  55. <?
  56. while1("*","yjcode_tasklog where bh='".$bh."' order by sj asc");while($row1=mysql_fetch_array($res1)){
  57. $txt=$row1[txt];
  58. if($row1[admin]==1){$tp=returntppd("../../upload/".$row1[userid]."/user.jpg","../img/nonetx.jpg");$sf="雇主";}
  59. elseif($row1[admin]==2){$tp=returntppd("../../upload/".$row1[useridhf]."/user.jpg","../img/nonetx.jpg");$sf="接手方";}
  60. elseif($row1[admin]==3){$tp="../img/nonetx.jpg";$sf="平台";}
  61. ?>
  62. <ul class="u1">
  63. <li class="l1"><img src="<?=$tp?>" width="40" height="40" /></li>
  64. <li class="l2">[<?=$sf?>] <?=$txt?><br><?=$row1[sj]?></li>
  65. </ul>
  66. <? }?>
  67. </div>
  68. </div>
  69. <? if($rowtask[zt]==3 || $rowtask[zt]==4 || $rowtask[zt]==8){?>
  70. <form name="f1" method="post" onSubmit="return tj()">
  71. <div class="taskmain1 box"><div class="d1"></div><div class="d2">回复内容</div></div>
  72. <div class="txtbox box">
  73. <div class="dmain">
  74. <script id="editor" name="content" type="text/plain" style="width:100%;height:200px;"></script>
  75. </div>
  76. </div>
  77. <div class="fbbtn box">
  78. <div class="d1"><? tjbtnr_m("提交内容")?></div>
  79. </div>
  80. </form>
  81. <? }?>
  82. <script type="text/javascript">
  83. var ue= UE.getEditor('editor',{toolbars:[[ 'source', '|', 'forecolor','fontsize', '|','link', 'unlink','simpleupload']]});
  84. </script>
  85. </body>
  86. </html>