国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
4.0KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang;?>">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>商城订单-会员中心-<?php echo $cfg_webname;?></title>
  7. <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script>
  8. <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css">
  10. <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css">
  11. <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/user.css">
  12. </head>
  13. <body>
  14. <?php pasterTempletDiy('top.htm');?>
  15. <div class="container py-3">
  16. <div class="row">
  17. <?php
  18. $_menu_order = true;
  19. $_menu_orderstate = 1;
  20. ?>
  21. <?php include(DEDEMEMBER."/templets/menu.htm");?>
  22. <div class="pannel-main col-md-9 mb-3">
  23. <div class="pannel-main-container shadow-sm rounded">
  24. <div class="mb-3">
  25. <ul class="nav nav-tabs">
  26. <li class="nav-item"><a class="nav-link active" href="shops_orders.php">商品订单</a></li>
  27. <li class="nav-item"><a class="nav-link" href="shops_products.php">已购商品</a></li>
  28. </ul>
  29. </div>
  30. <div class="mb-3">
  31. <form name="form3" action="shops_products.php" method="get">
  32. <div class="input-group">
  33. <input class="form-control" type="text" name="oid" size="40" placeholder="请输入订单号" value="">
  34. <div class="input-group-append"><button class="btn btn-success" type="submit">搜索</button></div>
  35. </div>
  36. </form>
  37. </div>
  38. <table width="100%" cellpadding="0" cellspacing="0" class="table">
  39. <thead>
  40. <tr>
  41. <th width="30%" colspan="2">订单号</th>
  42. <th width="14%">状态</th>
  43. <th width="10%">数量</th>
  44. <th width="14%">总计</th>
  45. <th width="12%">时间</th>
  46. </tr>
  47. </thead>
  48. <form name="form1" action="shops_orders.php" method="post">
  49. <input type="hidden" name="dopost" value="del">
  50. <tbody>
  51. {dede:datalist}
  52. <tr>
  53. <td align="center"><input type="checkbox" name="deleteid" value="{dede:field.oid/}" /></td>
  54. <td align="center"><a href="shops_products.php?do=show&oid={dede:field.oid/}">{dede:field.oid/}</a></td>
  55. <td align="center"><?php echo GetSta($fields["state"],$fields["oid"])?></td>
  56. <td align="center">{dede:field.cartcount/}</td>
  57. <td align="center">{dede:field.priceCount/}</td>
  58. <td align="center">{dede:field.stime function="Mydate('Y-m-d h:i:s',@me)"/}</td>
  59. </tr>
  60. {/dede:datalist}
  61. <tr>
  62. <td colspan="6">
  63. <button id="checkedClick" type="button" class="btn btn-success">全选</button>
  64. <button type="button" onclick="DoSubmit()" class="btn btn-danger">删除</button>
  65. </td>
  66. </tr>
  67. </tbody>
  68. </form>
  69. </table>
  70. <nav>{dede:pagelist listsize='6'/}</nav>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. <?php pasterTempletDiy('foot.htm');?>
  76. <script>
  77. //获得选中文件的文件名
  78. function GetCheckfolderItem() {
  79. var allSel = '';
  80. if (document.form1.deleteid.value) return document.form1.deleteid.value;
  81. for (i = 0; i < document.form1.deleteid.length; i++) {
  82. if (document.form1.deleteid[i].checked) {
  83. if (allSel == '')
  84. allSel = document.form1.deleteid[i].value;
  85. else
  86. allSel = allSel + "," + document.form1.deleteid[i].value;
  87. }
  88. }
  89. return allSel;
  90. }
  91. function DoSubmit() {
  92. var selid = GetCheckfolderItem();
  93. if (selid == '') {
  94. alert("您没选中任何信息");
  95. return false;
  96. }
  97. if (window.confirm("您确定要删除这些消息吗")) {
  98. location = "shops_orders.php?dopost=del&ids=" + selid;
  99. }
  100. }
  101. </script>
  102. </body>
  103. </html>