<!-- #include file="conn.asp" -->
<%
wid=request.QueryString("id")
set rst=server.CreateObject("adodb.recordset")
rst.open "select * from news where n_id="&wid,conn,1,1
set rst1=server.CreateObject("adodb.recordset")
%>
<form id="form1" name="form1" method="post" action="">
<table width="600" border="1">
<tr align="center">
<td>修改</td>
</tr>
<tr>
<td width="500">标题:
<label>
<input name="f_title" type="title" id="f_title" value="<%=rst("n_title")%>"/>
</label></td>
</tr>
<tr>
<td>类别:
<label>
<select name="f_class" id="f_class">
<%
rst1.open "select distinct(n_class) from news",conn,1,1
while not rst.eof
%>
<option value="<%=rst1("n_class")%>"><%=rst1("n_class")%></option>
<%
rst1.movenext
wend
rst1.close
%>
</select>
</label></td>
</tr>
<tr>
<td width="500" height="33">内容:
<label>
<textarea name="f_content" id="f_content"><%=rst("n_content")%></textarea>
</label></td>
</tr>
<tr>
<td>置顶:
<label>
<input type="radio" name="f_top" value="-1" <% if rst("n_top")=-1 then response.write "checked" %>>
是
<input type="radio" name="f_top" value="0" <% if rst("n_top")=0 then response.write "checked"%>>
否 </label></td>
</tr>
<tr>
<td><label>
<input type="submit" name="Submit" value="提交" />
</label>
<label>
<input type="reset" name="Submit2" value="重置" />
</label></td>
</tr>
</table>
</form>
<%
conn.close
set conn=nothing
%>