<!-- #include file="../BBR_BodyTop.asp" -->

<%
dim siteDocName,SYS_WEBNAME_CONST
siteDocName="收款帳戶"

BBR_PageTitle="網站平臺擔保交易指定收款帳戶"
response.write Cnbbr_Head
%>

<div class="wbox" style="background: #F6F9FE; overflow: hidden; zoom:1">
	<div class="left">
		<div class="articlelist_logo">
			<div class="articlelist_logo_left"><a target="_blank" href="./"><img src="<%=SYS_SetupDirectory%>images/shoplogo.gif" alt="<%=SYS_WEBName%>"/></a></div>
			<div class="articlelist_logo_right articlelist_logo_right_width">
				<h5 class="font_weight"><a href="<%=SYS_SetupDirectory%>" target="_blank"><%=SYS_WEBName%></a></h5>
				<p>網站相關文檔</p>
			</div>
			<div class="clear"></div>
		</div>
		<div class="articlelist_kind articlelist_kind_height">
			<ul><%=displaySiteDocLeftBar(siteDocName)%></ul>
			<div class="clear"></div>
		</div>
    </div>
    <div class="right">
      	<div class="container">
			<h2 style="line-height: 26px; text-indent: 10px; background: #FAFCFF;"><%=BBR_PageTitle%></h2>
			<div class="articlelist_content" id="articlelist_content">
				<!--  content begin -->
<%
				dim rs1
				sql="select bankcardid,bankcardowner,bankcardtype,bankname,bankaddress,bankcardrealname,bankcardno,bankcommendstatus,bankcertstatus,bankcardstatus from cnbbr_bankcards where bankcardstatus>0 and bankcertstatus=2 and bankcardowner='[[system]]' order by bankcommendstatus desc"
				set rs1=conn.execute(sql)
				if rs1.eof or rs1.bof then
					response.write " 還沒有設置網站官方【擔保交易】收款帳戶！"
				else
					do while not rs1.eof
						response.write "<table width=""100%"" align=""center"" cellpadding=""3"" cellspacing=""1"" border=""0"" bgcolor=""#eeeeee"">"& Vbcrlf
						if rs1("bankcardtype")=1 then
							response.write "<tr>"& Vbcrlf
							response.write "<td width=""40%"" align=""right"">銀行名稱：</td>"& Vbcrlf
							response.write "<td width=""60%"" align=""left""><b>"& rs1("bankname") &"</b>"
							if rs1("bankcommendstatus")=1 then response.write "（<img src="""& SYS_SetupDirectory &"images/star.gif"" border=""0"" alt="""" style=""margin-bottom: -3px;"" /> 推薦使用）"
							response.write "</td>"& Vbcrlf
							response.write "</tr>"& Vbcrlf
							response.write "<tr>"& Vbcrlf
							response.write "<td width=""40%"" align=""right"" bgcolor=""#ffffff"">開戶行所在地：</td>"& Vbcrlf
							response.write "<td width=""60%"" align=""left"" bgcolor=""#ffffff"">"& rs1("bankaddress") &"</td>"& Vbcrlf
							response.write "</tr>"& Vbcrlf
						else
							response.write "<tr>"& Vbcrlf
							response.write "<td width=""40%"" align=""right"">網關名稱：</td>"& Vbcrlf
							response.write "<td width=""60%"" align=""left""><b>"& radioOper("",rs1("bankcardtype"),"1,2,3,4","銀行卡,支付寶,財付通,Paypal") &"</b>"
							if rs1("bankcommendstatus")=1 then response.write "（<img src="""& SYS_SetupDirectory &"images/star.gif"" border=""0"" alt="""" style=""margin-bottom: -3px;"" /> 推薦使用）"
							response.write "</td>"& Vbcrlf
							response.write "</tr>"& Vbcrlf
						end if
						response.write "<tr>"& Vbcrlf
						response.write "<td width=""40%"" align=""right"" bgcolor=""#ffffff"">收款人姓名：</td>"& Vbcrlf
						response.write "<td width=""60%"" align=""left"" bgcolor=""#ffffff"">"& rs1("bankcardrealname") &"</td>"& Vbcrlf
						response.write "</tr>"& Vbcrlf
						response.write "<tr>"& Vbcrlf
						response.write "<td width=""40%"" align=""right"" bgcolor=""#ffffff"">收款帳號：</td>"& Vbcrlf
						response.write "<td width=""60%"" align=""left"" bgcolor=""#ffffff"">"& rs1("bankcardno") &"</td>"& Vbcrlf
						response.write "</tr>"& Vbcrlf
						response.write "</table>"& Vbcrlf
					rs1.movenext
					loop
				end if
				rs1.close
				set rs1=nothing
%>
				<!--  content end -->
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
			</div>
		</div>
    </div>
	<div class="clear"></div>
</div>
<%
response.write Cnbbr_Bottom
%>
