<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Powered by 9416.cn</title>


<!--#include file="../inc/conn.asp"-->

<script type="text/javascript" src="../ui/jquery.js"></script>
 <link rel="stylesheet" href="../ui/layui/css/layui.css" type="text/css"  />

<script type="text/javascript" src="../ui/layui/layui.js"></script>

<script type="text/javascript" src="../ui/pc.js"></script>

</head>


<body>


  
   <div class="mec_div" style="padding-top:0px; padding-bottom:20px;padding-left:20px;padding-right:20px;">
     <div class="layui-tab layui-tab-brief">
<ul class="layui-tab-title site-demo-title">
   <li ><a href="info.asp">基本资料</a></li>
     <li class="layui-this"><a href="set.asp">设置</a></li>
    <li ><a href="email.asp">邮箱</a></li>
    <li ><a href="type_list.asp">分类</a></li>
  <li ><a href="skin.asp">皮肤</a></li>
  <li ><a href="version.asp">授权</a></li>
   
  </ul>
  </div>
 <%jianbook.qxmsg()
sql="select * from [info]"
  rs.open sql,conn,3,3%>
        <form id="form1" name="form1" class="layui-form"  method="post" action="?act=add&id=<%=request("id")%>">
  	   <table width="100%" border="0" cellspacing="0" cellpadding="0"  >
    <tr>
      <td width="100" height="50">发布状态</td>
      <td width="300"><input type="checkbox" <%if rs("zt")=1 then%>checked="checked"<%end if%> name="zt" lay-skin="switch" lay-filter="switchTest"  value="1" lay-text="开启|关闭"></td>
      <td width="100" align="center">发布审核</td>
     <td><input type="checkbox" <%if rs("audit")=1 then%>checked="checked"<%end if%> name="audit" lay-skin="switch" lay-filter="switchTest"  value="1" lay-text="开启|关闭"></td>

    </tr>
      <tr>
      <td height="50">游客查看</td>
      <td> <input type="checkbox"  <%if rs("guest")=1 then%>checked="checked"<%end if%> name="guest" lay-skin="switch" lay-filter="switchTest" value="1" lay-text="开启|关闭"></td>
      <td align="center">游客发布</td>
        <td> <input type="checkbox"  <%if rs("guestadd")=1 then%>checked="checked"<%end if%> name="guestadd" lay-skin="switch" lay-filter="switchTest" value="1" lay-text="开启|关闭"></td>

      
      </tr>
    <tr>
      <td height="50">注册开放</td>
      <td> <input type="checkbox"  <%if rs("reg")=1 then%>checked="checked"<%end if%> name="reg" lay-skin="switch" lay-filter="switchTest" value="1" lay-text="开启|关闭"></td>
      <td align="center">注册审核</td>
        <td> <input type="checkbox"  <%if rs("check")=1 then%>checked="checked"<%end if%> name="check" lay-skin="switch" lay-filter="switchTest" value="1" lay-text="开启|关闭"></td>

      
 
    <tr>
      <td height="50">发布文章</td>
      <td>
      
      <input type="checkbox"  <%if rs("mestype")=1 then%>checked="checked"<%end if%> name="mestype" lay-skin="switch" lay-filter="switchTest" value="1" lay-text="开启|关闭">
      
      </td>
      <td align="center">演示账户</td>
      <td><input type="checkbox"  <%if rs("demo")="9416" then%>checked="checked"<%end if%> name="demo" lay-skin="switch" lay-filter="switchTest" value="1" lay-text="开启|关闭"></td>
      </tr>
      <tr>
      <td height="50">ubb编辑器</td>
      <td>
        <input type="radio" name="ubbtype" value="0" title="editormd" <%if rs("ubbtype")=0 then%>checked="checked"<%end if%>/>
      
      <input type="radio" name="ubbtype" value="1" title="百度ueditor" <%if rs("ubbtype")=1 then%>checked="checked"<%end if%> />
      
    
      
      
      </td>
      <td align="center">发帖间隔</td>
      <td><table>
  <tr> 
    <td> <input name="difftime" type="text" class="layui-input"  value="<%=rs("difftime")%>" style="width:100px"   placeholder="发帖时间间隔 " lay-verify="number"/></td>
    <td width="30" align="center">秒</td>
  </tr>
</table>

       </td>
      </tr>
      
    <tr>
      <td height="50">管理密码</td>
      <td><input name="psw" type="text" class="layui-input" style="width:200px"   placeholder="不修改留空 "/></td>
      <td align="center">&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td height="50">附件类型</td>
      <td><input name="file" type="text" class="layui-input"   lay-verify="required" value="<%=rs("file")%>" placeholder="" /></td>
      <td colspan="2">　例：rar/zip/mp4/mp3/doc</td>
      </tr>
    
    <tr>
      <td height="50">附件大小</td>
      <td><input name="filemax" type="text" class="layui-input"   lay-verify="number" value="<%=rs("filemax")%>" placeholder="" /></td>

      <td colspan="2">　kb</td>
      </tr>
    
    
    
       
        <tr>
          <td height="50"></td>
          <td><input type="submit" class="layui-btn" value="保存资料" lay-submit="lay-submit" /></td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
         </tr>
       </table>
 
  </form>
    
 
 
	
</div> 
 

<%

  if request("act")="add" then
  jianbook.demomsg()
if trim(request("psw"))<>"" then
  if len(request("psw"))>=4 then
  
  rs("code")=MD5(request("psw"))
  else
  response.Write"<script>alert('密码要大于4位字符'); </script>"
response.End()
  end if
  
 end if
 if request.form("ubbtype")="1" then
rs("ubbtype")=1
else
rs("ubbtype")=0
end if
 
if request.form("demo")="1" then
rs("demo")="9416"
else
rs("demo")=0
end if

if request.form("zt")=1 then
rs("zt")=1
else
rs("zt")=0
end if
if request.form("audit")=1 then
rs("audit")=1
else
rs("audit")=0
end if

if request.form("guest")=1 then
rs("guest")=1
else
rs("guest")=0
end if
if request.form("guestadd")=1 then
rs("guestadd")=1
else
rs("guestadd")=0
end if
if request.form("reg")=1 then
rs("reg")=1
else
rs("reg")=0
end if


if request.form("check")=1 then
rs("check")=1
else
rs("check")=0
end if
if request.form("mestype")=1 then
rs("mestype")=1
else
rs("mestype")=0
end if
rs("difftime")=request("difftime")
rs("file")=request("file")
rs("filemax")=request("filemax")	
        rs.update
		rs.close
	
jianbook.mgbox "保存成功","set.asp"
end if
	

 
 
%>

		

</body>

</html>
