怎么用灵动标签调用当前栏目下的所有子栏目
1个回答
展开全部
<?
$bclassid = $class_r[$GLOBALS[navclassid]][bclassid]; //获取当前父栏目ID
?>
[e:loop={"select classid,classname,classpath from [!db.pre!]enewsclass where bclassid = '$bclassid' order by classid",0,24,0}]
<?
$bqno%2==0?$style="style=background:#E8E8E8;":$style="";
?>
<tr>
<td width="346" height="25" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-left:10px" <?=$style?>>
<tr>
<td width="346" height="25" valign="middle" style="padding-left:10px">第<?=$bqno?>版:<a href="/<?=$class_r[$GLOBALS[navclassid]][classpath]?>"><?=$bqr[classname]?></a></td>
</tr>
</table></td>
</tr>
[/e:loop]
$bclassid = $class_r[$GLOBALS[navclassid]][bclassid]; //获取当前父栏目ID
?>
[e:loop={"select classid,classname,classpath from [!db.pre!]enewsclass where bclassid = '$bclassid' order by classid",0,24,0}]
<?
$bqno%2==0?$style="style=background:#E8E8E8;":$style="";
?>
<tr>
<td width="346" height="25" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-left:10px" <?=$style?>>
<tr>
<td width="346" height="25" valign="middle" style="padding-left:10px">第<?=$bqno?>版:<a href="/<?=$class_r[$GLOBALS[navclassid]][classpath]?>"><?=$bqr[classname]?></a></td>
</tr>
</table></td>
</tr>
[/e:loop]
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询