<!--#include file="_header.html"-->
<div class="mainbox">
	<div class="notice">
		<!-- Start 登录区域 / 已登录用户信息区域 -->
		<script language="javascript" type="text/javascript" src="templates/scripts/dvajax.js"></script>
		<script language="javascript" type="text/javascript">
		/*AJAX登录处理部分,请不要擅自修改*/
         var trylogins=<%=UserHandler.GetTryLogins()%>; //超过三次就出现验证码
		function ajaxLogin()
		{
			var name=$('name');
			var pwd=$('password');
			var isverify=<%=IsShowVerifyCode.ToString().ToLower()%>; //是否要求验证码
    
			if(isverify || parseInt(trylogins)>=3)
			{      
			   var verify=$('verification');
			} 
			
			var saveday=$('savedays');
			var posttype=$('posttype');
			var relurl=$('refurl');
			var tip=$('logintip');
			tip.style.display='block';			
			if(name.value.trim()=='' || pwd.value.trim()=='' || ((isverify || parseInt(trylogins)>=3)?verify.value.trim()=='':false) )
			{		
			    var l = getOffsetLeft($('name'))+25;
			    var t = getOffsetTop($('name'))+25;
				tip.innerHTML='请完整的填写登录所需信息!';
				tip.style.left = l + "px";
			    tip.style.top  = t + "px";
				return false;
			}
			var dvajax = new DvAjax(); 
			try
			{
				var data='user_login.aspx?name='+escape(name.value.trim())+'&password='+escape(pwd.value.trim())+'&posttype='+escape(posttype.value.trim())+'&savedays='+escape(saveday.value.trim())+'&refurl='+escape(relurl.value.trim());				
				 if(isverify || parseInt(trylogins)>=3)
				{
					data=data+'&verification='+escape(verify.value.trim());
				}	
				
				tip.innerHTML='登录中，请稍候！';
				
				var resultobj=dvajax.Request('get', data, '', null, true);
				
				var resultdata=resultobj.responseText;
				 var ReText = resultdata.split('|');
				if(resultdata.indexOf('Success')!=-1)
				{					
				    dvajax.Dispose();
					dvajax=null;
					if(ReText.length>1){
					    var afterurl = ReText[1];
					    document.location.href = afterurl;
					}else
					document.location.reload();		
				}
				else
				{	
				    var l = getOffsetLeft($('name'))+25;
			        var t = getOffsetTop($('name'))+25;	
			        tip.innerHTML='登录失败,请选择重新登录！';
			        trylogins=parseInt(trylogins)+1;	 //失败一次，登录次数＋１	
					if(parseInt(trylogins)>=3)
					{
						$('verifydisplay').style.display='inline';						
					}		
			        tip.style.left = l + "px";
			        tip.style.top  = t + "px";	
			        				 
					dvajax.Dispose();
					dvajax=null;
				}
			}
			finally
			{
				if(dvajax!=null)
				{
					dvajax.Dispose();
					dvajax=null;
				}
			}
			return false;
		}

		//显示验证码<%=Fetch.ValidateCodeFileName%>
		function showVerify(obj, ValidateCodeFileName)
		{
			var l = getOffsetLeft(obj) - 40;
			var t = getOffsetTop(obj) + 25;	
			$("verifyCode").innerHTML = "<img src='" + ValidateCodeFileName + "?time="+ new Date()+"' alt='看不清图片请点空白处' border='1' style='cursor:hand; margin-top:-1px'>";
			$("verifyCode").style.left = l + "px";
			$("verifyCode").style.top  = t + "px";
			$("verifyCode").style.display = 'block';
		}
		//隐藏验证码
		function hiddenVerify()
		{	
			$("verifyCode").innerHTML = "";
		}
		</script>
		<!-- {if (user.IsGuest)} -->
		<span id="isguest">
			<form name="frmLogin" id="frmLogin" onsubmit="return ajaxLogin();">
				<input name="refurl" id="refurl" type="hidden" value="user_login.aspx" />
				<span><br />
					用户名&nbsp;<input name="name" id="name" type="text" tabindex="1" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this);"
						onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" style="width:80px;" />&nbsp;&nbsp;
					密码&nbsp;<input name="password" id="password" tabindex="2" type="password" onFocus="IEvent('focus',this);"
						onBlur="IEvent('blur',this);" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"
						style="width:80px;" />&nbsp;&nbsp;
				 <font id="verifydisplay" style="line-height:18px;font-size:12px;display:<%=IsShowVerifyCode?"inline":"none"%>">
					验证码&nbsp;<input name="verification" id="verification" type="text" tabindex="3" maxlength="6" size="10" style="width:70px;"	autocomplete="Off" onFocus="IEvent('focus',this);showVerify(this, '<%=Fetch.ValidateCodeFileName%>');" onBlur="IEvent('blur',this);hiddenVerify();" onMouseOver="IEvent('mouseover',this)"
						onMouseOut="IEvent('mouseout',this)" />
					<input type="hidden" name="savedays" id="savedays" value="-1" />
					<input type="hidden" name="posttype" id="posttype" value="1" />
					<div id="verifyCode" style="display:none;position:absolute;"></div>
				</font>
					<div class="operatetip" style="position:absolute;display:none;" id="logintip"></div>
					<button class="button_off" type="submit" tabindex="4" name="btnLogin" ID="btnLogin"  onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)">立即登录</button>
				</span>				
			</form>
		</span>
		<!-- {else} -->
		<span id="notguest">
				现在的时间是 <%=System.DateTime.Now%>，您可以进行如下操作：<br />	
				<a href="user_edit.aspx" class="newlink">控制面板</a> | <a href="user_edit.aspx?tabindex=6" class="newlink">我的好友</a> | <a href="user_edit.aspx?tabindex=4" class="newlink">我的主题</a> | <a href="user_edit.aspx?tabindex=5" class="newlink">参与主题</a> | <a href="user_favourite.aspx" class="newlink">我的收藏</a> |
				<!-- {if (user.Power == 1 || user.Power == 2)} -->
					<a href="admin_login.aspx" target="_blank" class="newlink">系统管理</a>
					|
					<a href="accesstopic.aspx" class="newlink">审核管理</a>
				<!-- {endif} -->
				<!--| <a href="my.aspx" target="_blank" class="newlink">其它管理</a>-->
			</span>
		<!-- {endif} -->
		<!-- End 登录区域 / 已登录用户信息区域 -->
		<!---------------start 首页论坛统计信息------------------->
		今日：<b class="yellow"><%=ModuleHelper.ForumStatsInfo.TodayTopics.ToString()%></b>
		帖 | 昨日：<%=ModuleHelper.ForumStatsInfo.YestodayTopics.ToString()%>
		帖 | 最高日：<%=ModuleHelper.ForumStatsInfo.MaxPost.ToString()%>
		帖<br />
		主题：<%=ModuleHelper.ForumStatsInfo.TopicNum.ToString()%>
		| 帖子：<%=ModuleHelper.ForumStatsInfo.PostNum.ToString()%>
		| 会员：<%=ModuleHelper.ForumStatsInfo.UserNum.ToString()%>
		| 新会员 <a href="user_info.aspx?name=<%=Server.UrlEncode(ModuleHelper.ForumStatsInfo.NewMember)%>">
			<b>
				<%=ModuleHelper.ForumStatsInfo.NewMember%>
			</b></a>
		<!---------------end 首页论坛统计信息------------------->
	</div>
	<!-- Start 首页公告 -->
	<!--{if (null != ModuleHelper.AnnouncementInfo && ModuleHelper.AnnouncementInfo.Length>0)}-->
	<script type="text/javascript" src="templates/<%=CurrentTemplateName%>/scripts/dvwnd.js"></script>
	<script type="text/javascript" language="javascript">
	<!--
	var rollText_k = <%=ModuleHelper.AnnouncementInfo.Length%>; //菜单总数
	var rollText_i = 1; //菜单默认值
	//setFocus1(0);
	rollText_tt = setInterval("rollText(1)", 4000);
	function rollText(a)
	{
		clearInterval(rollText_tt);
		rollText_tt = setInterval("rollText(1)", 4000);
		rollText_i += a;
		if(rollText_i > rollText_k)
		{
			rollText_i = 1;
		}
		if (rollText_i == 0)
		{
			rollText_i = rollText_k;
		}
		//alert(i)
		for (var j = 1; j <= rollText_k; j++)
		{
			document.getElementById("rollTextMenu"+j).style.display = "none";
		}
		document.getElementById("rollTextMenu"+rollText_i).style.display = "block";
		document.getElementById("pageShow").innerHTML = rollText_i + "/" + rollText_k;
	} 
	//-->
	</script>
	<div class="rollboder" >
		<ul>
			<li class="rollleft">
				<div class="rollTextMenus">
					<!--{for(int i=0;i<ModuleHelper.AnnouncementInfo.Length;i++)}-->
					<!--{if(i==0)}-->
					<div id="rollTextMenu<%=i+1%>" style="DISPLAY: block">
						<!--{else}-->
						<div id="rollTextMenu<%=i+1%>" style="DISPLAY: none">
							<!--{endif}-->
							<strong>&nbsp;&nbsp;公告：</strong> 				
							<a href="javascript:;" onclick="DvWnd.open('公告：<font style=COLOR: #ff3300;><%=ModuleHelper.AnnouncementInfo[i].Title%></font>','announcements.aspx?action=showone&newid=<%=ModuleHelper.AnnouncementInfo[i].Id%>',600,450,1,{bgc:'black',opa:0.5});"><%=ModuleHelper.AnnouncementInfo[i].Title%></a>(<%=ModuleHelper.AnnouncementInfo[i].AddTime%>)
						</div>
						<!--{endfor}-->
					</div>
			</li>
			<li class="rollright" width="40">
				<a title="上一条" href="javascript:rollText(-1);"><img src="templates/<%=CurrentTemplateName%>/images/last.gif" alt="上一条" width="11" height="11" border="0" />
				</a><a title="下一条" href="javascript:rollText(1);"><img src="templates/<%=CurrentTemplateName%>/images/next.gif" alt="下一条" width="11" height="11" border="0" />
				</a>
			</li>
			<li class="rollcenter" id="pageShow" width="30">
				1/<%=ModuleHelper.AnnouncementInfo.Length%>
			</li>
		</ul>
	</div>
	<!--{endif}-->
	<!--end 首页公告-->
	<!--start 首页短消息提醒-->
	<!--{if(!user.IsGuest && mInMessage.Length >= 1)}-->
	<script language="javascript">
	function colmsg(img, objName)
	{
		var obj = document.getElementById(objName);
		if (!obj){return;}
		if (obj.style.display!='none')
		{
			obj.style.display = 'none';
			img.src = img.src.replace('open', 'close');
			img.alt = '显示新短消息';
		}
		else
		{
			obj.style.display = 'block';
			img.src = img.src.replace('close', 'open');
			img.alt = '隐藏新短消息';
		}
	}
	</script>
	<table cellspacing="0" cellpadding="0" style="margin:0px;border:1px solid #DBE1E9;" width="100%" class="tbl_bg">
		<tr>
			<th class="title" onclick="colmsg($('msg_img'),'msg_new')" height="30px">
				<bgsound loop="1" autoplay="true" src="templates/<%=CurrentTemplateName%>/images/sound/ForumMsg.wav" />
				<img src="templates/<%=CurrentTemplateName%>/images/msg.gif">&nbsp;&nbsp;您有<%=mInMessage.Length%>条短信息
			</th>
			<th class="title" style="text-align:right">
				<img id="msg_img" src="templates/<%=CurrentTemplateName%>/images/tab_close.gif" onclick="colmsg(this,'msg_new')" alt="显示新短消息" />&nbsp;&nbsp;
			</th>
		</tr>
	</table>
	<div id="msg_new" style="display:none">
		<table cellspacing="1" cellpadding="0" style="margin:0px;" width="100%" class="tbl_bg" ID="Table2">
			<tr class="td_title">
				<td width="50%" height="25">信息标题</td>
				<td width="25%">发送者</td>
				<td width="25%">发送时间</td>
			</tr>
			<!--{for(int i = 0;i < mInMessage.Length;i++)}-->
			<!-- <%
		  		string title = Left(mInMessage[i].Title.ToString(), 46);
				string sender = "";
				if (!(bool)mInMessage[i].Flag) title = "<b>" + title + "</b>";
				title  = "<a target=_blank href=\"message_read.aspx?messageid="+mInMessage[i].ID.ToString()+"&style=new_style\">" + title + "</a>";
				//_sender
				sender = mInMessage[i].Sender.ToString();
				sender = "<a target=_blank href=\"user_info.aspx?name=" + Server.UrlEncode(sender)+"\">" + sender + "</a>";
		  %> -->
			<tr>
				<td nowrap="nowrap" align="left" class="td_content" height="22"><%=title%></td>
				<td class="td_content"><%=sender%></td>
				<td class="td_content"><%=((DateTime)mInMessage[i].Sendtime).ToString("g")%></td>
			</tr>
			<!--{endfor}-->
		</table>
	</div>
	<br />
	<!--{endif}-->
	<!--end 首页短消息提醒-->
	<!---##########################	右边样式部分##########################-	-->
	<div class="page_right">
		<!---------------	首页圈子展示	------------------->
		<!--{if ("true" == Config.Settings["CircleSwitch"].ToLower())}-->
		<div id="Tab">
			<div class="Menubox">
				<ul>
					<li id="one1" onclick="setTab('one',1,3)" class="hover">
						推荐圈子</li>
					<li id="one2" onclick="setTab('one',2,3)">
						热门圈子</li>
					<li id="one3" onclick="setTab('one',3,3)">
						最新圈子</li>
				</ul>
			</div>
			<div class="Contentbox">
				<div id="con_one_1"><br />
					<div class="nav_group">
						<ul>
							<!--{foreach (Dvbbs.bbs.UI.Forum.IndexModuleHelper.CircleInfo ci in ModuleHelper.GetMostMemberCircleList())}-->
							<li>
								<div><img src="<%=(("" == ci.CircleLogo.ToString()||null==ci.CircleLogo) ? "templates/"+ CurrentTemplateName +"/images/group.gif" :  Dvbbs.Utils.Config.uploadfiles+ci.CircleLogo.ToString())%>" width="50" height="50" onerror="ImageOnError(this,'templates/<%=CurrentTemplateName%>/images/group.gif')" /></div>
								<a href="my_group_index.aspx?GroupId=<%=ci.GroupId.ToString()%>" title="<%=Server.HtmlEncode(ci.GroupName)%>"><%=Text.Left(Text.StripHtml(ci.GroupName), 10, true)%></a><br />
									话题：<small>( <%=ci.PostNum.ToString()%> )</small><br />
									成员：<small>( <%=ci.UserNum.ToString()%> )</small>
							</li>
							<br />
							<!--{endforeach}-->
						</ul>
					</div>
				</div>
				<div id="con_one_2" style="display:none"><br />
					<div class="nav_group">
						<ul>
							<!--{foreach (Dvbbs.bbs.UI.Forum.IndexModuleHelper.CircleInfo ci in ModuleHelper.GetHotCircleList())}-->
							<li>
								<div><img src="<%=(("" == ci.CircleLogo.ToString()||null==ci.CircleLogo) ? "templates/"+ CurrentTemplateName +"/images/group.gif" :  Dvbbs.Utils.Config.uploadfiles+ci.CircleLogo.ToString())%>" onerror="ImageOnError(this,'templates/<%=CurrentTemplateName%>/images/group.gif')" width="50" height="50" /></div>
								<a href="my_group_index.aspx?GroupId=<%=ci.GroupId.ToString()%>" title="<%=Server.HtmlEncode(ci.GroupName)%>"><%=Text.Left(Text.StripHtml(ci.GroupName), 10, true)%></a><br />
									话题：<small>( <%=ci.PostNum.ToString()%> )</small><br />
									成员：<small>( <%=ci.UserNum.ToString()%> )</small>
								</li><br />
							<!--{endforeach}-->
						</ul>
					</div>
				</div>
				<div id="con_one_3" style="display:none"><br />
					<div class="nav_group">
						<ul>
							<!--{foreach (Dvbbs.bbs.UI.Forum.IndexModuleHelper.CircleInfo ci in ModuleHelper.GetNewlyCircleList())}-->
							<li>
								<div><img src="<%=(("" == ci.CircleLogo.ToString()||null==ci.CircleLogo) ? "templates/"+ CurrentTemplateName +"/images/group.gif" :  Dvbbs.Utils.Config.uploadfiles+ci.CircleLogo.ToString())%>" onerror="ImageOnError(this,'templates/<%=CurrentTemplateName%>/images/group.gif')" width="50" height="50" /></div>
								<a href="my_group_index.aspx?GroupId=<%=ci.GroupId.ToString()%>" title="<%=Server.HtmlEncode(ci.GroupName)%>"><%=Text.Left(Text.StripHtml(ci.GroupName), 10, true)%></a><br />
									话题：<small>( <%=ci.PostNum.ToString()%> )</small><br />
									成员：<small>( <%=ci.UserNum.ToString()%> )</small>
							</li>
							<br />
							<!--{endforeach}-->
						</ul>
					</div>
				</div>
			</div>
		</div>
		<!--{endif}-->
		<!---------------end 首页圈子展示------------------->
		<!---------------start 首页帖子展示------------------->
		<div id="Tab2">
			<div class="Menubox">
				<ul>
					<li id="two1" onclick="setTab('two',1,3)" class="hover">
						推荐帖子</li>
					<li id="two2" onclick="setTab('two',2,3)">
						热门帖子</li>
					<li id="two3" onclick="setTab('two',3,3)">
						最新帖子</li>
				</ul>
			</div>
			<div class="Contentbox">
				<div id="con_two_1"><br />
					<div class="nav_topic">
							<!--<%Dvbbs.bbs.UI.Forum.IndexModuleHelper.BbsInfo[] arr_bbsinfo = ModuleHelper.GetRecommendBbs();%>-->
							<!--{if (null != arr_bbsinfo && arr_bbsinfo.Length > 0)}-->
						<ul>
							<!--{foreach (Dvbbs.bbs.UI.Forum.IndexModuleHelper.BbsInfo bi in arr_bbsinfo)}-->
							<li>
								<em>(<%=bi.PostNum.ToString()%>)</em> <a href="topic.aspx?topicid=<%=bi.TopicId.ToString()%>" title="<%=Server.HtmlEncode(bi.Title)%>">
									<%=Text.Left(Text.StripHtml(bi.Title), 20, false)%>
								</a>
								<br />
							</li>
							<!--{endforeach}-->
						</ul>
						<!--{endif}-->
					</div>
				</div>
				<div id="con_two_2" style="display:none"><br />
					<div class="nav_topic">
							<!--<%arr_bbsinfo = ModuleHelper.GetHotBbs();%>-->
							<!--{if (null != arr_bbsinfo && arr_bbsinfo.Length > 0)}-->
						<ul>
							<!--{foreach (Dvbbs.bbs.UI.Forum.IndexModuleHelper.BbsInfo bi in arr_bbsinfo)}-->
							<li>
								<em>(<%=bi.PostNum.ToString()%>)</em> <a href="topic.aspx?topicid=<%=bi.TopicId.ToString()%>" title="<%=Server.HtmlEncode(bi.Title)%>">
									<%=Text.Left(Text.StripHtml(bi.Title), 20, false)%>
								</a>
								<br />
							</li>
							<!--{endforeach}-->
						</ul>
						<!--{endif}-->
					</div>
				</div>
				<div id="con_two_3" style="display:none"><br />
					<div class="nav_topic">
						<!--<%Dvbbs.bbs.UI.Forum.IndexModuleHelper.BbsInfo[] bis = ModuleHelper.GetNewlyBbs();%>-->
						<!--{if (null != bis && bis.Length > 0)}-->
						<ul>
							<!--{foreach (Dvbbs.bbs.UI.Forum.IndexModuleHelper.BbsInfo bi in bis)}-->
							<li>
								<em>(<%=bi.PostNum.ToString()%>)</em> <a href="topic.aspx?topicid=<%=bi.TopicId.ToString()%>" title="<%=Server.HtmlEncode(bi.Title)%>">
									<%=Text.Left(Text.StripHtml(bi.Title), 20, false)%>
								</a>
								<br />
							</li>
							<!--{endforeach}-->
						</ul>
						<div class="tab_more"><a href="search.aspx?isPostBack=1">更多</a>...</div>
						<!--{endif}-->
					</div>
				</div>
			</div>
		</div>
		<!---------------end首页帖子展示------------------->
		<!---------------start 首页相册展示------------------->
		<!--{if("true"==Config.Settings["OpenAlbum"].ToLower())}-->
		<div id="Tab3">
			<div class="Menubox">
				<ul>
					<li id="three1" onclick="setTab('three',1,3)" class="hover">
						最新相片</li>
					<li id="three2" onclick="setTab('three',2,3)">
						个人推荐</li>
					<li id="three3" onclick="setTab('three',3,3)">
						最新相册</li>
				</ul>
			</div>
			<div class="Contentbox">
				<div id="con_three_1"><br />
					<!--<%Dvbbs.bbs.UI.Forum.IndexModuleHelper.AlbumPhotoInfo[] apis = ModuleHelper.GetNewlyPhotos();%>-->
					<!--{for (int i = 0; i < apis.Length && i<8; i++)}-->
					<!--{if(i < 3)}-->
					<div class="nav_group">
						<ul>
							<li>
								<div><a href="album_photo.aspx?photoid=<%=apis[i].PhotoId.ToString()%>"><img src="<%=Config.Settings["picuploadfiles"] + apis[i].ZoomFile.ToString()%>" alt="<%=Server.HtmlEncode(apis[i].Title)%>" title="<%=Server.HtmlEncode(apis[i].Title)%>" onerror="ImageOnError(this,'templates/<%=CurrentTemplateName%>/images/album/noexist.gif')" width="50" height="50"/></a></div>
								<a href="album_photo.aspx?photoid=<%=apis[i].PhotoId.ToString()%>" title="<%=Server.HtmlEncode(apis[i].Title)%>">
									<b>
										<%=Text.Left(Text.StripHtml(apis[i].Title), 14, false)%>
									</b></a>
								<br />
								<a href="album_list.aspx?userid=<%=apis[i].UserId.ToString()%>" title="浏览用户的相册集">
									<%=apis[i].UserName.ToString()%>
								</a>
								<br />
								<font class="fon2">浏览：<%=apis[i].ClickCount.ToString()%>
									，评论：<font class="fon3"><%=apis[i].BbsCount.ToString()%></font></font>
							</li>
						</ul>
					</div>
					<!--{else}-->
					<div class="tab_line"><span title="点击率" style="width:30px;float:right;"><b class="green"><%=apis[i].ClickCount.ToString()%></b></span><a href="album_photo.aspx?photoid=<%=apis[i].PhotoId.ToString()%>" title="<%=Server.HtmlEncode(apis[i].Title)%>"><%=Text.Left(Text.StripHtml(apis[i].Title), 14, false)%></a></div>
					<!--{endif}-->
					<!--{endfor}-->
					<div class="tab_more"><a href="album_photolist.aspx?pagetype=0">更多</a>...</div>
				</div>
				<div id="con_three_2" style="display:none"><br />
					<!--<%Dvbbs.bbs.UI.Forum.IndexModuleHelper.AlbumPhotoInfo[] photos = ModuleHelper.GetRecommendPhotos();%>-->
					<!--{for (int i = 0; i < photos.Length && i<8; i++)}-->
					<!--{if(i < 3)}-->
					<div class="nav_group">
						<ul>
							<li>
								<div><a href="album_photo.aspx?photoid=<%=photos[i].PhotoId.ToString()%>"><img src="<%=Config.Settings["picuploadfiles"] + photos[i].ZoomFile.ToString()%>" alt="<%=Server.HtmlEncode(photos[i].Title)%>" title="<%=Server.HtmlEncode(photos[i].Title)%>" onerror="ImageOnError(this,'templates/<%=CurrentTemplateName%>/images/album/noexist.gif')" width="50" height="50" /></a></div>
								<a href="album_photo.aspx?photoid=<%=photos[i].PhotoId.ToString()%>" title="<%=Server.HtmlEncode(photos[i].Title)%>">
									<b>
										<%=Text.Left(Text.StripHtml(photos[i].Title), 14, false)%>
									</b></a>
								<br />
								<a href="album_list.aspx?userid=<%=photos[i].UserId.ToString()%>" title="浏览用户的相册集">
									<%=photos[i].UserName.ToString()%>
								</a>
								<br />
								<font class="fon2">浏览：<%=photos[i].ClickCount.ToString()%>
									，评论：<font class="fon3"><%=photos[i].BbsCount.ToString()%></font></font>
							</li>
						</ul>
					</div>
					<!--{else}-->
					<div class="tab_line"><span title="点击率" style="width:30px;float:right;"><b class="green"><%=photos[i].ClickCount.ToString()%></b></span><a href="album_photo.aspx?photoid=<%=photos[i].PhotoId.ToString()%>" title="<%=Server.HtmlEncode(photos[i].Title)%>"><%=Text.Left(Text.StripHtml(photos[i].Title), 14, false)%></a></div>
					<!--{endif}-->
					<!--{endfor}-->
					<div class="tab_more"><a href="album_photolist.aspx?pagetype=2">更多</a>...</div>
				</div>
				<div id="con_three_3" style="display:none"><br />
					<!--<%Dvbbs.bbs.UI.Forum.IndexModuleHelper.AlbumInfo[] Albums = ModuleHelper.GetNewlyAlbums();%>-->
					<!--{for (int i = 0; i < Albums.Length && i<5; i++)}-->
					<div class="nav_group">
						<ul>
							<li>
								<div><a href="album_show.aspx?albumid=<%=Albums[i].AlbumId.ToString()%>"><img src="<%=Config.Settings["picuploadfiles"] + Albums[i].TopZoomFile.ToString()%>" alt="<%=Server.HtmlEncode(Albums[i].Title)%>" title="<%=Server.HtmlEncode(Albums[i].Title)%>" onerror="ImageOnError(this,'templates/<%=CurrentTemplateName%>/images/album/noexist.gif')" width="50" height="50"  /></a></div>
								<a href="album_show.aspx?albumid=<%=Albums[i].AlbumId.ToString()%>" title="<%=Server.HtmlEncode(Albums[i].Title)%>">
									<b>
										<%=Text.Left(Text.StripHtml(Albums[i].Title),14, false)%>
									</b></a>
								<br />
								<a href="album_list.aspx?userid=<%=Albums[i].UserId.ToString()%>" title="浏览用户的相册集">
									<%=Albums[i].UserName.ToString()%>
								</a>
								<br />
								<font class="fon2">相片：<%=Albums[i].PhotoCount.ToString()%>
									张，收藏：<font class="fon3"><%=Albums[i].FavCount.ToString()%></font>次</font>
							</li>
						</ul>
					</div>
					<!--{endfor}-->
					<div class="tab_more"><a href="album_photolist.aspx?pagetype=2">更多</a>...</div>
				</div>
			</div>
		</div>
		<!--{endif}-->
		<!--------------- end  首页相册展示------------------->
		<!---------------start 首页商品展示------------------->
		<!--{if("true"==Config.Settings["OpenProduct"].ToLower())}-->
		<div id="Tab4">
			<div class="Menubox">
				<ul>
					<li id="four1" onclick="setTab('four',1,3)" class="hover">
						最新商品</li>
					<li id="four2" onclick="setTab('four',2,3)">
						热门柜台</li>
					<li id="four3" onclick="setTab('four',3,3)">
						信用排行</li>
				</ul>
			</div>
			<div class="Contentbox">
				<div id="con_four_1"><br />
					<div class="nav_topic">
							<!--<%Dvbbs.bbs.UI.Forum.IndexModuleHelper.MerchandiseInfo[] arr_MerchandiseInfo = ModuleHelper.GetNewlyMerchandises();%>-->
							<!--{if (null != arr_MerchandiseInfo && arr_MerchandiseInfo.Length > 0)}-->
						<ul>
							<!--{foreach (Dvbbs.bbs.UI.Forum.IndexModuleHelper.MerchandiseInfo info in arr_MerchandiseInfo)}-->
							<li>
								<em>(<%=info.Count.ToString()%>)</em> <a href="viewproitem.aspx?id=<%=info.Id.ToString()%>&topicid=<%=info.CounterId.ToString()%>" title="<%=Server.HtmlEncode(info.Name)%>">
									<%=Text.Left(Text.StripHtml(info.Name), 22, false)%>
								</a>
								<br />
							</li>
							<!--{endforeach}-->
						</ul>
						<!--{endif}-->
					</div>
				</div>
				<div id="con_four_2" style="display:none"><br />
					<div class="nav_topic">
					<!--<%arr_bbsinfo = ModuleHelper.GetHotCounters();%>-->
					<!--{if (null != arr_bbsinfo && arr_bbsinfo.Length > 0)}-->
						<ul>
							<!--{foreach (Dvbbs.bbs.UI.Forum.IndexModuleHelper.BbsInfo info in arr_bbsinfo)}-->
							<li>
								<em>(<span title="数量"><%=info.PostNum.ToString()%></span>)</em> <a href="topic.aspx?topicid=<%=info.TopicId.ToString()%>" title="<%=Server.HtmlEncode(info.Title)%>">
									<%=Text.Left(Text.StripHtml(info.Title), 22, false)%>
								</a>
								<br />
							</li>
							<!--{endforeach}-->
						</ul>
						<!--{endif}-->
					</div>
				</div>
				<div id="con_four_3" style="display:none"><br />
					<div class="nav_topic">
					<!--<%Dvbbs.bbs.UI.Forum.IndexModuleHelper.CreditInfo[] arr_CreditInfo = ModuleHelper.GetCreditList();%>-->
					<!--{if (null != arr_CreditInfo && arr_CreditInfo.Length > 0)}-->
						<ul>
							<!--{foreach (Dvbbs.bbs.UI.Forum.IndexModuleHelper.CreditInfo info in arr_CreditInfo)}-->
							<li>
								<em>(<%=info.UserPost.ToString()%>)</em> <a href="user_info.aspx?name=<%=Server.UrlEncode(info.UserName)%>" title="<%=Server.HtmlEncode(info.UserName)%>">
									<%=Text.Left(Text.StripHtml(info.UserName), 24, false)%>
								</a>
								<br />
							</li>
							<!--{endforeach}-->
						</ul>
						<!--{endif}-->
					</div>
				</div>
			</div>
		</div>
		<!--{endif}-->
		<!--------------- end  首页商品展示------------------->
		<!---------------start 首页用户展示------------------->
		<div id="Tab5">
			<div class="Menubox">
				<ul>
					<li id="five1" onclick="setTab('five',1,3)" class="hover">
						用户排行</li>
					<li id="five2" onclick="setTab('five',2,3)">
						新进用户</li>
					<li id="five3" onclick="setTab('five',3,3)">
						管理团队</li>
				</ul>
			</div>
			<div class="Contentbox">
				<div id="con_five_1"><br />
					<div class="nav_topic">
					<!--<%Dvbbs.bbs.UI.Forum.IndexModuleHelper.MemberInfo[] arr_MemberInfo = ModuleHelper.GetMostPostMembers();%>-->
					<!--{if (null != arr_MemberInfo && arr_MemberInfo.Length > 0)}-->
						<ul>
							<!--{foreach (Dvbbs.bbs.UI.Forum.IndexModuleHelper.MemberInfo mi in arr_MemberInfo)}-->
							<li>
								<em>(<%=mi.UserPost.ToString()%>)</em> <a href="user_info.aspx?name=<%=Server.UrlEncode(mi.UserName)%>" title="<%=Server.HtmlEncode(mi.UserName)%>">
									<%=Text.Left(Text.StripHtml(mi.UserName), 24, false)%>
								</a>
								<br />
							</li>
							<!--{endforeach}-->
						</ul>
						<!--{endif}-->
					</div>
				</div>
				<div id="con_five_2" style="display:none"><br />
					<div class="nav_topic">
					<!--<%arr_MemberInfo = ModuleHelper.GetNewlyMembers();%>-->
					<!--{if (null != arr_MemberInfo && arr_MemberInfo.Length > 0)}-->
						<ul>
							<!--{foreach (Dvbbs.bbs.UI.Forum.IndexModuleHelper.MemberInfo mi in arr_MemberInfo)}-->
							<li>
								<em>(<%=mi.UserPost.ToString()%>)</em> <a href="user_info.aspx?name=<%=Server.UrlEncode(mi.UserName)%>" title="<%=Server.HtmlEncode(mi.UserName)%>">
									<%=Text.Left(Text.StripHtml(mi.UserName), 24, false)%>
								</a>
								<br />
							</li>
							<!--{endforeach}-->
						</ul>
						<!--{endif}-->
					</div>
				</div>
				<div id="con_five_3" style="display:none"><br />
					<div class="nav_topic">
					<!--<%arr_MemberInfo = ModuleHelper.GetAdministrators();%>-->
					<!--{if (null != arr_MemberInfo && arr_MemberInfo.Length > 0)}-->
						<ul>
							<!--{foreach (Dvbbs.bbs.UI.Forum.IndexModuleHelper.MemberInfo mi in arr_MemberInfo)}-->
							<li>
								<em>(<%=mi.UserPost.ToString()%>)</em> <a href="user_info.aspx?name=<%=Server.UrlEncode(mi.UserName)%>" title="<%=Server.HtmlEncode(mi.UserName)%>">
									<%=Text.Left(Text.StripHtml(mi.UserName), 24, false)%>
								</a>
								<br />
							</li>
							<!--{endforeach}-->
						</ul>
						<!--{endif}-->
					</div>
				</div>
			</div>
		</div>
		<!--------------- end  首页用户展示------------------->
	</div>
	<!---##########################end 右边样式部分##########################--->
	<!---##########################左边样式部分##########################--->
	<div class="page_left">
		<!---------------首页版块列表------------------->
		<div class="bbs_column">
			<!--{foreach (Dvbbs.bbs.Entity.BoardList current_board in ModuleHelper.GetBoardList())}-->
			<h2><em> <img src="templates/<%=CurrentTemplateName%>/images/tab_open.gif" onclick="collapse(this,'category<%=current_board.BoardId%>')" alt="隐藏版面" title="隐藏版面" /></em>
				<a href="<%="board.aspx?boardid=" + current_board.BoardId%>" class="newlink">
					<%=Dvbbs.Utils.Text.StripHtml(current_board.BoardType)%>
				</a>
			</h2>
			<!-- {if (current_board.Children.Count > 0)} -->
			<ul><div id="category<%=current_board.BoardId%>">
				<!-- {foreach (Dvbbs.bbs.Entity.BoardList.BoardInfo bi in current_board.Children)} -->
				<table onmouseover="this.className='tableboxon'" onmouseout="this.className='tableboxonout'" ID="Table3">
					<tr>
						<td width="60">
							<div class="<%=bi.TodayNum>0 ? "todaynew" : "today"%>"><%=bi.TodayNum.ToString()%><p>today</p>
							</div>
						</td>
						<td>
							<b><a href="<%=Rewrite("board.aspx?boardid=" + bi.BoardId, "board-" + bi.BoardId + Extension,"board/b" + bi.BoardId)%>" class="newlink">
									<%=Dvbbs.Utils.Text.StripHtml(bi.BoardType)%>
								</a></b>
							<br />
							<%=bi.Readme%>
							<span>版主：						
							<!--{foreach (string board_master in bi.BoardMaster.Split(','))}-->			 
								<!--{if(board_master.Length>0)}-->
								<a href="<%=Rewrite("user_info.aspx?name=" + Server.UrlEncode(board_master), "user_info-" + Server.UrlEncode(board_master) + Extension, "user_info/m" + Server.UrlEncode(board_master))%>" class="blue">
										<%=board_master%>
										&nbsp; </a>
								<!--{endif}-->
							<!--{endforeach}-->
							<!--{if(bi.BoardMaster.Length<=0)}-->
							还没有版主
							<!--{endif}-->
								 | 最新：<a href="<%=Rewrite("topic.aspx?topicid=" + bi.LastTopicId, "topic-"+ bi.LastTopicId + Extension, bi.BoardId + "/t" + bi.LastTopicId)%>">
									<%=Text.Left(Text.StripHtml(bi.LastTopicTitle),24,false)%>
								</a>  |  主题：<em>
									<%=bi.TopicNum.ToString()%>
								</em>   |  帖子：<em>
									<%=bi.PostNum.ToString()%>
								</em></span></td>
						<!--{if(bi.IndexImg!=null&&string.Empty!=bi.IndexImg)}-->
						<td align="right">
							<a href="<%=Rewrite("board.aspx?boardid=" + bi.BoardId, "board-" + bi.BoardId + Extension,"board/b" + bi.BoardId)%>">
								<img src="<%=bi.IndexImg%>" width="80" height="50" alt="<%=bi.BoardType%>" title="<%=bi.BoardType%>" /></a>
						</td>
						<!--{endif}-->
					</tr>
				</table>
				<!-- {endforeach} -->
				</div></ul>
			<!-- {else} -->
			<ul></ul>
			<!-- {endif} -->
			<!--{endforeach}-->
		</div>
		<!---------------end 首页版块列表------------------->
	</div>
	<!---##########################end 左边样式部分##########################--->
	<div style="clear:both"></div>
