<?php require($netsFileConfig['bussinessTemplatePackagePath'].'Component/Head_Shop_0.php'); ?>
<link href="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Ssheet/User/Shop.css" rel="stylesheet" />
<link href="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Ssheet/User/Order.css" rel="stylesheet" />
<script src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/JScript/User/Shop.js" type="text/javascript"></script>
<script src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/JScript/User/Order.js" type="text/javascript"></script>
<!-- ------ #Content ------ -->
<div class="OutFrame_A">
<!-- ------ ### ------ -->
<ul class="Order_1_1 Margin_Top">
<li class="Order_1_1A"><img src="<?php echo($netsFileConfig['sysCoreRoot']); ?>Ui/m_nets/Img/User/Shop/48.jpg" /></li>
<li class="Order_1_1B">结算步骤：</li>
<li class="Order_1_1A"><img src="<?php echo($netsFileConfig['sysCoreRoot']); ?>Ui/m_nets/Img/User/Shop/49.jpg" /></li>
<li class="Order_1_1B">1.选择商品</li>
<li class="Order_1_1A"><img src="<?php echo($netsFileConfig['sysCoreRoot']); ?>Ui/m_nets/Img/User/Shop/49.jpg" /></li>
<li class="Order_1_1B">2.确认购物车内容</li>
<li class="Order_1_1A"><img src="<?php echo($netsFileConfig['sysCoreRoot']); ?>Ui/m_nets/Img/User/Shop/49.jpg" /></li>
<li class="Order_1_1D">3.换购结算</li>
<li class="Order_1_1A"><img src="<?php echo($netsFileConfig['sysCoreRoot']); ?>Ui/m_nets/Img/User/Shop/49.jpg" /></li>
<li class="Order_1_1B">4.成功换购</li>
<li class="Order_1_1C"><img src="<?php echo($netsFileConfig['sysCoreRoot']); ?>Ui/m_nets/Img/User/Shop/50.jpg" /></li>
<li class="DClear"></li></ul>
<!-- ------ #TITLE ------ -->
<ul class="ConfirmOrder_Title_1">
<li class="ConfirmOrder_Title_2"><a href="#Here" class="Link1 FBlack2">购物结算</a></li>
<li class="DClear"></li></ul>
<?php if($tmpDefault->sActionType=='DView' && count($tmpDefault->sData_OrderContent)==0){ ?>
<div class="Order_Error"><br /><br /><br />对不起，您所要查看的订单并不存在<br /><br /><br /></div>


<?php }else{ ?>
<!-- ------ #Orderinfo ------ -->
<?php if($tmpDefault->sActionType=='DView'){ ?>
<div class="Order_1_16">
<span class="FStrong">当前订单状态：</span><span><?php foreach($tmpDefault->sState1 as $Row0){ if($tmpDefault->sData_OrderContent[0]['shsotState']==$Row0['Value']){ echo($Row0['Text']); } } ?></span><span class="Order_1_17">,</span>
<span class="FStrong">本订单总积分：</span><span><?php echo($tmpDefault->sData_OrderContent[0]['shsotTotalPrice']); ?></span>
</div>
<?php } ?>

<!-- ------ ### ------ -->
<div class="ConfirmOrder_Box"><div class="ConfirmOrder_1_1">
<?php $tmpFlag='Normal'; ?>
<!-- ------ #GOODS ------ -->
<div id="OrderInfo">
<table class="ConfirmOrder_1_2" cellpadding="0" cellspacing="0">
<tr class="ConfirmOrder_1_3"><th class="ConfirmOrder_1_4_A TextCenter"><a href="#Here"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Groupsale/28_A.jpg" /></a></th>
	<th>商品名</th>
	<th class="DHidden">单品积分</th>
	<th class="DHidden">市场价</th>
	<th>本店价（总积分）</th>
	<th>本店单价</th>
	<th class="DHidden">优惠</th>
	<th>数量</th>
	<th>操作</th></tr>
<?php
$tmpTotalcode=0.00;
$tmpTotalprice=0.00;
$tmpTotalmarketprice=0.00;
$Coun0=0;
foreach ($tmpDefault->sData_Orderlist as $Row0){ ?>
<tr id="OrderInfo_Row_<?php echo($Coun0); ?>" class="Order_1_6">
<td class="ConfirmOrder_1_5">&nbsp;</td>
<td class="Order_1_15"><a href="../../../Plus/m_default/Shop/codeDetail.php?ID=<?php echo ($Row0['shcstID']); ?>" class="Link3 FGreen1" target="_blank"><?php echo ($Row0['shcstName']); ?></a>

<input id="Order_<?php echo($Coun0); ?>_Price0_Txt" name="Order_<?php echo($Coun0); ?>_Price0_Txt" value="<?php echo($Row0['shcsctPrice0']); ?>" type="hidden" />
<input id="Order_<?php echo($Coun0); ?>_PeopleLowLimit_Txt" name="Order_<?php echo($Coun0); ?>_PeopleLowLimit_Txt" value="<?php echo($Row0['shcsctCount_PeopleLowLimit']); ?>" type="hidden" />
<input id="Order_<?php echo($Coun0); ?>_PeopleHighLimit_Txt" name="Order_<?php echo($Coun0); ?>_PeopleHighLimit_Txt" value="<?php echo($Row0['shcsctCount_PeopleHighLimit']); ?>" type="hidden" />

<input id="Order_<?php echo($Coun0); ?>_ID_Txt" name="Order_<?php echo($Coun0); ?>_ID_Txt" value="<?php echo ($Row0['shcstID']); ?>" type="hidden" />
<!--<input id="Order_<?php echo($Coun0); ?>_Count_Txt" name="Order_<?php echo($Coun0); ?>_Count_Txt" value="<?php echo ($Row0['Count']); ?>" type="hidden" />-->
<input id="Order_<?php echo($Coun0); ?>_Price_Txt" name="Order_<?php echo($Coun0); ?>_Price_Txt" value="<?php echo ($Row0['Price']); ?>" type="hidden" />
<input id="Order_<?php echo($Coun0); ?>_Code_Txt" name="Order_<?php echo($Coun0); ?>_Code_Txt" value="<?php echo ($Row0['Code']); ?>" type="hidden" />
<input id="Order_<?php echo($Coun0); ?>_Activeid_Txt" name="Order_<?php echo($Coun0); ?>_Activeid_Txt" value="<?php echo ($Row0['Activeid']); ?>" type="hidden" />
<input id="Order_<?php echo($Coun0); ?>_Parentid_Txt" name="Order_<?php echo($Coun0); ?>_Parentid_Txt" value="<?php echo ($Row0['Parentid']); ?>" type="hidden" />
<input id="Order_<?php echo($Coun0); ?>_Type_Txt" name="Order_<?php echo($Coun0); ?>_Type_Txt" value="<?php echo ($Row0['Type']); ?>" type="hidden" />
<input id="Order_<?php echo($Coun0); ?>_Parameters_Txt" name="Order_<?php echo($Coun0); ?>_Parameters_Txt" value="<?php echo ($Row0['Parameters']); ?>" type="hidden" />

</td>
<td class="DHidden">&nbsp;</td>
<td class="DHidden"><span id="OrderInfo_Pay0_<?php echo($Coun0); ?>">0</span></td>
<td><span id="OrderInfo_Pay_<?php echo($Coun0); ?>"><?php echo ($Row0['Price']*$Row0['Count']); ?></span>分</td>
<td><span id="OrderInfo_Price_<?php echo($Coun0); ?>"><?php echo($Row0['Price']); ?></span>分</td>
<td class="DHidden">&nbsp;</td>
<?php if($tmpDefault->sActionType=='DView'){ ?>
<td>
	<?php echo ($Row0['Count']); ?>
	<input id="OrderInfo_Count_<?php echo($Coun0); ?>_Txt" name="OrderInfo_Count_<?php echo($Coun0); ?>_Txt" value="<?php echo ($Row0['Count']); ?>" type="hidden" />
	</td>
<td>###</td>

<?php }else{ ?>
<td><table cellpadding="0" cellspacing="0"><tr>
	<td><a href="#Here" onclick="tmpOrder.OnOrder_CountAdd(<?php echo($Coun0); ?>);"><img src="<?php echo($netsFileConfig['sysCoreRoot']); ?>Ui/m_nets/Img/User/Shop/28_A.jpg" /></a></td><td>&nbsp;</td>
	<td><input id="Order_<?php echo($Coun0); ?>_Count_Txt" name="Order_<?php echo($Coun0); ?>_Count_Txt" value="<?php echo ($Row0['Count']); ?>" class="SControl1" onclick="tmpControl.onControlLight(this,'SControl1');" onblur="tmpControl.onControlBlur(this,'SControl1');" onchange="tmpOrder.OnOrder_ReCalculation();" style="width:40px;" /></td><td>&nbsp;</td>
	<td><a href="#Here" onclick="tmpOrder.OnOrder_CountSub(<?php echo($Coun0); ?>);"><img src="<?php echo($netsFileConfig['sysCoreRoot']); ?>Ui/m_nets/Img/User/Shop/28_B.jpg" /></a></td>
	</tr></table></td>
<td><a href="#Here" onclick="tmpOrder.OnOrder_DeleteRow(<?php echo($Coun0); ?>);" class="FBlue1 Link1">删除</a></td>
<?php } ?>
</tr>
<?php
	$tmpTotalcode+=$Row0['Code']*$Row0['Count'];
	$tmpTotalprice+=$Row0['Price']*$Row0['Count'];
	$tmpTotalmarketprice+=$Row0['shcsctPrice0']*$Row0['Count'];
	$Coun0++; 
}
if($Coun0==0){ ?>
<tr class="Order_1_7"><td colspan="9" class="FSize1 FStrong">您的购物车现在是空的。</td></tr>
<?php } ?>
</table>
<div class="ConfirmOrder_1_12">
	<span class="FRed3">商品积分总计：</span><span id="OrderInfo_TotalPay" class="FRed3"><?php echo($tmpTotalprice); ?>分
	<?php if($tmpDefault->sActionType=='DView'){ ?> , 您已支付了：<?php echo($tmpDefault->sData_OrderContent[0]['shsotPayyet']); ?>分<?php } ?></span>
	<span id="OrderInfo_TotalSaveprice" class="DHidden"><?php echo($tmpTotalmarketprice-$tmpTotalprice); ?></span>
	<span id="OrderInfo_TotalCode" class="DHidden"><?php echo($tmpTotalcode); ?></span></div>
<input id="OrderInfo_TotalPayTxt" name="OrderInfo_TotalPayTxt" value="<?php echo($tmpTotalprice); ?>" type="hidden" /><br />
</div>



<!-- ------ #OrderUserinfo ------ -->
<!-- #TITLE -->
<ul class="ConfirmOrder_1_21">
<li class="ConfirmOrder_1_22"><a href="#Here" onclick="tmpOrder.OnOrder_ShowBox('OrderUserinfo');"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Groupsale/28_A.jpg" /></a></li>
<li class="ConfirmOrder_1_23"><a href="#Here" onclick="tmpOrder.OnOrder_ShowBox('OrderUserinfo');" class="Link1 FBlack2">用户联系方式与送货地址</a></li>
<li class="ConfirmOrder_1_36"><a id="OrderUserinfo_Button" href="#Here" onclick="tmpOrder.OnOrder_ShowBox('OrderUserinfo');" class="Link1 FBlue1">[修改]</a></li>
<li class="DClear"></li></ul>
<!-- #CONTENT -->
<div id="OrderUserinfo_Label" class="ConfirmOrder_1_48">
<?php
$Coun0=0;
foreach($tmpDefault->sReceiveaddress as $Row0){
	if($Row0['Value']==$tmpDefault->sData_Userinfohabits['Order_Userreceiveaddress']){ ?>
	<?php echo($Row0['shuractPublisher_Name']); ?>
	<?php echo($Row0['shuractZoneChoose']); ?>
	<?php echo($Row0['shuractAddress']); ?>
	邮编：<?php echo($Row0['shuractPostCode']); ?>
	手机：<?php echo($Row0['shuractAddress']); ?>
	电邮：<?php echo($Row0['shuractPublisher_Email']); ?>
	电话：<?php echo($Row0['shuractPublisher_Tele']); ?>
<?php } $Coun0++; } ?>
</div>
<div id="OrderUserinfo_Box" class="DHidden">
<div id="OrderUserinfo_List"><table cellpadding="2" cellspacing="0">
<?php
$Coun0=0;
foreach($tmpDefault->sReceiveaddress as $Row0){ ?>
<tr><td class="ConfirmOrder_1_34"><input id="Receiveaddress_Txt<?php echo($Coun0); ?>" name="Receiveaddress_Txt" onclick="tmpOrder.OnOrder_Receiveaddress();" value="<?php echo($Row0['Value']); ?>" type="radio" <?php if($Row0['Value']==$tmpDefault->sData_Userinfohabits['Order_Userreceiveaddress']){ ?> checked="checked" <?php } ?> /></td>
	<td><label id="Receiveaddress_TxtLabel<?php echo($Coun0); ?>" for="Receiveaddress_Txt<?php echo($Coun0); ?>">
	<?php echo($Row0['shuractPublisher_Name']); ?>
	<?php echo($Row0['shuractZoneChoose']); ?>
	<?php echo($Row0['shuractAddress']); ?>
	邮编：<?php echo($Row0['shuractPostCode']); ?>
	手机：<?php echo($Row0['shuractAddress']); ?>
	电邮：<?php echo($Row0['shuractPublisher_Email']); ?>
	电话：<?php echo($Row0['shuractPublisher_Tele']); ?>
	</label></td>
	<td><a href="#Here" onclick="tmpOrder.OnOrder_Contact_Edit('<?php echo($Row0['Value']); ?>','<?php echo($Row0['shuractPublisher_Name']); ?>','<?php echo($Row0['shuractPublisher_Mobile']); ?>','<?php echo($Row0['shuractPublisher_Email']); ?>','<?php echo($tmpDefault->sCode->Int32($Row0['shuractZoneChoose'],2)); ?>','<?php echo($tmpDefault->sCode->Int32($Row0['shuractZoneChoose'],2)); ?>','<?php echo($tmpDefault->sCode->Int32($Row0['shuractZoneChoose'],2)); ?>','<?php echo($Row0['shuractAddress']); ?>','<?php echo($Row0['shuractPublisher_Tele']); ?>','<?php echo($Row0['shuractPostCode']); ?>');" class="Link1 FBlue1">修改</a></td></tr>
<?php $Coun0++; } ?>
<tr><td>&nbsp;</td><td><a href="#Here" onclick="tmpOrder.OnOrder_Contact_New();" class="Link1 FBlue1">新增联系方式</a></td></tr>
</table></div>
<ul id="OrderUserinfo_Contact_Box" class="DHidden">
<li class="DHidden"><input id="OrderUserinfo_Contact_IDTxt" name="OrderUserinfo_Contact_IDTxt" type="text" /></li>
<li class="ConfirmOrder_1_43">编辑联系方式：</li>
<li class="ConfirmOrder_1_44">收货人：</li>
<li class="ConfirmOrder_1_45"><input id="OrderUserinfo_Contact_ConManTxt" name="OrderUserinfo_Contact_ConManTxt" type="text" /></li>
<li class="ConfirmOrder_1_44">手机：</li>
<li class="ConfirmOrder_1_45"><input id="OrderUserinfo_Contact_MobileTxt" name="OrderUserinfo_Contact_MobileTxt" type="text" /></li><li class="DClear"></li>
<li class="ConfirmOrder_1_44">电子邮件：</li>
<li class="ConfirmOrder_1_45"><input id="OrderUserinfo_Contact_EmailTxt" name="OrderUserinfo_Contact_EmailTxt" type="text" /></li><li class="DClear"></li>
<li class="ConfirmOrder_1_44">地区：</li>
<li class="ConfirmOrder_1_45"><table id="OrderUserinfo_Contact_ZoneTxt" class="" cellpadding="0" cellspacing="0">
<?php
$Coun0=0;
$tmpFlag='Normal';
foreach ($tmpDefault->sUiDescription_Normal as $Row0){
	$tmpDefault->DefUiPanel($Row0,$tmpFlag);
	$tmpControls->getControl($Row0);

	$Coun0++;
} ?></table></li>
<li class="ConfirmOrder_1_46">请选择您所在的地址区域。</li><li class="DClear"></li>
<li class="ConfirmOrder_1_44">街道地址：</li>
<li class="ConfirmOrder_1_45"><input id="OrderUserinfo_Contact_AddressTxt" name="OrderUserinfo_Contact_AddressTxt" type="text" class="ConfirmOrder_1_46" /></li><li class="DClear"></li>
<li class="ConfirmOrder_1_44">固定电话：</li>
<li class="ConfirmOrder_1_45"><input id="OrderUserinfo_Contact_TeleTxt" name="OrderUserinfo_Contact_TeleTxt" type="text" /></li>
<li class="ConfirmOrder_1_44">邮编：</li>
<li class="ConfirmOrder_1_45"><input id="OrderUserinfo_Contact_NumCodeTxt" name="OrderUserinfo_Contact_NumCodeTxt" type="text" /></li><li class="DClear"></li>
<li class="ConfirmOrder_1_44">&nbsp;</li><li class="ConfirmOrder_1_47"><a href="#Here" onclick="tmpOrder.OnOrder_Contact_Save();" class="Link1 FBlack1">保存联系地址</a></li>
<li class="DClear"></li></ul>


</div><br />



<!-- ------ #OrderSendmodel ------ -->
<!-- #TITLE -->
<ul class="ConfirmOrder_1_21">
<li class="ConfirmOrder_1_22"><a href="#Here" onclick="tmpOrder.OnOrder_ShowBox('OrderSendmodel');"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Groupsale/28_A.jpg" /></a></li>
<li class="ConfirmOrder_1_23"><a href="#Here" onclick="tmpOrder.OnOrder_ShowBox('OrderSendmodel');" class="Link1 FBlack2">配送方式</a></li>
<li class="ConfirmOrder_1_36"><a id="OrderSendmodel_Button" href="#Here" onclick="tmpOrder.OnOrder_ShowBox('OrderSendmodel');" class="Link1 FBlue1">[修改]</a></li>
<li class="DClear"></li></ul>
<!-- #CONTENT -->
<div id="OrderSendmodel_Label" class="ConfirmOrder_1_48">
<?php
$Coun0=0;
foreach($tmpDefault->sSendmodel as $Row0){
	if($Row0['Value']==$tmpDefault->sData_Userinfohabits['Order_Sendmodel']){
		echo($Row0['Text']);
	} $Coun0++; } ?>
</div>
<div id="OrderSendmodel_Box" class="DHidden">
<table cellpadding="2" cellspacing="0">
<?php
$Coun0=0;
foreach($tmpDefault->sSendmodel as $Row0){ ?>
<tr><td class="ConfirmOrder_1_34"><input id="OrderSendmodel_Txt<?php echo($Coun0); ?>" name="OrderSendmodel_Txt" onclick="tmpOrder.OnOrder_OrderSendmodel();" type="radio" value="<?php echo($Row0['Value']); ?>" <?php if($Row0['Value']==$tmpDefault->sData_Userinfohabits['Order_Sendmodel']){ ?> checked="checked" <?php } ?> /></td>
	<td><label id="OrderSendmodel_TxtLabel<?php echo($Coun0); ?>" for="OrderSendmodel_Txt<?php echo($Coun0); ?>"><?php echo($Row0['Text']); ?></label></td></tr>
<?php $Coun0++; } ?>
</table>

</div><br />


<!-- ------ #OrderPaytype ------ -->
<!-- #TITLE -->
<ul class="ConfirmOrder_1_21 DHidden">
<li class="ConfirmOrder_1_22"><a href="#Here" onclick="tmpOrder.OnOrder_ShowBox('OrderPaytype');"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Groupsale/28_A.jpg" /></a></li>
<li class="ConfirmOrder_1_23"><a href="#Here" onclick="tmpOrder.OnOrder_ShowBox('OrderPaytype');" class="Link1 FBlack2">支付方式</a></li>
<li class="ConfirmOrder_1_36"><a id="OrderPaytype_Button" href="#Here" onclick="tmpOrder.OnOrder_ShowBox('OrderPaytype');" class="Link1 FBlue1">[修改]</a></li>
<li class="DClear"></li></ul>
<!-- #CONTENT -->
<div id="OrderPaytype_Label" class="ConfirmOrder_1_48 DHidden">
<?php
$Coun0=0;
foreach($tmpDefault->sPaytype as $Row0){
	if($Row0['Value']==$tmpDefault->sData_Userinfohabits['Order_Userpaytype']){
		echo($Row0['Text'].$Row0['Introduct']);
	} $Coun0++; } ?>
</div>
<div id="OrderPaytype_Box" class="DHidden">
<div class=""><b>网上支付</b>&nbsp;您需要先拥有一张已开通网上支付功能的银行卡。</div>
<table cellpadding="2" cellspacing="0"><tr>
<?php
$Coun0=0;
foreach($tmpDefault->sPaytype_Net as $Row0){ ?>
<td class="ConfirmOrder_1_35"><input id="OrderPaytype_Txt<?php echo($Coun0); ?>" name="OrderPaytype_Txt" onclick="tmpOrder.OnOrder_OrderPaytype();" value="<?php echo($Row0['Value']); ?>" type="radio" <?php if($Row0['Value']==$tmpDefault->sData_Userinfohabits['Order_Userpaytype']){ ?> checked="checked" <?php } ?> /></td>
	<td><label id="OrderPaytype_TxtLabel<?php echo($Coun0); ?>" for="OrderPaytype_Txt<?php echo($Coun0); ?>"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?><?php echo($Row0['Source']); ?>" /><br /><?php echo($Row0['Introduct']); ?></label></td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<?php if(($Coun0+1)%4==0){ echo('</tr><tr>'); } $Coun0++; } ?>
</tr></table>
<div class=""><b>其它支付方式</b></div>
<table cellpadding="2" cellspacing="0"><tr>
<?php
foreach($tmpDefault->sPaytype_Bank as $Row0){ ?>
<td class="ConfirmOrder_1_35"><input id="OrderPaytype_Txt<?php echo($Coun0); ?>" name="OrderPaytype_Txt" onclick="tmpOrder.OnOrder_OrderPaytype();" value="<?php echo($Row0['Value']); ?>" type="radio" <?php if($Row0['Value']==$tmpDefault->sData_Userinfohabits['Order_Userpaytype']){ ?> checked="checked" <?php } ?> /></td>
	<td><label id="OrderPaytype_TxtLabel<?php echo($Coun0); ?>" for="OrderPaytype_Txt<?php echo($Coun0); ?>"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Common/pay_1.jpg" /><br /><?php echo($Row0['Introduct']); ?></label></td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<?php $Coun0++; } ?>
</tr></table>
<table cellpadding="2" cellspacing="0">
<?php
foreach($tmpDefault->sPaytype_Other as $Row0){ ?>
<tr><td class="ConfirmOrder_1_34"><input id="OrderPaytype_Txt<?php echo($Coun0); ?>" name="OrderPaytype_Txt" onclick="tmpOrder.OnOrder_OrderPaytype();" value="<?php echo($Row0['Value']); ?>" type="radio" <?php if($Row0['Value']==$tmpDefault->sData_Userinfohabits['Order_Userpaytype']){ ?> checked="checked" <?php } ?> /></td>
	<td><label id="OrderPaytype_TxtLabel<?php echo($Coun0); ?>" for="OrderPaytype_Txt<?php echo($Coun0); ?>"><?php echo($Row0['Text']); ?><?php echo($Row0['Introduct']); ?></label></td></tr>
<?php $Coun0++; } ?>
</table>

</div>


<!-- ------ #OrderPayBeforehand ------ -->
<!-- #TITLE -->
<?php if($tmpDefault->sActionType=='DView'){ ?>
<ul class="ConfirmOrder_1_21 DHidden">
<li class="ConfirmOrder_1_22"><a href="#Here"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Groupsale/28_A.jpg" /></a></li>
<li class="ConfirmOrder_1_23"><a href="#Here" class="Link1 FBlack2">商品支付流程</a></li>
<li class="DClear"></li></ul>

<?php }else{ ?>
<ul class="ConfirmOrder_1_21 DHidden">
<li class="ConfirmOrder_1_22"><a href="#Here" onclick="tmpOrder.OnOrder_ShowBox('OrderPayBeforehand');"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Groupsale/28_A.jpg" /></a></li>
<li class="ConfirmOrder_1_23"><a href="#Here" onclick="tmpOrder.OnOrder_ShowBox('OrderPayBeforehand');" class="Link1 FBlack2">商品支付流程</a></li>
<li class="ConfirmOrder_1_36"><a id="OrderPayBeforehand_Button" href="#Here" onclick="tmpOrder.OnOrder_ShowBox('OrderPayBeforehand');" class="Link1 FBlue1">[修改]</a></li>
<li class="DClear"></li></ul>

<?php } ?>
<!-- #CONTENT -->
<div id="OrderPayBeforehand_Label" class="ConfirmOrder_1_48 DHidden">
<?php
$Coun0=0;
foreach($tmpDefault->sPayBeforehand as $Row0){
	if($Row0['Value']==$tmpDefault->sData_Userinfohabits['Order_PayBeforehand']){
		echo($Row0['Text']);
	} $Coun0++; } ?>
</div>
<div id="OrderPayBeforehand_Box" class="DHidden">
<table cellpadding="2" cellspacing="0">
<?php
$Coun0=0;
foreach($tmpDefault->sPayBeforehand as $Row0){ ?>
<tr><td class="ConfirmOrder_1_34"><input id="OrderPayBeforehand_Txt<?php echo($Coun0); ?>" name="OrderPayBeforehand_Txt" onclick="tmpOrder.OnOrder_OrderPayBeforehand();" type="radio" value="<?php echo($Row0['Value']); ?>" <?php if($Row0['Value']==$tmpDefault->sData_Userinfohabits['Order_PayBeforehand']){ ?> checked="checked" <?php } ?> /></td>
	<td><label id="OrderPayBeforehand_TxtLabel<?php echo($Coun0); ?>" for="OrderPayBeforehand_Txt<?php echo($Coun0); ?>"><?php echo($Row0['Text']); ?></label></td></tr>
<?php $Coun0++; } ?>
</table></div>


<!-- ------ #OrderOther ------ -->
<!-- #TITLE -->
<?php if($tmpDefault->sActionType=='DView'){ ?>
<ul class="ConfirmOrder_1_21 DHidden">
<li class="ConfirmOrder_1_22"><a href="#Here"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Groupsale/28_A.jpg" /></a></li>
<li class="ConfirmOrder_1_23"><a href="#Here" class="Link1 FBlack2">发票与优惠券</a></li>
<li class="DClear"></li></ul>

<?php }else{ ?>
<ul class="ConfirmOrder_1_21 DHidden">
<li class="ConfirmOrder_1_22"><a href="#Here" onclick="tmpOrder.OnOrder_ShowBox('OrderOther');"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Groupsale/28_A.jpg" /></a></li>
<li class="ConfirmOrder_1_23"><a href="#Here" onclick="tmpOrder.OnOrder_ShowBox('OrderOther');" class="Link1 FBlack2">发票与优惠券</a></li>
<li class="ConfirmOrder_1_36"><a id="OrderOther_Button" href="#Here" onclick="tmpOrder.OnOrder_ShowBox('OrderOther');" class="Link1 FBlue1">[修改]</a></li>
<li class="DClear"></li></ul>

<?php } ?>
<!-- #CONTENT -->
<div id="OrderOther_Label" class="ConfirmOrder_1_48 DHidden">
<b>是否要发票：</b><?php
$Coun0=0;
foreach($tmpDefault->sInvoice as $Row0){
	if($Row0['Value']==$tmpDefault->sData_Invoice[0]){
		echo($Row0['Text']);
	} $Coun0++; } ?>&nbsp;&nbsp;
<b>索取人类型：</b><?php
$Coun0=0;
foreach($tmpDefault->sInvoice_Unit as $Row0){
	if($Row0['Value']==$tmpDefault->sData_Invoice[1]){
		echo($Row0['Text']);
	} $Coun0++; } ?>&nbsp;&nbsp;
<b>发票抬头：</b><?php echo($tmpDefault->sData_Invoice[2]); ?>&nbsp;&nbsp;
<b>发票类型：</b><?php
$Coun0=0;
foreach($tmpDefault->sInvoice_TitleType as $Row0){
	if($Row0['Value']==$tmpDefault->sData_Invoice[3]){
		echo($Row0['Text']);
	} $Coun0++; } ?>

</div>
<div id="OrderOther_Box" class="DHidden">
<div class="FStrong">是否需要发票：</div>
<table cellpadding="2" cellspacing="0"><tr>
<?php
$Coun0=0;
foreach($tmpDefault->sInvoice as $Row0){ ?>
<td class="ConfirmOrder_1_34"><input id="OrderOther_Invoice_Txt<?php echo($Coun0); ?>" name="OrderOther_Invoice_Txt" onclick="tmpOrder.OnOrder_OrderOther();" value="<?php echo($Row0['Value']); ?>" type="radio" <?php if($Row0['Value']==$tmpDefault->sData_Invoice[0]){ ?> checked="checked" <?php } ?> /></td>
	<td><label id="OrderOther_Invoice_TxtLabel<?php echo($Coun0); ?>" for="OrderOther_Invoice_Txt<?php echo($Coun0); ?>"><?php echo($Row0['Text']); ?></td><td>&nbsp;&nbsp;</td>
<?php $Coun0++; } ?>
</tr><tr>
<?php
$Coun0=0;
foreach($tmpDefault->sInvoice_Unit as $Row0){ ?>
<td class="ConfirmOrder_1_34"><input id="OrderOther_InvoiceUnit_Txt<?php echo($Coun0); ?>" name="OrderOther_InvoiceUnit_Txt" onclick="tmpOrder.OnOrder_OrderOther();" value="<?php echo($Row0['Value']); ?>" type="radio" <?php if($Row0['Value']==$tmpDefault->sData_Invoice[1]){ ?> checked="checked" <?php } ?> /></td>
	<td><label id="OrderOther_InvoiceUnit_TxtLabel<?php echo($Coun0); ?>" for="OrderOther_InvoiceUnit_Txt<?php echo($Coun0); ?>"><?php echo($Row0['Text']); ?></td><td>&nbsp;&nbsp;</td>
<?php $Coun0++; } ?>
<td>发票抬头：</td><td><input id="OrderOther_InvoiceTitle_Txt" name="OrderOther_InvoiceTitle_Txt" onchange="tmpOrder.OnOrder_OrderOther();" type="text" value="<?php echo($tmpDefault->sData_Invoice[2]); ?>" /></td><td>&nbsp;&nbsp;</td>
<td>发票内容：</td><td><select id="OrderOther_InvoiceTitleType_Txt" name="OrderOther_InvoiceTitleType_Txt" onchange="tmpOrder.OnOrder_OrderOther();">
	<?php
	$Coun0=0;
	foreach($tmpDefault->sInvoice_TitleType as $Row0){ ?>
	<option value="<?php echo($Row0['Value']); ?>" <?php if($Row0['Value']==$tmpDefault->sData_Invoice[3]){ ?> checked="checked" <?php } ?>><?php echo($Row0['Text']); ?></option>
	<?php $Coun0++; } ?>
	</select></td>

</tr></table>

<div class="FStrong">您可以使用的优惠券：</div>
<table cellpadding="2" cellspacing="0">
<?php
$Coun0=0;
foreach($tmpDefault->sFavourableids as $Row0){ ?>
<tr><td class="ConfirmOrder_1_34"><input id="OrderOther_FavourableidsTxt<?php echo($Coun0); ?>" name="OrderOther_FavourableidsTxt" onclick="tmpOrder.OnOrder_OrderOther();" value="<?php echo($Row0['Value']); ?>" type="checkbox" <?php $tmpAR0=explode($tmpDefault->sysSPLIT2,$tmpDefault->sData_Invoice[4]); if(in_array($Row0['Value'],$tmpAR0)){ ?> checked="checked" <?php } ?> /></td>
	<td><label id="OrderOther_FavourableidsTxtLabel<?php echo($Coun0); ?>" for="OrderOther_FavourableidsTxt<?php echo($Coun0); ?>"><?php echo($Row0['Text']); ?></label></td></tr>
<?php $Coun0++; } ?>
<tr><td>&nbsp;</td><td><a href="#Here" class="Link1 FBlack2">如何获得优惠券？</a></td></tr>
</table>
</div>



<!-- ------ #Button ------ -->
<div class="ConfirmOrder_1_27">
<!-- #INFO -->
<div class="ConfirmOrder_1_33">
	<!--
	货款：<span id="OrderInfo_TotalPay" class=""><?php echo($tmpTotalprice); ?></span> +
	运费：<span id="OrderInfo_TotalPay" class=""><?php echo($tmpTotalprice); ?></span> +
	发票：<span id="OrderInfo_TotalPay" class=""><?php echo($tmpTotalprice); ?></span> -
	优惠券：<span id="OrderInfo_TotalPay" class=""><?php echo($tmpTotalprice); ?></span> =
	-->
	<span class="FRed1">总计：<span id="OrderInfo_ALLPAY"><?php echo($tmpTotalprice); ?></span></span></div>
<!-- #BUTTON -->
<?php if($tmpDefault->sActionType=='DView'){ ?>
<?php if($tmpDefault->sData_OrderContent[0]['shsotState']==0 || $tmpDefault->sData_OrderContent[0]['shsotState']==1){ ?>
<div class="ConfirmOrder_1_28"><a href="<?php echo ($tmpDefault->sysFileConfig['PathRoot']); ?>Plus/Common/Shop/saleorder.php?ActionType=DCancel&DCancel=<?php echo ($tmpDefault->sData_OrderContent[0]['shsotNumCode']); ?>" class="Link2">退单</a></div>
<div class="ConfirmOrder_1_28"><a href="<?php echo ($tmpDefault->sysFileConfig['PathRoot']); ?>Plus/Common/Shop/saleorder_list.php?ActionType=DRepay&DRepay=<?php echo ($tmpDefault->sData_OrderContent[0]['shsotNumCode']); ?>" class="Link2" target="_blank">支付</a></div>

<?php }else if($tmpDefault->sData_OrderContent[0]['shsotState']==2){ ?>
<div class="ConfirmOrder_1_28"><a href="<?php echo ($tmpDefault->sysFileConfig['PathRoot']); ?>Plus/Common/Shop/saleorder.php?ActionType=DConfirmRecv&DConfirmRecv=<?php echo ($tmpDefault->sData_OrderContent[0]['shsotNumCode']); ?>" class="Link2">确认收货</a></div>

<?php }else if($tmpDefault->sData_OrderContent[0]['shsotState']==3){ ?>

<?php }else if($tmpDefault->sData_OrderContent[0]['shsotState']==4){ ?>
<div class="ConfirmOrder_1_28"><a href="<?php echo ($tmpDefault->sysFileConfig['PathRoot']); ?>Plus/Common/Shop/saleorder.php?ActionType=DReturns&DReturns=<?php echo ($tmpDefault->sData_OrderContent[0]['shsotNumCode']); ?>" class="Link2">退货</a></div>

<?php }else if($tmpDefault->sData_OrderContent[0]['shsotState']==5){ ?>
<div class="ConfirmOrder_1_28"><a href="<?php echo ($tmpDefault->sysFileConfig['PathRoot']); ?>Plus/Common/Shop/saleorder.php?ActionType=DReturns&DReturns=<?php echo ($tmpDefault->sData_OrderContent[0]['shsotNumCode']); ?>" class="Link2">退货</a></div>

<?php } ?>


<?php }else{ ?>
<div class="ConfirmOrder_1_28"><a href="#Here" onclick="tmpOrder.OnOrder_SetIDS(); tmpCommon.setActionType('','DAdd','','&DOrder=<?php echo($tmpDefault->sIDSTR); ?>'); tmpCommon.netsSubmit();" class="Link2">资料无误确认购买</a></div>
<div class="ConfirmOrder_1_28_A"><table class="" cellpadding="0" cellspacing="0">
<?php
$Coun0=0;
$tmpFlag='Normal';
foreach ($tmpDefault->sUiDescription_CCode as $Row0){
	$tmpDefault->DefUiPanel($Row0,$tmpFlag);
	$tmpControls->getControl($Row0);
	$Coun0++;
} ?></table></div>
<?php } ?>
<div class="DClear"></div></div>



<?php } ?>







</div></div>
<!-- ------ ### ------ -->
<br /><div class="OutFrame_A Order_1_30">
* 您购物车中的商品信息，我们将为您保存30天，请您及时购买。购物车中显示的价格为商品的最新价格。<br />
* 您对购物车满意么？请<a href="../../../Plus/m_default/Cms/feedback.php" class="Link4 FBlack2" target="_blank">留下您的宝贵建议>></a>
</div><br /></div>
<!-- ------ #PARAMETER ------ -->
<input id="IDS" name="IDS" value="" type="hidden" />
<!-- ------ #SCRIPT ------ -->
<script type="text/javascript">
var tmpShop=new Shop();
tmpShop.OnNavigation(0);
var tmpOrder=new Order();
tmpOrder.sCarURL="Plus/Common/Shop/codesalecar_list.php";
tmpOrder.sOrderURL="Plus/Common/Shop/codesaleorder_list.php";

tmpOrder.OnOrder_ResetOptionbox();
tmpOrder.OnOrder_Initial();
tmpOrder.OnOrder_SetIDS();


<?php if($tmpDefault->sData_Userinfohabits['Order_Userreceiveaddress']==0){ ?>
tmpOrder.OnOrder_ShowBox('OrderUserinfo');
<?php } ?>
<?php if($tmpDefault->sData_Userinfohabits['Order_Userpaytype']==0){ ?>
tmpOrder.OnOrder_ShowBox('OrderPaytype');
<?php } ?>
<?php if($tmpDefault->sData_Userinfohabits['Order_PayBeforehand']==0){ ?>
//tmpOrder.OnOrder_ShowBox('OrderPayBeforehand');
<?php } ?>
<?php if($tmpDefault->sData_Userinfohabits['Order_Sendmodel']==0){ ?>
//tmpOrder.OnOrder_ShowBox('OrderSendmodel');
<?php } ?>
<?php if($tmpDefault->sData_Userinfohabits['Order_Invoice']==''){ ?>
//tmpOrder.OnOrder_ShowBox('OrderOther');
<?php } ?>





</script>
<?php require($netsFileConfig['bussinessTemplatePackagePath'].'Component/End_Shop_0.php'); ?>