BVB Source Codes

Shandong kernel enterprise stand the source code Show car.htm Source code

Return Download Shandong kernel enterprise stand the source code: download car.htm Source code - Download Shandong kernel enterprise stand the source code Source code - Type:.htm
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>购物车 - 订单号:{dede:var.carts.orders_id/}</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset={dede:global.cfg_soft_lang/}" />
  6. <meta name="generator" content="DedeCMS V5.6" />
  7. <meta name="author" content="desdev.cn" />
  8. <link href="{dede:global.cfg_templets_skin/}/style/dedecms.css" rel="stylesheet" media="screen" type="text/css" />
  9. <link href="{dede:global.cfg_templets_skin/}/style/table.css" rel="stylesheet" media="screen" type="text/css" />
  10. <script type="text/javascript" language="javascript" src="../images/js/j.js"></script>
  11. </head>
  12. <body class="buycarpage">
  13.  
  14. <div class="header">
  15.         <div class="top w960 center">
  16.                 <div class="title">
  17.                          <h1><a href="{dede:global.cfg_basehost/}" title="{dede:global.cfg_webname/}"><img src="{dede:global.cfg_templets_skin/}/images/logo.gif" alt="{dede:global.cfg_webname/}"/></a> </h1>
  18.                 </div><!-- /title -->
  19.                 <div class="welcome">
  20.             <?php
  21.            if(!$cfg_ml->IsLogin()){
  22.             ?>
  23.             您好,欢迎来到本网站, 请 <a href="../member/login.php?gourl=<?php echo urlencode(GetCurUrl());?>">登录</a><a href="../member/index_do.php?fmdo=user&dopost=regnew">注册</a>
  24.             <?php
  25.            }else{
  26.            ?>
  27.             <b><?php echo $cfg_ml->M_UserName; ?></b>,欢迎您的登陆。 <a href="<?php echo $cfg_memberurl; ?>/index.php">会员中心</a> |
  28.                 <a href="<?php echo $cfg_memberurl; ?>/edit_fullinfo.php">我的资料</a> |
  29.                 <a href="<?php echo $cfg_memberurl; ?>/index.php?uid=<?php echo urlencode($cfg_ml->M_LoginID);?>">我的空间</a> |
  30.                 <a href="<?php echo $cfg_memberurl; ?>/index_do.php?fmdo=login&dopost=exit">退出登录</a>
  31.            <?php
  32.            }
  33.            ?>
  34.                 </div><!-- /banner -->
  35.         </div><!-- /top -->
  36. </div><!-- /header -->
  37.  
  38. <div class="w960 clear center mt1 cmt-box">
  39.         <div class="sp-title"><h2>购物车</h2></div>
  40.     <div id="errorChickCookie" class="clear center mt1" style="font-style:inherit;color:#666;font-weight:normal;padding-top:8px;padding-bottom:8px;text-align:center;"></div>  
  41.     <div class="buycar">
  42.                 <h2>我的购物车 - 订单号:<em id="carId">{dede:var.carts.orders_id/}</em></h2>
  43.                 <form id="form1" name="form1" method="post" action="posttocar.php">
  44.                 <input id="dopost" name="do" type="hidden" value="del" />
  45.         <!--startprint1-->
  46.         <table width="100%" border="0" cellpadding="0" cellspacing="0" class="dede_table trlist">
  47.                         <thead>
  48.                                 <tr>
  49.                                         <td colspan="6">商品列表</td>
  50.                                 </tr>
  51.                         </thead>
  52.                         <tbody>
  53.                                 <!--以下列出购物车内购商品列表(数组),开始遍历数组-->
  54.                                 <tr>
  55.                                         <th>选择</th>
  56.                                         <th>编号</th>
  57.                                         <th>名称</th>
  58.                                         <th>数量</th>
  59.                                         <th>单价(元)</th>
  60.                                         <th>操作</th>
  61.                                 </tr>
  62.                 {dede:array.Items}
  63.                                 <tr>
  64.                                         <td height="23"><input type="checkbox" name="ids[]" value="{dede:value.id/}" /></td>
  65.                                         <td height="23">{dede:value.id/}</td>
  66.                                         <td height="23"><a href="view.php?aid={dede:value.id/}" target="_bank">{dede:value.title/}</a></td>
  67.                                         <td height="23">
  68.                                                 <input name="buynum{dede:value.id/}" type="text" id="buynum{dede:value.id/}" value="{dede:value.buynum/}" size="5" maxlength="5" class="ipt-txt" />
  69.                                                 <small>{dede:value.units/}</small></td>
  70.                                         <td height="23">{dede:value.price/}</td>
  71.                                         <td height="23"><a href="posttocar.php?do=del&ids={dede:value.id/}">删除</a></td>
  72.                                 </tr>
  73.                 {/dede:array}
  74.                                 <!--构造购物车内商品列表结束-->
  75.                         </tbody>
  76.                         <tfoot>
  77.                                 <tr>
  78.                                         <td colspan="6" align="right">
  79.                                                 <div style="float:left;">
  80.                                                         共 <font color=red>{dede:var.carts.cart_count/}</font> 件商品,合计: <font color=red>{dede:var.carts.price_count/}</font>元       </div>
  81.                                                         <div style="float:right; height:33px;">
  82.                                                         <!--<input type="button" value="打印购物车" class="btn-2" onclick="printPage(1)"/>-->
  83.                             <input type="button" value="更新订单号" class="btn-2" onclick="makeCarId()"/>
  84.                                                         <input type="button" value="删除已选定" class="btn-2" onclick="DelPost()"/>
  85.                                                         <input type="button"  value="清空" onclick="if(confirm('确定清空购物车中的商品吗?')){ location='posttocar.php?do=clear' }" class="btn-2" />
  86.                                                         <input onclick="ChangePost()" type="button" value="更新数量" class="btn-2" />
  87.                                                         <input type="button"  value="下一步" onclick="location='carbuyaction.php'" class="btn-2" />
  88.                                                 </div>
  89.                                         </td>
  90.                                 </tr>
  91.                         </tfoot>
  92.                 </table>
  93.         <!--endprint1-->
  94.         </form>
  95.         </div>    
  96. </div>
  97. <!--购物车列表操作javascript请不要随意改动-->
  98. <script language="JavaScript" type="text/javascript">
  99. //遍历checkbox使之全选中,或反选
  100. function CheckAll()
  101. {
  102.         for (var i=0;i<document.form1.elements.length;i++)
  103.         {
  104.                 var e = document.form1.elements[i];
  105.                 e.checked == true ? e.checked = false : e.checked = true;
  106.         }
  107. }
  108. //改变表单dopost值为:update,后submit提交表单
  109. function ChangePost()
  110. {
  111.         CheckAll();
  112.         document.getElementById("dopost").value = 'update';
  113.         document.form1.submit();
  114. }
  115. //改变表单dopost值为:del,后submit提交表单
  116. function DelPost()
  117. {
  118.         document.getElementById("dopost").value = 'del';
  119.         document.form1.submit();
  120. }
  121. //AJAX产生一个新的订单编号
  122. function makeCarId()
  123. {
  124.         $.ajax({type: "POST", url: "car.php", data: "dopost=makeid", dataType: 'text',success: function(result){$("#carId").html(result);}});
  125. }
  126. //Print Page
  127. function printPage(oper)
  128. {
  129.         if (oper < 10)
  130.         {
  131.                 bdhtml = window.document.body.innerHTML;//获取当前页的html代码
  132.                 sprnstr = "<!--startprint"+oper+"-->";//设置打印开始区域
  133.                 eprnstr = "<!--endprint"+oper+"-->";//设置打印结束区域
  134.                 prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr)+18); //从开始代码向后取html
  135.                 prnhtml = prnhtml.substring(0,prnhtml.indexOf(eprnstr));//从结束代码向前取html
  136.                 window.document.body.innerHTML = prnhtml;
  137.                 window.print();
  138.                 window.document.body.innerHTML = bdhtml;
  139.         }else{
  140.                 window.print();
  141.         }
  142. }
  143. </script>
  144. <!--购物车列表操作javascript结束-->
  145. {dede:include filename="../default/footer.htm"/}
  146. <script language="JavaScript" type="text/javascript">
  147. if(!navigator.cookieEnabled)
  148. {
  149.         $('#errorChickCookie').html('您浏览器的 cookie 功能被禁用,请启用此功能!');
  150.         $('.buycar').hide();
  151. }
  152. </script>
  153. </body>
  154. </html>
