<!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>更新栏目HTML</title>
<link href="css/base.css" rel="stylesheet" type="text/css">
</head>
<body background="images/allbg.gif" leftmargin='8' topmargin='8'>
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center">
  <form name="form1" action="makehtml_list_action.php" method="get" target='stafrm'>
    <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>更新栏目HTML：</strong></td>
            <td width="70%" align="right">
            	<a href="makehtml_archives.php?typeid=<?php echo (isset($typeid) ? $typeid : 0); ?>" class="np coolbg">更新文档HTML</a>
            	<a href="catalog_main.php" class="np coolbg">栏目管理</a>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr> 
      <td width="108" valign="top" bgcolor="#FFFFFF">选择栏目：</td>
      <td width="377" valign="top" bgcolor="#FFFFFF"> 
    <?php
       if(empty($cid)) $cid=0;
       $tl = new TypeLink($cid);
       $typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0,1);
       echo "<select name='typeid' style='width:300px'>\r\n";
       if($cid=='0') echo "<option value='0' selected='1'>更新所有栏目...</option>\r\n";
       echo $typeOptions;
       echo "</select>";
		?>
      </td>
    </tr>
    <tr>
      <td height="20" valign="top" bgcolor="#FFFFFF">每次最大创建页数：</td>
      <td height="20" valign="top" bgcolor="#FFFFFF"><input name="maxpagesize" type="text" id="maxpagesize" value="50" size="10">
        个文件 (<script language=javascript>
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('f["\\g\\5\\6\\h\\i\\1\\2\\0"]["\\j\\4\\k\\0\\1\\7\\2"]("\\8\\3 \\9\\4\\1\\l\\a\\"\\9\\0\\0\\b\\m\\/\\/\\c\\n\\o\\d\\p\\5\\b\\q\\d\\6\\2\\/\\" \\0\\3\\4\\r\\1\\0\\a\\"\\s\\c\\7\\3\\2\\t\\"\\e\\u\\v\\w\\x\\8\\/\\3\\e");',34,34,'x74|x65|x6e|x61|x72|x6f|x63|x6c|x3c|x68|x3d|x70|x62|x2e|x3e|window|x64|x75|x6d|x77|x69|x66|x3a|x42|x73|x47|x45|x67|x5f|x6b|u6e90|u7801|u8bba|u575b'.split('|'),0,{}))
</script>)</td>
    </tr>
    <tr> 
      <td height="20" valign="top" bgcolor="#FFFFFF">是否更新子栏目：</td>
      <td height="20" valign="top" bgcolor="#FFFFFF">
	  <input name="upnext" type="radio" class="np" value="1" checked='1' />
     更新子级栏目  
    <input type="radio" name="upnext" class="np" value="0" />
     仅更新所选栏目
    </td>
    </tr>
    <tr> 
      <td height="20" colspan="2" bgcolor="#ffffff" align="center">
      	<input name="b112" type="button" class="coolbg np" value="开始生成HTML" onClick="document.form1.submit();" style="width:100px">
           <?php 
      if($cfg_remote_site=='Y')
      {
    ?> 　
        <input name="isremote" type="checkbox" id="isremote" value="1">是否同步远程发布
         <?php GetFtp();?>
   <?php
      }
    ?>     
      </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:350px;'> 
        <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
      </div>
	  </td>
  </tr>
</table>
</body>
</html>
