<!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">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>生成HTML</title>
<script language="javascript" src="main.js"></script>
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language="javascript" src="story.js"></script>
<link href="css_body.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="bodytitle">
	<div class="bodytitleleft"></div>
	<div class="bodytitletxt">连载管理</div>
</div>

<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
		<tr>
				<td bgcolor="#EDF9D5" class="tbtitletxt"> 
		 <table width='96%' border="0" cellpadding='0' cellspacing='0'>
        <tr>
          <td width='30%' class="tbtitletxt"><strong>更新连载图书HTML</strong></td>
          <td align='right'>[<a href="story_books.php"><u>连载内容列表</u></a>] </td>
        </tr>
      </table>
				</td>
  </tr>
  <tr><td style="background:#F9FFE6;padding:7px 6px 6px 10px;" ></td></tr>
</table>
<form name="form1" action="makehtml_story.php" method="get" target='stafrm'>
  <input type="hidden" name="action" value="make">
<table width="96%" border="0" align="center" cellpadding="3" cellspacing="1" style=" border:1px solid #E2F5BC;line-height:31px;margin:auto;">
  
    <tr> 
      <td height="20" valign="top" bgcolor="#FFFFFF">　说明：默认的情况下，本程序只更新图书内容封面的HTML。</td>
    </tr>
    <tr>
      <td height="42" bgcolor="#FFFFFF">　图书开始ID：
        <input name="startid" type="text" id="startid" value="1" size="5" /> 
      结束ID：
      <input name="endid" type="text" id="endid" value="0" size="5" />
      （0表示从开始到全部） 
      每批数量：
      <input name="makenum" type="text" id="makenum" value="50" size="5" />
      栏目： <span class="bline">
      <select name="catid" id="catid" style="width:150px">
        <option value='0'>请选择栏目</option>
        <?php
    if(!isset($catid)) $catid = 0;
    foreach($btypes as $k=>$v){
    	if($catid!=$k) echo "<option value='$k'>[{$booktypes[$k]}]$v</option>\r\n";
    	else echo "<option value='$k' selected>[{$booktypes[$k]}]$v</option>\r\n";
    	foreach($stypes[$k] as $kk=>$vv){
    		if($catid!=$kk)  echo "<option value='$kk'> --[{$booktypes[$k]}]$vv</option>\r\n";
    		else echo "<option value='$kk' selected> --[{$booktypes[$k]}]$vv</option>\r\n";
    	}
    }
    ?>
      </select>
      </span></td>
    </tr>
    <tr> 
      <td height="42" align="center" bgcolor="#FFFFFF">
      	　
      	<input name="b112" type="button" value="开始生成HTML" onClick="document.form1.submit();" class="inputbut" />      </td>
    </tr>
  <tr bgcolor="#E2F5BC"> 
    <td height="20" bgcolor="#EDF9D5"><table width="100%">
      <tr>
        <td width="74%">进行状态： </td>
        <td width="26%" align="right"><script language='JavaScript' type="text/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 id="mtd"> <div id='mdv' style='width:100%;height:100;'> 
        <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="250"></iframe>
      </div>
      <script language="JavaScript">
	  //document.all.mdv.style.pixelHeight = screen.height - 360;
	  </script>	  </td>
  </tr>
</table>
</form>
</body>
</html>
