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

68 lines
2.8KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>新建/修改标签源码</title>
  7. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/static/web/css/admin.css">
  10. <link rel="stylesheet" href="/static/web/css/codemirror.css">
  11. <script src="/static/web/js/jquery.min.js"></script>
  12. <script src="/static/web/js/bootstrap.min.js"></script>
  13. <script src="/static/web/js/codemirror.js"></script>
  14. <script src="/static/web/js/mode/xml/xml.js"></script>
  15. <script src="/static/web/js/mode/javascript/javascript.js"></script>
  16. <script src="/static/web/js/mode/css/css.js"></script>
  17. <script src="/static/web/js/mode/php/php.js"></script>
  18. <script src="/static/web/js/mode/clike/clike.js"></script>
  19. <script src="/static/web/js/mode/htmlmixed/htmlmixed.js"></script>
  20. <script src="/static/web/js/admin.main.js"></script>
  21. </head>
  22. <body>
  23. <div class="container-fluid">
  24. <ol class="breadcrumb">
  25. <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
  26. <li class="breadcrumb-item"><a href="templets_tagsource.php">标签源码管理</a></li>
  27. <li class="breadcrumb-item active">新建/修改标签源码</li>
  28. </ol>
  29. <div class="card shadow-sm">
  30. <div class="card-header">新建/修改标签源码</div>
  31. <div class="card-body">
  32. <div class="alert alert-warning">默认标签源码文件,请谨慎修改</div>
  33. <form name="form1" action="tpl.php" method="post">
  34. <input type="hidden" name="actiondo" value="<?php echo $action;?>">
  35. <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
  36. <input type="hidden" name="action" value="savetagfile">
  37. <div class="table-responsive">
  38. <table class="table table-borderless">
  39. <tbody>
  40. <tr>
  41. <td width="260">文件名称</td>
  42. <td><input name="filename" value="<?php echo $filename;?>" class="admin-input-lg" required>(不可以用小数点..表示路径)</td>
  43. </tr>
  44. <tr>
  45. <td colspan="2"><textarea name="content" id="content"><?php echo $democode;?></textarea></td>
  46. </tr>
  47. <tr>
  48. <td colspan="2" align="center">
  49. <button type="submit" class="btn btn-success btn-sm">保存</button>
  50. <button type="reset" class="btn btn-outline-success btn-sm">重置</button>
  51. </td>
  52. </tr>
  53. </tbody>
  54. </table>
  55. </div>
  56. </form>
  57. </div>
  58. </div>
  59. </div>
  60. <script>
  61. var editor = CodeMirror.fromTextArea(document.getElementById("content"), {
  62. lineNumbers: true,
  63. lineWrapping: true,
  64. mode: 'text/x-php',
  65. });
  66. </script>
  67. </body>
  68. </html>