<?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)}';
	 initialPayMoney();
	</script>
<form name="cartform" method="post" action="{$GetInstallDir}?app=orderinfo">
	<table class='ShoppingCart' cellpadding='1' cellspacing='1' width='100%' id='CartTb'>
 <tr class='Thead'>
    <td style="padding:0 10px;"><input onclick="getAllProduct(this)" type="checkbox" name="ids" value=""/></td>
    <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='10' align="center" height="25">
     您的购物车中没有商品!
   </td>
  </tr>
 [/norecord]
 
 [recordloop]
<tr class='tdbg'>
	 <td style="padding:0 10px;"><input onclick="getPayMoney(0,this)" type="checkbox" name="cartid" value="{KS:CartID}"/></td>
     <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}
			 <script>if ("{KS:PayType}"!="0") document.write("<em style='color:red'>定金</em>"); </script>
			</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="115"><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}')" class="del"></a></td>
</tr>
[/recordloop]

[changebuyrecord]
<tr class='tdbg'>
	 <td style="padding:0 10px;"><input onclick="getPayMoney(0,this)" type="checkbox" name="cartid" value="{KS:CartID}" ischangubuy="1" checked/></td>
     <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  style="padding:0 10px;"><input onclick="getPayMoney(0,this)" type="checkbox" name="cartid" value="{KS:CartID}"/></td>
     <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='10' style='text-align:right;'>
	<span id="showjf" style="display:none">完成本次交易您可以得到<span class='price'> <span id="orderScore">{KS:OrderScore}</span> </span>分的积分,</span>
	<span style='font-size:14px; display:none;'><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="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>

</td>
<td>
<a href="{$GetInstallDir}" class="jxgwbtn">继续购物</a>
<input type='submit' value='去结算' class="gojsbtn" id="jsbtn" onclick="return(checkCart())"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
</table>
</form>
</div>

	]]>
   </label>
</labeltemplate>