<%template _albumheader%>

<%if {page_err}==0%>
	<%template _albumnavigation%>
	<div id="ntforumposition">
		<div class="ntforumnote">
		<%if {currentcate}!=0%>
			<h3><a href="{config.albumurl}" id="NavHome" onmouseover="showMenu(this.id);" onmouseout="showMenu(this.id);">{config.albumname}首页</a> > {currentalbumcategory.title}</h3>
		<%else if {albumsuserid}!=0%>
			<h3><a href="{config.albumurl}" id="NavHome" onmouseover="showMenu(this.id);" onmouseout="showMenu(this.id);">{config.albumname}首页</a> > {albumusername}</h3>
		<%else if {currentcate}!=0 && {albumsuserid}!=0%>
			<h3><a href="{config.albumurl}" id="NavHome" onmouseover="showMenu(this.id);" onmouseout="showMenu(this.id);">{config.albumname}首页</a> > {albumusername}的{currentalbumcategory.title}</h3>
		<%else%>
			<h3><a href="{config.albumurl}" id="NavHome" onmouseover="showMenu(this.id);" onmouseout="showMenu(this.id);">{config.albumname}首页</a> > 全部{config.albumname}</h3>
		<%/if%>
		</div>
		<div class="ntforumsearch">
			<div id="search">
				<%template _quicksearch%>
			</div>
	    </div>
	</div>
	{navhomemenu}
	<div id="ntforumbody">
		<div class="modulebox">
			<div class="forumtitle">
				<h2>{config.albumname}</h2>
			</div>
			<div class="inforsort">
			<%loop (AlbumCategoryInfo) albumcategory albumcategorylist%>
				<a href="{albumurl}showalbumlist.aspx?cate={albumcategory.albumcateid}">{albumcategory.title}</a>
				<%if {albumcategory[_id]}!={albumcategorylist.Count}%>
					|
				<%/if%>
			<%/loop%>
			</div>
			<%if {albumlist.Count}>0%>
				<div class="ntforumpage">
				{prevpage}
				{pagenumbers}
				{nextpage}
				</div>
				<div class="Photo">
					<ul>							
						<%loop (AlbumInfo) album albumlist%>
						<li>								
							<%if {album.logo}!=""%>
							<div class="PhotoPicture">
								<a href="{albumurl}showalbum.aspx?albumid={album.albumid}"><img src="{album.logo}" alt="{album.title}" style="max-height: 80px; max-width: 105px" /></a>
							</div>
							<%else%>
							<div class="nopicture">
								<a href="{albumurl}showalbum.aspx?albumid={album.albumid}"><img src="templates/{templatepath}/images/NoPhoto.jpg" alt="{album.albumid}" /></a>
							</div>
							<%/if%>								
							<h3><a href="{albumurl}showalbumlist.aspx?uid={album.userid}">{album.username}</a>的相册</h3>
							<p><a href="{albumurl}showalbum.aspx?albumid={album.albumid}">{album.title}</a> ({album.imgcount})</p>
						</li>
						<%/loop%>
						
					</ul>
				</div>
				<div class="ntforumpage">
				{prevpage}
				{pagenumbers}
				{nextpage}
				</div>
			<%else%>
				<%template _photomsgbox%>
			<%/if%>
		</div>
	</div>
<%else%>
	<%template _photoerrmsgbox%>
<%/if%>

	<%template _websitefooter%>
	
	
