
<!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=gb2312">
<title>生成HTML</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="main.js"></script>
</head>
<body>
<div class="bodytitle">
	<div class="bodytitleleft"></div>
	<div class="bodytitletxt">HTML更新</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
  <form name='form2' action='content_list.php' method="get" target='stafrm'>
   <input type='hidden' name='nullfield' value='ok'>
  </form>
  <form name="form1" action="makehtml_archives_action.php" method="get" target='stafrm'>
  <tr> 
    <td height="20" colspan="2">
    	<table width="98%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="30%" height="18"><strong>&nbsp;&nbsp;更新文档HTML：</strong></td>
          <td width="70%" align="right">&nbsp; </td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td width="108" valign="top" bgcolor="#FFFFFF"><strong>&nbsp;&nbsp;</strong>选择栏目：</td>
    <td width="377" valign="top" bgcolor="#FFFFFF"><strong>&nbsp;&nbsp;</strong>      <?php 
			$seltypeids = 0;
			if(!empty($cid)){
			  $dsql = new DedeSql(false);
			  $seltypeids = $dsql->GetOne("Select ID,typename From #@__arctype where ID='$cid' ");
			  $dsql->Close();
			}
			$opall=1;
			if(is_array($seltypeids)){
			   echo GetTypeidSel('form1','typeid','selbt1',0,$seltypeids['ID'],$seltypeids['typename']);
			}else{
			   echo GetTypeidSel('form1','typeid','selbt1',0,0,'请选择...');
			}
        ?></td>
  </tr>
  <tr>
    <td height="20" valign="top" bgcolor="#FFFFFF"><strong>&nbsp;&nbsp;</strong>起始ID：</td>
    <td height="20" valign="top" bgcolor="#FFFFFF"><strong>&nbsp;&nbsp;</strong>
      <input name="startid" type="text" id="startid" size="10">
      （空或0表示从头开始）</td>
  </tr>
  <tr> 
    <td height="20" valign="top" bgcolor="#FFFFFF"><strong>&nbsp;&nbsp;</strong>结束ID：</td>
    <td height="20" valign="top" bgcolor="#FFFFFF"><strong>&nbsp;&nbsp;</strong>
      <input name="endid" type="text" id="endid" size="10">
      （空或0表示直到结束ID） </td>
  </tr>
    <tr> 
      <td height="20" bgcolor="#FFFFFF"><strong>&nbsp;&nbsp;</strong>每页生成：</td>
      <td height="20" bgcolor="#FFFFFF"> <strong>&nbsp;&nbsp;</strong>
        <input name="pagesize" type="text" id="pagesize" value="20" size="8">
        个文件</td>
    </tr>
    <tr> 
      <td height="35" colspan="2" align="center" valign="middle" bgcolor="#F8FBFB">
      	<input name="b112" type="button" value="开始生成HTML" onClick="document.form1.submit();" class="inputbut"/>
        &nbsp;
        <input type="button" name="b113" value="查看所有文档" onClick="document.form2.submit();" class="inputbut"/> 
      </td>
    </tr>
  </form>
  <tr bgcolor="#E5F9FF"> 
    <td height="20" colspan="2"> <table width="100%">
        <tr> 
          <td width="74%"><strong>&nbsp;&nbsp;</strong>进行状态： </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:100;'> 
        <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
      </div>
      <script language="JavaScript">
	  document.all.mdv.style.pixelHeight = screen.height - 360;
	  </script> </td>
  </tr>
</table>
</body>
</html>