Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

filemanager_edit.htm 3.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {include file="header.htm" /}
  2. <link rel="stylesheet" type="text/css" href="__SKIN__/js/codemirror/codemirror.css?v={$version}">
  3. <script type="text/javascript" src="__SKIN__/js/codemirror/codemirror.js?v={$version}"></script>
  4. <script type="text/javascript" src="__SKIN__/js/codemirror/mode/xml/xml.js?v={$version}"></script>
  5. <script type="text/javascript" src="__SKIN__/js/codemirror/mode/javascript/javascript.js?v={$version}"></script>
  6. <script type="text/javascript" src="__SKIN__/js/codemirror/mode/css/css.js?v={$version}"></script>
  7. <script type="text/javascript" src="__SKIN__/js/codemirror/mode/php/php.js?v={$version}"></script>
  8. <script type="text/javascript" src="__SKIN__/js/codemirror/mode/clike/clike.js?v={$version}"></script>
  9. <script type="text/javascript" src="__SKIN__/js/codemirror/mode/htmlmixed/htmlmixed.js?v={$version}"></script>
  10. <body class="bodystyle">
  11. <div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
  12. <div id="append_parent"></div>
  13. <div id="ajaxwaitid"></div>
  14. <div class="page">
  15. <form class="form-horizontal" id="post_form" action="{:weapp_url('Systemdoctor/Systemdoctor/filemanager_edit')}" method="post">
  16. <div class="ncap-form-default">
  17. <dl class="row">
  18. <dt class="tit"><em>*</em>所在目录</dt>
  19. <dd class="opt">
  20. <input type="text" name="activepath" value="{$info['activepath']|default=''}" id="activepath" class="input-txt">
  21. <span class="err"></span>
  22. <p class="notic">空白表示根目录,不允许用 “..” 形式的路径</p>
  23. </dd>
  24. </dl>
  25. <dl class="row">
  26. <dt class="tit">
  27. <label for="url"><em>*</em>文件名称</label>
  28. </dt>
  29. <dd class="opt">
  30. <input type="text" name="filename" value="{$info['filename']|default=''}" id="filename" class="input-txt">
  31. <span class="err"></span>
  32. <p class="notic">不允许用 “..” 形式的路径</p>
  33. </dd>
  34. </dl>
  35. <dl class="row">
  36. <dt class="tit">
  37. <label for="content">HTML代码</label>
  38. </dt>
  39. <dd class="opt">
  40. <textarea name='content' id='content' style='width:99%;height:450px;background:#ffffff;'>{$info.content|default=''}</textarea>
  41. <span class="err"></span>
  42. <p class="notic"></p>
  43. </dd>
  44. </dl>
  45. <div class="bot">
  46. <a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>
  47. <a href="JavaScript:history.back(-1);" class="ncap-btn-big ncap-btn-green" style="border: 1px solid #C9C9C9; background-color: #fff;color: #555;" >返回</a>
  48. </div>
  49. </div>
  50. </form>
  51. </div>
  52. <script type="text/javascript">
  53. var editor = CodeMirror.fromTextArea(document.getElementById('content'), {
  54. lineNumbers: true,
  55. lineWrapping: true,
  56. autofocus:true, //自动聚焦
  57. mode: '{$info.extension}'
  58. });
  59. // 判断输入框是否为空
  60. function checkForm(){
  61. if($.trim($('input[name=activepath]').val()) == ''){
  62. showErrorMsg('工作目录不能为空!');
  63. $('input[name=activepath]').focus();
  64. return false;
  65. }
  66. if($.trim($('input[name=filename]').val()) == ''){
  67. showErrorMsg('文件名称不能为空!');
  68. $('input[name=filename]').focus();
  69. return false;
  70. }
  71. layer_loading('正在处理');
  72. $('#post_form').submit();
  73. }
  74. </script>
  75. {include file="footer.htm" /}