<!-- #Order_navigation -->
<div class="OrderFrame Order_car_0"><img src="<?php echo($netsFileConfig['sysCoreRoot']); ?>Ui/m_nets/Img/User/14.jpg" /></div>
<div class="OrderFrame Order_car_3">结算步骤：1.登录注册　>>　2.选择订单　>>　<span class="FSize0 FGreen1 FStrong">3.填写核对订单信息</span>　>>　4.成功提交订单</div>
<div class="OrderFrame Order_car_1">请确定以下订购信息：</div>
<!-- #Order_detail -->
<!-- ------ #Define introduct ------ -->
<?php 
/*

收货地址
	shsoctReceiveaddressid
配送方式
	shsoctSendmodelid
支付-扣除方式
	shsoctPayBeforehand
支付-支付方式
	shsoctPayTypeid
支付-是否要发票
	shsoctInvoice
货物列表
	shsoctSales
总货款
	totalPrice
总积分
	totalCode
总应支付费用
	totalPay

*/
$tmpName_shsoctReceiveaddressid='';
$tmpName_shsoctSendmodelid='';
$tmpName_shsoctPayTypeid='';

$tmpSTR_shsoctReceiveaddressid='';
$tmpSTR_shsoctSendmodelid='';
$tmpSTR_shsoctPayTypeid='';

$tmpPay_shsoctSendmodelid=0.00;
$tmpPay_shsoctInvoice=$tmpDefault->sLocalDbDescriptions[1]['Columns']['shsoctInvoicePrice']['Value'];
$tmpPay_totalPrice=$tmpDefault->sPay_Price;
$tmpPay_totalCode=$tmpDefault->sPay_Code;
$tmpPay_totalPay=0.00;

?>
<script type="text/javascript">
var tmpAR_shsoctReceiveaddressid=new Array();
var tmpAR_shsoctSendmodelid=new Array();
var tmpAR_shsoctPayTypeid=new Array();

var tmpAR_Pay_shsoctSendmodelid=new Array();

sysInvoiceRare=<?php echo($tmpDefault->sysFileConfig['ShopInvoiceRare']); ?>;

<?php
$Coun0=0;
foreach($tmpDefault->sUserreceiveaddress as $Row0){
	if($Row0['shuratID']==$tmpDefault->sLocalDbDescriptions[1]['Columns']['shsoctReceiveaddressid']['Value']){
		$tmpName_shsoctReceiveaddressid=$Row0['shuratName'];
		$tmpSTR_shsoctReceiveaddressid=$Row0['Value'];
	}
	?>tmpAR_shsoctReceiveaddressid[<?php echo($Coun0); ?>]="<?php echo($Row0['Value']); ?>";
	<?php
	$Coun0++;
}

$Coun0=0;
foreach($tmpDefault->sSendmodel as $Row0){
	if($Row0['shsmtID']==$tmpDefault->sLocalDbDescriptions[1]['Columns']['shsoctSendmodelid']['Value']){
		$tmpName_shsoctSendmodelid=$Row0['shsmtName'];
		$tmpSTR_shsoctSendmodelid=$Row0['shsmtIntrodcut'];
		$tmpPay_shsoctSendmodelid=$Row0['shsmtPrice'];
	}
	?>tmpAR_shsoctSendmodelid[<?php echo($Coun0); ?>]="<?php echo($Row0['shsmtIntrodcut']); ?>";
	tmpAR_Pay_shsoctSendmodelid[<?php echo($Coun0); ?>]=<?php echo($Row0['shsmtPrice']); ?>;
	<?php
	$Coun0++;
}

$Coun0=0;
foreach($tmpDefault->sPaytype as $Row0){
	if($Row0['shupttID']==$tmpDefault->sLocalDbDescriptions[1]['Columns']['shsoctPayTypeid']['Value']){
		$tmpName_shsoctPayTypeid=$Row0['shupttName'];
		$tmpSTR_shsoctPayTypeid=$Row0['shuptctIntroduct'];
	}
	?>tmpAR_shsoctPayTypeid[<?php echo($Coun0); ?>]="<?php echo($Row0['shuptctIntroduct']); ?>";
	<?php
	$Coun0++;
}

$tmpPay_totalPay=$tmpPay_shsoctSendmodelid+$tmpPay_shsoctInvoice+$tmpPay_totalPrice+$tmpPay_totalCode;
?>

