<%@ Page PathInChannel="search_music.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>
<!-- 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" checked="checked" /><label for="SearchMusic">歌曲</label>
		<input type="radio" name="Search" id="SearchAlbum" /><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="广告位13" -->
<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="Block20">
        <div class="Block22">
        	<ul>
            	<li class="Col3">歌曲名</li>
            	<li class="Col4">歌手</li>
            	<li class="Col5">专辑</li>
                <li>试听</li>
                <li>下载</li>
            </ul>
        </div>
       	<div class="Block23">
			<!-- TemplateBeginEditable name="搜索结果" -->
			<ilghar:List ID="List" Object="Music" Page="Request.QueryString['Page']" PageSize="30" Condition="IsDeleted=false and IsChecked=true and Name LIKE '%' + Request.QueryString['q'] + '%'" Sort="UpdateTime DESC">
				<ilghar:Record>
					<ul>
						<li class="Col6">
							<input type="checkbox" name="Music" value="<%=InnerID%>" />
							<a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><%=Name%></a>
						</li>
						<li class="Col7">
							<ilghar:List Object="Music.Star" Condition="MusicID=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>
						</li>
						<li class="Col8">
							<ilghar:List Object="Music.Album" Condition="MusicID=ID">
								<ilghar:Record>
									<ilghar:List Object="Album" Page="1" PageSize="1" Condition="ID=AlbumID">
										<ilghar:Record>
											<a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><%=Name%></a>
										</ilghar:Record>
									</ilghar:List>
								</ilghar:Record>
							</ilghar:List>
						</li>
						<li><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>">试听</a></li>
						<li><a href="<%=Download%>">下载</a></li>
					</ul>
				</ilghar:Record>
			</ilghar:List>
			<!-- TemplateEndEditable -->
			
			<!-- TemplateBeginEditable name="分页" -->
			<ilghar:Pagination Page="Request.QueryString['Page']" PageSize="30" RecordCount="ListRecordCount">
				<div>
					<input type="button" value="全 选" onclick="SetCheck('Music', true)" />
					<input type="button" value="反 选" onclick="ReverseCheck('Music')" />
					<input type="button" value="连 播" onclick="Play('Music', '<%=BuildUrl("play.dwt")%>')" />
					&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>
    <div class="Block15">
        <h5>广告</h5>
		<!-- TemplateBeginEditable name="广告位14" -->
		<ilghar:Ad InnerID="17" />
		<!-- TemplateEndEditable -->
    </div>
</div>

<!-- TemplateBeginEditable name="广告位15" -->
<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>
