<!--#include file="_header.html" -->
<style>
.photo_box { border:0px solid #9CC3D9;width:100%; height:100%;margin-top:10px;}
.photo_box  h1 { margin:0px; margin-bottom:10px; padding:0px; width:100%; float:left;}
.photo_box li {float:left;width:160px; height:auto; background: url("images/lock_bg.gif") center top no-repeat; text-align:center; margin:3px 5px; color:#858d92; }
.photo_box li span { display:block; width:160px; height:160px; line-height:160px; }
.photo_box .img {display:block; text-align:center; margin:auto; padding-top:10px; }
.photo_box h1 .txt { font-weight:normal; color:Gray; font-size:12px;}
</style>

<div class="mainbox" >
	<div class="notice">
		<span> <!--#include file="_nav.html" --></span>
	</div>	
	<div style="clear:both"></div>
	<br />
	<!---##########################右边样式部分##########################--->
	<div class="page_right">
		<div class="border">
			<h3 class="titlebig">热门柜台 - Hot Top</h3>
			<!-- {foreach (System.Data.DataRow mNewGroupTop in NewCounter.Rows)} -->
			<div class="nav_group">
				<ul>
					<li style="margin:5px; padding:0px;border:0px solid red;">
						<a href="viewproitem.aspx?&TopicID=<%=mNewGroupTop["topicid"]%>" target="_blank" alt="<%=mNewGroupTop["counterdesc"].ToString()%>" title="<%=mNewGroupTop["counterdesc"].ToString()%>">
							<b>
								<%=Text.Left(mNewGroupTop["title"].ToString(),20,false)%>
							</b></a>
						<br />
						<%=Text.Left(mNewGroupTop["counterdesc"].ToString(),20,false)%>
						<br />
						卖家：<a href="user_info.aspx?name=<%=mNewGroupTop["username"]%>"><%=mNewGroupTop["username"]%></a>
					</li>
				</ul>
			</div>
			<!-- {endforeach} -->
		</div>
		<br />
		<div class="border">
			<h3 class="titlebig">人气排行</h3>
			<div class="nav_topic">
				<ul style="margin:0px; padding:2px; font-size:12px;">
					<!-- {foreach (System.Data.DataRow mNewGroupTop in HostList.Rows)} -->
					<li>
						<a href="viewproitem.aspx?TopicID=<%=mNewGroupTop["topicid"]%>" target="_blank" title="<%=Text.StripHtml(mNewGroupTop["title"].ToString())%>">
							<%=Text.Left(Text.StripHtml(mNewGroupTop["title"].ToString()), 6, false)%>
						</a>-
						<span title="<%=Text.StripHtml(mNewGroupTop["username"].ToString())%>">
							<%=Text.Left(Text.StripHtml(mNewGroupTop["username"].ToString()), 10, false)%>
						</span>
						- (<%=mNewGroupTop["hits"]%>)<br />
					</li>
					<!--{endforeach}-->
				</ul>
			</div>
		</div>
	</div>
	<!---########################## end 右边样式部分##########################--->
	<!---##########################左边样式部分##########################--->
	<div class="page_left">
		<table class="tablebox border" border="0" cellspacing="0" cellpadding="0" >
			<tr>
				<th>
					最新发布的商品
				</th>
			</tr>
			<tr>
				<td>
				<!--{if (null != NewShop && NewShop.Rows.Count > 0)}-->
					<table cellpadding="0" cellspacing="2" border="0" width="98%" align="left" style="margin:5px;">
					
					<!--<%System.Data.DataRow mNewGroupTop = null;%>-->
					<!--{for (int i = 0; i < NewShop.Rows.Count; i++)}-->
						<!--<%mNewGroupTop = NewShop.Rows[i];%>-->
						<!--{if (0 == i % 4)}--><tr><!--{endif}-->
							<td align="center" width="20%">
							<a href="viewproitem.aspx?id=<%=mNewGroupTop["cid"]%>&TopicID=<%=mNewGroupTop["topicid"]%>" target="_blank">
								<img src="<%=("" == mNewGroupTop["proimg"] ? "templates/"+ CurrentTemplateName + "/images/posts/trade_nophoto.gif" : (Config.Settings["uploadfiles"].ToString()+mNewGroupTop["proimg"].ToString()))%>" style="margin-bottom:5px;" onerror="ImageOnError(this,'templates/<%=CurrentTemplateName%>/images/posts/trade_nophoto.gif')" width="100" height="100" /></a><br />
							<a href="topic.aspx?topicid=<%=mNewGroupTop["topicid"]%>" target="_blank">
								<%=Text.Left(mNewGroupTop["proname"].ToString(),16,false)%>
							</a>
							<br />
							卖家：<a href="user_info.aspx?name=<%=mNewGroupTop["username"]%>"><%=mNewGroupTop["username"]%></a>
							</td>
						<!--{if (i + 1 == NewShop.Rows.Count && NewShop.Rows.Count % 4 > 0)}-->
							<td colspan="<%=(4 - NewShop.Rows.Count % 4).ToString()%>">&nbsp;</td>
						<!--{endif}-->
						<!--{if (0 == (i + 1) % 4)}--></tr><!--{endif}-->
					<!--{endfor}-->
					</table>
				<!--{endif}-->
				</td>
			</tr>
		</table>
	</div>
	<br />
	<div class="page_left">
		<table class="tablebox border" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<th colspan="4">
					商品交易列表</th>
			</tr>
			<tr class="tbl_bg">
				<td align="center">商品名称</td>
				<td>掌柜</td>
				<td width="85" align="center">卖家信用</td>
				<td>日期</td>
			</tr>
			<!-- {foreach (System.Data.DataRow mNewGroupTop in ShopShowList.Rows)} -->
			<tr>
				<td align="left" style="padding-left:10px"><a href="viewproitem.aspx?TopicID=<%=mNewGroupTop["topicid"]%>" target="_blank"><%=Text.Left(mNewGroupTop["title"].ToString(),40,false)%></a></td>
				<td><a href="user_info.aspx?name=<%=mNewGroupTop["username"]%>"><%=mNewGroupTop["username"]%></a></td>
				<td width="60" align="center">&nbsp;<a href="creditlist.aspx?name=<%=mNewGroupTop["username"].ToString()%>"><%=(null != mNewGroupTop["sellcredit"] ? "<img src=\"templates/"+ CurrentTemplateName + "/images/posts/"+ mproduct.GetCredePic(mNewGroupTop["sellcredit"]) +"\" />" : "")%></a></td>
				<td><%=System.DateTime.Parse(mNewGroupTop["proenddate"].ToString()).ToString("d")%></td>
			</tr>
			<!--{endforeach}-->
			<tr>
				<td style="padding-left:10px;padding-bottom:10px;"colspan="4"><br /> <!--#include file="_temppager.htm"--></td>
			</tr>
		</table>
		<br />
	</div>
	<div style="clear:both"></div>
	<!---########################## end 左边样式部分##########################--->
</div>
<!--#include file="_footer.html" -->