<%@ Page PathInChannel="album/{#ID#}.htm" Object="Album" %>
<!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" />
<ilghar:Get ID="Album" Object="Album" InnerID="Request.QueryString['ID']" />
<ilghar:Get ID="AlbumCategory" Object="AlbumCategory" Guid="Album[CategoryID]" />
<ilghar:Get ID="Language" Object="Language" Guid="Album[LanguageID]" />
<ilghar:Get ID="Region" Object="Region" Guid="Album[RegionID]" />
<ilghar:Get ID="Company" Object="Company" Guid="Album[CompanyID]" />
<title><%=Album[Name]%> - <%=AlbumCategory[Name]%> - <%=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/utility.js"></script>
<script type="text/javascript" src="<%=JsPath%>common.js"></script>
<script type="text/javascript">
function Up(obj)
{
	_ajax.Post("/ws.aspx?Object=Album&Operation=IncrementUp&ID=<%=Request.QueryString['ID']%>", null, null);
	obj.disabled = true;
}

function Down(obj)
{
	_ajax.Post("/ws.aspx?Object=Album&Operation=IncrementDown&ID=<%=Request.QueryString['ID']%>", null, null);
	obj.disabled = true;
}
</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="广告位11" -->
<div class="Block2">
	<ilghar:Ad InnerID="13" />
</div>
<!-- TemplateEndEditable -->

<div class="Wrap">
	<!-- TemplateBeginEditable name="路径" -->
    <div class="Block12">
		<span>当前位置：</span>
		<ilghar:Path Object="AlbumCategory" Guid="Album[CategoryID]">
			<ilghar:Record>
				<a href="<%=URL%>"><%=Name%></a> &gt;
			</ilghar:Record>
		</ilghar:Path>
		<%=Album[Name]%>
	</div>
	<!-- TemplateEndEditable -->

    <div class="Block20">
        <div class="Block18">
			<dl>
				<dt><img src="<%=Album[Picture]%>" /></dt>
				<dd><span>专辑：</span><%=Album[Name]%></dd>
				<dd><span>歌手：</span>
					<ilghar:List Object="Album.Star" Condition="AlbumID=Album[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>标签：</span>
					<ilghar:List Object="Album.Tag" Condition="AlbumID=Album[ID]">
						<ilghar:Record Separator=" , ">
							<%=TagName%>
						</ilghar:Record>
					</ilghar:List>
				</dd>
				<dd><span>语言：</span><%=Language[Name]%></dd>
				<dd><span>地区：</span><%=Region[Name]%></dd>
				<dd><span>公司：</span><%=Company[Name]%></dd>
				<dd><span>发行时间：</span><%=Album[ReleaseDate]%></dd>
				<dd><span>人气：</span><%=Album[HitCount]%></dd>
				<dd><button onclick="Up(this)">顶<%=Album[Up]%></button> <button onclick="Down(this)">踩<%=Album[Down]%></button></dd>
			</dl>
            <div class="Block19">
            	<span>专辑地址：</span>
                <input type="text" id="PageUrl" size="60" />
                <input class="Button" type="button" value="点此复制给好友" onclick="CopyToClipboard(document.getElementById('PageUrl').value);alert('网址已复制，粘贴给好友请按Crtl+V。')" />
				<script type="text/javascript">document.getElementById("PageUrl").value = window.location.href;</script>
            </div>
            <div class="Block19">
	            <span>专辑介绍：</span><br />
              	<%=Album[Description]%>
            </div>
        </div>
        <div class="Block12 Margin">
        	<ul>
            	<li class="Col1"><span>歌曲名</span></li>
                <li><span>试听</span></li>
                <li><span>下载</span></li>
                <li><span>歌词</span></li>
            </ul>
        </div>
		<div class="Block21">
			<ilghar:List Object="Music" Condition="IsDeleted=false and IsChecked=true and AlbumID=Album[ID]">
				<ilghar:Record>
					<ul>
						<li class="Col2">
							<input type="checkbox" name="Album" value="<%=InnerID%>" />
							<a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><%=Name%></a>
						</li>
						<li><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>">试听</a></li>
						<li><a href="<%=Download%>" target="_blank" title="<%=Name%>">下载</a></li>
						<li><a href="javascript:AddLyric(<%=InnerID%>, '<%=BuildUrl("add_lyric.dwt")%>')">添加</a></li>
					</ul>
				</ilghar:Record>
			</ilghar:List>
			<div>
				<input type="button" value="全 选" onclick="SetCheck('Album', true)" />
				<input type="button" value="反 选" onclick="ReverseCheck('Album')" />
				<input type="button" value="连 播" onclick="Play('Album', '<%=BuildUrl("play.dwt")%>')" />
			</div>
		</div>
    </div>
    <div class="Block15">
		<h5>TOP20单曲</h5>
		<ilghar:List Object="Music" Page="1" PageSize="20" Condition="IsDeleted=false and IsChecked=true" Sort="UpdateTime DESC">
			<ilghar:Record>
				<ul>
					<li>
						<input type="checkbox" name="Top" value="<%=InnerID%>" />
						<a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><%=Name%></a>
					 </li>
				</ul>
			</ilghar:Record>
		</ilghar:List>
		<div class="Block9">
			<input type="button" value="全 选" class="Button" onclick="SetCheck('Top', true)" />
			<input type="button" value="反 选" class="Button" onclick="ReverseCheck('Top')" />
			<input type="button" value="连 播" class="Button" onclick="Play('Top', '<%=BuildUrl("play.dwt")%>')" />
		</div>
    </div>
</div>

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

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

<script type="text/javascript">
_ajax.Post("/ws.aspx?Object=Album&Operation=IncrementHitCount&ID=<%=Request.QueryString['ID']%>", 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>
