kclist_tc.php 3.8 KB

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