国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="{dede:global name='cfg_soft_lang'/}">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>订单号{dede:var.carts.orders_id/}-购物车-<?php echo $cfg_webname; ?></title>
  7. <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css">
  10. <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script>
  11. </head>
  12. <body>
  13. <?php pasterTempletDiy('header.htm');?>
  14. <div class="container">
  15. <div class="sp-title">
  16. <h2>购物车</h2>
  17. </div>
  18. <div id="errorChickCookie" class="clear center mt1" style="font-style:inherit;color:#545b62;font-weight:normal;padding:10px 0;text-align:center">
  19. </div>
  20. <div class="buycar">
  21. <h3>我的购物车 - <em id="carId">{dede:var.carts.orders_id/}</em>订单号</h3>
  22. <form id="form1" name="form1" method="post" action="posttocar.php">
  23. <input id="dopost" name="do" type="hidden" value="del">
  24. <table width="100%" cellpadding="0" cellspacing="0" class="table trlist">
  25. <thead>
  26. <tr>
  27. <td colspan="6">商品列表</td>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. <tr>
  32. <th>选择</th>
  33. <th>编号</th>
  34. <th>名称</th>
  35. <th>数量</th>
  36. <th>单价(元)</th>
  37. <th>操作</th>
  38. </tr>
  39. {dede:array.Items}
  40. <tr>
  41. <td><input type="checkbox" name="ids[]" value="{dede:value.id/}"></td>
  42. <td>{dede:value.id/}</td>
  43. <td><a href="view.php?aid={dede:value.id/}" target="_bank">{dede:value.title/}</a></td>
  44. <td>
  45. <input name="buynum{dede:value.id/}" type="text" id="buynum{dede:value.id/}" value="{dede:value.buynum/}" size="5" maxlength="5">
  46. <small>{dede:value.units/}</small>
  47. </td>
  48. <td>{dede:value.price/}</td>
  49. <td><a href="posttocar.php?do=del&ids={dede:value.id/}">删除</a></td>
  50. </tr>
  51. {/dede:array}
  52. </tbody>
  53. <tfoot>
  54. <tr>
  55. <td colspan="6" align="right">
  56. <div style="float:left">共 <span class="text-danger">{dede:var.carts.cart_count/}</span> 件商品,合计: <span class='text-danger'>{dede:var.carts.price_count/}</span> 元</div>
  57. <div style="float:right">
  58. <!--<input type="button" value="打印购物车" class="btn-2" onclick="printPage(1)"/>-->
  59. <input type="button" value="更新订单号" class="btn btn-success btn-sm" onClick="makeCarId()">
  60. <input type="button" value="删除已选定" class="btn btn-success btn-sm" onClick="DelPost()">
  61. <input type="button" value="清空" onClick="if(confirm('确定清空购物车中的商品吗')){ location='posttocar.php?do=clear' }" class="btn btn-success btn-sm">
  62. <input onclick="ChangePost()" type="button" value="更新数量" class="btn btn-success btn-sm">
  63. <input type="button" value="下一步" onclick="location='carbuyaction.php'" class="btn btn-success btn-sm">
  64. </div>
  65. </td>
  66. </tr>
  67. </tfoot>
  68. </table>
  69. </form>
  70. </div>
  71. </div>
  72. <?php pasterTempletDiy('footer.htm');?>
  73. <!--购物车列表操作javascript请不要随意改动-->
  74. <script>
  75. //遍历checkbox使之全选中,或反选
  76. function CheckAll() {
  77. for (var i = 0; i < document.form1.elements.length; i++) {
  78. var e = document.form1.elements[i];
  79. e.checked == true ? e.checked = false : e.checked = true;
  80. }
  81. }
  82. //改变表单dopost值为:update,后submit提交表单
  83. function ChangePost() {
  84. CheckAll();
  85. document.getElementById("dopost").value = 'update';
  86. document.form1.submit();
  87. }
  88. //改变表单dopost值为:del,后submit提交表单
  89. function DelPost() {
  90. document.getElementById("dopost").value = 'del';
  91. document.form1.submit();
  92. }
  93. //AJAX产生一个新的订单编号
  94. function makeCarId() {
  95. $.ajax({
  96. type: "POST",
  97. url: "car.php",
  98. data: "dopost=makeid",
  99. dataType: 'text',
  100. success: function(result) {
  101. $("#carId").html(result);
  102. }
  103. });
  104. }
  105. //Print Page
  106. function printPage(oper) {
  107. if (oper < 10) {
  108. bdhtml = window.document.body.innerHTML; //获取当前页的html代码
  109. sprnstr = "<!--startprint" + oper + "-->"; //设置打印开始区域
  110. eprnstr = "<!--endprint" + oper + "-->"; //设置打印结束区域
  111. prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr) + 18); //从开始代码向后取html
  112. prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr)); //从结束代码向前取html
  113. window.document.body.innerHTML = prnhtml;
  114. window.print();
  115. window.document.body.innerHTML = bdhtml;
  116. } else {
  117. window.print();
  118. }
  119. }
  120. </script>
  121. <script>
  122. if (!navigator.cookieEnabled) {
  123. $('#errorChickCookie').html('您浏览器的 cookie 功能被禁用,请启用此功能');
  124. $('.buycar').hide();
  125. }
  126. </script>
  127. </body>
  128. </html>