<%@ Page PathInChannel="search_album.aspx" RunAt="Execute" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>搜索专辑 - <%=ChannelName%> - <%=SiteName%></title>
<ilghar:Comment><link rel="stylesheet" type="text/css" href="S01/CHS/css/common.css" /></ilghar:Comment>
<link rel="stylesheet" type="text/css" href="<%=CssPath%>common.css" />
<script type="text/javascript" src="/common/ajax.js"></script>
<script type="text/javascript" src="<%=JsPath%>common.js"></script>
</head>
<body>
<div class="Header">
	<div class="Block5">
		<div class="Left"><a href="http://www.ilghar.cn"><img src="<%=SiteLogo%>" /></a></div>
		<div class="Center">
			<div class="SubMenu">
				<ul>
					<li><a href="javascript:" onclick="AddFavorite()">加入收藏</a></li>
					<li><a href="javascript:" onclick="SetHome()">设为主页</a></li>
				</ul>
			</div>
			<!-- TemplateBeginEditable name="菜单" -->
			<ilghar:Menu Object="WebMenuBar" Condition="CategoryID={CC636E36-E49A-4A20-98C9-31A582DAF115} and ParentID IS NULL">
				<div class="TabMenu">
					<ul>
						<ilghar:Record>
							<ilghar:Select>
								<ilghar:Yes>
									<li class="Current"><a href="<%=URL%>"><span><%=Name%></span></a></li>
								</ilghar:Yes>
								<ilghar:No>
									<li><a href="<%=URL%>"><span><%=Name%></span></a></li>
								</ilghar:No>
							</ilghar:Select>
						</ilghar:Record>
					</ul>
				</div>
			</ilghar:Menu>
			<!-- TemplateEndEditable -->
		</div>
		<div class="Right">
			<!-- TemplateBeginEditable name="广告位1" -->
			<ilghar:Ad InnerID="7" />
			<!-- TemplateEndEditable -->
		</div>
	</div>
</div>

<!-- TemplateBeginEditable name="专辑类别" -->
<ilghar:List Object="AlbumCategory" Condition="ParentID IS NULL">
	<div class="Menu">
		<ilghar:Record>
			<a href="<%=BuildUrl()%>"><%=Name%></a>
		</ilghar:Record>
	</div>
</ilghar:List>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="搜索" -->
<div class="Block1">
	<form onsubmit="return OnSearch(this, '<%=BuildUrl("search_music.dwt")%>', '<%=BuildUrl("search_album.dwt")%>', '<%=BuildUrl("search_star.dwt")%>', '<%=BuildUrl("search_lyric.dwt")%>')">
		<input type="radio" name="Search" id="SearchMusic" /><label for="SearchMusic">歌曲</label>
		<input type="radio" name="Search" id="SearchAlbum" checked="checked" /><label for="SearchAlbum">专辑</label>
		<input type="radio" name="Search" id="SearchStar" /><label for="SearchStar">歌手</label>
		<input type="radio" name="Search" id="SearchLyric" /><label for="SearchLyric">歌词</label>
		<input type="text" name="q" value="<%=Request.QueryString['q']%>" size="40" class="<%=PageLang%>Font" />
		<input type="submit" value="搜索" />
	</form>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="广告位16" -->
<div class="Block2">
	<ilghar:Ad InnerID="13" />
</div>
<!-- TemplateEndEditable -->

<div class="Wrap">
	<!-- TemplateBeginEditable name="路径" -->
    <div class="Block12">
		<span>当前位置：</span>
		<ilghar:Path IncludeCurrentChannel="True">
			<ilghar:Record>
				<a href="<%=URL%>"><%=Name%></a> &gt;
			</ilghar:Record>
		</ilghar:Path>
		搜索专辑
	</div>
	<!-- TemplateEndEditable -->

    <div class="Block6">
		<!-- TemplateBeginEditable name="搜索结果" -->
		<div class="Block14">
			<ilghar:List ID="List" Object="Album" Page="Request.QueryString['Page']" PageSize="20" Condition="IsDeleted=false and IsChecked=true and Name LIKE '%' + Request.QueryString['q'] + '%'" Sort="UpdateTime DESC">
				<ilghar:Row MaxCol="1">
					<ul>
						<ilghar:Col MaxRecord="2">
							<ilghar:Record>
								<li>
									<dl>
										<dt><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><img src="<%=Thumbnail%>" alt="<%=Name%>" /></a></dt>
										<dd><span class="Font">专辑：</span><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><%=Name%><span class="Color"> (试听)</span></a></dd>
										<dd><span class="Font">歌手：</span>
											<ilghar:List Object="Album.Star" Condition="AlbumID=ID">
												<ilghar:Record Separator=" , ">
													<ilghar:List Object="Star" Page="1" PageSize="1" Condition="ID=StarID">
														<ilghar:Record>
															<a href="<%=BuildUrl("star_album.dwt", InnerID)%>" target="_blank" title="<%=Name%>"><%=Name%></a>
														</ilghar:Record>
													</ilghar:List>
												</ilghar:Record>
											</ilghar:List>
										</dd>
										<dd><span class="Font">发行：</span><%=ReleaseDate%></dd>
									</dl>                
								</li>
							</ilghar:Record>
						</ilghar:Col>
					</ul>
				</ilghar:Row>
			</ilghar:List>
		</div>
		<!-- TemplateEndEditable -->
			
		<!-- TemplateBeginEditable name="分页" -->
		<ilghar:Pagination Page="Request.QueryString['Page']" PageSize="30" RecordCount="ListRecordCount">
			<div class="Block14 Pagination">
				&nbsp;&nbsp;&nbsp;&nbsp;共<span><%=RecordCount%></span>页
				&nbsp;&nbsp;&nbsp;&nbsp;每页共<span><%=PageSize%></span>首
				<ilghar:FirstPage>
					<ilghar:No>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<%=FirstPage%>">首页</a>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<%=PreviousPage%>">上一页</a>
					</ilghar:No>
				</ilghar:FirstPage>
				<ilghar:LastPage>
					<ilghar:No>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<%=NextPage%>">下一页</a>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<%=LastPage%>">尾页</a>
					</ilghar:No>
				</ilghar:LastPage>
			</div>
		</ilghar:Pagination>
		<!-- TemplateEndEditable -->
    </div>
    <div class="Block15">
        <h5>广告</h5>
		<!-- TemplateBeginEditable name="广告位17" -->
		<ilghar:Ad InnerID="17" />
		<!-- TemplateEndEditable -->
    </div>
</div>

<!-- TemplateBeginEditable name="广告位18" -->
<div class="Block2">
	<ilghar:Ad InnerID="13" />
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="脚注" -->
<div class="Footer"><%=Footer%></div>
<!-- TemplateEndEditable -->

<%If Convert.ToString(PageLang) == "UYG"%>
	<script type="text/javascript" src="/common/IlgharIme.js"></script>
	<script type="text/javascript">SetupIme()</script>
<%EndIf%>
</body>
</html>
