<!DOCTYPE html>
<html>
	<head>
		<meta charset="<?php echo $cfg_soft_lang; ?>">
		<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
		<title>文件编辑</title>
		<link rel="stylesheet" href="../static/web/css/admin.css">
		<script>
			function Post() {
				if (document.form1.filename.value == "") {
					alert("文件名不能为空");
					document.form1.filename.focus();
					return false;
				}
			}
		</script>
	</head>
	<body>
		<table width="98%" cellpadding="0" cellspacing="0">
			<form method="POST" action="tpl.php" name=form1 onSubmit="return Post()">
				<input type="hidden" name="action" value="savenewfile">
				<tr>
					<td width=70%>
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<td width="16%">工作目录：</td>
								<td width="84%"><input name="path" size="40" value="<?php echo $path; ?>">（空白表示根目录 ，不允许用“..” 形式的路径）</td>
							</tr>
							<tr>
								<td width="16%">文件名称：</td>
								<td><input name="filename" size="40" value="newfile.htm"></td>
							</tr>
							<tr>
								<td width="16%">文件内容：</td>
								<td><textarea name="content" cols="150" rows="20" style="width:100%"></textarea></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<input type="submit" value="保存" name="B1" class="btn btn-success btn-sm">
						<input type="button" value="返回" name="B4" class="btn btn-success btn-sm" onClick="javascript:history.go(-1)">
					</td>
				</tr>
			</form>
		</table>
	</body>
</html>