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

file_edit.htm 3.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  6. <title>文件管理器</title>
  7. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  8. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  9. <link rel="stylesheet" type="text/css" href="css/base.css">
  10. <script language="javascript" src="../static/js/jquery.js"></script>
  11. <script src="../static/js/bootstrap.bundle.js"></script>
  12. <script language='javascript' src='js/main.js'></script>
  13. <script language="javascript">
  14. function Post() {
  15. if (document.form1.filename.value == "") {
  16. ShowMsg("文件名不能为空");
  17. document.form1.filename.focus();
  18. return false;
  19. }
  20. }
  21. </script>
  22. <link rel="stylesheet" type="text/css" href="css/codemirror.css">
  23. <script type="text/javascript" src="js/codemirror.js"></script>
  24. <script type="text/javascript" src="js/mode/xml/xml.js"></script>
  25. <script type="text/javascript" src="js/mode/javascript/javascript.js"></script>
  26. <script type="text/javascript" src="js/mode/css/css.js"></script>
  27. <script type="text/javascript" src="js/mode/php/php.js"></script>
  28. <script type="text/javascript" src="js/mode/clike/clike.js"></script>
  29. <script type="text/javascript" src="js/mode/htmlmixed/htmlmixed.js"></script>
  30. </head>
  31. <body background='images/allbg.gif' leftmargin="8" topmargin='8'>
  32. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ECFAD3"
  33. style="margin-bottom:8px;" class="maintable mt-3">
  34. <tr>
  35. <td height="28" style="border:1px dotted #BFD67C;padding-left:10px;" background='images/wbg.gif'>
  36. &nbsp;◇<a href='file_manage_main.php?activepath={dede:global name=' activepath'/}'><b>文件管理</b></a>
  37. &gt;&gt; <b>修改/新建文件</b>
  38. </td>
  39. </tr>
  40. </table>
  41. <form method="POST" action="file_manage_control.php" name=form1 onSubmit="return Post()">
  42. <input type="hidden" name="fmdo" value="edit" />
  43. <input type="hidden" name="backurl" value="{dede:global name='backurl' function='urlencode(@me)'/}" />
  44. <input type="hidden" name="_csrf_token" value="{dede:global name='csrf_token'/}" />
  45. <table width='100%' border='0' align="center" cellpadding='3' cellspacing='1' bgcolor='#cfcfcf' class="table maintable table-borderless">
  46. <tr bgcolor='#EEF4EA'>
  47. <td colspan='2' background='images/wbg.gif' height='26' style="padding-left:10px;">
  48. <font color='#666600'><b>修改/新建文件:</b></font>
  49. </td>
  50. </tr>
  51. <tr bgcolor='#FFFFFF'>
  52. <td>工作目录</td>
  53. <td>
  54. <input name='activepath' size='40'
  55. value="{dede:global name='activepath'/}" />
  56. (空白表示根目录 ,不允许用 “..” 形式的路径)
  57. </td>
  58. </tr>
  59. <tr bgcolor='#FFFFFF'>
  60. <td>文件名称</td>
  61. <td>
  62. <input name=filename size=40 value="{dede:global name='filename'/}" />
  63. (不允许用 “..” 形式的路径)
  64. </td>
  65. </tr>
  66. <tr bgcolor='#FFFFFF' class="table table-bordered">
  67. <td colspan='2'>
  68. {dede:global name='contentView'/}
  69. </td>
  70. </tr>
  71. <tr>
  72. <td colspan='2' height="36" bgcolor='#F9FCEF' align='center'>
  73. <button type=submit name='B1' class="btn btn-success"> 保 存 </button>
  74. &nbsp;
  75. <button type=reset name='B2' class="btn btn-success"> 重 置 </button>
  76. &nbsp;
  77. <button type=button name='B4' class="btn btn-success"
  78. onClick="javascript:history.go(-1);"> 返 回 </button>
  79. </td>
  80. </tr>
  81. </table>
  82. </form>
  83. <script type="text/javascript">
  84. var editor = CodeMirror.fromTextArea(document.getElementById('str'), {
  85. lineNumbers: true,
  86. lineWrapping: true,
  87. mode: '{dede:global name='extension'/}'
  88. });
  89. </script>
  90. </body>
  91. </html>