<%@ Page CodeFileBaseClass="IlgharCMS.Lib.AdminPageBase" %>
<%@ Register TagPrefix="IlgharUC" TagName="Ime" Src="../../../ime.dwt.ascx"%>
<%@ Register TagPrefix="IlgharUC" TagName="LanguageMenu" Src="../../../language_menu.dwt.ascx"%>
<!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']" />
<ilghar:Get ID="Config" Object="InstanceConfig" Operation="GetBasicSettings()" />
<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" />
<ilgharUC:Ime Ime="true" Eot="true" runat="server" />
<script type="text/javascript">
var _page = "movie_url_list";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _movieInnerID = "<%=Request.QueryString['MovieID']%>";
var _movieID = "<%=Movie[ID]%>";
var _adminPath = "<%=AdminPath%>";
var _urlRoot = "<%=Config[PlayFolder]%>";
var _downloadRoot = "<%=Config[DownloadFolder]%>";
var _names = null;
var _urls = null;
var _downloads = null;
var _counter = 0;
var _playerID,_categoryID,_extention,_needPack;
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_name_empty = "名称不能空！";
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.gif" /></div>
	<div class="Title"><a href="../movie/list.aspx?Lang=<%=ContentLang%>">电影列表</a> → <span class="<%=ContentLang%>Font"><%=Movie[Name]%></span></div>
	<div class="Right">
		<ilgharUC:LanguageMenu runat="server" />
		<img height="15" src="<%=ImagePath%>dropdown.gif" /> 语言：<%=CurrentLanguage%>
	</div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left"></li>
		<li class="Middle"><a href="../movie/edit.aspx?Lang=<%=ContentLang%>&amp;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="<%=ContentLang%>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="<%=ContentLang%>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" />
			到：<input name="To" value="2" size="3" maxlength="3" />
			<span id="WildcardSpan">通配符长度：<input name="Wildcard" value="2" size="1" maxlength="1" /></span>
			扩展名：<input name="Extention" size="5" maxlength="50" title="扩展名" autocomplete="off" />
			</span>
			<input type="checkbox" name="NeedPack" id="NeedPack" /><label for="NeedPack">打包</label>
			<br />
			地址：<input name="UrlTemplate" size="25" /><input type="button" id="URLSelect" value="选择..." />
			下载：<input name="DownloadTemplate" size="25" /><input type="button" id="DownloadSelect" value="选择..." />
			<select name="PlayerID" class="<%=ContentLang%>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>
					<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 <%=ContentLang%>Font" /></td>
								<td><input type="text" name="URL" value="<%=URL%>" size="30" maxlength="255" class="Text" /></td>
								<td>
									<select name="PlayerID" class="<%=ContentLang%>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>
									<%If Convert.ToBoolean(NeedPack)%>
										<input type="checkbox" name="NeedPack" checked="checked" />
									<%Else%>
										<input type="checkbox" name="NeedPack" />
									<%EndIf%>
								</td>
								<td><%=Error%></td>
								<td><input type="image" src="<%=ImagePath%>modify.gif" /></td>
								<td><a href="edit.aspx?Lang=<%=ContentLang%>&amp;MovieID=<%=Request.QueryString["MovieID"]%>&amp;ID=<%=InnerID%>">编辑</a></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>
<script type="text/javascript" src="<%=JsPath%>global.js"></script>
<script type="text/javascript" src="<%=JsPath%>movie.js"></script>
</body>
</html>