<!--#include file="_header.html" --><br />
<!--{if( "1" == _A_)}-->
<table border="0" cellpadding="0" cellspacing="0" width="auto" class="tablebox border">
	<!--{foreach (System.Data.DataRow dr in GetCounterPro.Rows)} -->
	<tr>
		<th colspan="4">
			&nbsp;&nbsp; 您选购商品的详细信息&nbsp;&nbsp;&nbsp;&nbsp;<%=dr["proname"]%>&nbsp;&nbsp;<%=dr["productid"]%>&nbsp;&nbsp;<a href="trade.aspx?productid=<%=ProductId%>&s=<%=_A_%>#now">马上填写订单</a>
		</th>
	</tr>
	<tr>
		<td width="220" rowspan="10" align="center" style="padding:10px" aligin="center">
			<img onload="if(this.width>200){this.width=200;}if(this.height>200){this.height=200;}" src="<%=("" == dr["proimg"] ? "templates/"+ CurrentTemplateName + "/images/posts/trade_nophoto.gif" : (Config.Settings["uploadfiles"].ToString()+dr["proimg"].ToString()))%>" onerror="ImageOnError(this,'templates/<%=CurrentTemplateName%>/images/posts/trade_nophoto.gif')"/>
		</td>
		<td></td>
		<td></td>
		<td></td>
	</tr>
	<tr>
		<td width="450" style="border-top:none">商品名称：<%=dr["proname"]%>&nbsp;</td>
		<td colspan="2" rowspan="8" align="left" valign="top" style="border-top:none;" nowrap="nowrap">
			<table width="100%" align="center" cellpadding="0" cellspacing="0" class="border">
				<tr>
					<th colspan="2" align="center" nowrap="nowrap">卖家信息</th>
				</tr>
				<tr>
					<td width="50%">注册名称</td>
					<td><%=dr["username"]%></td>
				</tr>
				<tr>
					<td>卖家信用</td>
					<td><%=dr["sellcredit"]%><!--<%sellcredit=dr["sellcredit"].ToString();%>--> &nbsp;<%=(null != sellcredit ? "<img src=\"templates/"+ CurrentTemplateName +"/images/posts/" + sellcredit +"\" />" : "")%></td>
				</tr>
				<tr>
					<td>买家信用</td>
					<td><%=dr["buycredit"]%><!--<%buycredit=dr["buycredit"].ToString();%>--> &nbsp;<%=(null != buycredit ? "<img src=\"templates/"+ CurrentTemplateName +"/images/posts/" + buycredit +"\" />" : "")%></td>
				</tr>
				<tr>
					<td>注册时间</td>
					<td><%=dr["JoinDate"]%></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td>类型：<%=dr["protype"]%></td>
	</tr>
	<tr>
		<td>原价：<del><%=dr["prooldprice"].ToString()%></del>
			元</td>
	</tr>
	<tr>
		<td>现价：<b><font color="red"><%=dr["pronowprice"].ToString()%></font></b>
			元</td>
	</tr>
	<tr>
		<td>数量：<%=dr["procount"]%></td>
	</tr>
	<tr>
		<td>已售出：&nbsp;<%=dr["trasucesscount"]%>&nbsp;件，交易中：&nbsp;<%=dr["traingcount"]%>&nbsp;件</td>
	</tr>
	<tr>
		<td>结束时间：&nbsp;<%=dr["proenddate"]%>&nbsp;件</td>
	</tr>
	<tr>
		<td>运费：<b><%=("0" == dr["protrasport"].ToString() ? "虚拟物品或无需邮递" : ("平邮：" + (int.Parse(dr["propostage_mail"].ToString())) + "&nbsp;元,&nbsp;快递：" + (int.Parse(dr["propostage_express"].ToString())) + "&nbsp;元；"))%></b>
			&nbsp;&nbsp;&nbsp;
			<%=("1" == dr["protrasport"].ToString() ? "卖家承担运费" : ("2" == dr["protrasport"].ToString() ? "买家承担运费" : "") )%>
		</td>
	</tr>
	<tr>
		<td>所在地：&nbsp;<%=dr["proaddress"]%>&nbsp;</td>
	</tr>
	<tr>
		<td colspan="4"><div style="float:left;padding:0px 15px 20px 10px">商品说明：<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=dr["prodesc"]%></div>
		</td>
	</tr>
	<!--{endforeach}-->
