gdlist.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. sesCheck();
  5. $userid=returnuserid($_SESSION[SHOPUSER]);
  6. if($_GET[page]!=""){$page=$_GET[page];}else{$page=1;}
  7. $ses=" where zt<>99 and userid=".$userid;
  8. if($_GET[control]=="del"){
  9. deletetable("yjcode_gd where userid=".$userid." and bh='".$_GET[bh]."'");
  10. deletetable("yjcode_gdhf where userid=".$userid." and gdbh='".$_GET[bh]."'");
  11. php_toheader("gdlist.php?t=suc");
  12. }
  13. ?>
  14. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  15. <html xmlns="http://www.w3.org/1999/xhtml">
  16. <head>
  17. <meta http-equiv="x-ua-compatible" content="ie=7" />
  18. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  19. <title>用户管理面板 - <?=webname?></title>
  20. <? include("cssjs.html");?>
  21. <link href="css/hudong.css" rel="stylesheet" type="text/css" />
  22. <script language="javascript">
  23. function del(x){
  24. if(confirm("确认删除该工单信息吗?")){
  25. layer.msg('正在处理数据,请稍候', {icon: 16 ,time: 0,shade :0.25});
  26. location.href="gdlist.php?control=del&bh="+x;
  27. }else{return false;}
  28. }
  29. </script>
  30. </head>
  31. <body>
  32. <? include("../tem/top.html");?>
  33. <? include("top.php");?>
  34. <div class="yjcode">
  35. <? include("left.php");?>
  36. <!--RB-->
  37. <div class="userright">
  38. <? include("rcap12.php");?>
  39. <script language="javascript">
  40. document.getElementById("rcap1").className="l1 l2";
  41. </script>
  42. <!--白B-->
  43. <div class="rkuang">
  44. <? systs("恭喜您,操作成功!","gdlist.php")?>
  45. <ul class="gdcap">
  46. <li class="l1">工单编号</li>
  47. <li class="l2">问题内容</li>
  48. <li class="l3">提交时间</li>
  49. <li class="l4">状态</li>
  50. <li class="l5">操作</li>
  51. </ul>
  52. <? pagef($ses,20,"yjcode_gd","order by sj desc");while($row=mysql_fetch_array($res)){?>
  53. <ul class="gdlist" onmouseover="this.className='gdlist gdlist1';" onmouseout="this.className='gdlist';">
  54. <li class="l1"><?=$row[bh]?></li>
  55. <li class="l2"><a href="gdhf.php?bh=<?=$row[bh]?>"><?=strgb2312(strip_tags($row[txt]),0,45)?></a></li>
  56. <li class="l3"><?=$row[sj]?></li>
  57. <li class="l4"><?=returngdzt($row[gdzt])?></li>
  58. <li class="l5">
  59. <a href="gdhf.php?bh=<?=$row[bh]?>">查看</a> |
  60. <a href="javascript:void(0);" onclick="del('<?=$row[bh]?>')">删除</a>
  61. </li>
  62. </ul>
  63. <? }?>
  64. <?
  65. $nowurl="gdlist.php";
  66. $nowwd="";
  67. include("page.php");
  68. ?>
  69. <div class="clear clear10"></div>
  70. </div>
  71. <!--白E-->
  72. </div>
  73. <!--RE-->
  74. </div>
  75. <div class="clear clear15"></div>
  76. <? include("../tem/bottom.html");?>
  77. </body>
  78. </html>