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

160 lines
5.5KB

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