</table>
<br />
<form method="post" target="Reg_HiddenIFrame" ID="Form1">
<table cellpadding="0" cellspacing="0" width="auto"  class="tablebox border">
		<tr>
			<th colspan="2">&nbsp;&nbsp;<a name="now"></a>订单</th>
		</tr>
	
		<tr>
			<td>支付总额：&nbsp;</td>
			<td align="left" style="border-top:none">
				<input name="tramoney" type="text" id="tramoney" value="<%=GetCounterPro.Rows[0]["pronowprice"].ToString()%>" style="background-color:#FFFFFF;border:none;width:50px; text-align:center" readonly="true" />
				￥<font class="fon1">元</font></td>
		</tr>
		<tr>
			<td>购买数量：</td>
			<td align="left"><span style="border-top:none">
					<input name="tracount" onmouseover="this.className='TextBoxFocus'" onmouseout="this.className='TextBox'" type="text" id="tracount" onkeyup="this.value=this.value.replace(/[^\d,]+/g,'');if(this.value>(<%=GetCounterPro.Rows[0]["procount"].ToString()%>-<%=GetCounterPro.Rows[0]["trasucesscount"].ToString()%>-<%=GetCounterPro.Rows[0]["traingcount"].ToString()%>)){alert('您需要购买的商品数量货存不足');this.value=1;}document.getElementById('tramoney').value=<%=GetCounterPro.Rows[0]["pronowprice"].ToString()%>*this.value;" />
				</span></td>
		</tr>
		<tr>
			<td>物流方式：</td>
			<td align="left">
				<!--{if("0" == GetCounterPro.Rows[0]["protrasport"].ToString())}-->
				虚拟物品或无需邮递 <input id="protrasport" type="hidden" value="<%=GetCounterPro.Rows[0]["protrasport"].ToString()%>" name="protrasport" />
				<!--{endif}-->
				<!--{if("1" == GetCounterPro.Rows[0]["protrasport"].ToString())}-->
				卖家承担运费 
				<!--{endif}-->
				<!--{if("2" == GetCounterPro.Rows[0]["protrasport"].ToString())}-->
				买家承担运费 
				<!--{endif}-->
				<!--{if("0" != GetCounterPro.Rows[0]["protrasport"].ToString())}-->
				<br />
				<label>
	<input id="protrasport" tabindex="160" type="radio" value="1" class="checkbox" checked="true" name="protrasport" />
	平邮</label>&nbsp;&nbsp;
				<label>
	<input id="protrasport" tabindex="160" type="radio" class="checkbox" value="1" name="protrasport" />
	快递</label>&nbsp;&nbsp; <input id="protrasport" tabindex="160" type="radio" value="1" name="protrasport" />
				EMS</label> 
				<!--{endif}-->
				&nbsp;</td>
		</tr>
		<tr>
			<td>收货人姓名：</td>
			<td align="left"><span style="border-top:none">
					<input name="tratuser" onmouseover="this.className='TextBoxFocus'" onmouseout="this.className='TextBox'" type="text" id="tratuser" />
				</span></td>
		</tr>
		<tr>
			<td>收货人地址：</td>
			<td align="left"><span style="border-top:none">
					<input name="trataddress" onmouseover="this.className='TextBoxFocus'" onmouseout="this.className='TextBox'" type="text" id="trataddress" style="width:250px" />
				</span></td>
		</tr>
		<tr>
			<td>收货人邮编：&nbsp;</td>
			<td align="left"><span style="border-top:none">
					<input name="tratzip" onmouseover="this.className='TextBoxFocus'" onmouseout="this.className='TextBox'" type="text" id="tratzip" />
				</span></td>
		</tr>
		<tr>
			<td>收货人电话：&nbsp;</td>
			<td align="left"><span style="border-top:none">
					<input name="trattel" onmouseover="this.className='TextBoxFocus'" onmouseout="this.className='TextBox'" type="text" id="trattel" />
				</span></td>
		</tr>
		<tr>
			<td>收货人手机：</td>
			<td align="left"><span style="border-top:none">
					<input name="tratmobi" onmouseover="this.className='TextBoxFocus'" onmouseout="this.className='TextBox'" type="text" id="tratmobi" />
				</span></td>
		</tr>
		<tr>
			<td>买家留言：</td>
			<td align="left"><textarea name="trafmsg" onmouseover="this.className='TextBoxFocus'" onmouseout="this.className='TextBox'" id="trafmsg" style="width:200px; height:50px"></textarea></td>
		</tr>
		<tr style="padding-bottom:10px;">
			<td>&nbsp;</td>
			<td align="left">
			<input type="submit" name="send" id="send" value=" 下 订 单 " onMousemove="this.className='button_on';"
onMouseout="this.className='button_off'" class="button_off" onclick="return checktrade();" />
				&nbsp; 
			<input type="reset" name="Submit2" value=" 还 原 " onMousemove="this.className='button_on';"
