<%
response.expires=0

if session("zkpicksysuser")="" then
  response.redirect "index.asp"
  response.end
end if
%>
<!--#include file="dbinc/dbpath.asp" -->
<html>
<head>
<title>3鸟设社网站评测—— 网站新闻编辑</title>
<link rel="stylesheet" href="link.css">
</head>
<body bgcolor="#FFFFFF" leftmargin="2" topmargin="2" marginwidth="2" marginheight="2">
<%
siteid=CLng(request.querystring("id"))
set rs=server.createobject("adodb.recordset")
rs.open "Select * from news where news.newsid="&siteid,conn
if not (rs.bof and rs.eof) then
%>
<form name="sysshowform" method="post" action="newsedit.asp">
  <table width="515" border="0" cellspacing="0" cellpadding="0" align="center" class="9p">
    <tr bgcolor="#FF6633"> 
      <td height="20" bgcolor="#003366"> 
        <div align="center"><font color="#FFFFFF"><b><font color="#FFFF00">3鸟设社网站评测—— 
          新闻编辑</font></b></font></div>
      </td>
    </tr>
    <tr> 
      <td class="2p">&nbsp;</td>
    </tr>
    <tr bgcolor="#FF6633"> 
      <td class="2p">&nbsp;</td>
    </tr>
    <tr> 
      <td class="4p">&nbsp;</td>
    </tr>
    <tr> 
      <td> 
        <table width="515" border="0" cellspacing="0" cellpadding="0" bordercolorlight="#9999CC" bordercolordark="#FFFFFF" class="9p">
          <tr bgcolor="#9999CC"> 
            <td width="131" bgcolor="#9999CC"> 
              <div align="center">标题</div>
            </td>
            <td> 
              <input type="text" name="biaoti" size="30" class="smallInput" maxlength="50" value="<%=rs("biaoti")%>">
            </td>
          </tr>
          <tr bgcolor="#9999CC"> 
            <td width="131" bgcolor="#9999CC" valign="top"> 
              <div align="center"><font color="#000000">内容</font></div>
            </td>
            <td> 
              <div align="left"> 
                <textarea name="neirong" cols="30" rows="4" class="smallInput" wrap="VIRTUAL"><%=rs("neirong")%></textarea>
              </div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr> 
      <td class="4p">&nbsp;</td>
    </tr>
    <tr bgcolor="#FF6633"> 
      <td height="40" bgcolor="#003366"> 
        <div align="center"> 
          <input type="submit" name="Submit" value=" 修 改 " class="buttonface">
          <input type="button" name="Submit2" value=" 返 回 " class="buttonface" onClick="javascript:location.href='newssyslist.asp'">
          <%response.write ("<input type='hidden' name='sysid' value='"&rs("newsid")&"'>")%>
        </div>
      </td>
    </tr>
  </table> 
</form> 
<% else %> 
<table width="515" border="0" cellspacing="0" cellpadding="0" align="center" class="9p">
  <tr bgcolor="#FF6633">  
    <td height="20" bgcolor="#003366"> 
      <div align="center"><font color="#FFFFFF"><b>3鸟设社网站评测—— 新闻编辑</b></font></div>  
    </td> 
  </tr> 
  <tr>  
    <td class="2p">&nbsp;</td> 
  </tr> 
  <tr bgcolor="#FF6633">  
    <td class="2p">&nbsp;</td> 
  </tr> 
  <tr>  
    <td class="4p">&nbsp;</td> 
  </tr> 
  <tr bgcolor="#FF6633">  
    <td bgcolor="#003366"> 
      <div align="center"> 
        <p>&nbsp;</p> 
        <p><font color="#FFCC00">对不起，数据在处理中发生错误，请重试！</font></p> 
        <p>&nbsp;</p> 
      </div> 
    </td> 
  </tr> 
  <tr>  
    <td class="4p">&nbsp;</td> 
  </tr> 
  <tr bgcolor="#FF6633">  
    <td height="20" bgcolor="#003366"> 
      <div align="center"></div>
    </td>
  </tr>
  <tr> 
    <td height="20"> 
      <div align="center">　</div>
    </td>
  </tr>
</table>
<%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</body>
</html>
