<!-- #include file="../conn.asp" -->
<!--#include file="../admin/check_master.asp" -->
<%
BBS_Cate_ID=request("BBS_Cate_ID")
Layer=request("Layer")
url=request.servervariables("http_referer")

if Layer="0" then
	Layer_name="一级类别"
	BBS_Cate_PID=0'父ID
elseif Layer="1" then
	Layer_name="二级类别"
end if

sql="select * from BBS_CATE where BBS_Cate_ID='"&BBS_Cate_ID&"'"
set rsr=server.createobject("adodb.recordset")
rsr.open sql,conn,1,1
%>
<html>
<head>
<title>修改论坛类别</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/xmwuye.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="99%" border="0" align="center" cellspacing="1" cellpadding="2" bgcolor="#999999">
  <form name="form1" method="post" action="Category_mod_act.asp" onsubmit="return CheckForm(this)">
    <tr bgcolor="#f8f8f8"> 
      <td height="25" colspan="2"> 
        <div align="center"><b><%=Layer_name%>修改</b></div>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=21% height="23"><%=Layer_name%>名称：</td>
      <td width="79%"> 
        <input type="text" name="BBS_Cate_Name" size="40" value="<%=rsr("BBS_Cate_Name")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="23"><%=Layer_name%>版主：</td>
      <td> 
        <input type="text" name="BBS_Cate_Manager_Name" size="40" value="<%=rsr("BBS_Cate_Manager_Name")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="23"><%=Layer_name%>版主Email：</td>
      <td> 
        <input type="text" name="BBS_Cate_Manager_Email" size="40" value="<%=rsr("BBS_Cate_Manager_Email")%>">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td> <div align="left">论坛版块说明：</div></td>
      <td> 
        <textarea name="BBS_Cate_Note" cols="55" rows="8"><%=rsr("BBS_Cate_Note")%></textarea>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="23">位置排列：</td>
      <td> 
        <input name="totop" type="text" id="totop" value="<%=rsr("totop")%>" size="15">
        (数字小的排在前面) </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td>论坛权限：</td>
      <td><input name="fangwenqs" type="radio" value="0" <%if rsr("BBS_cate_Qs")=0 then%> checked <%end if%>>
        所有用户都可以访问
        <input type="radio" name="fangwenqs" value="1" <%if rsr("BBS_cate_Qs")=1 then%> checked <%end if%>>
        只有注册用户才能访问<br>
        <input type="radio" name="fangwenqs" value="2" <%if rsr("BBS_cate_Qs")=2 then%> checked <%end if%>>
        认证用户才可以访问 
        <input type="radio" name="fangwenqs" value="3" <%if rsr("BBS_cate_Qs")=3 then%> checked <%end if%>>
        版主管理员才可以访问<br>
        <input type="radio" name="fangwenqs" value="4" <%if rsr("BBS_cate_Qs")=4 then%> checked <%end if%>>
        版主管理员可发贴回贴其他用户只可回贴<br>
		<input type="radio" name="fangwenqs" value="5" <%if rsr("BBS_cate_Qs")=5 then%> checked <%end if%>>
        版主管理员可发贴回贴其他用户只可看贴 </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="23">树型状态：</td>
      <td> <input type="radio" name="tree" value="1" <%if rsr("treesign")=1 then%> checked <%end if%>>
        默认展开 
        <input type="radio" name="tree" value="0" <%if rsr("treesign")=0 then%> checked <%end if%>>
        默认收缩</td>
    </tr>
	<%if Layer=1 then%>
    <tr bgcolor="#FFFFFF"> 
      <td>
        <div align="right">版块版规：</div></td>
      <td height=180> 
        <TEXTAREA type="hidden" rows=1 cols=1 name="menu" style="position:absolute;left:0;visibility:hidden;"><%=rsr("BBS_Cate_Board")%></textarea> 
        <SCRIPT src="../htmledit/adminhtml.js"></SCRIPT>
      </td>
    </tr>
	<%end if%>
    <tr bgcolor="#FFFFFF"> 
      <td height="26" colspan="2"> 
        <div align="center"> 
          <input type="hidden" name="BBS_Cate_ID" value="<%=BBS_Cate_ID%>">
          <input type="hidden" name="url" value="<%=url%>">
          <input type="submit" name="B1" value="修改信息" <%if instr(session("admin_qs"),2)<=0 then%>disabled<%end if%>>
        </div>
      </td>
    </tr>
	</form>
  </table>
</body>
</html>