</script>
<!-- ------ # ------ -->
<?php if($tmpDefault->sLocalDbDescriptions[0]['Columns']['shsotState']['Value']!=0){ ?>
<div class="OrderFrame FRed2">
本订单现在为<span class="FRed1 FStrong">(<?php 
$Coun0=0;
foreach($tmpDefault->sPayState as $Row0){
	if($Row0['sotValue']==$tmpDefault->sLocalDbDescriptions[0]['Columns']['shsotState']['Value']){
		echo($Row0['sotName']); 
	}
	$Coun0++;
}
?>)</span>状态；
<?php if($tmpDefault->sLocalDbDescriptions[0]['Columns']['shsotState']['Value']==1 ||
	$tmpDefault->sLocalDbDescriptions[0]['Columns']['shsotState']['Value']==2){ ?>
您现在已为本订单支付了：<span class="FRed1 FStrong">￥<?php echo($tmpDefault->sLocalDbDescriptions[0]['Columns']['shsotPayyet']['Value']); ?>(元人民币)</span>，还剩：<span class="FRed1 FStrong">￥<?php echo($tmpDefault->sLocalDbDescriptions[0]['Columns']['shsotTotalPrice']['Value']-$tmpDefault->sLocalDbDescriptions[0]['Columns']['shsotPayyet']['Value']); ?>(元人民币)</span>需要支付。

<?php } ?></div><?php } ?>
<div class="OrderFrame Order_detail" style="border-top:1px #CCCCCC solid;">
<!-- ------ #shsoctReceiveaddressid ------ -->
<div class="Order_detail_title"><span class="FSize0 FStrong">收货人信息</span> <a href="../../../Plus/Common/Shop/userreceiveaddress.php" class="Link1 FBlue2" target="_blank">编辑我的收货地址</a></div>
<div class="Order_detail_content">
<?php if($tmpDefault->sLocalDbDescriptions[0]['Columns']['shsotState']['Value']==0){ ?>
<select id="shsoctReceiveaddressidTxt" name="shsoctReceiveaddressidTxt" onchange="onTypeselected(this,tmpAR_shsoctReceiveaddressid);" >
<?php foreach($tmpDefault->sUserreceiveaddress as $Row0){ ?>
<option value="<?php echo($Row0['shuratID']); ?>" style="<?php echo($Row0['shuratNameStyle']); ?>" <?php if($Row0['shuratID']==$tmpDefault->sLocalDbDescriptions[1]['Columns']['shsoctReceiveaddressid']['Value']){ echo(' selected="selected" '); } ?> ><?php echo($Row0['shuratName']); ?></option>
<?php } ?></select>
<?php }else{ ?><span class="FRed1 FStrong"><?php echo($tmpName_shsoctReceiveaddressid); ?></span><?php } ?>
<div id="shsoctReceiveaddressidTxt_Content" class="Order_detail_content_0"><?php echo($tmpSTR_shsoctReceiveaddressid); ?></div>

</div></div>
<!-- ------ # ------ -->
<div class="OrderFrame Order_detail">
<!-- ------ #shsoctSendmodelid ------ -->
<div class="Order_detail_title"><span class="FSize0 FStrong">送货方式</span></div>
<div class="Order_detail_content">
<?php if($tmpDefault->sLocalDbDescriptions[0]['Columns']['shsotState']['Value']==0){ ?>
<select id="shsoctSendmodelidTxt" name="shsoctSendmodelidTxt" onchange="onTypeselected(this,tmpAR_shsoctSendmodelid);onSetSendmodelPrice(this,tmpAR_Pay_shsoctSendmodelid);" >
<?php foreach($tmpDefault->sSendmodel as $Row0){ ?>
<option value="<?php echo($Row0['shsmtID']); ?>" style="<?php echo($Row0['shsmtNameStyle']); ?>" <?php if($Row0['shsmtID']==$tmpDefault->sLocalDbDescriptions[1]['Columns']['shsoctSendmodelid']['Value']){ echo(' selected="selected" '); } ?> ><?php echo($Row0['shsmtName']); ?></option>
<?php } ?></select>
<?php }else{ ?><span class="FRed1 FStrong"><?php echo($tmpName_shsoctSendmodelid); ?>，送货加价：￥<?php echo($tmpPay_shsoctSendmodelid); ?>(元人民币)。</span><?php } ?>
<div id="shsoctSendmodelidTxt_Content" class="Order_detail_content_0"><?php echo($tmpSTR_shsoctSendmodelid); ?></div>

