 <!--{if("-1" == _A_ || "1" == _A_ || "2" == _A_ || "0" == _A_)}-->
	<table class="tablebox tableborder" cellspacing="0" cellpadding="0" style="width:100%;margin:0px;border:0px;" ID="Table6">
		<tr>
			<td width="94" valign="top" id="action_99887_1" onClick="getList(1,3,'0');" name="action_99887_1">
				<div id="nav" style="margin:0px 0px 0px 10px; padding:0px">
					<ul>					
						<li class="menub" onMouseOver="this.className='menua'" onMouseOut="this.className='menub'">
							<div style="margin-left:10px">我是买家</div>						
							<div  class="list">							
								<a onclick="javascript:void(getList(1, 3,'0'));">进行中的交易</a><br />
								<a onclick="javascript:void(getList(1, 3,'1'));">评价的交易</a><br />
								<a onclick="javascript:void(getList(1, 3,'2'));">成功的交易</a><br />
								<a onclick="javascript:void(getList(1, 3,'3'));">退款的交易</a><br />
								<a onclick="javascript:void(getList(1, 3,'4'));">失败的交易</a><br />
								<a onclick="javascript:void(getList(1, 3,'5'));">未生效的交易</a><br />
								<a onclick="javascript:void(getList(1, 3,'6'));">全部交易</a>
								<div style="clear:both"></div>
							</div>
						</li>
					</ul>
				</div>
			</td>
			<td width="90" valign="top" id="action_99887_2" onClick="getList('2',3,0);" name="action_99887_2">
				<div id="nav" style="margin:0px; padding:0px 0px 0px 4px">
					<ul>				
						<li class="menub" onMouseOver="this.className='menua'" onMouseOut="this.className='menub'">
							<div style="margin-left:10px">我是卖家</div>					
							<div  class="list">							
								<a href="javascript:void(getList('2', 3,'0'));">进行中的交易</a><br />
								<a href="javascript:void(getList('2', 3,'1'));">评价的交易</a><br />
								<a href="javascript:void(getList('2', 3,'2'));">成功的交易</a><br />
								<a href="javascript:void(getList('2', 3,'3'));">退款的交易</a><br />
								<a href="javascript:void(getList('2', 3,'4'));">失败的交易</a><br />
								<a href="javascript:void(getList('2', 3,'5'));">未生效的交易</a><br />
								<a href="javascript:void(getList('2', 3,'6'));">全部交易</a><br />
								<a href="javascript:void(getList('2', 3,'7'));">出售中的商品</a><br />
								<div style="clear:both"></div>
							</div>
						</li>
					</ul>
				</div>
			</td>
			<td width="94" valign="top" id="action_99887_0" onClick="getList(-1, 3,'0');" name="action_99887_0"
				style="padding-left:5px; text-align:left">
				<div class="menub"  id="cread">
					<a href="javascript:void(getList(-1, 3,'0'));" target="_self">交易统计</a>
				</div>					
			</td>
			<td width="84" valign="top" id="action_99887_3" name="action_99887_3" style="padding-left:5px">
				<div class="menub"  id="cread"><a href="creditlist.aspx?name=<%=user.Name%>" target="_blank">信用评价</a></div>
			</td>
			<td width="100" valign="top" style="padding-left:14px; text-align:left">
				<div class="menub"  id="cread"><a href="trade.aspx?s=3&vheadfoot=1">财付通帐号</a></div>
			</td>
			<td>&nbsp;</td>
		</tr>
	</table>
	<!--{endif}-->
	<div style="margin-bottom:40px"></div>
	<!--{if("12" == _A_)}-->
     <table class="tablebox tableborder" cellspacing="0" cellpadding="0" style="width:100%;margin:0px;border:0px;" ID="Table5">
		<tr class="td_title">
			<td   width="30%">悬赏名称</td>
			<td  align="center" width="20%">所属论坛</td>
			<td  align="center" width="10%">悬赏总额</td>
			<td align="center" width="10%">回复</td>
			<td  align="center" width="10%"">人气</td>
			<td align="center" width="20%">悬赏日期</td>
		</tr>
		<!--{if(GetMyCrede.Rows.Count <= 0)}-->
		<tr bgcolor="#ffffff">
			<td align="center" colspan="6">没有可查找的信息！</td>
		</tr>
		<!--{else}-->
		<!--{foreach (System.Data.DataRow dr in GetMyCrede.Rows)} -->
		<tr align="center" height="22" class="dasedline">
			<td align="left">&nbsp;<a href="topic.aspx?topicid=<%=dr["topicid"]%>" target="_blank"><%=dr["title"]%></a>&nbsp;</td>
			<td align="center"><a href="board.aspx?boardid=<%=dr["boardid"]%>" target="_blank"><%=dr["BoardType"]%></a>&nbsp;</td>
			<td align="center"><%=dr["repostmoney"]%>&nbsp;</td>
			<td align="center" ><%=dr["child"]%>&nbsp;</td>
			<td align="center"><%=dr["hits"]%>&nbsp;</td>
			<td align="center"><%=dr["dateandtime"]%>&nbsp;</td>
		</tr>
		<!--{endforeach}-->
		<!--{endif}-->
		<tr class="td_title">
			<td align="center" colspan="6" style="border:none"> <!--#include file="_temppager.htm"--></td>
		</tr>
	</table>
	
	<!--{else if("11" == _A_)}-->

	<table class="tablebox tableborder" cellspacing="0" cellpadding="0" style="width:100%;margin:0px;border:0px;" ID="Table4">
		<tr class="td_title">
			<td  width="20%">活动名称</td>
			<td width="20%">活动地点</td>
			<td  width="10%">每人花销</td>
			<td align="center"  width="25%">开始时间</td>
			<td align="center" width="25%">征集截止时间</td>
		</tr>
		<!--{if(GetMyCrede.Rows.Count <= 0)}-->
		<tr bgcolor="#EFEFEF" height="22">
			<td align="center" colspan="5">没有可查找的信息！</td>
		</tr>
		<!--{else}-->
		<!--{foreach (System.Data.DataRow dr in GetMyCrede.Rows)} -->
		<tr align="center" height="22" class="dasedline">
			<td align="left" width="200">&nbsp;<a href="topic.aspx?topicid=<%=dr["topicid"]%>" target="_blank"><%=dr["title"]%></a>&nbsp;</td>
			<td align="left">&nbsp;<%=dr["address"]%>&nbsp;</td>
			<td align="center"><%=dr["payment"]%>&nbsp;元</td>
			<td align="center"><%=dr["start_time_from"]%>&nbsp;</td>
			<td align="center"><%=dr["expiration"]%>&nbsp;</td>
		</tr>
		<!--{endforeach}-->
		<!--{endif}-->
		<tr class="td_title">
			<td align="center" colspan="5"  style="border:none"> <!--#include file="_temppager.htm"--></td>
		</tr>
	</table>
    <!--我的PK-->
	<!--{else if("10" == _A_)}-->
	<table class="tablebox tableborder" cellspacing="0" cellpadding="0" style="width:100%;margin:0px;border:0px;" ID="Table2">
		<tr class="td_title">
			<td width="60%">PK主题</td>
			<td align="center" width="10%">支持比例</td>
			<td align="center" width="5%">状态</td>
			<td align="center" width="10%">截止时间</td>
			<td align="center" width="10%">创建时间</td>
		</tr>
		<!--{if(GetMyCrede.Rows.Count <= 0)}-->
		<tr bgcolor="#EFEFEF" height="22">
			<td align="center" colspan="5">没有可查找的信息！</td>
		</tr>
		<!--{else}-->
		<!--{foreach (System.Data.DataRow dr in GetMyCrede.Rows)} -->
		<tr align="center" height="22" class="dasedline">
			<td align="left">&nbsp;<a href="topic.aspx?topicid=<%=dr["topicid"]%>" target="_blank"><%=dr["title"]%></a>&nbsp;</td>
			<td align="center"><%=dr["winusers"].ToString()%>
				/
				<%=dr["loseusers"].ToString()%>
				&nbsp;</td>
			<td align="center" width="50"><%=("1"==dr["winstat"].ToString() ? "正方胜" : ("2"==dr["winstat"].ToString() ? "反方胜" : ("3"==dr["winstat"].ToString() ? "中立" : "进行中" )))%>&nbsp;</td>
			<!--<%
