<%@ Page CodeFileBaseClass="IlgharCMS.Lib.AdminPageBase" %>
<%@ 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="Type" Object="Type" InnerID="Request.QueryString['TypeID']" />
<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 = "type_resource_list";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _typeID = "<%=Request.QueryString["TypeID"]%>";
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_confirm_delete = "要删除此项吗？";
var _lang_cant_delete_root = "根目录不能删除！";
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" /></div>
	<div class="Title"><a href="../list.aspx?Lang=<%=ContentLang%>">类型列表</a> → <%=Type[Name]%></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="../edit.aspx?ID=<%=Request.QueryString["TypeID"]%>">编辑</a></li>
		<li class="Right"></li>
		<li class="Left Selected"></li>
		<li class="Middle Selected">资源列表</li>
		<li class="Right Selected"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="add.aspx?TypeID=<%=Request.QueryString["TypeID"]%>">添加资源</a></li>
		<li class="Right"></li>
	</ul>
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle"></li>
		<li class="Right"></li>
	</ul>
	<div class="ToolBar">
		文件夹：
		<select name="Folder" id="Folder" style="width:140px">
			<option value="">/</option>
			<ilghar:List Object="Type.Resource" Operation="ListFolder(Convert.ToInt32(Request.QueryString['TypeID']))">
				<ilghar:Record>
					<option value="<%=Name%>"><%=Name%></option>
				</ilghar:Record>
			</ilghar:List>
		</select>
		<input type="button" id="DeleteFolder" disabled="disabled" value="删除" />
	</div>
	<div id="List">
		<table border="0" cellpadding="4" cellspacing="1" class="ListTable">
			<thead>
				<tr>
					<th>文件名</th>
					<th width="40">删除</th>
				</tr>
			</thead>
			<tbody>
				<ilghar:List Object="Type.Resource" Operation="ListFile(Convert.ToInt32(Request.QueryString['TypeID']), null)" Validate="True">
					<ilghar:Record>
						<tr id="<%=Name%>">
							<td><%=Name%></td>
							<td><a href="">删除</a></td>
						</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%>ad.js"></script>
</body>
</html>