<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../conn/nosql.asp"-->
<!--#include file="../../conn/config.asp"-->
<!--#include file="../../conn/md5.asp"-->
 <%
if session("user")="" then
response.write "<script language='javascript'>"
response.write "alert('您没还有登录，请登录后再访问本页！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
end if
if session("id")="" then 
response.write "<script language='javascript'>"
response.write "alert('您没还有登录，请登录后再访问本页！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
end if
if session("uflag")<>3 then 
response.write "<script language='javascript'>"
response.write "alert('您还不是诚信会员，没有个人主页功能，相关情况请联系管理员！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
end if
userid=session("id")
sql="select * from snsn_user where username='"&session("user")&"' and id="&session("id")&""
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1
if rs("uflag")<>3 then
response.write "<script language='javascript'>"
response.write "alert('您还不是诚信会员，没有个人主页功能，相关情况请联系管理员！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
else
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>交易助手管理操作平台_<%=webname%></title>
<script>
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<link rel="stylesheet" href="/css.css" type="text/css">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style></head>

<body><!--#include file="../../top.asp"-->
<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
    <td width="970"><table width="970"  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="10"><img src="/img/m_left.gif" width="10" height="20"></td>
          <td width="950" bgcolor="#FFFFFF"></td>
          <td width="10"><img src="/img/m_right.gif" width="10" height="20"></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="188" colspan="3"><table width="950"  border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="1" bgcolor="efefef"></td>
                <td width="200" height="77" valign="top"><!--#include file="../left.asp"--></td>
                <td width="1" bgcolor="efefef"></td>
                <td valign="top"><p>&nbsp;</p>
                    <BR>
                    <table width="95%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#BBD7FF" style="border-collapse: collapse" >
                      <form method="post" action="bbsset.asp?action=update">
                        <tr align=center bgcolor="#e8f4ff" height=25>
                          <td>序号</td>
                          <td>分类名称</td>
                          <td>是否显示</td>
                          <td>排序 (必填项，数字)</td>
                          <td>删除</td>
                        </tr>
                        <%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "SELECT  * From snsn_bbs_class where userid="&session("id")&" order by px",conn,1,1
if rs.recordcount=0 then 
%>
                        <tr bgcolor="#FFFFFF">
                          <td width="100%" height=25 colspan="8" align="center"> 还没有添加论坛分类</td>
                        </tr>
                        <%
else
    do while not rs.eof
%>
                        <tr height=25 bgcolor="#FFFFFF">
                          <td align=center><%=rs("ID")%></td>
                          <td align=center>
                            <input type="hidden" name="id" value="<%=rs("id")%>">
                            <input class="wenbenkuang" type="text" name="bbsname" size="22" value="<%=trim(rs("bbsname"))%>">
                          </td>
                          <td align=center>
                            <select class=text name="xs" size="1">
                              <option value="0" <%if rs("xs")=0 then %>selected<%end if%>>对所有人显示</option>
                              <option value="1" <%if rs("xs")=1 then %>selected<%end if%>>只对会员显示</option>
                              <option value="2" <%if rs("xs")=2 then %>selected<%end if%>>只对自己显示</option>
                            </select>
                          </td>
                          <td align=center>
                            <input class="wenbenkuang" type="text" name="px" size="10" value="<%=rs("px")%>" ONKEYPRESS="event.returnValue=IsDigit();" >
                          </td>
                          <td align=center> <a href="bbsset.asp?action=del&id=<%=rs("id")%>">删除</a> </td>
                        </tr>
                        <%
    rs.MoveNext
    Loop
%>
                        <tr height=25 bgcolor="#FFFFFF">
                          <td colspan="5" align=center><input type="submit" name="Submit22" value="保存修改" class="go-wenbenkuang">
&nbsp;
        <input type="reset" value="重新设定" class="go-wenbenkuang" name="重置" >
                          </td>
                        </tr>
                        <%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
                      </form>
                    </table>
                    <br>
                    <table width="95%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#BBD7FF">
                      <form method="post" action="bbsset.asp?action=add">
                        <tr height=25 bgcolor="#FFFFFF">
                          <td align=center><strong>添加分类</strong></td>
                          <td align=center>
                            <input name="bbsname" type="text" class="wenbenkuang" id="bbsname2" size="22">
                          </td>
                          <td align=center>
                            <select name="xs" size="1" class="wenbenkuang style3" id="select">
                              <option value="0" selected>对所有人显示</option>
                              <option value="1">只对会员显示</option>
                              <option value="2">只对自己显示</option>
                            </select>
                          </td>
                          <td align=center>
                            <input name="px" type="text" class="wenbenkuang" id="px2" ONKEYPRESS="event.returnValue=IsDigit();" size="10">
                          </td>
                          <td colspan="2" align=center>
                            <input name="Submit2" type="submit" class="go-wenbenkuang" value="添加">
                          </td>
                        </tr>
                      </form>
                    </table>
                </td>
              </tr>
          </table></td>
        </tr>
    </table></td>
    <td valign="top"><img src="/img/index_img.jpg" width="10"></td>
  </tr>
</table>
<!--#include file="../../end.asp"-->
<%end if%>
</body>
</html>