国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
2.0KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>文件编辑</title>
  6. <link rel="stylesheet" href="../static/web/css/admin.css">
  7. <script>
  8. function Post() {
  9. if (document.form1.filename.value == "") {
  10. alert("文件名不能为空");
  11. document.form1.filename.focus();
  12. return false;
  13. }
  14. }
  15. </script>
  16. </head>
  17. <body>
  18. <table width="98%" border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" style="border-collapse:collapse">
  19. <form method="POST" action="tpl.php" name=form1 onSubmit="return Post()">
  20. <input type="hidden" name="action" value="savenewfile">
  21. <tr>
  22. <td width=78%>
  23. <table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse">
  24. <tr>
  25. <td width="16%" height="26">工作目录:</td>
  26. <td width="84%"><input name="path" size="40" value="<?php echo $path; ?>">(空白表示根目录 ,不允许用 “..” 形式的路径)</td>
  27. </tr>
  28. <tr>
  29. <td width="16%" height="26">文件名称:</td>
  30. <td><input name="filename" size="40" value="newfile.htm"></td>
  31. </tr>
  32. <tr>
  33. <td width="16%" height="26">文件内容:</td>
  34. <td><textarea name="content" cols="150" rows="20" style="width:100%"></textarea></td>
  35. </tr>
  36. </table>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td>
  41. <input type="submit" value="保存" name='B1' class="coolbg np">
  42. &nbsp;
  43. <input type="reset" value="取消修改" name='B2' class="coolbg np">
  44. &nbsp;
  45. <input type="button" value="不理返回" name='B4' class="coolbg np" onClick="javascript:history.go(-1)">
  46. </td>
  47. </tr>
  48. </form>
  49. </table>
  50. </body>
  51. </html>