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

60 lines
2.1KB

  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. <form name="form1" action="tag_test_action.php" target="stafrm" method="post">
  19. <input type="hidden" name="dopost" value="make">
  20. <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
  21. <table class="table shadow-sm my-3">
  22. <tr>
  23. <td colspan="2">全局标记测试</td>
  24. </tr>
  25. <tr>
  26. <td colspan="2">
  27. <span>环境变量:</span>
  28. <?php
  29. if (empty($cid)) $cid="0";
  30. $tl = new TypeLink($cid);
  31. $typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0);
  32. echo "<select name='typeid' class='admin-input-sm'>";
  33. if ($cid=="0") echo "<option value='0' selected>不使用环境</option>";
  34. echo $typeOptions;
  35. echo "</select>";
  36. ?>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td colspan="2" class="p-0"><textarea name="partcode" id="partcode" class="admin-textarea-xl"></textarea></td>
  41. </tr>
  42. <tr>
  43. <td colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">提交测试</button></td>
  44. </tr>
  45. <tr>
  46. <td colspan="2">
  47. <div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
  48. </td>
  49. </tr>
  50. </table>
  51. </form>
  52. <script>
  53. var editor = CodeMirror.fromTextArea(document.getElementById("partcode"), {
  54. lineNumbers: true,
  55. lineWrapping: true,
  56. mode: 'text/html',
  57. });
  58. </script>
  59. </body>
  60. </html>