<%@ Page CodeFileBaseClass="IlgharCMS.Lib.AdminPageBase" %>
<!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" -->
<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 = "template_page_add";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _templatePath = "<%=Request.QueryString["TemplatePath"]%>";
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_file_name_invalid = "文件名不合法！";
var _lang_folder_exist = "该文件夹已存在！";
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">模板列表</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="../edit.aspx?Path=<%=Request.QueryString["TemplatePath"]%>">编辑</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../dictionary.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>">词典</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../module.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>">模块邦定</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../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="../script/list.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>">脚本列表</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../script/add.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>">添加脚本</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../menu/list.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>">模块菜单</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../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">
			<tfoot>
				<tr><td colspan="2"><input type="submit" value="添加" /></td></tr>
			</tfoot>
			<tbody>
				<tr>
					<th width="80">选择文件夹：</th>
					<td>
						<select id="Folder" style="width:140px"><option>/</option>
							<ilghar:List Object="Template.Page" Operation="ListFolder(Request.QueryString['TemplatePath'])">
								<ilghar:Record>
									<option value="<%=["FolderPathInTemplate"]%>"><%=["FolderPathInTemplate"]%></option>
								</ilghar:Record>
							</ilghar: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>
		</table>
	</form>
	<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%>system.js"></script>
</body>
</html>