<%@ Page CodeFileBaseClass="IlgharCMS.Lib.MemberPageBase" %>
<!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" -->
<ilghar:Get ID="Movie" Object="Movie" InnerID="Request.QueryString['MovieID']" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>地址列表</title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ilghar:Comment><link rel="stylesheet" type="text/css" href="../../../S01/CHS/css/common.css" /></ilghar:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css" />
<script type="text/javascript">
var _page = "movie_url_list";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _movieInnerID = "<%=Request.QueryString['MovieID']%>";
var _movieID = "<%=Movie[ID]%>";
var _names = null;
var _urls = null;
var _downloads = null;
var _counter = 0;
var _playerID,_categoryID,_extention,_needPack;
var _isLocked = <%=Convert.ToString(User["IsLocked"]).ToLower()%>;
var _lang_locked = "你被锁定，不能操作！";
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_confirm_delete = "要删除此项吗？";
var _lang_must_be_number = "开始，结束和通配符都必须是数字！";
var _lang_from_a_to_z = "开始字符必须在a-z或者A-Z范围！";
var _lang_to_a_to_z = "结束字符必须在a-z或者A-Z范围！";
var _lang_select_player = "请选择播放器！";
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame_flipCHS.gif" alt="关闭侧栏导航" /></div>
	<div class="Title"><a href="../list.aspx">电影列表</a> → <%=Movie[Name]%></div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left"></li>
		<li class="Middle"><a href="../edit.aspx?ID=<%=Request.QueryString["MovieID"]%>">编辑</a></li>
		<li class="Right"></li>
		<li class="Left Selected"></li>
		<li class="Middle Selected">地址列表</li>
		<li class="Right Selected"></li>
	</ul>
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle"></li>
		<li class="Right"></li>
	</ul>
	<div class="ToolBar">
		<form>
			<select name="CategoryID" class="<%=PageLang%>Font">
				<option>所有类别</option>
				<option value="">未指定</option>
				<ilghar:Tree ID="UrlCategory" Object="UrlCategory">
					<ilghar:Control>
						<ilghar:Space>&nbsp;&nbsp;</ilghar:Space>
						<ilghar:Line>│</ilghar:Line>
						<ilghar:TopOpen>┌</ilghar:TopOpen>
						<ilghar:Top>┌</ilghar:Top>
						<ilghar:MiddleOpen>├</ilghar:MiddleOpen>
						<ilghar:Middle>├</ilghar:Middle>
						<ilghar:BottomOpen>└</ilghar:BottomOpen>
						<ilghar:Bottom>└</ilghar:Bottom>
					</ilghar:Control>
					<ilghar:Record>
						<option value="<%=ID%>"><%=Control%><%=Name%></option>
						<%=ChildRecords%>
					</ilghar:Record>
				</ilghar:Tree>
			</select>
			名称：<input name="UrlName" maxlength="50" title="名称" class="<%=PageLang%>Font" autocomplete="off" />
			<select name="Type"><option value="">单个地址</option><option value="0">批量（数字）</option><option value="1">批量（字符）</option></select>
			<span id="Batch" style="display:none">
			从：<input name="From" value="1" size="3" maxlength="3" class="Text CHSFont" />
			到：<input name="To" value="2" size="3" maxlength="3" class="Text CHSFont" />
			<span id="WildcardSpan">通配符长度：<input name="Wildcard" value="2" size="1" maxlength="1" class="Text CHSFont" /></span>
			扩展名：<input name="Extention" size="5" maxlength="50" title="扩展名" autocomplete="off" class="Text CHSFont" />
			</span>
			<br />
			地址：<input name="UrlTemplate" size="25" class="Text CHSFont" />
			下载：<input name="DownloadTemplate" size="25" class="Text CHSFont" />
			<select name="PlayerID" class="<%=PageLang%>Font">
				<ilghar:List ID="Player" Mark="System" Object="Player">
					<ilghar:Record>
						<option value="<%=ID%>"><%=Name%></option>
					</ilghar:Record>
				</ilghar:List>
			</select>
			<input type="submit" value="添加" />
		</form>
	</div>
	<div id="List">
		<table border="0" cellpadding="4" cellspacing="1" class="ListTable">
			<thead>
				<tr>
					<th width="60">名称</th>
					<th>地址</th>
					<th>播放器</th>
					<th width="40">错误</th>
					<th width="40">修改</th>
					<th width="40">删除</th>
				</tr>
			</thead>
			<tbody>
				<ilghar:List Object="Movie.Url" Condition="MovieID=Movie[ID]" Validate="True">
					<ilghar:Record>
						<tr id="<%=InnerID%>">
							<form>
								<td><input type="text" name="Name" value="<%=Name%>" size="10" maxlength="50" class="Text <%=PageLang%>Font" /></td>
								<td><input type="text" name="URL" value="<%=URL%>" size="30" maxlength="255" class="Text" /></td>
								<td>
									<select name="PlayerID" class="<%=PageLang%>Font">
										<ilghar:List Mark="System" Object="Player" Source="Player">
											<ilghar:Record>
												<%If Guid.Equals(ID, PlayerID)%>
													<option value="<%=ID%>" selected="selected"><%=Name%></option>
												<%Else%>
													<option value="<%=ID%>"><%=Name%></option>
												<%EndIf%>
											</ilghar:Record>
										</ilghar:List>
									</select>
								</td>
								<td><%=Error%></td>
								<td><input type="image" src="<%=ImagePath%>modify.gif" /></td>
								<td><a href="">删除</a></td>
							</form>
						</tr>
					</ilghar:Record>
				</ilghar:List>
			</tbody>
		</table>
	</div>
	<div class="Footer"></div>
</div>
<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<%If PageLang == "UYG" || PageLang == "KZA" || PageLang == "KGA"%>
	<script type="text/javascript" src="<%=CommonPath%>IlgharIme.js"></script>
<%EndIf%>
<script type="text/javascript" src="<%=JsPath%>common.js"></script>
<script type="text/javascript" src="<%=JsPath%>movie.js"></script>
</body>
</html>