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

121 lines
5.5KB

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  6. <title>主页更新向导</title>
  7. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  8. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  9. <link href="css/base.css" rel="stylesheet" type="text/css">
  10. <link rel="stylesheet" type="text/css" media="all" href="../static/js/calendar/calendar-win2k-1.css"
  11. title="win2k-1" />
  12. <script type="text/javascript" src="../static/js/calendar/calendar.js"></script>
  13. <script type="text/javascript" src="../static/js/calendar/calendar-cn.js"></script>
  14. <script language="javascript">
  15. function SelectTemplets(fname) {
  16. if (document.all) {
  17. var posLeft = window.event.clientY - 100;
  18. var posTop = window.event.clientX - 400;
  19. }
  20. else {
  21. var posLeft = 100;
  22. var posTop = 100;
  23. }
  24. window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left=" + posLeft + ", top=" + posTop);
  25. }
  26. </script>
  27. <link rel="stylesheet" type="text/css" href="css/codemirror.css">
  28. <script type="text/javascript" src="js/codemirror.js"></script>
  29. <script type="text/javascript" src="js/mode/xml/xml.js"></script>
  30. <script type="text/javascript" src="js/mode/javascript/javascript.js"></script>
  31. <script type="text/javascript" src="js/mode/css/css.js"></script>
  32. <script type="text/javascript" src="js/mode/htmlmixed/htmlmixed.js"></script>
  33. </head>
  34. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  35. <table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" align="center"
  36. class="table maintable table-bordered mt-3">
  37. <form name="form1" action="tag_test_action.php" target="stafrm" method="post">
  38. <input type="hidden" name="dopost" value="make" />
  39. <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>" />
  40. <tr>
  41. <td height="28" colspan="2" background='images/tbg.gif'>
  42. <table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless">
  43. <tr>
  44. <td width="30%" height="18" style="padding-left:10px;"><strong>全局标记测试:</strong></td>
  45. <td width="70%" align="right">&nbsp;</td>
  46. </tr>
  47. </table>
  48. </td>
  49. </tr>
  50. <tr>
  51. <td colspan="2" valign="top" bgcolor="#FFFFFF">
  52.   全局标记指的是应用在网站主页、单独页面、频道封面使用的单独的模板标记,在列表或文章模板中,一般只允许调用channel、arclist标记(hotart、coolart、imglist等都是这个标记延伸出来的标记),但是环境变量限定为文章或列表所在的栏目,如果您要测试的标记是在列表或文章中使用,请指定环境变量(栏目ID)。<br />
  53.   各标记的具体含义和用途,请在<a href="https://www.dedebiz.com/help" target="_blank"><u>模板标记参考</u></a>一章查阅。
  54. </td>
  55. </tr>
  56. <tr>
  57. <td colspan="2" valign="top" bgcolor="#FFFFFF">输入要测试的局部代码: </td>
  58. </tr>
  59. <tr>
  60. <td height="62" colspan="2" bgcolor="#FFFFFF">
  61. <textarea name="partcode" id="partcode" style="width:99%;height:120px"></textarea>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td width="103" height="20" valign="top" bgcolor="#FFFFFF">环境变量:</td>
  66. <td width="865" height="20" valign="top" bgcolor="#FFFFFF">&nbsp;
  67. <?php
  68. if(empty($cid)) $cid="0";
  69. $tl = new TypeLink($cid);
  70. $typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0);
  71. echo "<select name='typeid' style='width:300'>\r\n";
  72. if($cid=="0") echo "<option value='0' selected>不使用环境ID...</option>\r\n";
  73. echo $typeOptions;
  74. echo "</select>";
  75. ?>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td height="31" colspan="2" bgcolor="#FAFAF1" align="center">
  80. <button type="submit" class="btn btn-secondary" onClick="DoSubmit('gettag')" class="coolbg np">提交测试</button>
  81. </td>
  82. </tr>
  83. </form>
  84. <tr bgcolor="#F9FCEF">
  85. <td height="20" colspan="2">
  86. <table width="100%" class="table table-borderless">
  87. <tr>
  88. <td width="74%">进行状态: </td>
  89. <td width="26%" align="right">
  90. <script language='javascript'>
  91. function ResizeDiv(obj, ty) {
  92. if (ty == "+") document.all[obj].style.pixelHeight += 50;
  93. else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight + 50;
  94. }
  95. </script>
  96. [<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>]
  97. </td>
  98. </tr>
  99. </table>
  100. </td>
  101. </tr>
  102. <tr bgcolor="#FFFFFF">
  103. <td colspan="2" id="mtd">
  104. <div id='mdv' style='width:100%;height:300;'>
  105. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
  106. </div>
  107. </td>
  108. </tr>
  109. </table>
  110. <script type="text/javascript">
  111. var editor = CodeMirror.fromTextArea(document.getElementById('partcode'), {
  112. lineNumbers: true,
  113. lineWrapping: true,
  114. mode: 'text/html'
  115. });
  116. </script>
  117. </body>
  118. </html>