<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>主頁更新嚮導</title>
<link href="css/base.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" media="all" href="../include/calendar/calendar-win2k-1.css" title="win2k-1" />
<script type="text/javascript" src="../include/calendar/calendar.js"></script>
<script type="text/javascript" src="../include/calendar/calendar-cn.js"></script>
<script language="javascript">
function SelectTemplets(fname)
{
   if(document.all){
     var posLeft = window.event.clientY-100;
     var posTop = window.event.clientX-400;
   }
   else{
     var posLeft = 100;
     var posTop = 100;
   }
   window.open("../include/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop);
}
</script>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" align="center">
  <form name="form1" action="tag_test_action.php" target="stafrm" method="post">
    <input type="hidden" name="dopost" value="make" />
    <tr> 
      <td height="28" colspan="2" background='images/tbg.gif'>
      	<table width="98%" border="0" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="30%" height="18"  style="padding-left:10px;"><strong>全局標記測試：</strong></td>
            <td width="70%" align="right">&nbsp;</td>
          </tr>
        </table>
       </td>
    </tr>
    <tr> 
      <td colspan="2" valign="top" bgcolor="#FFFFFF">
      	　　全局標記指的是應用在網站主頁、單獨頁面、頻道封面使用的單獨的模板標記，在列表或文章模板中，一般只允許調用channel、arclist標記（hotart、coolart、imglist等都是這個標記延伸出來的標記），但是環境變量限定為文章或列表所在的欄目，如果您要測試的標記是在列表或文章中使用，請指定環境變量（欄目ＩＤ）。<br/>
        　　各標記的具體含義和用途，請在<a href="http://www.dedecms.com/archives/templethelp/help/index.htm" target="_blank"><u>模板標記參考</u></a>一章查閱。
      </td>
    </tr>
    <tr> 
      <td colspan="2" valign="top" bgcolor="#FFFFFF">輸入要測試的局部代碼： </td>
    </tr>
    <tr> 
      <td height="62" colspan="2" bgcolor="#FFFFFF">
	  <textarea name="partcode" id="partcode" style="width:99%;height:120px"></textarea>
	  </td>
    </tr>
    <tr> 
      <td width="103" height="20" valign="top" bgcolor="#FFFFFF">環境變量：</td>
      <td width="865" height="20" valign="top" bgcolor="#FFFFFF">&nbsp;
   <?php
       if(empty($cid)) $cid="0";
       $tl = new TypeLink($cid);
       $typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0);
       echo "<select name='typeid' style='width:300'>\r\n";
       if($cid=="0") echo "<option value='0' selected>不使用環境ID...</option>\r\n";
       echo $typeOptions;
       echo "</select>";
		?>
      </td>
    </tr>
    <tr> 
      <td height="31" colspan="2" bgcolor="#FAFAF1" align="center">
      	<input type="submit" name="Submit" value="提交測試" class="coolbg np" /> 
      </td>
    </tr>
  </form>
  <tr bgcolor="#F9FCEF"> 
    <td height="20" colspan="2">
    	<table width="100%">
        <tr> 
          <td width="74%">進行狀態： </td>
          <td width="26%" align="right"> 
          	<script language='javascript'>
            	function ResizeDiv(obj,ty)
            	{
            		if(ty=="+") document.all[obj].style.pixelHeight += 50;
            		else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight + 50;
            	}
            	</script>
            [<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">縮小</a>] 
          </td>
        </tr>
      </table>
      </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td colspan="2" id="mtd">
    	<div id='mdv' style='width:100%;height:300;'> 
        <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
      </div>
    </td>
  </tr>
</table>
</body>
</html>
