<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>添加页面</title>
<link rel="stylesheet"  href="<%=CommonPath%>jquery/themes/lightness/all.css" >
<ali:Comment><link rel="stylesheet"  href="../../../S01/CHS/css/common.css" ></ali:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css" >
<script >
var _page = 'template_page_add',
    _lang = '<%=ContentLang%>',
    _webPath = '<%=WebPath%>',
    _imagePath = '<%=ImagePath%>',
    _templatePath = '<%=Request.QueryString["TemplatePath"]%>',
    _lang_working = '正在操作...',
    _lang_operation_fail = '操作失败！',
    _lang_operation_success = '操作成功！',
    _lang_file_name_invalid = '文件名不合法！',
    _lang_folder_exist = '该文件夹已存在！',
    _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="../../template/list.aspx">模板列表</a> → <%=Request.QueryString["TemplatePath"]%></div>
	<div class="Right"></div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left"></li>
		<li class="Middle"><a href="../../template/edit.aspx?Path=<%=Request.QueryString["TemplatePath"]%>">编辑</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../../template/dictionary.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>">词典</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../../template/module.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>">模块邦定</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../../template/page/list.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>">页面列表</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="../../template/script/list.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>">脚本列表</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../../template/script/add.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>">添加脚本</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../../template/menu/list.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>">模块菜单</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../../template/menu/add.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>">添加菜单</a></li>
		<li class="Right"></li>
	</ul>
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle"></li>
		<li class="Right"></li>
	</ul>
	<form>
		<table border="0" cellpadding="4" cellspacing="1">
			<tbody>
				<tr>
					<th width="80">选择文件夹：</th>
					<td>
						<select id="Folder" style="width:140px"><option>/</option>
							<ali:List Object="Template.Page" Operation="ListFolder(Request.QueryString['TemplatePath'])">
								<ali:Record>
									<option value="<%=["FolderPathInTemplate"]%>"><%=["FolderPathInTemplate"]%></option>
								</ali:Record>
							</ali:List>
						</select>
						<input type="text" id="FolderName" >
						<input type="button" id="AddFolder" value="添加" >
						<input type="button" id="DeleteFolder" value="删除" >
					</td>
				</tr>
				<tr>
					<th width="80">模板内路径：</th>
					<td>
						<input type="text" name="Name" maxlength="50" class="Text" ><span id="Extention">.dwt.aspx</span>
						<input type="radio" name="Type" id="Page" checked="checked" onclick="document.getElementById('Extention').innerText='.dwt.aspx';" ><label for="Page">页面</label>
						<input type="radio" name="Type" id="UserControl" onclick="document.getElementById('Extention').innerText='.dwt.ascx';" ><label for="UserControl">用户控件</label>
					</td>
				</tr>
				<tr>
					<td colspan="2" style="text-align:center"><textarea name="Content" rows="30" wrap="off" style="width:98%;font-family:Arial, Helvetica, sans-serif" ></textarea></td>
				</tr>
			</tbody>
			<tfoot>
				<tr><td colspan="2"><input type="submit" value="添加" ></td></tr>
			</tfoot>
		</table>
	</form>
	<div class="Footer"></div>
</div>
<script src="<%=CommonPath%>jquery/core.js"></script>
<script src="<%=CommonPath%>jquery/ui.js"></script>
<script src="<%=CommonPath%>utility.js"></script>
<script src="<%=JsPath%>global.js"></script>
<script src="<%=ModuleJsPath%>module.js"></script>
</body>
</html>