<!DOCTYPE html>
<html>
<head>
  <meta charset="<?php echo $cfg_soft_lang; ?>">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <title>更新自由列表</title>
  <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  <link rel="stylesheet" href="../static/web/css/admin.css">
</head>
<body>
  <table width="98%" cellpadding="1" cellspacing="1" align="center"  class="table maintable mt-3 mb-3">
    <form name="form1" action="makehtml_freelist_action.php" method="get" target='stafrm'>
      <tr>
        <td colspan="2" background="../static/web/img/tbg.gif">
          <table width="98%" cellpadding="0" cellspacing="0" class="table table-borderless">
            <tr>
              <td width="24%" style="padding-left:10px">更新自由列表</td>
              <td width="76%" align="right"><button type="button" name="b113" onClick="location='freelist_main.php';" class="btn btn-success btn-sm">管理自由列表</button>
              </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td height="26">&nbsp;&nbsp;起始ID：</td>
        <td height="26"><input name="startid" type="text" id="startid" size="10" <?php if(!empty($aid)) echo " value='$aid'"; ?>>（空或0表示从头开始）</td>
      </tr>
      <tr>
        <td height="26">&nbsp;&nbsp;结束ID：</td>
        <td height="26"><input name="endid" type="text" id="endid" size="10" <?php if(!empty($aid)) echo " value='$aid'"; ?>>（空或0表示直到结束ID）</td>
      </tr>
      <tr>
        <td height="26">&nbsp;&nbsp;每批生成：</td>
        <td height="26"><input name="pagesize" type="text" id="pagesize" value="100" size="8"> 个文件</td>
      </tr>
      <tr>
        <td height="26" bgcolor="#F8FCF1" colspan="2" align="center">
          <button type="button" onClick="document.form1.submit();"  class="btn btn-success btn-sm">开始更新</button>
        </td>
      </tr>
    </form>
    <tr>
      <td width="30%">结果：</td>
      <td width="70%" 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="javascript:;" onClick="ResizeDiv('mdv','+');" class="btn btn-success btn-sm">增大</a>
        <a href="javascript:;" onClick="ResizeDiv('mdv','-');" class="btn btn-success btn-sm">缩小</a>
      </td>
    </tr>
    <tr>
      <td colspan="2" id="mtd">
        <div id="mdv" style="width:100%;height:360px">
          <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>