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

116 lines
5.0KB

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