taskysjs.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. sesCheck();
  5. $bh=$_GET[bh];
  6. $sj=date("Y-m-d H:i:s");
  7. $useridhf=returnuserid($_SESSION[SHOPUSER]);
  8. $sqltask="select * from yjcode_task where bh='".$bh."' and taskty=0 and zt=3 and useridhf=".$useridhf."";mysql_query("SET NAMES 'GBK'");$restask=mysql_query($sqltask);
  9. if(!$rowtask=mysql_fetch_array($restask)){php_toheader("taskhflist.php");}
  10. if($_GET[control]=="ys"){
  11. $bh=$_GET[bh];
  12. updatetable("yjcode_task","zt=4 where id=".$rowtask[id]);
  13. $oksj=date("Y-m-d H:i:s",strtotime("+".$rowcontrol[taskoksj]." day"));
  14. updatetable("yjcode_taskhf","ystxt='".sqlzhuru($_POST[content])."',oksj='".$oksj."' where bh='".$bh."' and ifxz=1 and useridhf=".$useridhf." and taskty=0");
  15. $sj=date("Y-m-d H:i:s");
  16. $txt="已经完成任务,发起验收申请,雇主需要在".$oksj."前处理本次验收";
  17. intotable("yjcode_tasklog","bh,userid,useridhf,admin,txt,sj,fj","'".$bh."',".$rowtask[userid].",".$useridhf.",2,'".$txt."','".$sj."',''");
  18. php_toheader("taskhflist.php");
  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. if(!confirm("确定提交该操作吗?")){return false;}
  35. layer.msg('正在处理', {icon: 16 ,time: 0,shade :0.25});
  36. f1.action="taskysjs.php?bh=<?=$bh?>&control=ys";
  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. <?
  55. while1("*","yjcode_taskhf where bh='".$bh."' and ifxz=1");if($row1=mysql_fetch_array($res1)){
  56. while2("*","yjcode_user where id=".$row1[useridhf]);$row2=mysql_fetch_array($res2);
  57. ?>
  58. <form name="f1" method="post" onsubmit="return tj()">
  59. <ul class="uk">
  60. <li class="l7">验收说明:</li>
  61. <li class="l8"><script id="editor" name="content" type="text/plain" style="width:770px;height:400px;"></script></li>
  62. <li class="l3"><? tjbtnr("请求验收","taskhflist.php")?></li>
  63. </ul>
  64. </form>
  65. <? }?>
  66. <div class="clear clear10"></div>
  67. </div>
  68. <!--白E-->
  69. </div>
  70. <!--RE-->
  71. </div>
  72. <script language="javascript">
  73. //实例化编辑器
  74. var ue= UE.getEditor('editor'
  75. , {
  76. toolbars:[
  77. ['fullscreen', 'source', '|', 'undo', 'redo', '|',
  78. 'removeformat', 'formatmatch' ,'|', 'forecolor',
  79. 'fontsize', '|',
  80. 'link', 'unlink',
  81. 'insertimage', 'emotion', 'attachment']
  82. ]
  83. });
  84. </script>
  85. <div class="clear clear15"></div>
  86. <? include("../tem/bottom.html");?>
  87. </body>
  88. </html>