<!--#include file="_header.html" -->
<br />
<table class="mainbox border" cellspacing="0" cellpadding="0" border="0">
	<!--{foreach (System.Data.DataRow dr in mproduct.GetCounterPro(conn, TopicID, ProductId).Rows)} -->
	<tr>
		<th colspan="4">
			<%=dr["proname"]%>
			&nbsp;&nbsp;<%=dr["productid"]%>
		</th>
	</tr>
	<tr>
		<td width="220" rowspan="10" style="padding-top:10px; text-align:center" 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>
	</tr>
	<tr>
		<td width="450" style="border-top:none">商品名称：<%=dr["proname"]%>&nbsp;</td>
		<td colspan="2" rowspan="8" align="left" valign="top" nowrap="nowrap" style="padding:10px;">
			<table width="100%" class="border" cellpadding="0" cellspacing="0" style="padding-left:10px;margin-top:10px;">
				<tr>
					<th colspan="2">
						卖家信息</th>
				</tr>
				<tr>
					<td width="30%">注册名称</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>
				<!--<tr>
					<td>博客</td>
					<td><a href="<%=ApplicationSettings.Get("oblog_url")%>?name=<%=dr["username"]%>"><%=dr["username"]%></a></span></td>
				</tr>-->
			</table>
		</td>
	</tr>
	<tr>
		<td>类型：<%=dr["protype"]%></td>
	</tr>
	<tr>
		<td>原价：<del><%=int.Parse(dr["prooldprice"].ToString())%></del>
			元</td>
	</tr>
	<tr>
		<td>现价：<b><font color="red"><%=int.Parse(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() ? "虚拟物品或无需邮递" : ("平邮：" + dr["propostage_mail"].ToString() + "&nbsp;元,&nbsp;快递：" + dr["propostage_express"].ToString() + "&nbsp;元,EMS：" + dr["propostage_ems"].ToString()+"&nbsp;元"))%></b></td>
	</tr>
	<tr>
		<td>所在地：&nbsp;<%=dr["proaddress"]%><br />
			<a border=0 href="trade.aspx?productid=<%=dr["cid"]%>&s=1" target="_blank"><img src="templates/<%=CurrentTemplateName%>/images/posts/tenpay.gif" /></a>&nbsp;&nbsp;
			<a href="message_send.aspx?recipient=<%=dr["username"].ToString()%>&style=new_style" target="_blank">
				<img src="templates/<%=CurrentTemplateName%>/images/posts/msgprice.gif" /></a></td>
	</tr>
	<tr>
		<td colspan="4">
			<div style="float:left;padding:10px 15px 20px 20px">商品说明：<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=dr["prodesc"]%></div>
			<!--{if(dr["username"].ToString() == user.Name)}-->
			<div style="float:right">
				<a href="topic_edit.aspx?pt=3-2&action=editreply&topicid=<%=TopicID%>&productid=<%=dr["cid"].ToString()%>&replyid=0">
					编辑</a>
			</div> <!--{endif}--></td>
	</tr>
	<!--{endforeach}-->
</table>
<br />
<br />
<!--{if( "1" == _A_)}-->
<table cellpadding="0" cellspacing="0" width="auto" style="margin-top:8px" 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="400" style="margin-top:8px" class="border">
				<td></td>
				<td></td>
	</tr>
	<tr>
		<td style="border-top:none">支付总额：&nbsp;</td>
		<td align="left" style="border-top:none">￥元</td>
	</tr>
	<tr>
		<td>购买数量：</td>
		<td align="left"><span style="border-top:none">
				<input type="text" name="textfield2" />
			</span></td>
	</tr>
	<tr>
		<td>物流方式：</td>
		<td align="left">&nbsp;</td>
	</tr>
	<tr>
		<td>收货人姓名：</td>
		<td align="left"><span style="border-top:none">
				<input type="text" name="textfield3" />
			</span></td>
	</tr>
	<tr>
		<td>收货人地址：</td>
		<td align="left"><span style="border-top:none">
				<input type="text" name="textfield4" style="width:250px" />
			</span></td>
	</tr>
	<tr>
		<td>收货人电话：&nbsp;</td>
		<td align="left"><span style="border-top:none">
				<input type="text" name="textfield5" />
			</span></td>
	</tr>
	<tr>
		<td>收货人手机：</td>
		<td align="left"><span style="border-top:none">
				<input type="text" name="textfield6" />
			</span></td>
	</tr>
	<tr>
		<td>买家留：</td>
		<td align="left"><textarea name="textarea" style="width:200px; height:50px"></textarea></td>
	</tr>
	<tr>
		<td colspan="2"><input type="submit" name="Submit" value="提交" /> &nbsp; <input type="reset" name="Submit2" value="还原" /></td>
	</tr>
</table>
</td> </tr> </table> 
<!--{endif}-->
<!--#include file="_footer.html" -->