<!--#include file="../conn.asp"-->
<!-- #include file="../admin/check_master.asp" -->
<!--#include file="../inc/htmlencode2.asp" -->
<!--#include file="tailfun.asp" -->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from ftbbsmb where id=1"
rs.open sql,conn,1,3

if Request.Form("act")="y" then
  bbs_domain=Request.Form("bbs_domain")
  ver=Request.Form("ft_ver")
  bbs_name=Request.Form("bbs_name")
  if right(bbs_domain,1)<>"/" then bbs_domain=bbs_domain&"/"
  rs("postpgnum")=Request.Form("page1")
  rs("repostpgnum")=Request.Form("page2")
  rs("folder")=Request.Form("ftbbs3")
  rs("ftbbsmode")=Request.Form("ftmode")
  rs("bbs_domain")=bbs_domain
  rs("bbs_name")=bbs_name
  rs("ft_ver")=ver
  rs("upload_type")=replace(replace(replace(Request.Form("upload_type"),"asp","***"),"asa","***"),"exe","***")
  rs("upload_size")=Request.Form("upload_size")
  rs("gifjpg")=Request.Form("gifjpg")
  rs("posttime")=Request.Form("posttime")
  rs("reposttime")=Request.Form("reposttime")
  rs("uploadoff")=Request.Form("uploadoff")
  rs("usernamelng")=Request.Form("usernamelng1")&"-"&Request.Form("usernamelng2")
  rs("pswlng")=Request.Form("pswlng1")&"-"&Request.Form("pswlng2")
  rs("regoff")=Request.Form("regoff")
  rs("regsmstitle")=Request.Form("regsmstitle")
  rs("regsmscontent")=Request.Form("regsmscontent")
  rs("jmailoff")=Request.Form("jmailoff")
  rs("mailuser")=Request.Form("mailuser")
  rs("mailpwd")=Request.Form("mailpwd")
  rs("mailaddress")=Request.Form("mailaddress")
  rs("mailsmtp")=Request.Form("mailsmtp")
  rs("defaultcss")=Request.Form("defaultcss")
  rs("getcodeoff")=Request.Form("getcodeoff")
  rs("bakoff")=Request.Form("defaulthome")
  rs("htm_ext")=Request.Form("htm_ext")
  rs("onlineoff")=Request.Form("onlineoff")
  rs("linkoff")=Request.Form("linkoff")
  rs("waterimg")=Request.Form("waterimg")
  rs.update
  msg="(参数设置成功)"
  Application.Contents.removeall
  call maketailjs(bbs_domain,ver,bbs_name)
  call maketailhtm(bbs_domain,ver,bbs_name)
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 topmargin="2">
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolorlight="#000000" bordercolordark="#FFFFFF" bgcolor="#cccccc">
  <form method="POST" action="">
		<tr bgcolor="#000066"> 
          <td width="100%" height="25" bgcolor="#000066"> 
            <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="#cccccc" 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="bbs_domain" type="text" id="bbs_domain" value="<%=rs("bbs_domain")%>" size="50">
                </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F4F4F4">论坛名称：</td>
                <td width="69%"><input name="bbs_name" type="text" id="bbs_name" value="<%=rs("bbs_name")%>" size="50">
                </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F4F4F4">论坛版本号：</td>
                <td width="69%"><input name="ft_ver" type="text" id="ft_ver" value="<%=rs("ft_ver")%>" size="50">
                </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F4F4F4">默认风格设置：</td>
                <td width="69%">
                   <select name="defaultcss"  style="background-color:#ffffff;FONT-FAMILY: Arial; FONT-SIZE: 9pt; FONT-STYLE: normal; WIDTH: 85px" size=1>
                     <option value="0" style="color:#66ABD9" <%if rs("defaultcss")=0 then%> selected <%end if%>>■浅蓝风格</option>
					 <option  value="1" style="color:#799AE1" <%if rs("defaultcss")=1 then%> selected <%end if%>>■标准风格</option>
                   </select>
				</td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F4F4F4">验证码开关：</td>
                <td width="69%">
                  <input name="getcodeoff" type="radio" value="1" <%if rs("getcodeoff")="1" then%> checked <%end if%>>
                  <font color="#000000">开</font><font color="#FF0000"> 
                  <input type="radio" name="getcodeoff" value="0" <%if rs("getcodeoff")="0" then%> checked <%end if%>>
                  <font color="#000000">关</font> (开启后将会在发贴注册登录时出现)</font> </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F4F4F4">允许上传的文件类型：</td>
                <td width="69%"><input name="upload_type" type="text" id="upload_type" value="<%=rs("upload_type")%>" size="50">
                  用&quot;|&quot;分开 </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F4F4F4">允许上传的文件大小：</td>
                <td width="69%"><input name="upload_size" type="text" id="upload_size" value="<%=rs("upload_size")%>" size="50">
                </td>
              </tr>
			  <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">文件夹生成方式：</td>
                <td width="69%"><input name="ftbbs3" type="radio" value="M" <%if rs("folder")="M" then%> checked <%end if%>>
                  <font color="#000000">每月生成一个文件夹</font><font color="#FF0000"> 
                  <input type="radio" name="ftbbs3" value="D" <%if rs("folder")="D" then%> checked <%end if%>>
                  <font color="#000000">每日生成一个文件夹</font> </font> </td>
              </tr>
             <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F4F4F4">生成静态文件扩展名：</td>
                <td width="69%">
                   <select name="htm_ext"  style="background-color:#ffffff;FONT-FAMILY: Arial; FONT-SIZE: 9pt; FONT-STYLE: normal; WIDTH: 85px" size=1>
                     <option value=".htm" style="color:#66ABD9" <%if rs("htm_ext")=".htm" then%> selected <%end if%>>.htm</option>
                     <option value=".html" style="color:#FA71C0" <%if rs("htm_ext")=".html" then%> selected <%end if%>>.html</option>
                     <option value=".shtml" style="color:#EC8205" <%if rs("htm_ext")=".shtml" then%> selected <%end if%>>.shtml</option>
                   </select>
            </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5">发贴时间间隔：</td>
                <td width="69%"><input name="posttime" type="text" id="posttime3" value="<%=rs("posttime")%>" size="8">
                  以秒为单位,<font color="#FF0000">0</font>秒则是不限制</td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5">回贴时间间隔：</td>
                <td width="69%"><input name="reposttime" type="text" id="reposttime" value="<%=rs("reposttime")%>" size="8">
                  以秒为单位,<font color="#FF0000">0</font>秒则是不限制</td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5">是否开启水印功能：</td>
                <td width="69%"><input name="gifjpg" type="radio" value="1" <%if rs("gifjpg")="1" then%> checked <%end if%>>
                  <font color="#000000">是</font><font color="#FF0000"> 
                  <input type="radio" name="gifjpg" value="0" <%if rs("gifjpg")="0" then%> checked <%end if%>>
                  <font color="#000000">否</font> </font> </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5">水印类型选择：</td>
                <td width="69%"><input name="waterimg" type="radio" value="1" <%if rs("waterimg")="1" then%> checked <%end if%>>
                  <font color="#000000">logo图片</font><font color="#FF0000"> 
                  <input type="radio" name="waterimg" value="0" <%if rs("waterimg")="0" then%> checked <%end if%>>
                  <font color="#000000">文字(以上面填的域名作为水印)</font> </font> </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5">注册用户名长度范围：</td>
                <td width="69%"><input name="usernamelng1" type="text" id="usernamelng1" value="<%=split(rs("usernamelng"),"-")(0)%>" size="8">
                  到 
                  <input name="usernamelng2" type="text" id="usernamelng2" value="<%=split(rs("usernamelng"),"-")(1)%>" 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="pswlng1" type="text" id="pswlng12" value="<%=split(rs("pswlng"),"-")(0)%>" size="8">
                  到 
                  <input name="pswlng2" type="text" id="pswlng22" value="<%=split(rs("pswlng"),"-")(1)%>" 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="uploadoff" type="radio" value="0" <%if rs("uploadoff")="0" then%> checked <%end if%>>
                  <font color="#000000">开</font><font color="#FF0000"> 
                  <input type="radio" name="uploadoff" value="2" <%if rs("uploadoff")="2" then%> checked <%end if%>>
                  <font color="#000000">关</font> </font> </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5">用户注册开关：</td>
                <td width="69%"><input name="regoff" type="radio" value="0" <%if rs("regoff")="0" then%> checked <%end if%>>
                  <font color="#000000">允许注册</font> <font color="#FF0000"> 
                  <input type="radio" name="regoff" value="1" <%if rs("regoff")="1" then%> checked <%end if%>>
                  <font color="#000000">禁止注册</font> </font> </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5"><strong>新用户邮件认证开关：</strong></td>
                <td width="69%">
                  <input name="jmailoff" type="radio" value="1" <%if rs("jmailoff")="1" then%> checked <%end if%>>
                  <font color="#000000">开</font><font color="#FF0000">&nbsp;</font> 
                  <font color="#FF0000"> 
                  <input type="radio" name="jmailoff" value="0" <%if rs("jmailoff")="0" then%> checked <%end if%>>
                  <font color="#000000">关</font> </font> </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5"><strong>系统邮件帐号：</strong></td>
                <td width="69%"><input name="mailuser" type="text" id="mailuser" value="<%=rs("mailuser")%>" size="30"> </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5"><strong>系统邮件密码：</strong></td>
                <td width="69%"><input name="mailpwd" type="password" id="mailpwd" value="<%=rs("mailpwd")%>" size="30"> </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5"><strong>系统邮件地址：</strong></td>
                <td width="69%"><input name="mailaddress" type="text" id="mailaddress" value="<%=rs("mailaddress")%>" size="30"> </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5"><strong>系统邮件Smtp地址：</strong></td>
                <td width="69%"><input name="mailsmtp" type="text" id="mailsmtp" value="<%=rs("mailsmtp")%>" size="30"> </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5">注册成功默认发送的短信标题：</td>
                <td width="69%"><input name="regsmstitle" type="text" id="regsmstitle" value="<%=rs("regsmstitle")%>" size="50"> </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5">注册成功默认发送的短信内容：</td>
                <td width="69%"><textarea name="regsmscontent" cols="60" rows="8" id="regsmscontent"><%=rs("regsmscontent")%></textarea></td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5">论坛结构选择：</td>
                <td width="69%"><input name="ftmode" type="radio" value="0" <%if rs("ftbbsmode")=0 then%> checked <%end if%>>
                  <font color="#000000">默认为框架结构</font><font color="#FF0000"> 
                  <input type="radio" name="ftmode" value="1" <%if rs("ftbbsmode")=1 then%> checked <%end if%>>
                  <font color="#000000">采用平板结构</font></font></td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5">首页调用页开关：</td>
                <td width="69%"><input name="defaulthome" type="radio" value="0" <%if rs("bakoff")=0 then%> checked <%end if%>>
                  <font color="#000000">不显示首页调用直接以列表开式为论坛首页</font><font color="#FF0000"> 
                  <input type="radio" name="defaulthome" value="1" <%if rs("bakoff")=1 then%> checked <%end if%>>
                  <font color="#000000">显示首页调用页</font></font></td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5">是否显示在线人数：</td>
                <td width="69%"><input name="onlineoff" type="radio" value="0" <%if rs("onlineoff")=0 then%> checked <%end if%>>
                  <font color="#000000">是</font><font color="#FF0000"> 
                  <input type="radio" name="onlineoff" value="1" <%if rs("onlineoff")=1 then%> checked <%end if%>>
                  <font color="#000000">否</font> </font></td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="31%" height="30" align="right" valign="middle" bgcolor="#F5F5F5">是否开启友情链接：</td>
                <td width="69%"><input name="linkoff" type="radio" value="0" <%if rs("linkoff")=0 then%> checked <%end if%>>
                  <font color="#000000">是</font> <font color="#FF0000"> 
                  <input type="radio" name="linkoff" value="1" <%if rs("linkoff")=1 then%> checked <%end if%>>
                  <font color="#000000">否</font></font></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" <%if instr(session("admin_qs"),2)<=0 then%>disabled<%end if%>>
                  <input name="act" type="hidden" id="act" value="y"> </td>
              </tr>
            </table>
      </td>
    </tr>
	</form>
  </table>
      &nbsp; 
</body>
</html>
<%closedb%>