onMouseout="this.className='button_off'" class="button_off" />
			 <a id="now" name="now"></a>
			</td>
		</tr>
</table>
</form> 
<iframe name="Reg_HiddenIFrame" id="Reg_HiddenIFrame" src="" width="0%" height="0px" style="border: 0px solid red;"></iframe>
<!--{else if("2" == _A_)}-->
<style>
#tradestat_0 a{ color:red}
</style>
<form method="post" target="Reg_HiddenIFrame">
	<table cellpadding="0" cellspacing="0" width="auto"  class="tablebox border">
		<tr>
			<th>&nbsp;&nbsp;确认购买信息</th>
		</tr>
		<tr>
			<td align="center" valign="top" style="padding:0px 10px 10px 10px">
				<table border="0" cellpadding="4" cellspacing="0" width="500" style="margin-top:8px" class="grid row"
					ID="Table5">
					<tr>
						<td width="50%" bgcolor="#EFEFEF" align="left">&nbsp;&nbsp;&nbsp;&nbsp;交易状态&nbsp;&nbsp;(<a href="javascript:void(window.location.reload())" target="_self">刷新交易状态</a>)</td>
					</tr>
					<tr>
						<td id="tradestat_0" name="tradestat_0" align="left" style="padding:4px 4px 4px 20px ">
							<!--{if(false && user.Name == GetTrade.Rows[0]["trafusername"].ToString())}-->
							<!--物主 卖家-->
							<!--{if("0" == GetTrade.Rows[0]["trastat"].ToString())}-->
							买家发起交易，未付款&nbsp;&nbsp; 
							<!--{else if("5" == GetTrade.Rows[0]["trastat"].ToString())}-->
							交易成功 
							<!--{if("1" != GetTrade.Rows[0]["traiscredit"].ToString() && "3" != GetTrade.Rows[0]["traiscredit"].ToString())}-->
							&nbsp;&nbsp;<a href="newcredit.aspx?productid=<%=ProtradeId.ToString()%>" target="_blank">给买家评价</a>
							<!--{endif}-->
							<!--{else}-->
							<%=(""==GetTrade.Rows[0]["trasclosedesc"].ToString() ? GetTrade.Rows[0]["PayResultStr"].ToString() : GetTrade.Rows[0]["trasclosedesc"].ToString())%>
							<!--{endif}-->
							<!--{else}-->
							<!--买家-->
							<!--{if("0" == GetTrade.Rows[0]["trastat"].ToString() || "1" == GetTrade.Rows[0]["trastat"].ToString() || "2" == GetTrade.Rows[0]["trastat"].ToString() || "7" == GetTrade.Rows[0]["trastat"].ToString() )}-->
							<a border=0 href="trade.aspx?protradeid=<%=ProtradeId.ToString()%>&s=4"><img src="templates/<%=CurrentTemplateName%>/images/posts/use_tenpay.gif" /></a><br />
							用财付通支付完成后，请返回确认付款，又便卖主验收即时发货 
							<!--{else if("5" == GetTrade.Rows[0]["trastat"].ToString())}-->
							交易成功 
							<!--{if("1" != GetTrade.Rows[0]["traiscredit"].ToString() && "3" != GetTrade.Rows[0]["traiscredit"].ToString())}-->
							&nbsp;&nbsp;<a href="newcredit.aspx?productid=<%=ProtradeId.ToString()%>" target="_blank">给卖家评价</a>
							<!--{endif}-->
							<!--{else}-->
							<%=GetTrade.Rows[0]["PayResultStr"].ToString()%>
							<!--{endif}-->
							<!--{endif}--></td>
					</tr>
				</table>			
	</form>

