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

170 lines
6.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/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" href="shops_orders.php">商品订单</a>
  30. </li>
  31. <li class="nav-item">
  32. <a class="nav-link active" href="shops_products.php">已购商品</a>
  33. </li>
  34. </ul>
  35. <?php if(!empty($oid)){ ?>
  36. <table width="100%" cellpadding="0" cellspacing="0" class="table">
  37. <thead>
  38. <tr>
  39. <th colspan="2">订单信息</th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. <tr>
  44. <td width="15%" align="right">订单号:</td>
  45. <td><?php echo $oid?></td>
  46. </tr>
  47. <tr>
  48. <td align="right">支付方式:</td>
  49. <td><?php echo GetSta($row['state'],$oid)?></td>
  50. </tr>
  51. <tr>
  52. <td align="right">单价(元):</td>
  53. <td><?php echo $row['uprice']?>元</td>
  54. </tr>
  55. <tr>
  56. <td align="right">数量:</td>
  57. <td><?php echo $row['cartcount']?></td>
  58. </tr>
  59. <tr>
  60. <td align="right">配送:</td>
  61. <td>
  62. <?echo $row['dname'];?> 费用:<?php echo $row['dprice']?>元
  63. </td>
  64. </tr>
  65. <tr>
  66. <td align="right">总计:</td>
  67. <td><?php echo $row['priceCount']?>元</td>
  68. </tr>
  69. <tr>
  70. <td align="right">发生时间:</td>
  71. <td><?php echo GetDateTimeMk($row['stime'])?></td>
  72. </tr>
  73. <tr>
  74. <td align="right">收货人:</td>
  75. <td><?php echo $row['consignee']?></td>
  76. </tr>
  77. <tr>
  78. <td align="right">地址:</td>
  79. <td><?php echo $row['address']?></td>
  80. </tr>
  81. <tr>
  82. <td align="right">邮编:</td>
  83. <td><?php echo $row['zip']?></td>
  84. </tr>
  85. <tr>
  86. <td align="right">联系电话:</td>
  87. <td><?php echo $row['tel']?></td>
  88. </tr>
  89. <tr>
  90. <td align="right">邮箱:</td>
  91. <td><?php echo $row['email']?></td>
  92. </tr>
  93. <tr>
  94. <td align="right">留言:</td>
  95. <td><?php echo $row['des']?></td>
  96. </tr>
  97. </tbody>
  98. </table>
  99. <?php
  100. }
  101. ?>
  102. <table cellspacing="1" class="table">
  103. <thead>
  104. <tr>
  105. <th width="30%" colspan="2">订单号</th>
  106. <th width="14%">名称</th>
  107. <th width="10%">数量</th>
  108. <th width="14%">单价</th>
  109. <th width="12%">时间</th>
  110. </tr>
  111. </thead>
  112. <form name="form1" action="shops_products.php" method="post">
  113. <input type="hidden" name="dopost" value="del">
  114. <tbody>
  115. {dede:datalist}
  116. <tr>
  117. <td align="center"><input type="checkbox" name="deleteid" value="{dede:field.oid/}" /></td>
  118. <td align="center"><a href="shops_products.php?do=show&oid={dede:field.oid/}">{dede:field.oid/}</a></td>
  119. <td align="center"><a href="<?php echo $cfg_cmspath;?>/apps/view.php?aid={dede:field.aid/}" target="_blank">{dede:field.title/}</a></td>
  120. <td align="center">{dede:field.buynum/}</td>
  121. <td align="center">{dede:field.price/}</td>
  122. <td align="center">{dede:field.oid function="carTime(@me)"/}</td>
  123. </tr>
  124. {/dede:datalist}
  125. <tr>
  126. <td colspan="6">
  127. <button id="checkedClick" type="button" class="btn btn-success btn-sm">全选</button>
  128. <button type="button" onclick="DoSubmit()" class="btn btn-success btn-sm">删除选中</button>
  129. </td>
  130. </tr>
  131. </tbody>
  132. </form>
  133. </table>
  134. <nav>{dede:pagelist listsize='6'/}</nav>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. </div>
  141. </main>
  142. <?php include(DEDEMEMBER."/templets/footer.htm"); ?>
  143. <script>
  144. //获得选中文件的文件名
  145. function GetCheckfolderItem() {
  146. var allSel = '';
  147. if (document.form1.deleteid.value) return document.form1.deleteid.value;
  148. for (i = 0; i < document.form1.deleteid.length; i++) {
  149. if (document.form1.deleteid[i].checked) {
  150. if (allSel == '')
  151. allSel = document.form1.deleteid[i].value;
  152. else
  153. allSel = allSel + "," + document.form1.deleteid[i].value;
  154. }
  155. }
  156. return allSel;
  157. }
  158. function DoSubmit() {
  159. var selid = GetCheckfolderItem();
  160. if (selid == '') {
  161. alert("您没选中任何信息");
  162. return false;
  163. }
  164. if (window.confirm("您确定要删除这些消息吗")) {
  165. location = "shops_products.php?dopost=del&ids=" + selid;
  166. }
  167. }
  168. </script>
  169. </body>
  170. </html>