</div></div>
<!-- ------ # ------ -->
<div class="OrderFrame Order_detail">
<div class="Order_detail_title"><span class="FSize0 FStrong">付款方式</span></div>
<div class="Order_detail_content">
<!-- ------ #shsoctPayBeforehand ------ -->
<span class="FStrong">货款扣除方式：</span>
<table class="Order_detail_content_1" cellpadding="0" cellspacing="0">
<?php $Coun0=0; foreach($tmpDefault->sPayModel as $Row0){ ?>
<tr><td><input id="shsoctPayBeforehandTxt<?php echo($Coun0); ?>" name="shsoctPayBeforehandTxt" value="<?php echo($Row0['sotValue']); ?>" type="radio" <?php if($Row0['sotValue']==$tmpDefault->sLocalDbDescriptions[1]['Columns']['shsoctPayBeforehand']['Value']){ echo(' checked="checked" '); } ?> /></td><td><label for="shsoctPayBeforehandTxt<?php echo($Coun0); ?>"><?php echo($Row0['sotName']); ?></label></td></tr>
<?php $Coun0++; } ?></table><br />

<!-- ------ #shsoctPayTypeid ------ -->
<span class="FStrong">货款支付方式：</span><br />
<div class="Order_detail_content_1"><select id="shsoctPayTypeidTxt" name="shsoctPayTypeidTxt" onchange="onTypeselected(this,tmpAR_shsoctPayTypeid);" >
<?php foreach($tmpDefault->sPaytype as $Row0){ ?>
<option value="<?php echo($Row0['shupttID']); ?>" style="<?php echo($Row0['shupttNameStyle']); ?>" <?php if($Row0['shupttID']==$tmpDefault->sLocalDbDescriptions[1]['Columns']['shsoctPayTypeid']['Value']){ echo(' selected="selected" '); } ?> ><?php echo($Row0['shupttName']); ?></option>
<?php } ?></select><div id="shsoctPayTypeidTxt_Content" class="Order_detail_content_0"><?php echo($tmpSTR_shsoctPayTypeid); ?></div></div><br />

<!-- ------ #shsoctInvoice ------ -->
<span class="FStrong">是否须要开发票<span class="FRed2">(开票增收<?php echo($tmpDefault->sysFileConfig['ShopInvoiceRare']*100); ?>%的发票费用)</span>：</span>
<div class="Order_detail_content_1">
<?php if($tmpDefault->sLocalDbDescriptions[0]['Columns']['shsotState']['Value']==0){ ?>
<table class="Order_detail_content_1" cellpadding="0" cellspacing="0"><tr><?php 
$Coun0=0;
foreach($tmpDefault->sBoolean1 as $Row0){ ?>
<td><input id="shsoctInvoiceTxt<?php echo($Coun0); ?>" name="shsoctInvoiceTxt" value="<?php echo($Row0['Value']); ?>" type="radio" <?php if($Row0['Value']==$tmpDefault->sLocalDbDescriptions[1]['Columns']['shsoctInvoice']['Value']){ echo(' checked="checked" '); } if($Row0['Value']==0){ echo('onclick="onSetInvoicePrice(0);calculatePrice();" '); }else{ echo('onclick="onSetInvoicePrice(1);calculatePrice();" '); } ?> /></td><td><label for="shsoctInvoiceTxt<?php echo($Coun0); ?>"><?php echo($Row0['Text']); ?></label>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<?php $Coun0++; } ?></tr></table><br />
<?php }else{ if($tmpDefault->sLocalDbDescriptions[1]['Columns']['shsoctInvoice']['Value']==1){ ?>
<span class="FRed1 FStrong">您已向商家索取发票，发票总费用为：￥<?php echo($tmpPay_shsoctInvoice); ?>(元人民币)。</span><?php }else{ ?>
<span class="FRed1 FStrong">您未向商家索取发票。</span><?php } } ?></div>

</div></div>
<!-- ------ # ------ -->
<div class="OrderFrame Order_detail">
<!-- ------ #Car_list ------ -->
<div class="Order_detail_title"><span class="FSize0 FStrong">商品清单</span></div>
<div class="Order_detail_content">

<ul class="Order_detail_title_0">
<li class="Order_detail_title_0_left"><img src="<?php echo($netsFileConfig['sysCoreRoot']); ?>Ui/m_nets/Img/User/15.jpg" /></li>
<li class="Order_detail_title_0_left">您所选购的商品：</li>
<?php if($tmpDefault->sLocalDbDescriptions[0]['Columns']['shsotState']['Value']==0){ ?>
<li class="Order_detail_title_0_right"><a href="../../../Plus/Common/Shop/o_Car.php" class="Link1 FBlue2">回到购物车，删除或添加商品</a></li>
<?php } ?><li class="DClear"></li></ul>
<table class="Order_detail_Goods" cellpadding="0" cellspacing="0">
<tr><th>商品名称</th><th>本店价</th><th>优惠</th><th>数量</th><th>小计</th></tr><?php
$Coun0=0;
foreach ($tmpDefault->sCar_list as $Row0){ ?>
<tr>
<td><a href="#?ID=<?php echo ($Row0['shstID']); ?>" class="Link3 FGreen1"><?php echo ($Row0['shstName']); ?></a></td>
<td>￥<?php echo ($Row0['shstPrice']); ?> (<?php echo ($Row0['shsctDiscount0']); ?>折)</td>
<td>&nbsp;</td>
<td><?php echo ($Row0['shsctCount']); ?></td>
<td>￥<?php echo ($Row0['shstPrice']*$Row0['shsctCount']); ?></td>
</tr>
<?php $Coun0++; }
if($Coun0==0){ ?><tr><td colspan="5" class="FSize1 FStrong">您的购物车现在是空的。</td></tr><?php } ?>
<tr><td colspan="5" style="text-align:right;">商品金额总计：<span class="FGreen1">￥<?php echo($tmpPay_totalPrice); ?></span>，可获得积分：<span class="FGreen1"><?php echo($tmpPay_totalCode); ?>分</span></td></tr>
</table>

