<!-- #include file="../admin/check_master.asp" -->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/htmlencode2.asp" -->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from ftbbsmb where id=1"
rs.open sql,conn,1,3
if request("act")="y" then
  rs("postpgnum")=request("page1")
  rs("repostpgnum")=request("page2")
  rs.update
  msg="(参数设置成功)"
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>论坛分页参数设置</title>
<link href="../css/XMWUYE.CSS" rel="stylesheet" type="text/css">
</head>

<body>

<form method="POST" action="">
  <div align="center"><center>
      <table border="0" cellspacing="1" width="99%" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="0" bgcolor="#000000">
        <tr bgcolor="#000066"> 
          <td width="100%" height="20"> 
            <div align="center"><center>
                <p><b><font color="#FFFFFF">分页参数设置<%=msg%></font></b> 
              </center></div></td>
    </tr>
    <tr align="center">
      <td width="100%">
            <table border="0" cellspacing="0" width="100%" bgcolor="#000000" cellpadding="0" background="images/greystrip.gif">
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F4F4F4">主题贴列表分页设置：</td>
                <td width="69%"><input name="page1" type="text" id="page1" value="<%=rs("postpgnum")%>" size="8">
                  条记录/页(<font color="#FF0000">*注意只能输入数字</font>)</td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5">回复贴子分页设置：</td>
                <td width="69%"><input name="page2" type="text" id="page2" value="<%=rs("repostpgnum")%>" size="8">
                  条记录/页(<font color="#FF0000">*注意只能输入数字</font>)</td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5"><font color="#FF0000">警告：</font></td>
                <td width="69%" height="40">回复贴子分页数字最好不要多次设置，因<br>
                  为该项重设后要重新生成以前的页面。</td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5">&nbsp;</td>
                <td width="69%"><input type="submit" value=" 修 改 " name="cmdok" class="buttonface">
                  <input type="reset" value=" 复 原 "
      name="cmdcancel" class="buttonface">
                  <input name="act" type="hidden" id="act" value="y"> </td>
              </tr>
            </table>
      </td>
    </tr>
  </table>
      &nbsp; 
    </center>
  </div>
</form>
</body>
</html>
<%conn.close%>