<!--#include file="_header.html"-->
<script type="text/javascript" language="javascript">
<!--
function imgFix()
{
	//定义要限制的图片宽高,这个宽高要同style里面定义的相同，小于限定高宽的图片不操作
	var widthRestriction = 100;
	var heightRestriction = 100;
	var allElements = document.getElementsByTagName('*')  
	for (var i = 0; i < allElements.length; i++)
	{
		if (allElements[i].className.indexOf('photoroom80') >= 0)
		{
			var imgElements = allElements[i].getElementsByTagName('img');
			for (var j=0; j < imgElements.length; j++)
			{
				if ( imgElements[j].width > widthRestriction || imgElements[j].height > heightRestriction )
				{
					if ( imgElements[j].width > imgElements[j].height)
					{
						imgElements[j].height = imgElements[j].height*(widthRestriction/imgElements[j].width);
						imgElements[j].width = widthRestriction;
					}
					else
					{
						imgElements[j].width = imgElements[j].width*(heightRestriction/imgElements[j].height);
						imgElements[j].height = heightRestriction;
					}
				}
			}
		}
	}
}
window.onload = imgFix;
-->
</script>
<div class="mainbox">
	<div class="notice">
		<span> <!--#include file="_nav.html"--></span>
	</div>
	<div style="clear:both"></div>
	<div class="notice font14"><span>
		<a href="album_index.aspx">相册首页</a> | <a href="album_list.aspx">相册分类</a> | <a href="album_self.aspx">
			我的相册</a></span>&nbsp;
	</div>
	<div class="page_right">
	<ul>
			<h3 class="titlebig">收藏最多的相册</h3>
			<div class="nav_group">
				<!--{for(int i=0; i < FavAlbumCount && i < 10; i++)}-->
					<li style="height:24px">
					<em><a href="album_list.aspx?userid=<%=FavAlbumArr[i].userid.ToString()%>" class="grey"><%=FavAlbumArr[i].username%></a></em>
					<a href="album_show.aspx?albumid=<%=FavAlbumArr[i].id.ToString()%>" class="gray">
					<!--{if(FavAlbumArr[i].albumtitle.Length > 8)}-->
					<font title="<%=FavAlbumArr[i].albumtitle%>"><%=FavAlbumArr[i].albumtitle.Substring(0,8)%>...</font>
					<!--{else}-->
					<%=Text.Left(FavAlbumArr[i].albumtitle,10,false)%>
					<!--{endif}-->
					</a></li>
				<!--{endfor}-->	
			</div>
			<br />
	</ul>
	<ul>
			<h3 class="titlebig">收藏最多的相片</h3>
			<div class="nav_group">
				<!--{for(int i=0; i < FavPhotoCount && i < 10; i++)}-->
				<li style="height:24px">
				<em><a href="album_list.aspx?userid=<%=FavPhotoArr[i].userid.ToString()%>" class="grey"><%=FavPhotoArr[i].username%></a></em>
					<a href="album_photo.aspx?photoid=<%=FavPhotoArr[i].id.ToString()%>">
						<!--{if(FavPhotoArr[i].imgtitle.Length > 10)}-->
						<font title="<%=FavPhotoArr[i].imgtitle%>">
							<%=FavPhotoArr[i].imgtitle.Substring(0, 10)%>
							...</font> 
						<!--{else}-->
						<%=Text.Left(FavPhotoArr[i].imgtitle,10,true)%>
						<!--{endif}-->
					</a>
				</li>
				<!--{endfor}-->
			</div>
		</ul>
	</div>
	<div class="page_left border">
		<h3 class="titlebig"><em><a href="album_photolist.aspx?pagetype=0">更多相片</a></em>最新上传相片</h3>
		<!--{for(int row = 0; row < 2; row++)}-->
		<table width="96%" align="center">
			<tr>
				<!--{for (int i = row * 4; i < NewPhotoCount && i < (row + 1) * 4; i++)}-->
				<td align="center" width="20%">
					<div class="photoroom80">
						<img class="img" style="cursor:pointer;" src="<%=NewPhotoArr[i].ZoomFile%>" alt="<%=NewPhotoArr[i].imgtext%>" title="<%=NewPhotoArr[i].imgtext%>" onerror="ImageOnError(this,'files/uploadfaces/userface/noface.gif')" onclick="location='album_photo.aspx?photoid=<%=NewPhotoArr[i].id.ToString()%>'" />
					</div>
				</td>
				<!--{endfor}-->
			</tr>
			<tr>
				<!--{for (int i = row * 4; i < NewPhotoCount && i < (row + 1) * 4; i++)}-->
				<td align="center">
					<a href="album_photo.aspx?photoid=<%=NewPhotoArr[i].id.ToString()%>" class="newlink"><%=Text.Left(NewPhotoArr[i].imgtitle,10,true)%>
					</a><em>(<%=NewPhotoArr[i].clickcount.ToString()%>)</em><br />
					<a href="album_photo.aspx?photoid=<%=NewPhotoArr[i].id.ToString()%>" class="yellow">
						<%=Text.Left(NewPhotoArr[i].username,10,false)%>
					</a>
				</td>
				<!--{endfor}-->
			</tr>
		</table>
		<!--{endfor}-->
		<br />
	</div>
	<br />
		<div class="page_left border">
		<h3 class="titlebig"><em><a href="album_photolist.aspx?pagetype=1">更多相片</a></em>热门相片</h3>
		<!--{for(int row = 0; row < 2; row++)}-->
		<table width="96%" align="center" ID="Table1">
			<tr>
				<!--{for (int i = row * 4; i < HotPhotoCount && i < (row + 1) * 4; i++)}-->
				<td align="center" width="20%">
					<div class="photoroom80">
						<img class="img" style="cursor:pointer;" src="<%=HotPhotoArr[i].ZoomFile%>" alt="<%=HotPhotoArr[i].imgtext%>" title="<%=HotPhotoArr[i].imgtext%>" onerror="ImageOnError(this,'files/uploadfaces/userface/noface.gif')" onclick="location='album_photo.aspx?photoid=<%=HotPhotoArr[i].id.ToString()%>'"/>
					</div>
				</td>
				<!--{endfor}-->
			</tr>
			<tr>
				<!--{for (int i = row * 4; i < HotPhotoCount && i < (row + 1) * 4; i++)}-->
				<td align="center">
					<a href="album_photo.aspx?photoid=<%=HotPhotoArr[i].id.ToString()%>" class="newlink">
						<%=Text.Left(HotPhotoArr[i].imgtitle,10,true)%>
					</a><em>(<%=HotPhotoArr[i].clickcount.ToString()%>)</em><br />
					<a href="album_photo.aspx?photoid=<%=HotPhotoArr[i].id.ToString()%>" class="yellow">
						<%=Text.Left(HotPhotoArr[i].username,10,false)%>
					</a>
				</td>
				<!--{endfor}-->
			</tr>
		</table>
		<!--{endfor}-->
		<br />
	</div>
	<br />
	<div class="page_left border">
		<h3 class="titlebig"><em><a href="album_list.aspx">更多相册</a></em>最新建立相册</h3>
		<!--{for(int row = 0; row < 2; row++)}-->
		<table width="96%" align="center">
			<tr>
				<!--{for (int i = row * 4; i < NewAlbumCount && i < (row + 1) * 4; i++)}-->
				<td align="center" width="20%">
					<div class="photoroom80">
						<img class="img" style="cursor:pointer;" src="<%=NewAlbumArr[i].TopZoomFile%>" alt="<%=NewAlbumArr[i].username%> 的相册" onerror="ImageOnError(this,'files/uploadfaces/userface/noface.gif')" onclick="location='album_show.aspx?albumid=<%=NewAlbumArr[i].id.ToString()%>'" />
					</div>
				</td>
				<!--{endfor}-->
			</tr>
			<tr>
				<!--{for (int i = row * 4; i < NewAlbumCount && i < (row + 1) * 4; i++)}-->
				<td align="center">
					<a href="album_show.aspx?albumid=<%=NewAlbumArr[i].id.ToString()%>" class="newlink">
						<%=Text.Left(NewAlbumArr[i].albumtitle,10,true)%>
					</a><em>(<%=NewAlbumArr[i].photonum.ToString()%>)</em><br />
					<a href="album_show.aspx?albumid=<%=NewAlbumArr[i].id.ToString()%>" class="yellow">
						<%=Text.Left(NewAlbumArr[i].username,10,false)%>
					</a>
				</td>
				<!--{endfor}-->
			</tr>
		</table>
		<!--{endfor}-->
		<br />
	</div>
	<br />
	<div class="page_left border">
		<h3 class="titlebig">相册分类</h3>
		<table width="96%" align="center">
			<!--{for(int i = 0; i < AlbumTypeCount; i++)}-->
			<tr>
				<td width="50%">
					<span class="grey">
					[ <a href="album_list.aspx?albumtypeid=<%=AlbumTypeArr[i].id.ToString()%>">
							<%=AlbumTypeArr[i].albumtype%>
						</a> ]
				    </span>
					<!--{for(int j = 0; j < AlbumTypeArr[i].tagcount && j < 10; j++)}-->
					<a href="album_list.aspx?albumtag=<%=Server.UrlEncode(AlbumTypeArr[i].tags[j].ToString())%>">
						<%=Text.Left(AlbumTypeArr[i].tags[j].ToString(),10,false)%></a>　
					<!--{endfor}-->
				</td>
			</tr>
			<!--{endfor}-->
		</table>
		<br />
	</div>
	<div style="clear:both"></div>
</div>
<!--#include file="_footer.html"-->