downloadcar.htm Source code - Download Shandong kernel enterprise stand the source code Source code
Related Source Codes/Software:
Dede V2.2 dance music program - This system is based on DEDE5.7 sp1 production dan... 2016-11-11
Search engine v1.0 eight grams of novels - This program consists of WEB side and collection p... 2016-11-11
A thief free Jacky novel CMS, support for multiple station collection, support pseudo original SEO - A thief free Jacky novel CMS, support for multiple... 2016-11-11
Kunlun lubricating oil companies stand the source code - Just testing, free, source code is very beautiful ... 2016-11-11
Imitation of Chinese stationmaster net source dreams to 5.7 sp1 source code - Exactly the same and the Director of China network... 2016-11-11
Newscoop CMS v4.0.4 multilingual version - Newscoop is a content management system is mainly ... 2016-11-11
Ku978 navigator free send you department (with acquisition module) - Is I purchase the commercial version of this progr... 2016-11-11
Think of concise message this v1.1 - Wisdom of concise message this V1.1 main functions... 2016-11-11
nvidia-docker - Build and run Docker containers leveraging NVIDIA ... 2017-04-08
quickstart - Angular 2 QuickStart - source from the documentati... 2017-04-08
jQuery-Autocomplete - Ajax Autocomplete for jQuery allows you to easily ... 2017-04-08
Android-Best-Practices - Android best practice examples 2017-04-08
Bootstrap-Admin-Template - Metis - Free Bootstrap Admin Dashboard Template ... 2017-04-08
CocoaSPDY - SPDY for iOS and OS X 2017-04-08
parse-dashboard - A dashboard for managing your Parse apps that aren... 2017-04-08
HoloEverywhere - NO LONGER MAINTAINED. DEVELOP FOR 4.X+ DUDE. 2017-04-08
side-comments - [UNMAINTAINED] An interface component to give your... 2017-04-08
SVG-Morpheus - JavaScript library enabling SVG icons to morph fro... 2017-04-08

 Back to top