<!--#include file="conn.asp"-->
<!--#include file="ad_chk.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href=inc/css.css rel=STYLESHEET type=text/css>
<%
if Request.Cookies("WrzcNethtml")("admin_class")<>0 and Request.Cookies("WrzcNethtml")("admin_class")<>1 then
response.write "你没有这个权限!"
response.end
end if
%>
<%
if request("nsort_id")<>"" then
nsort_id=request("nsort_id")
set rsn=server.CreateObject("adodb.recordset")
rsn.open "select * from WrzcNethtml_newsnsort where nsort_id="&nsort_id&"",conn,1,1
if not rsn.eof then%>
<table border="0" cellspacing="0" cellpadding="5" class="st"><form method="post" action="ad_newssort.asp?action=editb&nsort_id=<%=rsn("nsort_id")%>">
<tr><td bgcolor="#FFFFFF" class="sa" align="right" width="100">　</td>
	<td bgcolor="#FFFFFF" class="sa">二级分类修改</td></tr>
<tr><td bgcolor="#FFFFFF" class="s1" align="right" width="100">名称：</td><td bgcolor="#FFFFFF" class="s1"><input name="nsort_name" type="text" size="51" value="<%=rsn("nsort_name")%>"></td></tr>
<tr><td bgcolor="#FFFFFF" class="s0" align="right" width="100">序号：</td><td bgcolor="#FFFFFF" class="s0"><input name="nsort_xu" type="text" size="7" value="<%=rsn("nsort_xu")%>"></td></tr>
<tr><td bgcolor="#FFFFFF" class="s1" align="right" width="100">大类：</td>
<td bgcolor="#FFFFFF" class="s1">
	<select size="1" name="sort_id">
	<%set rsc=server.CreateObject("adodb.recordset")
	rsc.open "select * from WrzcNethtml_newssort order by sort_xu desc,sort_id desc",conn,1,1
	do while not rsc.eof%><option<%if rsc("sort_id")=rsn("sort_id") then%> selected<%end if%> value="<%=rsc("sort_id")%>"><%=rsc("sort_name")%></option>
	<%rsc.movenext
	loop
	rsc.close
	set rsc=nothing%>
	</select>
</td></tr>
<tr><td bgcolor="#FFFFFF" class="s0" align="right" width="100">搜索引擎优化：</td>
	<td bgcolor="#FFFFFF" class="s0">
	 <%if seo_ansort1=1 then%>网页标题：<input type="text" name="nsort_title" size="50" class=input value="<%=rsn("nsort_title")%>"><br><%end if%>
	 <%if seo_ansort3=1 then%>关 键 字：<input type="text" name="nsort_keyword" size="50" class=input value="<%=rsn("nsort_keyword")%>"><br><%end if%>
	 <%if seo_ansort5=1 then%>网页描述：<input type="text" name="nsort_d" size="50" class=input value="<%=rsn("nsort_d")%>"><%end if%>
	</td></tr>
<tr><td bgcolor="#FFFFFF" class="s1" align="right" width="100"></td><td bgcolor="#FFFFFF" class="s1"><input type="submit" name="Submit" value="修改"></td></tr></form></table>
<%end if
rsn.close
set rsn=nothing
elseif request("sort_id")<>"" then
sort_id=request("sort_id")
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from WrzcNethtml_newssort where sort_id="&sort_id&"",conn,1,1
if not rs.eof then%>
<table border="0" cellspacing="0" cellpadding="5" class="st"><form method="post" action="ad_newssort.asp?action=edita&sort_id=<%=rs("sort_id")%>">
<tr><td bgcolor="#FFFFFF" class="sa" align="right" width="100">　</td>
	<td bgcolor="#FFFFFF" class="sa">一级分类修改</td></tr>
<tr><td bgcolor="#FFFFFF" class="s0" align="right" width="100">名称：</td>
	<td bgcolor="#FFFFFF" class="s0"><input name="sort_name" type="text" size="51" value="<%=rs("sort_name")%>"></td></tr>
<tr><td bgcolor="#FFFFFF" class="s1" align="right" width="100">序号：</td><td bgcolor="#FFFFFF" class="s1"><input name="sort_xu" type="text" size="7" value="<%=rs("sort_xu")%>"></td></tr>
<tr><td bgcolor="#FFFFFF" class="s0" align="right" width="100">搜索引擎优化：</td><td bgcolor="#FFFFFF" class="s0">
	 <%if seo_asort1=1 then%>网页标题：<input type="text" name="sort_title" size="50" class=input value="<%=rs("sort_title")%>"><br><%end if%>
	 <%if seo_asort3=1 then%>关 键 字：<input type="text" name="sort_keyword" size="50" class=input value="<%=rs("sort_keyword")%>"><br><%end if%>
	 <%if seo_asort5=1 then%>网页描述：<input type="text" name="sort_d" size="50" class=input value="<%=rs("sort_d")%>"><%end if%>
 </td></tr>
<tr><td bgcolor="#FFFFFF" class="s1" align="right" width="100"></td>
	<td bgcolor="#FFFFFF" class="s1"><input type="submit" name="Submit3" value="修改"></td></tr></form></table>
<%end if
rs.close
set rs=nothing
end if%>