<%@ Page CodeFileBaseClass="IlgharCMS.Lib.AdminPageBase" %>
<ilghar:Get ID="Movie" Object="Movie" InnerID="Request.QueryString['MovieID']" />
<ilghar:Get ID="Player" Mark="System" Object="Player" Operation="List(-1, -1, null, null)" />
<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] and CategoryID=Request.QueryString['CategoryID']" 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>
