tpl_newfile.htm
2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>文件编辑</title>
<link rel="stylesheet" type="text/css" href="css/base.css">
<script>
function Post()
{
if (document.form1.filename.value=="")
{
alert("文件名不能为空。");
document.form1.filename.focus();
return false;
}
}
</script>
</head>
<body bgcolor="#F2F4F3" leftmargin="15" topmargin="10">
<table width=98% border=0 cellpadding=0 cellspacing=0 bordercolor=#111111 style="border-collapse: collapse">
<form method="POST" action="tpl.php" name=form1 onSubmit="return Post()">
<input type="hidden" name="action" value="savenewfile" />
<tr>
<td width=78% valign="top">
<table border=0 cellpadding=0 cellspacing=0 style="border-collapse: collapse" width=100%>
<tr>
<td width=16% height="25">工作目录:</td>
<td width="84%"> <input name="path" size=40 value="<?php echo $path;?>" >
(空白表示根目录 ,不允许用 “..” 形式的路径)</td>
</tr>
<tr>
<td width=16% height="25">文件名称:</td>
<td>
<input name="filename" size="40" value="newfile.htm" />
</td>
</tr>
<tr>
<td width=16% height="25">文件内容:</td>
<td>
<textarea name="content" cols="150" rows="20" style="width:99%;"></textarea>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<br />
<input type="submit" value=" 保 存 " name='B1' class="coolbg np" />
<input type="reset" value="取消修改" name='B2' class="coolbg np" />
<input type="button" value="不理返回" name='B4' class="coolbg np" onClick="javascript:history.go(-1);" />
<br /> <br />
</td>
</tr>
</form>
</table>
</body>
</html>