<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../Connnews.asp" -->
<%
id=request("id")
httpurl=request("url")
if id="" then
Response.Write("<script>alert('错误！');window.location='main_index.asp';</script>")
else
%>
<% 
set rs=server.CreateObject("adodb.recordset")
rs.open "Select * from mynews where id="&id&"" ,conn,1,1
 %>
<HTML><HEAD>
<title>信息添加</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<meta name="keywords" content="<%=keyword%>">
<meta name="description" content="<%=des%>">
<link href="skins/css/main.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  <form name="creator" method="post" action="news_ok.asp?action=edit&id=<%=rs("id")%>&url=<%=httpurl%>">
    
    <tr> 
      <td width="190" align="right">新闻标题：</td>
    <td width="768"><input name="n_title" type="text" id="n_title" size="60" value="<%=rs("n_title")%>"></td>
  </tr>
   <tr>
        <td align="right">图　　片：</td>
        <td><input name="n_pic" type="text" id="n_pic" size="60" value="<%=rs("n_pic")%>">
        <a href="#" class="hong" onClick="MM_openBrWindow('../u/index.asp?id=n_pic','上传图片','width=380,height=30')">上传图片</a></td>
      </tr>
      <tr>
        <td align="right">排　　序：</td>
        <td><input name="inpx" type="text" id="inpx" value="<%=rs("inpx")%>"></td>
      </tr>
      <tr> 
      <td align="right">添加日期：</td>
    <td><input name="n_time" type="text" id="n_time" value="<%=rs("n_time")%>"></td>
  </tr>
  <tr> 
      <td align="right">新闻内容：</td>
      <td><INPUT type="hidden" name="n_con" value="<%if rs("n_con")<>"" then%><%=Server.HtmlEncode(rs.Fields.Item("n_con").Value)%><%else%><%end if%>">
      <IFRAME ID="eWebEditor1" SRC="../news/editor/eWebEditor.asp?id=n_con&style=standard" FRAMEBORDER="0" SCROLLING="no" WIDTH="95%" HEIGHT="420"></IFRAME></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
    <td><input type="submit" name="Submit" value="修改"></td>
  </tr></form>
</table>
</body>
</html>
<%end if%>