一级栏目调用方法:
<%set DataTable dt=get_category_child_list("news", 0)%>
<%foreach(DataRow dr in dt.Rows)%>
<%set DataTable dt=get_category_child_list("news", 0)%>
<%foreach(DataRow dr in dt.Rows)%>
<li><a href="<%linkurl("work_show",{dr[id]})%>">{dr[title]}</a></li>
<%/foreach%>
二级栏目调用:
<%set DataTable jianshelist=get_category_list("jianshe", 173)%>
<%foreach(DataRow dr in jianshelist.Rows)%>
<li><a href="<%linkurl("jianshe_list",{dr[id]})%>">{dr[title]}</a></span></li>
<%/foreach%>
内容页调用方法:
<%set DataTable gonggaolist=get_article_list("gonggao", 0, 8, "status=0")%>
<%foreach(DataRow dr in gonggaolist.Rows)%>
<li><a href="<%linkurl("gonggao_show",{dr[id]})%>">{dr[title]}</a><span><%datetostr({dr[add_time]},yyyy-M-d)%></span></li>
<%/foreach%>