法音在线's Archiver

网上佛寺首页 客堂 大雄宝殿 藏经楼 讲堂
念佛堂 禅堂 报恩殿 法物流通处 休息寮
CBETA藏经站 IDC主站

ycqxf 发表于 2008-5-7 08:19 PM

求助,首页频道调用问题

<%
   dim sqlsort,RsSort,hangpicnum
   sqlsort="select top 4 * from a125_type where a125_big_id=0 and a125_setting < 4 and Indexshow=True order by a125_order asc"
   Set RsSort=conn.execute (sqlsort)
   RsSort.Open sql,Conn,1,1
   Response.Write"<table border='0' cellspacing='0' width='100%' align='center'><tbody>"
   if RsSort.eof and RsSort.bof then
   response.write "<div align=center>还没有任何栏目</div>"
   else
   response.write"<tr>"
   do while not rs.eof
   for hangpicnum=1 to 2
   if RsSort.eof then exit for
   Response.Write"<td>"
%>
上面这段代码是按顺序调用4个文章栏目,就是1,2,3,4。我现在想调用指定的文章栏目,比如1,3,4,5。这段该怎么改

dlwlh3510 发表于 2008-5-8 08:03 AM

在后台的栏目设置中改,选中(或不选)在首页显示即可。

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.