<?xml version="1.0"?>
<labeltemplate>
   <label>
    <![CDATA[
	<script src="{$GetInstallDir}ks_inc/ShoppingCart.js"></script>
	<script src="{$GetInstallDir}ks_inc/tips.js"></script>
	<script type="text/javascript">
	 var DecimalPlaces={$DecimalPlaces};               //保留小数位数
	 var priceunitsymbol='{$GetCurrencySymbol}';       //货币符号
	 var priceunit='{$GetCurrencyUnit}';               //货币单位
	 var mallActivities='{=getshopcommonconfig(43)}';  //商场优惠
	 var mallActivitieArr='{=getshopcommonconfig(44)}';
	  $(document).ready(function(){
		 showCouponMsg=false;
		 checkCoupon(); //检查是否有录入优惠券!
	  });
	</script>
	<table class='ShoppingCart' cellpadding='1' cellspacing='1' width='100%' id='CartTb'>
 <tr class='Thead'>
    <td style="height:30px">商品名称</td>
    <td nowrap>市场价</td>
    <td nowrap>{$GetSalesPriceName}</td>
    <script>if ("{=getshopcommonconfig(43)}"=="1") document.write('<td nowrap>参与商场活动</td>'); </script>
    <td nowrap>发货方式</td>
    <td nowrap>商品数量</td>
    <td nowrap>小计</td>
    <td nowrap>获赠积分</td>
    <td nowrap>删除商品</td>
 </tr>
 [norecord]
  <tr class='tdbg'>
   <td colspan='9' align="center" height="25">
     您的购物车中没有商品!
   </td>
  </tr>
 [/norecord]
 
 [recordloop]
<tr class='tdbg'>
     <td class='align_Left'>
	    <table border='0'>
		   <tr>
			<td><img src='{KS:DefaultPic}' onerror="this.src='{KS:ErrDefaultPic}';" width='60' height='50' align='left'/></td>
			<td style="text-align:left">
			<span><a target='_blank' href='{KS:LinkUrl}' onclick='this.blur();' title="{KS:Title}">{KS:Title}</a>{KS:PromotionsTips}</span>
			 <br/>
			{KS:Attribute}
		   </td>
		  </tr>
		 </table>
     </td>
     <td><span class='pricemarket'>{$GetCurrencySymbol}<span id="{KS:CartID}">{KS:Price_Market}</span>{$GetCurrencyUnit}</span></td>
     <td><span class='price'>{KS:Price}</span></td>
	 <script>if ("{=getshopcommonconfig(43)}"=="1") document.write("<td>{KS:IsPromotions}</td>"); </script>
     <td nowrap>{KS:ProductType}</td>
	 
     <td align="center" nowrap  width="78"><a href='javascript:;' title='减一' onclick="changeBar('-',{KS:CartID},this)" class="Reducebtn">-</a><input type='text' id='num_{KS:CartID}' name='num_{KS:CartID}' maxlength='4' class="gwcnumtext" onKeyDown='if(event.keyCode == 13) event.returnValue = false' value='{KS:Num}' onchange="changeBar('o',{KS:CartID},this)" onkeypress="javascript:return isNumber(event);"/><a href='javascript:;' title='加一' onclick="changeBar('+',{KS:CartID},this)" class="addbtn">+</a>
	 <input type="hidden" name="proid_{KS:CartID}" id="proid_{KS:CartID}" value="{KS:ProID}"/>
	 <input type="hidden" name="score_{KS:CartID}" id="score_{KS:CartID}" value="{KS:Score}"/>
	 </td>
     <td>{KS:SubTotal}</td>
     <td  align="center"><span class='subscore'><span id="subscore_{KS:CartID}">{KS:SubScore}</span> 分</span></td>
     <td align="center"><a href="javascript:;" onclick="removeOnShoppingCart('{KS:CartID}')">删除</a></td>
</tr>
[/recordloop]

[changebuyrecord]
<tr class='tdbg'>
     <td class='align_Left'>
	 
         <table border='0'>
		   <tr>
			<td><img src='{KS:DefaultPic}' width='60' height='50' align='left'/></td>
			<td>
			<a target='_blank' href='{KS:LinkUrl}' onclick='this.blur();'>{KS:Title}</a> {KS:PromotionsTips} </span>
		   </td>
		  </tr>
		 </table>	
		  
     </td>
     <td><span class='pricemarket'>{$GetCurrencySymbol}<span id="{KS:CartID}">{KS:Price_Market}</span>{$GetCurrencyUnit}</span></td>
     <td><span class='price'><span id="price_{KS:CartID}">{KS:Price}</span></span></td>
	 <script>if ("{=getshopcommonconfig(43)}"=="1") document.write("<td>{KS:IsPromotions}</td>"); </script>
     <td>{KS:ProductType}</td>
     <td align="center"><input type='hidden' id='num_{KS:CartID}' name='num_{KS:CartID}' maxlength='4' style='text-align:center;width:30px' value="1"/>
	 <input type="hidden" name="proid_{KS:CartID}" id="proid_{KS:CartID}" value="{KS:ProID}"/> 1
	 <input type="hidden" name="chnagebuyproid" id="chnagebuyproid" value="{KS:ProID}"/>
	 </td>
     <td>{KS:SubTotal}</td>
     <td  align="center"><span class='subscore'><span id="subscore_{KS:CartID}">{KS:SubScore}</span> 分</span></td>
     <td align="center"><a href="javascript:;" onclick="removeOnShoppingCart('{KS:CartID}')">删除</a></td>
</tr>
[/changebuyrecord]

[bundlesalerecord]
<tr class='tdbg'>
     <td class='align_Left' style="text-align:left">
	  <table border='0'>
	   <tr>
	    <td>
	    <img src='{KS:DefaultPic}' width='60' height='50' align='left'/>
	    </td>
		<td style="text-align:left">
        <span>
		 <font color=#ff6600><strong>{KS:PromotionsTips}</strong></font><br/>
		<a href="{KS:LinkUrl}" target="_blank">{KS:Title}</a></span>
	   </td
	  </tr>
	 </table>
     </td>
     <td><span class='pricemarket'>{$GetCurrencySymbol}<span id="{KS:CartID}">{KS:Price_Market}</span>{$GetCurrencyUnit}</span></td>
      <td><span class='price'>{KS:Price}</span></td>
	 <script>if ("{=getshopcommonconfig(43)}"=="1") document.write("<td>{KS:IsPromotions}</td>"); </script>
     <td>{KS:ProductType}</td>
     <td align="center"><input type='hidden' id='num_{KS:CartID}' name='num_{KS:CartID}' maxlength='4' style='text-align:center;width:30px' value="1"/>
	  {KS:Num}
	 </td>
     <td>{KS:SubTotal}</td>
     <td align="center"><span class='subscore'><span id="subscore_{KS:CartID}">{KS:SubScore}</span> 分</span></td>
     <td align="center"><a href="javascript:;" onclick="removeOnShoppingCart('{KS:CartID}')">删除</a></td>
</tr>
[/bundlesalerecord]



 <tr>
    <td class='Tfoot' colspan='9' style='text-align:right;height:30px'>
	<span id="showjf" style="display:none">完成本次交易您可以得到<span class='price'> <span id="orderScore">{KS:OrderScore}</span> </span>分的积分,</span>
	
	<span style='font-size:14px'><b>商品总金额(不含运费)：<span class='price' id="GoodsTotalMoney">{KS:OrderTotalPrice}</span></b></span>
	<span id="showsave" style="font-weight:bold;font-size:14px;display:None">
	<br />商场活动优惠：<span class='saveMoney'>{$GetCurrencySymbol}<span id="SaveMoney">0</span>{$GetCurrencyUnit}</span>
	</span>
	<span id="ORDER_COSTS" style="font-weight:bold;font-size:14px;"></span>
	<span id="showFrontPrice" style='font-size:14px'></span>
	<span id="showMustPayPrice" style='font-size:14px'></span>
	</td>
 </tr>
</table>        

<div style="margin:10px;text-align:right">

<table border="0" width="100%">
<tr>
 <td>
<span style="float:left"><img src="sysimg/shop/quick_none.jpg" align="absmiddle"> <a href="javascript:;" onclick="removeAllPro()" style="vertical-align:middle">清空购物车数据</a></span>
</td>
<td>
<strong>使用优惠券:</strong><input type="text" class="coupontxt" id="couponnum" name="couponnum" size="15"> <input type="button" value="验证" onclick="validateCoupon()" class="couponbtn"/>
</td>
<td>
<a href="{$GetInstallDir}" class="jxgwbtn">继续购物</a>
<a href="?app=orderinfo" class="gojsbtn">去结算</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
</table>
</div>

	]]>
   </label>
</labeltemplate>