</div>
<!---==================end 主题部分======================--->
<!---------------底部友情链接部分------------------->
<script type="text/javascript" language="JavaScript">
//底部在线列表
function DisplayOnlineList(linkObj)
{
	if (!linkObj)
	{
		return false;
	}
	var list_container = document.getElementById('OnlineListContainer');
	if (!list_container)
	{
		return false;
	}
	var list_iframe = window.frames['ListIframe'];
	if (!list_iframe)
	{
		return false;
	}
	var hr = document.getElementById('HrId');
	if (!hr)
	{
		return false;
	}
	if ('none' == list_container.style.display)
	{
		list_iframe.window.location.href = 'onlineuserlist.aspx';			
		hr.style.display = '';
		list_container.style.display = '';
		linkObj.innerHTML = '关闭详细列表';
	}
	else
	{
		hr.style.display = 'none';
		list_container.style.display = 'none';
		linkObj.innerHTML = '显示详细列表';
	}
}
</script>
<div class="mainbox">
	<div id="Tab6">
		<div class="Menubox">
			<ul>
				<li id="six1" onclick="setTab('six',1,2)" class="hover">
					友情链接</li>
				<li id="six2" onclick="setTab('six',2,2)">
					当前在线<span>(<%=Online.OnlineList.Total.ToString()%>)</span></li>
			</ul>
		</div>
		<div class="Contentbox">
			<div id="con_six_1">
				<div class="friendlink">
					<ul>
						<!--{if (ModuleHelper.FriendLinksLogoCount > 0 || ModuleHelper.FriendLinksCount > 0)}-->
						<li>
							<!--{foreach (Dvbbs.bbs.UI.Forum.IndexModuleHelper.FriendLinkInfo fli in ModuleHelper.GetFriendLinks())}-->
							<!--{if (null != fli.Logo && fli.Logo.Length > 0)}-->
							<a href="<%=((null != fli.Url && fli.Url.Length > 0) ? (-1 == fli.Url.IndexOf("http://") ? "http://" + fli.Url : fli.Url) : "#")%>" target="_blank">
								<img src="<%=fli.Logo %>" alt="" width="<%=fli.Width%>" height="<%=fli.Height%>" border="0" /></a>
							<!--{else}-->
							<a href="<%=((null != fli.Url && fli.Url.Length > 0) ? (-1 == fli.Url.IndexOf("http://") ? "http://" + fli.Url : fli.Url) : "#")%>" target="_blank">
								<%=fli.Title%>
							</a>
							<!--{endif}-->
							<!--{endforeach}-->
						</li>
						<!--{endif}-->
					</ul>
					<div style="clear:both"></div>
				</div>
			</div>
			<div id="con_six_2" style="display:none">
				<div class="count">
					<ul>
						<li>
							当前在线：<%=Online.OnlineList.Total.ToString()%>人(会员：<%=Online.OnlineList.UserCount.ToString()%>
							/ 访客：<%=Online.OnlineList.GuestCount.ToString()%>) | 最高在线：<%=ModuleHelper.ForumStatsInfo.MaxOnlines.ToString()%>
							人
						</li>
						<li>
							<!--{if(Config.Settings["EnIndexList"].ToLower()=="true")}-->
							<a href="javascript:void(0);" id="OnlineListButton" onclick="DisplayOnlineList(this);">
								显示详细列表</a> | 
							<!--{endif}-->
							<a href="online.aspx">查看在线用户位置</a>
						</li>
						<!--//
				<!--{if (UserGroupList.Length > 0)}-->
						<li>
							在线图例： 
							<!--<% string ugis_seperator = string.Empty; %>-->
							<!--{foreach (UserGroupInfo ugi in UserGroupList)}-->
							<%=ugis_seperator%>
							<img src="<%=Text.JoinString(CurrentSkinPath, ugi.TitlePic.Replace("skin/$skin/", ""))%>" alt="" /><%=ugi.Title%>
							<!--<% ugis_seperator = "  ‖ "; %>-->
							<!--{endforeach}-->
							<!--{endif}-->
						</li>
						//-->
					</ul>
					<div style="padding-left: 15px;">
						<hr style="width:98%;" id="HrId" style="display: none;" />
						<div class="online3u" style="clear: both; display: none;" id="OnlineListContainer" name="OnlineListContainer"></div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<iframe style="border: 0px; width: 0px; height: 0px; overflow: hidden;" src="" name="ListIframe" id="ListIframe"></iframe>
<!---------------end 底部友情链接部分------------------->
<script>
<!--
function setTab(name,cursel,n){
 for(i=1;i<=n;i++){
  var menu=document.getElementById(name+i);
  if (!menu)
  {
	continue;
  }
  menu.className=i==cursel?"hover":"";
  var con=document.getElementById("con_"+name+"_"+i);
  if (!con)
  {
	continue;
  }
  con.style.display=i==cursel?"block":"none";
 }
}
setTab('two',3,3)
//-->
</script>
<!--#include file="_footer.html"-->