kclist.php 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. AdminSes_audit();
  5. $bh=$_GET[bh];
  6. ?>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8. <html xmlns="http://www.w3.org/1999/xhtml">
  9. <head>
  10. <meta http-equiv="x-ua-compatible" content="ie=7" />
  11. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  12. <title><?=webname?>管理系统</title>
  13. <link href="css/basic.css" rel="stylesheet" type="text/css" />
  14. <link href="css/product.css" rel="stylesheet" type="text/css" />
  15. <style type="text/css">
  16. .tcname{width:-moz-calc(100% - 34px);width:-webkit-calc(100% - 34px);width:calc(100% - 34px);margin:10px 10px 0 10px;background-color:#f2f2f2;border:#CCC solid 1px;padding:10px 0 10px 10px;text-align:left;}
  17. .upage{width:-moz-calc(100% - 22px);width:-webkit-calc(100% - 22px);width:calc(100% - 22px);margin-left:10px;margin-right:10px;}
  18. </style>
  19. <script type="text/javascript" src="js/jquery.min.js"></script>
  20. <script language="javascript" src="js/basic.js"></script>
  21. <script language="javascript" src="js/layer.js"></script>
  22. <script language="javascript">
  23. function ser(){
  24. location.href="kclist.php?bh=<?=$bh?>&st1="+document.getElementById("st1").value+"&st2="+document.getElementById("st2").value+"&sd1="+document.getElementById("sd1").value;
  25. }
  26. </script>
  27. </head>
  28. <body>
  29. <? if(!strstr($adminqx,",0,") && !strstr($adminqx,",0102,")){echo "<div class='noneqx'>无权限</div>";exit;}?>
  30. <!--B-->
  31. <ul class="psel">
  32. <li class="l1">使用情况:</li>
  33. <li class="l2">
  34. <select id="sd1">
  35. <option value="">==不限==</option>
  36. <option value="0"<? if(0==$_GET[sd1] && $_GET[sd1]!=""){?> selected="selected"<? }?>>未使用</option>
  37. <option value="1"<? if(1==$_GET[sd1]){?> selected="selected"<? }?>>已使用</option>
  38. </select>
  39. </li>
  40. <li class="l1">卡号:</li><li class="l2"><input value="<?=$_GET[st1]?>" type="text" id="st1" size="15" /></li>
  41. <li class="l1">密码:</li><li class="l2"><input value="<?=$_GET[st2]?>" type="text" id="st2" size="15" /></li>
  42. <li class="l3"><a href="javascript:ser()" class="a2">搜索</a></li>
  43. </ul>
  44. <ul class="ksedi">
  45. <li class="l2">
  46. <a href="javascript:checkDEL(25,'yjcode_kc')" style="margin-left:10px;" class="a2">删除</a>
  47. <a href="kc.php?bh=<?=$bh?>" class="a1">新增库存</a>
  48. </li>
  49. </ul>
  50. <ul class="kclistcap">
  51. <li class="l1"><input name="C2" type="checkbox" onclick="xuan()" /></li>
  52. <li class="l2">卡号</li>
  53. <li class="l3">密码</li>
  54. <li class="l4">使用情况</li>
  55. <li class="l5">交易时间</li>
  56. </ul>
  57. <?
  58. $ses=" where probh='".$bh."'";
  59. if($_GET[st1]!=""){$ses=$ses." and ka like '%".$_GET[st1]."%'";}
  60. if($_GET[st2]!=""){$ses=$ses." and mi like '%".$_GET[st2]."%'";}
  61. if($_GET[sd1]!=""){$ses=$ses." and ifok=".$_GET[sd1];}
  62. $page=$_GET["page"];if($page==""){$page=1;}else{$page=intval($_GET["page"]);}
  63. pagef($ses,30,"yjcode_kc","order by id asc");while($row=mysql_fetch_array($res)){
  64. ?>
  65. <ul class="kclist">
  66. <li class="l1"><input name="C1" type="checkbox" value="<?=$row[id]?>" /></li>
  67. <li class="l2"><a href="kc.php?bh=<?=$bh?>&id=<?=$row[id]?>&action=update"><?=$row[ka]?></a></li>
  68. <li class="l3"><?=$row[mi]?></li>
  69. <li class="l4"><? if(1==$row[ifok]){?><span class="red">已使用</span><? }else{?><span class="blue">未使用</span><? }?></li>
  70. <li class="l5"><?=$row[sj]?></li>
  71. </ul>
  72. <? }?>
  73. <?
  74. $nowurl="kclist.php";
  75. $nowwd="bh=".$bh."&st1=".$_GET[st1]."&st2=".$_GET[st2]."&sd1=".$_GET[sd1];
  76. include("page.php");
  77. ?>
  78. <!--E-->
  79. </body>
  80. </html>