|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="<?php echo $cfg_soft_lang;?>">
- <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
- <title>修改新建文件</title>
- <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
- <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
- <link rel="stylesheet" href="../static/web/css/admin.css">
- <link rel="stylesheet" href="css/codemirror.css">
- <script src="../static/web/js/jquery.min.js"></script>
- <script src="../static/web/js/bootstrap.bundle.min.js"></script>
- <script src="js/main.js"></script>
- <script src="js/codemirror.js"></script>
- <script src="js/mode/xml/xml.js"></script>
- <script src="js/mode/javascript/javascript.js"></script>
- <script src="js/mode/css/css.js"></script>
- <script src="js/mode/php/php.js"></script>
- <script src="js/mode/clike/clike.js"></script>
- <script src="js/mode/htmlmixed/htmlmixed.js"></script>
- <script>
- function Post() {
- if (document.form1.filename.value == "") {
- ShowMsg("文件名不能为空");
- document.form1.filename.focus();
- return false;
- }
- }
- </script>
- </head>
- <body>
- <form method="POST" action="file_manage_control.php" name=form1 onSubmit="return Post()">
- <input type="hidden" name="fmdo" value="edit">
- <input type="hidden" name="backurl" value="{dede:global name='backurl' function='urlencode(@me)'/}">
- <input type="hidden" name="_csrf_token" value="{dede:global name='csrf_token'/}">
- <table width="100%" align="center" cellpadding="3" cellspacing="1" class="table maintable my-3">
- <tr>
- <td colspan="2" bgcolor="#f5f5f5">修改新建文件</td>
- </tr>
- <tr>
- <td>工作目录</td>
- <td><input name="activepath" value="{dede:global name='activepath'/}" class="biz-input-md">(空白表示根目录,不允许用“..”形式的路径)</td>
- </tr>
- <tr>
- <td>文件名称</td>
- <td><input name="filename" value="{dede:global name='filename'/}" class="biz-input-md">(不允许用“..”形式的路径)</td>
- </tr>
- <tr class="table">
- <td colspan="2" class="p-0">{dede:global name='contentView'/}</td>
- </tr>
- <tr>
- <td bgcolor="#f5f5f5" colspan="2" align="center" class="py-2">
- <button type="submit" name="B1" class="btn btn-success btn-sm">保存</button>
- <button type="button" name="B4" class="btn btn-success btn-sm" onClick="javascript:history.go(-1);">返回</button>
- </td>
- </tr>
- </table>
- </form>
- <script>
- var editor = CodeMirror.fromTextArea(document.getElementById('str'), {
- lineNumbers: true,
- lineWrapping: true,
- mode: '{dede:global name='
- extension '/}'
- });
- </script>
- </body>
- </html>
|