taskgt1.php 3.8 KB

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