<!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="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
    <form action="article_description_main.php" name="form1" target="stafrm" method="post">
      <tr>
        <td height="26" background="../static/web/img/tbg.gif">
          <table width="98%" cellpadding="0" cellspacing="0" class="table table-borderless">
            <tr>
              <td width="30%" style="padding-left:10px">自动摘要分页</td>
              <td width="70%" align="right"></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td height="26">用于自动更新您系统没有填写摘要的文档的摘要信息或更新没分页的文档的自动分页标识（文档使用了自动分页后会降低HTML生成速度，并且在没人工干扰的情况下可能导致分页内容的HTML错误，请小心使用此功能）</td>
      </tr>
      <tr>
        <td height="36">
          <table width="90%" cellpadding="2" cellspacing="2" class="table table-borderless">
            <tr>
              <td width="560">频道ID：<input name="channel" type="text" id="channel" value="1" style="width:260px">（可在“<a href="mychannel_main.php">频道模型管理</a>”处获得）</td>
              <td>摘要大小：<input name="dsize" type="text" id="dsize" value="<?php echo $cfg_auot_description?>" style="width:260px">（最大250字节）</td>
            </tr>
            <tr>
              <td>数据表：<input name="table" type="text" id="table2" value="<?php echo $cfg_dbprefix?>addonarticle" style="width:260px"></td>
              <td>分析字段：<input name="field" type="text" id="field2" value="body" style="width:260px"></td>
            </tr>
            <tr>
              <td>最小值：<input name="msize" type="text" id="msize2" value="512" style="width:260px">（字节，内容大于该值才分析）</td>
              <td>每批处理：<input name="pagesize" type="text" id="pagesize" value="100" style="width:260px">条记录</td>
            </tr>
            <tr>
              <td>
                开始ID：<input name="sid" type="text" id="sid" style="width:60px">
                结束ID：<input name="eid" type="text" id="eid" style="width:60px">
              </td>
              <td></td>
            </tr>
            <tr>
              <td>操作：
                <label><input name="dojob" type="radio" class="np" value="des" checked>
                自动摘要</label>
                <label><input type="radio" name="dojob" class="np" value="page">
                自动分页</label>
              </td>
              <td>自动分页大小：<?php echo $cfg_arcautosp_size?> K，<a href='sys_info.php' class="btn btn-success btn-sm">修改系统参数</a></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td height="26" bgcolor="#F8FCF1" align="center">
          <button type="submit" name="Submit" class="btn btn-success btn-sm">开始执行分析</button>
        </td>
      </tr>
    </form>
    <tr>
      <td height="26">
        <table width="100%" class="table table-borderless">
          <tr>
            <td width="70%">结果：</td>
            <td width="30%" align="right">
              <script>
              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>
        </table>
      </td>
    </tr>
    <tr>
      <td id="mtd">
        <div id="mdv" style="width:100%;height:360px"> 
          <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
        </div>
      </td>
    </tr>
  </table>
</body>
</html>