<!--{if("5" != GetTrade.Rows[0]["trastat"].ToString())}-->
	<form method="post" target="Reg_HiddenIFrame">
	  <table cellpadding="0" cellspacing="0" width="auto" class="tablebox border">
		<tr>
			<th colspan="2">&nbsp;&nbsp; 
				<!--{if("0" == GetTrade.Rows[0]["trastat"].ToString())}-->
				确认购买信息 
				<!--{else}-->
				帐单明细 
				<!--{endif}-->
			</th>
		</tr>
		<tr>
						<td style="border-top:none">支付总额：&nbsp;</td>
						<td align="left" style="border-top:none">
							<!--{if("0" == GetTrade.Rows[0]["trastat"].ToString())}-->
							<input name="tramoney" type="text" onmouseover="this.className='TextBoxFocus'" onmouseout="this.className='TextBox'" id="tramoney" value="<%=GetTrade.Rows[0]["tramoney"]%>" readonly="true" />
							&nbsp;￥<font>元</font> (点击下方的“更新交易单”按钮重新计算交易金额) 
							<!--{else}-->
							<%=GetTrade.Rows[0]["tramoney"]%>
							<!--{endif}-->
						</td>
					</tr>
					<tr>
						<td>购买数量：</td>
						<td align="left">
						<span style="border-top:none">
								<!--{if("0" == GetTrade.Rows[0]["trastat"].ToString())}-->
								<input name="tracount" onmouseover="this.className='TextBoxFocus'" onmouseout="this.className='TextBox'" type="text" id="tracount" value="<%=GetTrade.Rows[0]["tracount"]%>"  />
								<!--{else}-->
								<%=GetTrade.Rows[0]["tracount"]%>
								<!--{endif}-->
							</span></td>
					</tr>
					<tr>
						<td>商品名称：</td>
						<td align="left"><%=GetTrade.Rows[0]["proname"]%>&nbsp;</td>
					</tr>
					<tr>
						<td>物流方式：</td>
						<td align="left">
							<!--{if("0" == GetTrade.Rows[0]["protrasport"].ToString())}-->
							虚拟物品或无需邮递 
							<!--{if("0" == GetTrade.Rows[0]["trastat"].ToString())}-->
							<input id="protrasport" type="hidden" value="1" name="protrasport" /> 
							<!--{endif}-->
							<!--{endif}-->
							<!--{if("1" == GetTrade.Rows[0]["protrasport"].ToString())}-->
							卖家承担运费 
							<!--{endif}-->
							<!--{if("2" == GetTrade.Rows[0]["protrasport"].ToString())}-->
							买家承担运费 
							<!--{endif}-->
							<br />
							<label>
	运费 <%=GetTrade.Rows[0]["tragivemoney"].ToString()%> 元￥ </label></td>
					</tr>
					<tr>
						<td>卖家</td>
						<td align="left"><%=GetTrade.Rows[0]["trafusername"]%>&nbsp;</td>
					</tr>
					<tr>
						<td>买家</td>
						<td align="left"><%=GetTrade.Rows[0]["tratusername"]%>&nbsp;</td>
					</tr>
					<tr>
						<td>收货人姓名：</td>
						<td align="left"><span style="border-top:none">
								<!--{if("0" == GetTrade.Rows[0]["trastat"].ToString())}-->
								<input name="tratuser" onmouseover="this.className='TextBoxFocus'" onmouseout="this.className='TextBox'" type="text" id="tratuser" value="<%=GetTrade.Rows[0]["tratuser"]%>" />
								<!--{else}-->
								<%=GetTrade.Rows[0]["tratuser"]%>
								<!--{endif}-->
							</span></td>
					</tr>
					<tr>
						<td>收货人地址：</td>
						<td align="left"><span style="border-top:none">
								<!--{if("0" == GetTrade.Rows[0]["trastat"].ToString())}-->
								<input name="trataddress" onmouseover="this.className='TextBoxFocus'" onmouseout="this.className='TextBox'" type="text" id="trataddress" style="width:250px" value="<%=GetTrade.Rows[0]["trataddress"]%>" />
								<!--{else}-->
								<%=GetTrade.Rows[0]["trataddress"]%>
								<!--{endif}-->
							</span></td>
					</tr>
					<tr>
						<td>收货人邮编：&nbsp;</td>
						<td align="left"><span style="border-top:none">
								<!--{if("0" == GetTrade.Rows[0]["trastat"].ToString())}-->
								<input name="tratzip" onmouseover="this.className='TextBoxFocus'" onmouseout="this.className='TextBox'" type="text" id="tratzip" value="<%=GetTrade.Rows[0]["tratzip"]%>" />
								<!--{else}-->
								<%=GetTrade.Rows[0]["tratzip"]%>
								<!--{endif}-->
							</span></td>
					</tr>
					<tr>
						<td>收货人电话：&nbsp;</td>
						<td align="left"><span style="border-top:none">
								<!--{if("0" == GetTrade.Rows[0]["trastat"].ToString())}-->
								<input name="trattel" onmouseover="this.className='TextBoxFocus'" onmouseout="this.className='TextBox'" type="text" id="trattel" value="<%=GetTrade.Rows[0]["trattel"]%>" />
								<!--{else}-->
								<%=GetTrade.Rows[0]["trattel"]%>
								<!--{endif}-->
							</span></td>
					</tr>
					<tr>
						<td>收货人手机：</td>
						<td align="left"><span style="border-top:none">
								<!--{if("0" == GetTrade.Rows[0]["trastat"].ToString())}-->
								<input name="tratmobi" onmouseover="this.className='TextBoxFocus'" onmouseout="this.className='TextBox'" type="text" id="tratmobi" value="<%=GetTrade.Rows[0]["tratmobi"]%>" />
								<!--{else}-->
								<%=GetTrade.Rows[0]["tratmobi"]%>
								<!--{endif}-->
							</span></td>
					</tr>
					<tr>
						<td>买家留言：</td>
						<td align="left">
							<!--{if("0" == GetTrade.Rows[0]["trastat"].ToString())}-->
							<textarea name="trafmsg" onmouseover="this.className='TextBoxFocus'" onmouseout="this.className='TextBox'" id="trafmsg" style="width:200px; height:50px"><%=Server.HtmlEncode(GetTrade.Rows[0]["trafmsg"].ToString())%></textarea>
							<!--{else}-->
							<%=GetTrade.Rows[0]["trafmsg"]%>
							<!--{endif}-->
						</td>
					</tr>
					<!--{if("0" == GetTrade.Rows[0]["trastat"].ToString())}-->
					<tr>
						<td>&nbsp;</td>
						<td align="left">
						<input type="submit" name="send" id="send" value="更新交易单"  onMousemove="this.className='button_on';"