string[] d0089=new string[2]{"0","0"};
if("0" != dr["endtime"].ToString()){
	d0089 = Dvbbs.Utils.RegExp.GetDifDateAndTime(dr["endtime"].ToString(),System.DateTime.Now);
}
%>-->
			<td align="center" width="180">
				<%=("0" == dr["endtime"].ToString().Trim() ? "" :  System.DateTime.Parse(dr["endtime"].ToString()).ToString("g"))%> (<!--{if("0" != dr["endtime"].ToString())}--><%=d0089[0]%>天<%=d0089[1]%>小时<!--{else}-->  无期限<!--{endif}--> )
			</td>
			<td align="center"><%=dr["dateandtime"]%>&nbsp;</td>
		</tr>
		<!--{endforeach}-->
		<!--{endif}-->
		<tr class="td_title">
			<td align="center" colspan="5" style="border:none"> <!--#include file="_temppager.htm"--></td>
		</tr>
	</table>

	<!--{else if("-1" == _A_)}-->
	<table class="mainbox tableborder" cellspacing="0" cellpadding="0">
		<tr bgcolor="#F3F6FA" height="22">
			<td colspan="2" align="left">卖家提醒区</td>
		</tr>
		<tr align="center">
			<td width="150">出售中的商品</td>
			<td align="left"><%=(null == GetMyCrede.Rows[0]["c"] ? "0" : GetMyCrede.Rows[0]["c"])%>&nbsp;项</td>
		</tr>
		<tr align="center" height="22">
			<td>交易中的商品</td>
			<td align="left"><%=("" == GetMyCrede.Rows[4]["c"].ToString() ? "0" : GetMyCrede.Rows[4]["c"].ToString())%>&nbsp;个</td>
		</tr>
		<tr align="center" height="22">
			<td>已到期的商品</td>
			<td align="left"><%=(null == GetMyCrede.Rows[1]["c"] ? "0" : GetMyCrede.Rows[1]["c"])%>&nbsp;项</td>
		</tr>
		<tr align="center" height="22">
			<td>&nbsp;</td>
			<td align="left">&nbsp;</td>
		</tr>
		<tr bgcolor="#F3F6FA" height="22">
			<td colspan="2">交易统计</td>
		</tr>
		<tr align="center" height="22">
			<td>售出商品总数:
			</td>
			<td align="left">&nbsp;<%=("" == GetMyCrede.Rows[3]["c"].ToString() ? "0" : GetMyCrede.Rows[3]["c"].ToString())%></td>
		</tr>
		<tr align="center">
			<td>销售成交总额:
			</td>
			<td align="left">&nbsp;<%=("" == GetMyCrede.Rows[2]["c"].ToString() ? "0" : GetMyCrede.Rows[2]["c"].ToString())%>
				元</td>
		</tr>
	</table>
	<div style="clear:both"></div>
	<!--{else if("1" == _A_)}-->
	<table width="100%" border="0" cellpadding="4" cellspacing="0" class="row grid" bgcolor="#ffffff"
		align="left" ID="Table1">
		<tr height="22" height="22">
			<td colspan="7">&nbsp;商品名称： <input type="text" name="proname" id="proname" value="" />&nbsp;<input type="button" value=" 搜 索 " class="button" onClick="s(1, 4,'8');" /></td>
		</tr>
		<!--{if(GetMyCrede.Rows.Count <= 0)}-->
		<tr bgcolor="#EFEFEF" height="22">
			<td align="center" colspan="7">没有可查找的信息！</td>
		</tr>
	</table>
	<!--{else}-->
	<tr bgcolor="#EFEFEF" height="22">
		<td align="center" nowrap="nowrap">商品名称</td>
		<td align="center" nowrap="nowrap">柜台</td>
		<td width="150" align="center">卖家</td>
		<td width="50" align="center">数量</td>
		<td width="100" align="center">交易金额（元）</td>
		<td width="150" align="center">交易状态</td>
		<!--{if("2" == _Stat_)}-->
		<td width="150" align="center">信用评价</td>
		<!--{endif}-->
	</tr>
	<!--{foreach (System.Data.DataRow dr in GetMyCrede.Rows)} -->
	<tr align="center" bgcolor="#ffffff" height="22">
		<td align="left">&nbsp;<a href="viewproitem.aspx?id=<%=dr["cid"]%>&TopicID=<%=dr["topicid"]%>" target="_blank"><%=dr["proname"]%></a></td>
		<td><a href="topic.aspx?topicid=<%=dr["topicid"]%>" target="_blank"><%=dr["title"]%></a></td>
		<td align="left"><a href="creditlist.aspx?name=<%=dr["trafusername"]%>" target="_blank">※</a>&nbsp;&nbsp;<a href="user_info.aspx?name=<%=dr["trafusername"]%>" target="_blank"><%=dr["trafusername"]%></a>&nbsp;</td>
		<td><%=dr["tracount"]%>&nbsp;</td>
		<td><%=(int.Parse(dr["tramoney"].ToString())/100.00)%>&nbsp;</td>
		<td align="left">
			<!--{if("0" == dr["trastat"].ToString())}-->
			未生效的交易 
			<!--{else}-->
			<%=mPay.GetmText(dr["trastat"].ToString())%>
			<!--{endif}-->
			&nbsp;<a href="trade.aspx?protradeid=<%=dr["protradeid"].ToString()%>&s=2" target="_blank">查看订单</a>
			&nbsp;</td>
		<!--{if("2" == _Stat_)}-->
		<td align="center">
			<!--{if("1" == dr["traiscredit"].ToString())}-->
			<a href="newcredit.aspx?productid=<%=dr["protradeid"].ToString()%>" target="_blank">
				给买家评价</a> 
			<!--{else}-->
			对方已评价 
			<!--{endif}-->
		</td>
		<!--{endif}-->
	</tr>
	<!--{endforeach}-->
	</table> 
	<!--{endif}-->
	<div style="clear:both"></div>
	<!--{else if("2" == _A_)}-->
	<table width="100%" border="0" cellpadding="4" cellspacing="0" class="row grid" bgcolor="#ffffff"
		align="left" ID="Table3">
		<tr height="22">
			<td colspan="7">&nbsp;商品名称： <input type="text" name="proname" id="proname" value="" />&nbsp;<input type="button" value=" 搜 索 " class="button" onClick="s(2, 4,'8');" /></td>
		</tr>
		<!--{if(GetMyCrede.Rows.Count <= 0)}-->
		<tr bgcolor="#EFEFEF" height="22">
			<td align="center" colspan="7">没有可查找的信息！</td>
		</tr>
	</table>
	<!--{else}-->
	<!--{if("7" == _Stat_ || "8" == _Stat_)}-->
	<tr bgcolor="#EFEFEF" height="22">
		<td align="center" style="border-right:none">&nbsp;</td>
		<td align="center" style="border-right:none">商品名称</td>
		<td align="center" style="border-right:none">商品类型</td>
		<td width="150" align="center" style="border-right:none">上架时间</td>
		<td width="100" align="center" style="border-right:none">成功交易数</td>
		<td width="100" align="center" style="border-right:none">正在交易数</td>
		<td width="100" align="center">销售额（元）</td>
	</tr>
	<!--{foreach (System.Data.DataRow dr in GetMyCrede.Rows)} -->
	<tr align="center" bgcolor="#FFFFFF" height="22">
		<td width="100" style="border-right:none"><img src="<%=("" == dr["proimg"] ? "templates/"+ CurrentTemplateName +"/images/posts/trade_nophoto.gif" : (Config.Settings["uploadfiles"].ToString()+dr["proimg"].ToString()))%>"  onload="if(this.width>80){this.width=80;}if(this.height>80){this.height=80;}"  />&nbsp;</td>
		<td align="left" style="border-right:none"><a href="viewproitem.aspx?id=<%=dr["cid"]%>&TopicID=<%=dr["topicid"]%>" target="_blank"><%=dr["proname"]%></a></td>
		<td style="border-right:none"><%=dr["protype"]%></td>
		<td style="border-right:none" width="150"><%=dr["prodate"]%></td>
		<td style="border-right:none"><%=dr["trasucesscount"]%></td>
		<td style="border-right:none"><%=dr["traingcount"]%></td>
		<td><%=(int.Parse(dr["pronowprice"].ToString()) * int.Parse(dr["trasucesscount"].ToString()))%></td>
	</tr>
	<!--{endforeach}-->
	</table> 
	<!--{else}-->
	<tr bgcolor="#EFEFEF" height="22">
		<td align="center">商品名称</td>
		<td align="center" nowrap="nowrap">柜台</td>
		<td align="center">买家</td>
		<td align="center">交易数量</td>
		<td width="150" align="center">交易金额（元）</td>
		<td width="100" align="center">交易状态</td>
		<!--{if("2" == _Stat_)}-->
		<td width="150" align="center">信用评价</td>
		<!--{endif}-->
	</tr>
	<!--{foreach (System.Data.DataRow dr in GetMyCrede.Rows)} -->
	<tr align="center" bgcolor="#ffffff" height="22">
		<td><a href="viewproitem.aspx?id=<%=dr["cid"]%>&TopicID=<%=dr["topicid"]%>" target="_blank"><%=dr["proname"]%></a></td>
		<td><a href="topic.aspx?topicid=<%=dr["topicid"]%>" target="_blank"><%=dr["title"]%></a></td>
		<td align="left"><a href="creditlist.aspx?name=<%=dr["tratusername"]%>" target="_blank">※</a>&nbsp;&nbsp;<a href="user_info.aspx?name=<%=dr["tratusername"]%>" target="_blank"><%=dr["tratusername"]%></a>
		</td>
		<td><%=dr["tracount"]%>&nbsp;</td>
		<td><%=(int.Parse(dr["tramoney"].ToString())/100.00)%>&nbsp;</td>
		<td align="center">
			<!--{if("0" == dr["trastat"].ToString())}-->
			未生效的交易 
			<!--{else}-->
			<%=mPay.GetmText(dr["trastat"].ToString())%>
			<!--{endif}-->
			&nbsp;</td>
		<!--{if("2" == _Stat_)}-->
		<td width="150" align="center">
			<!--{if("2" == dr["traiscredit"].ToString())}-->
			<a href="newcredit.aspx?productid=<%=dr["protradeid"].ToString()%>" target="_blank">
				给买家评价</a> 
			<!--{else}-->
			对方已评价 
			<!--{endif}-->
		</td>
		<!--{endif}-->
	</tr>
	<!--{endforeach}-->
	</table> 
	<!--{endif}-->
	<!--{endif}-->
	<!--{endif}-->