国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

68 rindas
2.7KB

  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/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <link rel="stylesheet" href="css/codemirror.css">
  11. <script src="../static/web/js/jquery.min.js"></script>
  12. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  13. <script src="js/main.js"></script>
  14. <script src="js/codemirror.js"></script>
  15. <script src="js/mode/xml/xml.js"></script>
  16. <script src="js/mode/javascript/javascript.js"></script>
  17. <script src="js/mode/css/css.js"></script>
  18. <script src="js/mode/php/php.js"></script>
  19. <script src="js/mode/clike/clike.js"></script>
  20. <script src="js/mode/htmlmixed/htmlmixed.js"></script>
  21. <script>
  22. function Post() {
  23. if (document.form1.filename.value == "") {
  24. ShowMsg("文件名不能为空");
  25. document.form1.filename.focus();
  26. return false;
  27. }
  28. }
  29. </script>
  30. </head>
  31. <body>
  32. <form method="POST" action="file_manage_control.php" name=form1 onSubmit="return Post()">
  33. <input type="hidden" name="fmdo" value="edit">
  34. <input type="hidden" name="backurl" value="{dede:global name='backurl' function='urlencode(@me)'/}">
  35. <input type="hidden" name="_csrf_token" value="{dede:global name='csrf_token'/}">
  36. <table width="100%" align="center" cellpadding="3" cellspacing="1" class="table maintable mt-3 mb-3">
  37. <tr>
  38. <td colspan="2" bgcolor="#f8f8f8">修改新建文件</td>
  39. </tr>
  40. <tr>
  41. <td>工作目录</td>
  42. <td><input name="activepath" value="{dede:global name='activepath'/}" style="width:260px">(空白表示根目录,不允许用“..”形式的路径)</td>
  43. </tr>
  44. <tr>
  45. <td>文件名称</td>
  46. <td><input name="filename" value="{dede:global name='filename'/}" style="width:260px">(不允许用 “..”形式的路径)</td>
  47. </tr>
  48. <tr class="table">
  49. <td colspan="2" class="p-0">{dede:global name='contentView'/}</td>
  50. </tr>
  51. <tr>
  52. <td bgcolor="#f8f8f8" colspan="2" align="center" class="py-2">
  53. <button type="submit" name="B1" class="btn btn-success btn-sm">保存</button>
  54. <button type="button" name="B4" class="btn btn-success btn-sm" onClick="javascript:history.go(-1);">返回</button>
  55. </td>
  56. </tr>
  57. </table>
  58. </form>
  59. <script>
  60. var editor = CodeMirror.fromTextArea(document.getElementById('str'), {
  61. lineNumbers: true,
  62. lineWrapping: true,
  63. mode: '{dede:global name='
  64. extension '/}'
  65. });
  66. </script>
  67. </body>
  68. </html>