<{import file="common.html" title="订单支付"}>  
<style type="text/css">  
body{ background:#fff; }
.addSub{ width:100%; padding:5px 0 10px 0; float:left; }
.addSub p{ padding:0 10px; }
.addSub p input{ width:100%; padding:15px 0 12px; border-radius:5px; background:#DD371D; color:#FFFFFF; font-size:14px; float:left; }

.payBox{ width:100%; padding:10px 0 0 0; float:left; }
.payBox dl{ width:100%; padding:10px 0 0 0; float:left; }
.payBox dl dt{ width:70px; padding:8px 0 0 10px; color:#888; float:left; }
.payBox dl dd{ margin-left:80px; padding:7px 10px 0 0; }
span.ttl{ padding:3px 0 0 0; color:#333; line-height:23px;}
span.price{}
span.price i{ padding:5px 6px 0 0; color:#f00; float:left; }
span.price em{ margin-top:-1px; color:#f00; font-size:22px; float:left;  }
 
.pay_ck{ width:100%; padding:20px 0 0 0; float:left; }
.pay_ck p{ margin:0 10px 10px; height:50px; position: relative; border:1px solid #ddd; border-radius:3px; } 
.pay_ck p.selected{ border:1px solid #f00; } 
.pay_ck p.selected i{ width:10px; height:10px; z-index:10; background:url(<{$__PUBLIC__}>images/goods_selected.gif) no-repeat right bottom;  line-height: 0; right:0px; bottom:0px; text-indent:-99em; position: absolute; }   

.pay_ck p label{ width:100%; line-height:50px; padding:0; float:left;}
.pay_ck p label input{ margin:14px 10px 0 15px; float:left; } 
.pay_ck p label img{ max-height:50px; min-height:50px; }
</style>
<body>
<div class="cnav">
	<a class="back">&nbsp;</a>订单支付<a href="javascript:;" class="thome">主页</a>
</div>
<div class="lbox">
	<form action="member.php" method="get">
		<input type="hidden" name="m" value="account"/>
		<input type="hidden" name="a" value="pay_submit"/>
		<input type="hidden" name="trade_no" value="<{$smarty.get.trade_no}>"/> 
		<div class="payBox">
			<dl>
				<dt>交易编号</dt>
				<dd><span class="ttl"><{$row.trade_no}></span></dd>
			</dl>
			<dl>
				<dt>支付名称</dt>
				<dd><span class="ttl"><{$row.title}></span></dd>
			</dl>
			<dl>
				<dt>支付金额</dt>
				<dd><span class="price"><i>¥</i><em><{$row.price}></em></span></dd>
			</dl>
		</div> 
		<{if $row.pay_status == '1'}>
			<div class="payBox" style="padding:0;">
				<dl>
					<dt>支付状态</dt>
					<dd><span class="ttl">已经支付</span></dd>
				</dl>
			</div>	
		<{else}>
			<div class="pay_ck">
				<{uqcms m="payment" v="pay" c="get_all"}>
				<{if $pay}>
					<{foreach item=i from=$pay}>
						<p>
							<label>
								<input type="radio" name="payment" value="<{$i.alias}>" checked="checked">
								<img src="<{$i.simg}>" title="<{$i.name}>">
							</label>
							<i></i>
						</p>
					<{/foreach}>
				<{else}>
					<span>请配置支付</span>
				<{/if}> 
			</div>
			<div class="sbutton"><input type="submit" class="submit" value="确认支付"/></div>
		<{/if}> 
	</form>  
</div> 
<{include file="default/footer.html"}>
<script type="text/javascript">
$(function(){
	$(".pay_ck p label").click(function(){
		$(this).parent().addClass('selected').siblings().removeClass('selected');
	});
});
</script>