# 网站导航/分类的调用
系统分类的调用:
1. 一级分类的调用
~~~
<%
set rsmenu=Easp.db.Exec("select * from tx_class where FatherID=0 and Column=1 Order by [Order] Asc,ID Desc")
while not rsmenu.eof
%>
~~~
> 生成导航URL: <%=MU(rsmenu("ID"),"infolist","prolist","page","","")%>
> 生成导航URL: <%=CU(rsmenu("ID"),'')%>
> 分类名称调用: <%=rsmenu("Name")%>
~~~
<%
rsmenu.movenext
wend
Easp.db.close(rsmenu)
%>
~~~
2. 二级分类的调用
~~~
<%
set rschildmenu=Easp.db.Exec("select * from tx_class where FatherID="&rsmenu("ID")&" and Column=1 Order by [Order] Asc,ID Desc")
while not rschildmenu.eof
%>
~~~
> 生成导航URL: <%=MU(rschildmenu("ID"),"infolist","prolist","page","","")%>
> 生成导航URL: <%=CU(rschildmenu("ID"),'')%>
> 分类名称调用: <%=rschildmenu("Name")%>
~~~
<%
rschildmenu.movenext
wend
Easp.db.close(rschildmenu)
%>
~~~