<%@ Page PathInChannel="p{#ID#}.htm" Object="Movie.Url" %>
<!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="MovieUrl" Object="Movie.Url" InnerID="Request.QueryString['ID']" />
<ilghar:Get ID="Player" Mark="System" Object="Player" Guid="MovieUrl[PlayerID]" />
<ilghar:Get ID="Movie" Object="Movie" Guid="MovieUrl[MovieID]" />
<ilghar:Get ID="MovieCategory" Object="MovieCategory" Guid="Movie[CategoryID]" />
<title><%=MovieUrl[Name]%> - <%=Movie[Name]%> - <%=MovieCategory[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/equalcols.js"></script>
<script type="text/javascript" src="/common/swfobject.js"></script>
<script type="text/javascript" src="/common/utility.js"></script>
<script type="text/javascript">
function Up(obj)
{
	_ajax.Post("/ws.aspx?Object=Movie&Operation=IncrementUp&ID=<%=Movie[InnerID]%>", null, null);
	obj.disabled = true;
}

function Down(obj)
{
	_ajax.Post("/ws.aspx?Object=Movie&Operation=IncrementDown&ID=<%=Movie[InnerID]%>", null, null);
	obj.disabled = true;
}

function ReportError(obj)
{
	_ajax.Post("/ws.aspx?Object=Movie.Url&Operation=IncrementError&ID=<%=MovieUrl[InnerID]%>", 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="MovieCategory" 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 action="<%=BuildUrl('search.dwt')%>" method="get">
		<input type="text" name="q" size="40" />
		<input type="submit" value="搜索" />
	</form>
</div>
<!-- TemplateEndEditable -->

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

<div class="Wrap">
	<div class="Block13">
        <div class="Block9" id="Left">
			<!-- TemplateBeginEditable name="广告位15" -->
            <h4>广告</h4>
			<div>
				<ilghar:Ad InnerID="17" />
			</div>
			<!-- TemplateEndEditable -->
        </div> 
        <div class="Block11" id="Middle">
			<!-- TemplateBeginEditable name="播放器" -->
            <h5><%=Movie[Name]%></h5>
			<%=Player[Code]%>
			<script type="text/javascript">WritePlayer("<%=MovieUrl[URL]%>")</script>
			<p><button onclick="Up(this)">顶 <%=Movie[Up]%></button> <button onclick="Down(this)">踩 <%=Movie[Down]%></button> <button onclick="ReportError(this)">报告错误</button></p>
			<div>
				节目地址：<input type="text" id="PageUrl" size="50" onclick="CopyToClipboard(document.getElementById('PageUrl').value);alert('网址已复制，粘贴给好友请按Crtl+V。')" />
				<script type="text/javascript">document.getElementById("PageUrl").value = window.location.href;</script>
			</div>
			<!-- TemplateEndEditable -->
        </div>  
        <div class="Block12" id="Right">
			<!-- TemplateBeginEditable name="最新电影" -->
			<ilghar:List Object="Movie" Page="1" PageSize="10" Condition="IsDeleted=false and IsChecked=true" Sort="UpdateTime DESC">
				<h4>最新电影</h4>
				<ul>
					<ilghar:Record>
						<li>
							<label class="CHSFont"><%=Index + 1%></label>
							<span><a href="<%=BuildUrl()%>" title="<%=Name%>"><%=Name%></a></span><a href="<%=BuildUrl()%>" title="<%=Name%>"><img src="<%=ImagePath%>play.jpg"></a>
						</li>
					</ilghar:Record>
				</ul>
			</ilghar:List>
			<!-- TemplateEndEditable -->
			
			<!-- TemplateBeginEditable name="热门电影" -->
			<ilghar:List Object="Movie" Page="1" PageSize="10" Condition="IsDeleted=false and IsChecked=true" Sort="HitCount DESC">
				<h4>热门电影</h4>
				<ul>
					<ilghar:Record>
						<li>
							<label class="CHSFont"><%=Index + 1%></label>
							<span><a href="<%=BuildUrl()%>" title="<%=Name%>"><%=Name%></a></span><a href="<%=BuildUrl()%>" title="<%=Name%>"><img src="<%=ImagePath%>play.jpg"></a>						</li>
					</ilghar:Record>
				</ul>
			</ilghar:List>
			<!-- TemplateEndEditable -->
		</div>
    </div>
</div>
<!-- TemplateBeginEditable name="广告位16" -->
<div class="Block2">
	<ilghar:Ad InnerID="13" />
</div>
<!-- TemplateEndEditable -->

<script type="text/javascript">
_ajax.Post("/ws.aspx?Object=Movie&Operation=IncrementHitCount&ID=<%=Movie[InnerID]%>", null, null);
MakeColsEqual("Left", "Middle", "Right");
</script>

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