<table class="Order_detail_Goods_other" align="right">
<tr><td class="">配送加价：</td><td>￥<span id="shsoctSendmodelidTxt_Label" class=""><?php echo($tmpPay_shsoctSendmodelid); ?></span></td></tr>
<tr><td class="">发票加价：</td><td>￥<span id="shsoctInvoiceTxt_Label" class=""><?php echo($tmpPay_shsoctInvoice); ?></span></td></tr>
<tr class="FSize1 FStrong FRed1"><td>总应付款：</td><td>￥<span id="totalPayTxt_Label" class=""><?php echo($tmpPay_totalPay); ?>，其中还必须支付￥<?php echo($tmpPay_totalPay-$tmpDefault->sLocalDbDescriptions[0]['Columns']['shsotPayyet']['Value']); ?></span></td></tr>
</table>

<input id="shsoctSendmodelidTxt_Pay" name="shsoctSendmodelidTxt_Pay" value="<?php echo($tmpPay_shsoctSendmodelid); ?>" type="text" />
<input id="shsoctInvoiceTxt_Pay" name="shsoctInvoiceTxt_Pay" value="<?php echo($tmpPay_shsoctInvoice); ?>" type="text" />
<input id="totalPriceTxt_Pay" name="totalPriceTxt_Pay" value="<?php echo($tmpPay_totalPrice); ?>" type="text" />
<input id="totalCodeTxt_Pay" name="totalCodeTxt_Pay" value="<?php echo($tmpPay_totalCode); ?>" type="text" />
<input id="totalPayTxt_Pay" name="totalPayTxt_Pay" value="<?php echo($tmpPay_totalPay); ?>" type="text" />
<input id="shsotIDTxt" name="shsotIDTxt" value="<?php echo($tmpDefault->sLocalDbDescriptions[0]['Columns']['shsotID']['Value']); ?>" type="text" />

</div></div>
<!-- ------ #Button ------ -->
<ul class="OrderFrame Order_detail_0">
<li class="Order_detail_0_left"></li>
<?php if($tmpDefault->sLocalDbDescriptions[0]['Columns']['shsotState']['Value']==0){ ?>
<li class="Order_detail_0_right"><input src="<?php echo($netsFileConfig['sysCoreRoot']); ?>Ui/m_nets/Img/User/16.jpg" onclick="setActionType('','DAdd','','');" type="image" /></li>
<?php }else if($tmpDefault->sLocalDbDescriptions[0]['Columns']['shsotState']['Value']==1){ ?>
<li class="Order_detail_0_right"><input src="<?php echo($netsFileConfig['sysCoreRoot']); ?>Ui/m_nets/Img/User/19.jpg" onclick="setActionType('','DPay','','');" type="image" /></li>
<?php } ?>
<li class="Order_detail_0_right_3"><a class="Hand1 FBlue1 Link1" onclick="RefreshCCode('');">刷新验证码</a></li>
<li class="Order_detail_0_right_2"><iframe id="CCodeIframe" src="<?php echo($netsFileConfig['sysUiCoreRoot']); ?>Component/Nets/netsJscript/netsCheckCode0.php" class="CCode1" frameborder="0" scrolling="no"></iframe></li>
<li class="Order_detail_0_right_1"><input id="CCodeTxt" name="CCodeTxt" type="text" maxlength="5" style="width:50px;" /></li>
<li class="Order_detail_0_right_0">请输入验证码：</li>
<li class="DClear"></li></ul>
<div class="OrderShadow"></div>
<!-- ------ #End introduct ------ -->
<div class="OrderFrame Order_car_2">
* 您购物车中的商品信息，我们将为您保存30天，请您及时购买。购物车中显示的价格为商品的最新价格。<br />
* 您对购物车满意么？请 留下您的宝贵建议>>
</div>
