<%@ Page PathInChannel="index.htm" %>
<!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="/common/marquee.js"></script>
<script type="text/javascript" src="/common/swfobject.js"></script>
<script type="text/javascript" src="/common/utility.js"></script>
<script type="text/javascript" src="<%=JsPath%>common.js"></script>
<script type="text/javascript">
function SwitchTo(tabMenuID, obj, index)
{
	var tabMenu = document.getElementById(tabMenuID);
	var as = tabMenu.getElementsByTagName("A");
	for (var i = 0; i < as.length; i++)
	{
		as[i].className = "";
	}
	obj.className += "Select";
	
	var divs = tabMenu.parentNode.getElementsByTagName("DIV");
	for (var i = 0; i < divs.length; i++)
	{
		if (i == index)
		{
			divs[i].style.display = "";
		}
		else
		{
			divs[i].style.display = "none";
		}
	}
}
</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" size="40" class="<%=PageLang%>Font" />
		<input type="submit" value="搜索" />
	</form>
</div>
<!-- TemplateEndEditable -->

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

<div class="Wrap">
	<!-- TemplateBeginEditable name="广告位3" -->
	<div class="Block10">
		<ilghar:Ad InnerID="11" />
	</div>
	<!-- TemplateEndEditable -->
	<div class="Block3">
		<h1 id="RecommendTebMenu"><a class="Select" onmouseover="SwitchTo('RecommendTebMenu', this, 0)">站长推荐专辑</a><a onmouseover="SwitchTo('RecommendTebMenu', this, 1)">用户推荐专辑</a><a onmouseover="SwitchTo('RecommendTebMenu', this, 2)">最新推荐专辑</a><a onmouseover="SwitchTo('RecommendTebMenu', this, 3)">热门推荐专辑</a></h1>
		
		<!-- TemplateBeginEditable name="站长推荐专辑" -->
		<div>
			<ilghar:List Object="Album" Page="1" PageSize="6" Condition="IsDeleted=false and IsChecked=true and IsRecommended=true" Sort="Recommend DESC">
				<ilghar:Record>
					<dl>
						<dt><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><img src="<%=Thumbnail%>" alt="<%=Name%>" /></a></dt>
						<dd><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><%=Name%></a></dd>
						<dd>
							<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>[<%=ReleaseDate%>]</span></dd>
					</dl>
				</ilghar:Record>
			</ilghar:List>
		</div>
		<!-- TemplateEndEditable -->
		
		<!-- TemplateBeginEditable name="用户推荐专辑" -->
		<div style="display:none">
			<ilghar:List Object="Album" Page="1" PageSize="6" Condition="IsDeleted=false and IsChecked=true and Up > 0" Sort="Up DESC">
				<ilghar:Record>
					<dl>
						<dt><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><img src="<%=Thumbnail%>" alt="<%=Name%>" /></a></dt>
						<dd><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><%=Name%></a></dd>
						<dd>
							<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>[<%=ReleaseDate%>]</span></dd>
					</dl>
				</ilghar:Record>
			</ilghar:List>
		</div>
		<!-- TemplateEndEditable -->
		
		<!-- TemplateBeginEditable name="最新推荐专辑" -->
		<div style="display:none">
			<ilghar:List Object="Album" Page="1" PageSize="6" Condition="IsDeleted=false and IsChecked=true and IsRecommended=true" Sort="UpdateTime DESC">
				<ilghar:Record>
					<dl>
						<dt><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><img src="<%=Thumbnail%>" alt="<%=Name%>" /></a></dt>
						<dd><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><%=Name%></a></dd>
						<dd>
							<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>[<%=ReleaseDate%>]</span></dd>
					</dl>
				</ilghar:Record>
			</ilghar:List>
		</div>
		<!-- TemplateEndEditable -->
		
		<!-- TemplateBeginEditable name="热门推荐专辑" -->
		<div style="display:none">
			<ilghar:List Object="Album" Page="1" PageSize="6" Condition="IsDeleted=false and IsChecked=true and IsRecommended=true" Sort="HitCount DESC">
				<ilghar:Record>
					<dl>
						<dt><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><img src="<%=Thumbnail%>" alt="<%=Name%>" /></a></dt>
						<dd><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><%=Name%></a></dd>
						<dd>
							<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>[<%=ReleaseDate%>]</span></dd>
					</dl>
				</ilghar:Record>
			</ilghar:List>
		</div>
		<!-- TemplateEndEditable -->
	</div>
	<div class="Block4">
		<h2>本站公告</h2>
		<div id="Notice">
			<%=SiteNotice%>
		</div>
		<script type="text/javascript">
		var noticeMarquee = new Marquee("Notice");
		noticeMarquee.Direction="top";
		noticeMarquee.Step = 1;
		noticeMarquee.Width = 168;
		noticeMarquee.Height = 166;
		noticeMarquee.Timer = 20;
		noticeMarquee.ScrollStep = 1;
		noticeMarquee.Start();
		</script>
	</div>
</div>

