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

119 lines
5.5KB

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