<!--#include file="../conn2.asp"-->
<!--#include file="set.asp"-->

<head>
<LINK 
href="css.css" type=text/css rel=stylesheet>

<title></title>
</head>

<body topmargin="2" leftmargin="2">
<br>
<div align="center">
<center>
    <table width="609" border="0" cellpadding="2" cellspacing="1" bordercolordark="#FFFFFF" bgcolor="F6F6F6">
      <tr bgcolor="#FFFFFF"> 
        <td colspan="6" class="norightbuttonborder2" width="599"><div align="center"><font color="#FFFFFF">社区栏目管理</font></div></td>
      </tr>
      <tr bgcolor="#FFFFFF"> 
        <td colspan="6" class="norightbuttonborder3" width="599"><table width="43%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr> 
              <td><div align="center"><a href="edit_board.asp?action=add">新增栏目</a></div></td>
              <td><div align="center"></div></td>
              <td><div align="center"></div></td>
              <td><div align="center"></div></td>
            </tr>
          </table></td>
      </tr>
      <tr bgcolor="#FFFFFF"> 
        <td width="40"> <p align="center"><b>状态</b></td>
        <td width="39"> <p align="center"><b>序号</b></td>
        <td width="223"> 
          <p align="center"><b>论坛名称</b></td>
        <td colspan="3" width="277"> <p align="center"><b>管理操作</b></p></td>
      </tr>
      <%
    	set bidreco=server.createobject("adodb.recordset")
    	sqlstr="select * from board order by px"
    	bidreco.open sqlstr,conn,1,1
        do while not bidreco.eof
	%>
      <tr bgcolor="#FFFFFF"> 
        <td width="40" align="center"> 
          <%if bidreco("lock")=1 then%>
          已锁定 
          <%else%>
          正常 
          <%end if%>
          　</td>
        <td width="39" align="center"><%=bidreco("px")%>　</td>
        <td width="223" align="center"><%=bidreco("bidname")%>　</td>
        <td width="89" align="center"><a href="edit_board.asp?bid=<%=bidreco("bid")%>&action=edit">修改</a></td>
        <td width="77" align="center"> 
          <%if bidreco("lock")=1 then%>
          <a href="del_board.asp?bid=<%=bidreco("bid")%>&action=notlock">解锁</a> 
          <%else%> 
          <a href="del_board.asp?bid=<%=bidreco("bid")%>&action=lock">锁定</a>  
          <%end if%> 
        </td> 
        <td width="95" align="center"><a href="del_board.asp?bid=<%=bidreco("bid")%>&action=del" class="C_shenhong"><strong>删除</strong></a></td> 
      </tr> 
      <%  
			bidreco.movenext  
			loop  
			set bidreco=nothing  
			set conn=nothing %> 
    </table> 
  </center> 
</div> 
 
</body> 
 