onMouseout="this.className='button_off'" class="button_off" />
							&nbsp; <input type="reset" name="Submit22" value=" 还 原 "  onMousemove="this.className='button_on';"
onMouseout="this.className='button_off'" class="button_off" /> <a id="now" name="now">
							</a>
						</td>
					</tr>
					<!--{endif}-->
			</table>
	</form>

<!--{endif}-->
<!--{else if("3" == _A_)}-->
<form method="post" target="Reg_HiddenIFrame">
	<table cellpadding="4" cellspacing="0" width="auto" width="100%" class="tablebox border">
		<tr>
			<th>&nbsp;&nbsp;卖家财付通帐号设定</th>
		</tr>
		<tr>
			<td align="center" valign="top">
				<table border="0" cellpadding="4" cellspacing="0" width="500" style="margin-top:8px" ID="Table5">
					<tr>
						<td align="left" style="border:none"><div align="center">您的财付通帐号：&nbsp; <input name="trafutong" type="text" id="trafutong" value="<%=user.trafutong%>" style="width:250px" />
								&nbsp; <input type="submit" name="send" id="send" value=" 确 认 " class="button_on" />
							</div>
						</td>
					</tr>
					<tr>
						<td align="left" style="padding-left:38px;border:none">说明：财付通账号是可以登录财付通的QQ号码或Email账号，<a href="https://www.tenpay.com/zft/register_1.shtml" target="_blank">免费注册财付通>></a><br />
							中介交易流程：发起交易→用户付款→卖家确认发货→买家收货确认→完成交易<br />
							<p align="right" style="margin-right:38px">
								<a href="https://www.tenpay.com" target="_blank">财付通首页</a> <a href="https://www.tenpay.com/zft/qa/qa_zj.shtml" target="_blank">
									中介交易帮助</a></p>
						</td>
					</tr>
				</table>
				<br />
				<br />
			</td>
		</tr>
	</form>
	<iframe name="Reg_HiddenIFrame" id="Iframe1" src="" width="0%" height="0px" style="border: 0px solid red;"></iframe>
</table>
<!--{else if("3-1" == _A_)}-->
<form method="post" target="Reg_HiddenIFrame">
	<table cellpadding="0" cellspacing="0" width="auto" class="tablebox border" ID="Table1">
		<tr>
			<th>&nbsp;&nbsp;<font color="#ffffff">确认购买信息</font></th>
		</tr>
		<tr>
			<td align="center" valign="top" style="padding:0px 10px 10px 10px">
				<table border="0" cellpadding="4" cellspacing="0" width="500" style="margin-top:8px" class="grid row"
					ID="Table5">
					<tr>
						<td width="50%" bgcolor="#EFEFEF" align="left">&nbsp;&nbsp;&nbsp;&nbsp;请求关闭当前交易</td>
					</tr>
					<tr>
						<td id="tradestat_0" name="tradestat_0">
							<textarea name="trasclosedesc" id="trasclosedesc" style="width:200px; height:50px"></textarea>
						</td>
					</tr>
					<tr>
						<td id="tradestat_0" name="tradestat_0">
							<input type="submit" name="send" id="send" value="请求关闭" class="button" />
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</form>
</table>
<!--{endif}-->
<iframe name="Reg_HiddenIFrame" id="Reg_HiddenIFrame" src="" width="0%" height="0px" style="border: 0px solid red;"></iframe><br />
<br />
<br />
<!--#include file="_footer.html" -->