<!-- #include file="adoconn.asp" -->
<style>
.dotted_class{
border-bottom:1px dotted #757575;
}
.dotted_class a{
text-decoration:none;
font-size:12px;
}
.td{
font-size:12px;
}
</style>
<script language="javascript教程">
function $$(id)
{
return document.getElementById(id);
}
function fd(id,num)
{
t=$$("d_"+id).src;
if(t.indexOf("+.gif")>0)
{
t1="block";
t2="images/-.gif";
}
else
{
t1="none";
t2="images/+.gif";
}
for(i=1;i<=num;i++)
{
$$("c"+id+"_"+i).style.display=t1;
$$("d_"+id).src=t2;
}
}
</script>
<%
catstr=""
depath=0
Call cat111(0,0,2)
%>
<TABLE width="500">
<TR>
<TD><%=catstr%></TD>
</TR>
</TABLE>
<%
function cat111(parent_id,tid,stype)
set rs1 =server.createobject("adodb.recordset")
sql="select cat_name,cat_id,parent_id from category where parent_id="&parent_id&" and u_id="&stype&" and is_show=1 order by cat_order asc"
set rs1=conn.execute(sql)
If rs1.eof Then
Else
if(depath>2) then
display2="none"
else
display2="block"
end if
dim j
j=1
do while not rs1.eof
cat_name1 = rs1("cat_name")
cat_id1 = rs1("cat_id")
parent_id1=rs1("parent_id")
******************下面是你要显示的******************'
m9=0
sql2="select count(cat_id) as t from category where parent_id="&cat_id1&" and u_id="&stype&""
set rs2=server.createobject("adodb.recordset")
set rs2=conn.execute(sql2)
if not rs2.eof then
m9=rs2("t")
else
m9=0
end if
rs2.close
if(depath<=2) then
mgif="images/-.gif"
a="block"
else
if(m9>0) then
mgif="images/+.gif"
else
mgif="images/-.gif"
end if
if(depath=4) Then
a="block"
 
新闻热点
疑难解答