<div class="Wrap">
	<div class="Block6">
		<!-- TemplateBeginEditable name="音乐类别1-3" -->
		<ilghar:List ID="MusicCategoryA" Object="MusicCategory" Page="1" PageSize="3">
			<ilghar:Record>
				<div class="Block7">
					<h3><%=Name%></h3>
					<ilghar:List Object="Music" Page="1" PageSize="14" Condition="IsDeleted=false and IsChecked=true and CategoryID=ID" Sort="UpdateTime DESC">
						<ilghar:Record>
							<ul>
								<li class="Left">
									<input type="checkbox" name="C<%=MusicCategoryA[InnerID]%>" value="<%=InnerID%>" />
									<a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><%=Name%></a>
									<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="Right">
									<a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><img src="<%=ImagePath%>play.gif" /></a>
								</li>
							</ul>
						</ilghar:Record>
					</ilghar:List>
					<div class="Block9">
						<input type="button" value="全 选" onclick="SetCheck('C<%=InnerID%>', true)" />
						<input type="button" value="反 选" onclick="ReverseCheck('C<%=InnerID%>')" />
						<input type="button" value="连 播" onclick="Play('C<%=InnerID%>', '<%=BuildUrl("play.dwt")%>')" />
					</div>
				</div>
			</ilghar:Record>
		</ilghar:List>
		<!-- TemplateEndEditable -->
	</div>
	<div class="Block4">
		<!-- TemplateBeginEditable name="专辑排行" -->
		<h2>专辑排行</h2>
		<ilghar:List Object="Album" Page="1" PageSize="7" Condition="IsDeleted=false and IsChecked=true" Sort="HitCount DESC">
			<ilghar:Record>
				<dl>
					<dt><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><img src="<%=Thumbnail%>" alt="<%=Name%>" /></a></dt>
					<dd><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><%=Name%></a></dd>
					<dd>
						<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><%=HitCount%></span></dd>
				</dl>
			</ilghar:Record>
		</ilghar:List>		
		<!-- TemplateEndEditable -->
	</div>
</div>

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

<div class="Wrap">
	<div class="Block6">
		<!-- TemplateBeginEditable name="音乐类别4-6" -->
		<ilghar:List ID="MusicCategoryB" Object="MusicCategory" Page="2" PageSize="3">
			<ilghar:Record>
				<div class="Block7">
					<h3><%=Name%></h3>
					<ilghar:List Object="Music" Page="1" PageSize="14" Condition="IsDeleted=false and IsChecked=true and CategoryID=ID" Sort="UpdateTime DESC">
						<ilghar:Record>
							<ul>
								<li class="Left">
									<input type="checkbox" name="C<%=MusicCategoryB[InnerID]%>" value="<%=InnerID%>" />
									<a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><%=Name%></a>
									<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="Right">
									<a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><img src="<%=ImagePath%>play.gif" /></a>
								</li>
							</ul>
						</ilghar:Record>
					</ilghar:List>
					<div class="Block9">
						<input type="button" value="全 选" onclick="SetCheck('C<%=InnerID%>', true)" />
						<input type="button" value="反 选" onclick="ReverseCheck('C<%=InnerID%>')" />
						<input type="button" value="连 播" onclick="Play('C<%=InnerID%>', '<%=BuildUrl("play.dwt")%>')" />
					</div>
				</div>
			</ilghar:Record>
		</ilghar:List>
		<!-- TemplateEndEditable -->
	</div>
	<div class="Block4">
		<!-- TemplateBeginEditable name="歌曲排行" -->
		<h2>歌曲排行</h2>
		<ilghar:List Object="Music" Page="1" PageSize="20" Condition="IsDeleted=false and IsChecked=true" Sort="HitCount DESC">
			<ul>
				<ilghar:Record>
					<li><label><%=Index + 1%>. </label><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><%=Name%></a><span><%=HitCount%></span></li>
				</ilghar:Record>
			</ul>
		</ilghar:List>
		<!-- TemplateEndEditable -->
	</div>
</div>

<!-- TemplateBeginEditable name="友情链接" -->
<ilghar:List Mark="Link" Object="Link" Condition="IsDeleted=false and IsChecked=true">
	<div id="Link" class="Link">
		<ilghar:Record>
			<a href="<%=URL%>" title="<%=Name%>"><img src="<%=Logo%>" title="<%=Name%>" /></a>
		</ilghar:Record>
	</div>
	<script type="text/javascript">
	var linkMarquee = new Marquee("Link");
	linkMarquee.Direction="left";
	linkMarquee.Step = 1;
	linkMarquee.Width = document.getElementById("Link").clientWidth;
	linkMarquee.Height = document.getElementById("Link").clientHeight;
	linkMarquee.Timer = 20;
	linkMarquee.ScrollStep = 1;
	linkMarquee.Start();
	</script>
</ilghar:List>
<!-- TemplateEndEditable -->

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

<script type="text/javascript">
_ajax.Post("/generator.aspx?Type=Auto", null, null);
</script>

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