<!--#include file="admin_start.asp" -->
<body topmargin="30" marginwidth="10" marginheight="10">
<%
dim id
dim steps
dim o_d
dim file_check

file_check=request("file_check")
id=request("id")
steps=request("steps")

if id="" then id=0
if steps="" then steps=3
if file_check="" then file_check=1 else file_check=int(file_check)

MySys.GuideShow(MySys.GuideList(MySys.file_request)&" >·广告栏目管理")

set rs_t=conn.execute("select object_description,object_up from jins_object_list where object_id="&id&" ")
if id>0 and rs_t.eof then
MySys.error.info="您请求的栏目不存在"
MySys.error.location="back"
MySys.error.err()
end if

if id=0 then
o_d= "root"
else
o_d=rs_t("object_description")
end if
%>
<div align="center">
<table height=30 align=center cellspacing=3 cellpadding=3 width=80% style="border:1px solid #ebebeb;">
<tr>
<td style="border-right:1px solid #ebebeb;" width=15% valign=bottom>
<a href='admin_site_ads_list.asp?id=0' >
<img border="0" src="Images/top_c.gif"  hspace="5" align="absmiddle">顶级栏目
</a>
</td>
<%if not rs_t.eof then%>
<td style="border-right:1px solid #ebebeb;" width=17% valign=bottom>
<a href='admin_site_ads_list.asp?id=<%=rs_t("object_up")%>' >
<img border="0" src="Images/up_c.gif"  hspace="5" align="absmiddle">上一级栏目
</a>
</td>
<%end if%>
<form name=search_object action='admin_site_ads_list.asp?id=<%=request("id")%>' method=post >
<td style="border-right:1px solid #ebebeb;" valign=middle >
 搜索深度 
  <input style='height:16px' size=2 name=steps value=<%if steps=0 then response.write "所有下级栏目" else response.write steps %>>
  <input type=image border="0" alt='开始搜索' src="Images/go.gif"  hspace="5" align="absmiddle">
  |
  <a href='admin_site_ads_list.asp?id=<%=request("id")%>&steps=0'><img border="0" alt='搜索所有下级栏目！注意：此功能比较耗费资源，请慎用！' src="Images/all.gif"  hspace="5" align="absmiddle"></a>
  </td>
</form>
<td align=right width=25% ><div id=num_show >共显示栏目数：[ 正在计算... ]</div></td>
</tr>
</table>
<br>
<form name=object_list action='admin_object_list_handle.asp?id=<%=request("id")%>' method=post>
<table cellspacing=0 cellpadding=0 width=78% bgcolor=#F7F7F7 style="border-top: 1px solid #EBEBEB; ">
<tr>
<td height=30 width='55%' style='padding-left:10px' ><img border="0" src="Images/status_6.gif" align="absmiddle"> [ <font color=red><%=o_d%></font> ]</td>
<td height=30 width='10%' align=center>栏目ID</td>
<td height=30 width='25%' align=center>栏目操作</td>
<td height=30 width='10%' align=center>删除广告</td>
</tr>
</table>
<%
set rs_t=nothing
%>

<table cellspacing=0 cellpadding=0 width=78% >
<tr>
<td >
<%
MySys.object.object_id=id
MySys.object.object_steps=steps
MySys.object.file_check=1
MySys.object.ListObject id,"ads"
%>
</td>
<SCRIPT language=javascript>

	function opencat(cat,img)
	{
 	 	if(cat.style.display=="none"){
     	cat.style.display="";
     	img.src="Images/class7.gif"
  		} else {
     	cat.style.display="none"; 
     	img.src="Images/class1.gif"
  		}
	}
	
	document.getElementById("num_show").innerHTML="共显示栏目数：[ <%=MySys.object.object_sum%> ]"
</SCRIPT>
</table>
<table cellspacing=0 cellpadding=0 width=78% style="border-top: 0px solid #EBEBEB; ">
<tr>
<td height='1' width='100%' background='images/dot03.gif'></td>
</tr>
<tr>
<td height=60 width='60%' style='padding-left:10px' align=center >
</td>
</tr>
</table>
</form>
</div>
</body>
<!--#include file="admin_end.asp" -->