Announcement

Collapse
No announcement yet.

帝国cms 灵动标签【列表页】调用当前父栏目下的所有子栏目

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 帝国cms 灵动标签【列表页】调用当前父栏目下的所有子栏目

    Code:
    [LEFT][COLOR=#000000][FONT=Courier New]<? [/FONT][/COLOR][COLOR=#800080][FONT=Courier New]$bclassid[/FONT][/COLOR][COLOR=#000000][FONT=Courier New] = [/FONT][/COLOR][COLOR=#800080][FONT=Courier New]$class_r[/FONT][/COLOR][COLOR=#000000][FONT=Courier New][[/FONT][/COLOR][COLOR=#800080][FONT=Courier New]$GLOBALS[/FONT][/COLOR][COLOR=#000000][FONT=Courier New][navclassid]][bclassid]; [/FONT][/COLOR][COLOR=#008000][FONT=Courier New]//[/FONT][/COLOR][COLOR=#008000][FONT=Courier New]获取当前父栏目ID[/FONT][/COLOR][COLOR=#000000][FONT=Courier New] ?>[/FONT][/COLOR][COLOR=#000000][FONT=Courier New] [e[/FONT][/COLOR][COLOR=#000000][FONT=Courier New]:loop={"select classid,classname,classpath from [!db.pre!]enewsclass where bclassid = ‘[/FONT][/COLOR][COLOR=#800080][FONT=Courier New]$bclassid[/FONT][/COLOR][COLOR=#000000][FONT=Courier New]’ order by classid”,0,24,0}]<!-取得父栏目下的子栏目-> <li><a href=”<?=[/FONT][/COLOR][COLOR=#800080][FONT=Courier New]$public_r[/FONT][/COLOR][COLOR=#000000][FONT=Courier New][newsurl].[/FONT][/COLOR][COLOR=#800080][FONT=Courier New]$bqr[/FONT][/COLOR][COLOR=#000000][FONT=Courier New][classpath]?>/”><?=[/FONT][/COLOR][COLOR=#800080][FONT=Courier New]$bqr[/FONT][/COLOR][COLOR=#000000][FONT=Courier New][classname]?></a></li> [/e:loop][/FONT][/COLOR][/LEFT]
Working...
X