国内流行的内容管理系统(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.

49 lines
1.5KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang;?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>文件编辑</title>
  7. <link rel="stylesheet" href="../static/web/css/admin.css">
  8. <script>
  9. function Post() {
  10. if (document.form1.filename.value == "") {
  11. alert("文件名不能为空");
  12. document.form1.filename.focus();
  13. return false;
  14. }
  15. }
  16. </script>
  17. </head>
  18. <body>
  19. <table width="98%" cellpadding="0" cellspacing="0">
  20. <form method="POST" action="tpl.php" name=form1 onSubmit="return Post()">
  21. <input type="hidden" name="action" value="savenewfile">
  22. <tr>
  23. <td width=70%>
  24. <table width="100%" cellpadding="0" cellspacing="0">
  25. <tr>
  26. <td width="16%">工作目录:</td>
  27. <td width="84%"><input name="path" size="40" value="<?php echo $path;?>">(空白表示根目录 ,不允许用“..” 形式的路径)</td>
  28. </tr>
  29. <tr>
  30. <td width="16%">文件名称:</td>
  31. <td><input name="filename" size="40" value="newfile.htm"></td>
  32. </tr>
  33. <tr>
  34. <td width="16%">文件内容:</td>
  35. <td><textarea name="content" cols="150" rows="20" style="width:100%"></textarea></td>
  36. </tr>
  37. </table>
  38. </td>
  39. </tr>
  40. <tr>
  41. <td>
  42. <input type="submit" value="保存" name="B1" class="btn btn-success btn-sm">
  43. <input type="button" value="返回" name="B4" class="btn btn-success btn-sm" onClick="javascript:history.go(-1)">
  44. </td>
  45. </tr>
  46. </form>
  47. </table>
  48. </body>
  49. </html>