<!--#include file="admin_chk.asp"-->
<!--#include file="admin_conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加文章</title>
<link href="page.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="188" height="34" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><div align="center">文章编辑</div></td>
  </tr>
</table>
<table width="568" height="366" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#999999">
  <tr>
    <td valign="top" bgcolor="#FFFFFF">        <br>
      <hr width="98%" size="1" class="form">
        <form name="form1" method="post" action="news_editto.asp">
          <table width="550" height="536" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="37" colspan="3">文章分类：                 <%dim id
			  id=request("id")
			   set rs=server.CreateObject("adodb.recordset")
rs.open "select * from news2 where id="&id,conn,1,1%>
<select name="news_flm">
  <option value="<%=trim(rs("news_flm"))%>" selected><%=trim(rs("news_flm"))%></option>
			  		  <%
Set rs2 = Server.CreateObject("ADODB.Recordset")
rs2.open "SELECT  * From news_flm order by news_px",conn,1,1
%>      <% if rs2.eof and rs2.bof then
response.write "目前还没有分类！"
else
while not rs2.eof %>
  <option value="<%=rs2("news_flm")%>"><%=rs2("news_flm")%></option>
<% rs2.movenext
	   wend
	  
	end if
	   rs2.close
	   set rs2=nothing
	 %>
                </select> 
                           
                <textarea name="news_test" id="news_test"  style="display:none"><%=Server.HtmlEncode(rs("news_test"))%></textarea></td>
            </tr>
            <tr>
              <td height="30" colspan="3">文章标题：
              <input name="news_pt" type="text" class="form" id="news_pt" value="<%= rs("news_pt") %>" size="45">              　
              </td>
            </tr>
			<tr>
              <td height="25" colspan="3">标题图片： 
                <input name="shoppic" type="text" class="wenbenkuang" id="shoppic" value="<%=rs("shoppic")%>" size="30"> 
              &nbsp; <input type="button" name="Submit2" class="go-wenbenkuang" value="上传标题图片" onClick="window.open('../upload_flash.asp?formname=form1&editname=shoppic&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">　</td>
            </tr>
						            <tr>
                          <td width="216" height="29"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td height="30">页面显示：</td>
                            </tr>
                            <tr>
                              <td><textarea name="ss" cols="50" rows="5" id="ss"><%= rs("ss") %></textarea></td>
                            </tr>
                          </table></td>
			            </tr>
            <tr>
              <td width="172" height="30">是否固顶：
                <input name="news_gd" type="checkbox" class="Gray" id="news_gd" value="1" <% if rs("news_gd")=true then  %> checked <%end if %>>
                <input name="id" type="hidden" id="id" value="<%=rs("id")%>"></td>
              <!--<td width="182">是否hot：
                <input name="news_hot" type="checkbox" class="Gray" id="news_hot" value="1" <% if rs("news_hot")=true then  %> checked <%end if %>>
                <img src="../images/new_f.gif" width="13" height="13"></td>
              <td width="196">是否new：
                <input name="news_new" type="checkbox" class="Gray" id="news_new" value="1" <% if rs("news_new")=true then  %> checked <%end if %>>
                <img src="../images/new_pic2.gif" width="28" height="11"></td>-->
            </tr>
            <tr>
              <td height="359" colspan="3"><IFRAME ID="eWebEditor1" SRC="../ewebeditor/ewebeditor.asp?id=news_test&style=standard" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="350"></IFRAME></td>
            </tr>
           <!-- <tr>
              <td height="40" colspan="3">文章作者：
              <input name="news_zz" type="text" class="form" id="news_zz" value="<%=rs("news_zz")%>"></td>
            </tr>-->
            <tr>
              <td colspan="3"><input type="submit" name="Submit" value="提交">
              <input type="reset" name="Submit" value="重置"></td>
            </tr>
          </table>
        </form>
    <hr width="98%" size="1" class="form"></td>
  </tr>
</table>

</body>
</html>
 
