<!--#include file="../conn/conn.asp"-->
<!--#include file="../conn/nosql.asp"-->
<!--#include file="../conn/config.asp"-->
<!--#include file="../conn/page.asp"-->
<%if session("adminname")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
end if%><head>
<LINK 
href="../css.css" type=text/css rel=stylesheet>
<%


	action=request.querystring("action")
	 if action="edit" then
if isChkInteger(request("bid")) then
bid=request("bid")
else
Response.Redirect ("../index.asp")
end if

	set bidreco=server.createobject("adodb.recordset")
	    sqlstr="select * from snsn_bbsclass where id=" &bid
	    bidreco.open sqlstr,conn,1,1
	   
%>
<script>
function showadv(){
if (document.form1.advshow.checked == true) {
adv.style.display = "";
}else{
adv.style.display = "none";
}
}

function title_color(color){document.form1.topic.style.color = color;}

</script>
<style type="text/css">
<!--
.style1 {color: #000000}
-->
</style>
</head>
<div align="center">
  <center>
    <br>
    <table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bordercolordark="#FFFFFF" bgcolor="#CCCCCC">
      <form method="post" name="form1" action="bbs_save.asp?bid=<%=bidreco("id")%>&action=save">
        <tr bgcolor="f1f1f1"> 
          <td height="23" colspan="2" align="center" class="norightbuttonborder2"><span class="style1">社区栏目修改</span></td>
        </tr>
        <tr bgcolor="#FFFFFF"> 
          <td width="30%" height="23" align="center"><div align="right">论坛名称：</div></td>
          <td width="70%" height="23"> <input name="bbsname" type="text" class=wenbenkuang id="bbsname"  value="<%=bidreco("bbsname")%>" size="49" maxlength="60"> 
          </td>
        </tr>
        <tr bgcolor="#FFFFFF"> 
          <td width="30%" height="23" align="center"><div align="right">论坛logo：</div></td>
          <td width="70%"> <input name="bbslogo" type="text" class=wenbenkuang id="bbslogo"  value="<%=bidreco("bbslogo")%>" size="49" maxlength="60"> 
          </td>
        </tr>
        <tr bgcolor="#FFFFFF"> 
          <td width="30%" height="5" align="center"><div align="right">论坛排序：</div></td>
          <td width="70%" height="5"> <input name="bbspx" type="text" class=wenbenkuang id="bbspx"  value="<%=bidreco("bbspx")%>" size="17" maxlength="60">
            请填写数字 </td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="5" align="center"><div align="right">论坛版主：</div></td>
          <td width="70%" height="5"><input name="bbsbz" type="text" class=wenbenkuang id="bbsbz"  value="<%=bidreco("bbsbz")%>" size="50" maxlength="60"></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="11" align="center"><div align="right"> <%if bidreco("bbsrzh")=1 then 
    aa="checked"
    end if%>是否认证论坛：</div></td>
          <td width="70%" height="11"><INPUT id=advcheck name=advshow type=checkbox value=1 onclick=showadv() <%=aa%>>
          <label for=advcheck> 是（选中即必需是认证会员才能进入）</label></td>
        </tr> <tr bgcolor="#FFFFFF" id=adv <%if bidreco("bbsrzh")=1 then%>style=DISPLAY:<%else%>style=DISPLAY:none<%end if%>> 
    <td height="25" colspan="2">  
      <table border="0" width="100%" cellpadding="2" cellspacing="1" bordercolordark="#FFFFFF" >
        <tr>
          <td width="30%">
            <p align="right">认证用户：</td>
          <td width="70%"><font color="#336699"> 
          <textarea name="username" cols="60" rows="5" class="wenbenkuang" id="username"><%=bidreco("username")%></textarea><br>
          请用,号分开，如“用户一,用户二”</font></td>
        </tr>
    </table>    </td>
  </tr>
        <tr bgcolor="#FFFFFF"> 
          <td width="30%" height="79" align="center"><div align="right">论坛介绍：</div></td>
          <td width="70%" height="79"> <textarea name="bbsnr" cols="48" rows="5" class="wenbenkuang" id="bbsnr" ><%=bidreco("bbsnr")%></textarea> 
          </td>
        </tr>
        <tr bgcolor="#FFFFFF"> 
          <td height="29" colspan="2" align="center"> <p align="center"> 
              <input name="B1" type="submit" class="go-wenbenkuang" value=" 修 改">
            </p></td>
        </tr>
      </form>
    </table>
  </center>
</div>
<%elseif action="add" then%>
<br>
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bordercolordark="#FFFFFF" bgcolor="F6F6F6">
  <form method="post" name="form" action="bbs_save.asp?action=add">
    <tr bgcolor="#FFFFFF"> 
      <td height="23" colspan="2" align="center" class="norightbuttonborder2"><font color="#FFFFFF">社区栏目添加</font></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="30%" height="23" align="center"><div align="right">论坛名称：</div></td>
      <td width="70%" height="23"> <input name="bbsname" type="text" class=wenbenkuang id="bbsname" size="49" maxlength="60"> 
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="30%" height="23" align="center"><div align="right">论坛logo：</div></td>
      <td width="70%"> <input name="bbslogo" type="text" class=wenbenkuang id="bbslogo" value="img/t.gif" size="49" maxlength="60"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="30%" height="23" align="center"><div align="right">论坛排序：</div></td>
      <td width="70%" height="23"> <input name="bbspx" type="text" class=wenbenkuang id="bbspx" size="17" maxlength="60">
        请填写数字 </td>
    </tr><tr bgcolor="#FFFFFF">
          <td height="5" align="center"><div align="right">论坛版主：</div></td>
          <td width="70%" height="5"><input name="bbsbz" type="text" class=wenbenkuang id="bbsbz" size="50" maxlength="60"></td>
        </tr><tr bgcolor="#FFFFFF">
          <td height="11" align="center"><div align="right"> 是否认证论坛：</div></td>
          <td width="70%" height="11"><INPUT id=advcheck name=advshow type=checkbox value=1 >
          <label for=advcheck> 是（选中即必需是认证会员才能进入）</label></td>
        </tr> <tr bgcolor="#FFFFFF"> 
    <td height="25" colspan="2">  
      <table border="0" width="100%" cellpadding="2" cellspacing="1" bordercolordark="#FFFFFF" >
        <tr>
          <td width="30%">
            <p align="right">认证用户：</td>
          <td width="70%"><font color="#336699"> 
          <textarea name="username" cols="60" rows="5" class="wenbenkuang" id="username"></textarea><br>
          请用,号分开，如“用户一,用户二”</font></td>
        </tr>
    </table>    </td>
  </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="30%" height="79" align="center"><div align="right">论坛介绍：</div></td>
      <td width="70%" height="79"> <textarea name="bbsnr" cols="48" rows="5" class="wenbenkuang" id="bbsnr" ></textarea> 
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="29" colspan="2" align="center"> <p align="center"> 
          <input name="B12" type="submit" class="go-wenbenkuang" value=" 提 交">
        </p></td>
    </tr>
  </form>
</table>
<BR>
<%elseif action="del" then
if isChkInteger(request("bid")) then
bid=request("bid")
else
Response.Redirect ("../index.asp")
end if
set rs=server.createobject("adodb.recordset")
sql="select * from snsn_bbsclass where id=" & bid
rs.open sql,conn,3,3
rs.delete
conn.execute "delete from snsn_bbs where classid=0 and bbsclass in ("&bid&")"
rs.close
set rs=nothing
response.redirect "bbs.asp"%>
<%end if %>