国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

72 linhas
2.6KB

  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/codemirror.js"></script>
  12. <script src="/static/web/js/mode/xml/xml.js"></script>
  13. <script src="/static/web/js/mode/javascript/javascript.js"></script>
  14. <script src="/static/web/js/mode/css/css.js"></script>
  15. <script src="/static/web/js/mode/htmlmixed/htmlmixed.js"></script>
  16. </head>
  17. <body>
  18. <div class="container-fluid">
  19. <ol class="breadcrumb">
  20. <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
  21. <li class="breadcrumb-item active">全局标记测试</li>
  22. </ol>
  23. <div class="card shadow-sm mb-3">
  24. <div class="card-header">全局标记测试</div>
  25. <div class="card-body">
  26. <form name="form1" action="tag_test_action.php" method="post" target="stafrm">
  27. <input type="hidden" name="dopost" value="make">
  28. <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
  29. <div class="table-responsive">
  30. <table class="table table-borderless">
  31. <tbody>
  32. <tr>
  33. <td colspan="2">
  34. <span>环境变量:</span>
  35. <?php
  36. if (empty($cid)) $cid="0";
  37. $tl = new TypeLink($cid);
  38. $typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0);
  39. echo "<select name='typeid' class='admin-input-sm'>";
  40. if ($cid=="0") echo "<option value='0' selected>不使用环境</option>";
  41. echo $typeOptions;
  42. echo "</select>";
  43. ?>
  44. </td>
  45. </tr>
  46. <tr>
  47. <td colspan="2"><textarea name="partcode" id="partcode" class="admin-textarea-xl"></textarea></td>
  48. </tr>
  49. <tr>
  50. <td colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">提交测试</button></td>
  51. </tr>
  52. <tr>
  53. <td colspan="2">
  54. <div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
  55. </td>
  56. </tr>
  57. </tbody>
  58. </table>
  59. </div>
  60. </form>
  61. </div>
  62. </div>
  63. </div>
  64. <script>
  65. var editor = CodeMirror.fromTextArea(document.getElementById("partcode"), {
  66. lineNumbers: true,
  67. lineWrapping: true,
  68. mode: 'text/html',
  69. });
  70. </script>
  71. </body>
  72. </html>