国内流行的内容管理系统(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.

113 lines
4.4KB

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