taskgts.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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 userid=".$userid."";mysql_query("SET NAMES 'GBK'");$restask=mysql_query($sqltask);
  8. if(!$rowtask=mysql_fetch_array($restask)){php_toheader("tasklist.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("tasklist.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].",".$rowtask[useridhf].",1,'".$txt."','".$sj."',''");
  17. php_toheader("taskgts.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. f1.action="taskgts.php?bh=<?=$bh?>&control=add";
  36. }
  37. </script>
  38. </head>
  39. <body>
  40. <? include("../tem/top.html");?>
  41. <? include("top.php");?>
  42. <div class="yjcode">
  43. <? include("left.php");?>
  44. <!--RB-->
  45. <div class="userright">
  46. <? include("rcap17.php");?>
  47. <script language="javascript">
  48. document.getElementById("rcap1").className="l1 l2";
  49. </script>
  50. <!--白B-->
  51. <div class="rkuang">
  52. <? include("taskv.php");?>
  53. <?
  54. while2("*","yjcode_user where id=".$rowtaskhf[useridhf]);$row2=mysql_fetch_array($res2);
  55. ?>
  56. <ul class="taskmain">
  57. <li class="l1">中标用户:</li>
  58. <li class="l3"><?=$row2[nc]?></li>
  59. <li class="l1">联系QQ:</li>
  60. <li class="l3"><a href="http://wpa.qq.com/msgrd?v=3&uin=<?=$row2[uqq]?>&site=<?=weburl?>&menu=yes" target="_blank"><?=$row2[uqq]?></a></li>
  61. <li class="l1">联系电话:</li>
  62. <li class="l3"><?=$row2[mot]?></li>
  63. <li class="l1">用户报价:</li>
  64. <li class="l3"><strong class="red">¥<?=$rowtaskhf[money1]?></strong></li>
  65. <li class="l1">中介费用:</li>
  66. <li class="l3">
  67. <?
  68. if(empty($rowtask[yjfs])){echo "雇主承担,费用为<strong class='feng'>¥".$rowtaskhf[money1]*$rowcontrol[taskyj]."</strong>";}
  69. elseif($rowtask[yjfs]==1){echo "接手方承担";}
  70. elseif($rowtask[yjfs]==2){echo "双方各承担一半,费用为<strong class='feng'>¥".$rowtaskhf[money1]*$rowcontrol[taskyj]*0.5."</strong>";}
  71. ?>
  72. </li>
  73. <li class="l1">用户IP:</li>
  74. <li class="l3"><a href="https://www.baidu.com/s?wd=<?=$rowtaskhf[uip]?>" target="_blank"><?=$rowtaskhf[uip]?></a></li>
  75. <li class="l1">报名时间:</li>
  76. <li class="l3"><?=$rowtaskhf[sj]?></li>
  77. <li class="l1">中标时间:</li>
  78. <li class="l3"><?=$rowtaskhf[zbsj]?></li>
  79. <li class="l1">任务截止:</li>
  80. <li class="l3 red"><?=$rowtaskhf[rwdq]?></li>
  81. <li class="l4">接手留言:</li>
  82. <li class="l5"><?=strip_tags(returnjgdw($rowtaskhf[txt],"","未填写任何说明"))?></li>
  83. </ul>
  84. <div class="taskgtlist">
  85. <div class="cap">&nbsp;&nbsp;沟通记录</div>
  86. <ul class="u1">
  87. <li class="l1"><img src="<?=returntppd("../upload/".$rowtask[userid]."/user.jpg","img/nonetx.gif")?>" width="40" height="40" /></li>
  88. <li class="l2">[雇主] 发起任务<br><?=$rowtask[sj]?></li>
  89. </ul>
  90. <?
  91. while1("*","yjcode_tasklog where bh='".$bh."' order by sj asc");while($row1=mysql_fetch_array($res1)){
  92. $txt=$row1[txt];
  93. if($row1[admin]==1){$tp=returntppd("../upload/".$row1[userid]."/user.jpg","img/nonetx.gif");$sf="雇主";}
  94. elseif($row1[admin]==2){$tp=returntppd("../upload/".$row1[useridhf]."/user.jpg","img/nonetx.gif");$sf="接手方";}
  95. elseif($row1[admin]==3){$tp="img/nonetx.jpg";$sf="平台";}
  96. ?>
  97. <ul class="u1">
  98. <li class="l1"><img src="<?=$tp?>" width="40" height="40" /></li>
  99. <li class="l2">[<?=$sf?>] <?=$txt?><br><?=$row1[sj]?></li>
  100. </ul>
  101. <? }?>
  102. <div class="clear clear10"></div>
  103. <? if($rowtask[zt]==3 || $rowtask[zt]==4 || $rowtask[zt]==8){?>
  104. <form name="f1" method="post" onsubmit="return tj()">
  105. <ul class="u2">
  106. <li class="l1">回复内容:</li>
  107. <li class="l2"><script id="editor" name="content" type="text/plain" style="width:810px;height:400px;"><?=$row[txt]?></script></li>
  108. <li class="l3"><? tjbtnr("提交内容","tasklist.php")?></li>
  109. </ul>
  110. </form>
  111. <? }?>
  112. </div>
  113. <div class="clear clear10"></div>
  114. </div>
  115. <!--白E-->
  116. </div>
  117. <!--RE-->
  118. </div>
  119. <script language="javascript">
  120. //实例化编辑器
  121. var ue= UE.getEditor('editor'
  122. , {
  123. toolbars:[
  124. ['fullscreen', 'source', '|', 'undo', 'redo', '|',
  125. 'removeformat', 'formatmatch' ,'|', 'forecolor',
  126. 'fontsize', '|',
  127. 'link', 'unlink',
  128. 'insertimage', 'emotion', 'attachment']
  129. ]
  130. });
  131. </script>
  132. <div class="clear clear15"></div>
  133. <? include("../tem/bottom.html");?>
  134. </body>
  135. </html>