<%response.buffer=true%>
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>潮南社区</title>
<LINK 
href="css.css" type=text/css rel=stylesheet>
</head>
<body>
<!--#include file="top.asp"-->



<%  
username=Request.Cookies("esung")("username")
    password=Request.Cookies("esung")("password")
    
    username=Request.Cookies("esung")("username")
    password=Request.Cookies("esung")("password")
  set rs1=server.createobject("adodb.recordset")
    sql="select * from member where username='" &username& "'  "
    rs1.open sql,conn,1,1
    if  rs1.eof then
response.write"<script language='javascript'>alert('用户名密码错误！')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"
response.end
end if
  if password<>rs1("password") then
  response.write"<script language='javascript'>alert('用户名密码错误！')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"
response.end
end if

if username="" or password="" then
    response.redirect"login.asp"
    end if
id=request.querystring("id")

if id="" or  not isnumeric(id) then
response.write"<script language='javascript'>alert('错误的请求！')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"
response.end 
end if  
set editreco=server.createobject("adodb.recordset")
    sqlstr="select * from book where id=" &id
    editreco.open sqlstr,conn,1,1
if rs1("manbid")=20000 or rs1("manbid")=bid or rs1("manbid")=8888 then%>
   


<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="8" background="images/left.gif">&nbsp;</td>
    <td valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr> 
          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height=6></td>
              </tr>
            </table>
            <table width="754" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td width=6 height=6><img src="images/index_2.gif" width="6" height="6"></td>
                      <td width="742" background="images/index_3.gif"></td>
                      <td width=6> <div align="right"><img src="images/index_1.gif" width="6" height="6"></div></td>
                    </tr>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td width=1 bgcolor="C6C3C4"></td>
                      <td height=6 bgcolor="FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="8">
                          <tr>
                            <td><img src="images/Order_26.gif" width="10" height="10"> 
                              <a href=index.asp>潮南社区</a>  →<a href=list.asp?bid=<%=request.querystring("bid")%>><%=request.querystring("name")%></a>→   
                              移动帖子 </td>                                                                           
                          </tr>                                                                           
                        </table></td>                                                                                                       
                      <td width=1 bgcolor="C6C3C4"></td>                                                                                                       
                    </tr>                                                                                                       
                  </table>                                                                                                       
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">                                                                                                       
                    <tr>                                                                                                        
                      <td width=5 height=5><img src="images/left_data_4.gif" width="5" height="5"></td>                                                                                                       
                      <td width="742" background="images/left_data_6.gif"></td>                                                                                                       
                      <td width=5> <div align="right"><img src="images/left_data_5.gif" width="5" height="5"></div></td>                                                                                                       
                    </tr>                                                                                                       
                  </table></td>                                                                                                       
              </tr>                                                                                                       
            </table>                                                                                                       
            <br>                                                          
            <div align="center">                                                        
              <center>   
                <table width="90%" border="0" cellpadding="0" cellspacing="1" bgcolor="f6f6f6" height="113"><form method="post" action="save_move.asp?id=<%=editreco("id")%>"  name="esung">  
                  <tr bgcolor="#FFFFFF">   
                    <TD width="35%" height=28 align="left">&nbsp;<B>帖子主题：</B></TD>  
                    <TD width="102%" height="28"><b><%=editreco("title")%></b> </TD>  
                  </tr>  
                  <tr bgcolor="#FFFFFF">   
                    <input type="hidden" name="url" value="<%=request.serverVariables("Http_REFERER")%> ">  
                    <TD width="35%" height=48 align="left"> <P                                                             
      style="LINE-HEIGHT: 150%; MARGIN-LEFT: 5px; MARGIN-TOP: 5px"><b>论坛列表：</b></P></TD>  
                    <TD width="102%" height="48">                                                                                                
                    <select  name="bid" size="1"><%                                 
    set rs1=server.createobject("adodb.recordset")                                 
    sqlstr="select * from board order by px"                                 
    rs1.open sqlstr,conn,1,1       
    do while not rs1.eof                                 
    %>         
<option value='<%=rs1("bid")%>'><%=rs1("bidname")%></option>      
<%rs1.movenext                                           
loop                          
   rs1.Close                      
set rs1=nothing %>                                   
                    </select>                                                                                             
 </TD>  
                  </tr>  
                  <tr bgcolor="#FFFFFF">   
                    <TD width="137%" height=31 align="left" vAlign=top colspan="2"> <p align="center">   
                        <span lang=zh-cn>  
                        <BR>  
                        &nbsp;&nbsp;   
                          <input name="send" type="submit" class="button" value=" 移 动" >&nbsp;   
                          <input name="return" type="button" class="button" onclick="javascript:history.go(-1)" value="返 回 " >  
                        </span> </TD>  
 </tr>  
                </table>                                                                                                        
              </center>                                                           
            </div>                                                           
          </td>                                                                                                        
        </tr>                                                                                                        
      </table>                                                                                                         
      <!--#include file="down.asp"-->                                                                                                        
    </td>                                                                                                        
    <td width="8" background="images/right.gif">&nbsp;</td>                                                                                                        
  </tr>                                                                                                        
</table>                                                                                                        
</body>                                                                                                        
</html>                                                                                                        
<%  
else   
response.write"<script language='javascript'>alert('你没有权限进行操作！')</script>"  
response.write "<script language='javascript'>history.back(-1)</script>"  
response.end  
  
end if%>