destoon采集论坛

 找回密码
 立即注册
查看: 61|回复: 0

catalog.htm这个子分类的后面如何让他显示个 "更多"

[复制链接]

1

主题

0

回帖

7

积分

新手上路

Rank: 1

积分
7
发表于 2011-4-21 22:52:23 | 显示全部楼层 |阅读模式
[ol]
  •   {php $CATEGORY = cache_read('category-'.$mid.'.php');}
  •     {php $child = get_maincat(0, $CATEGORY, 1);}
  •               
  •      
  •                         茶叶种类
  •                         {loop $child $i $c}
  •                         {if in_array($c[catid], array(1,56,57,58,59,60))}
  •                         [I][url=]{set_style($c[catname],
  • $c[style])}[/url][/I]
  •                         {if $c[child]}{php $sub = get_maincat($c[catid], $CATEGORY, 2);}
  •                         {loop $sub $j $s}{if $j {if $c[child]}{php $sub = get_maincat($c[catid], $CATEGORY, 3);}
  •                         {loop $sub $j $s}[url=]{set_style($s
  • [catname], $s[style])}[/url]{/loop}
  •                         {/if}{/if}{/loop}
  •                     
  •                   
  •                         茶具
  •                         {loop $child $i $c}
  •                         {if in_array($c[catid], array(6,5592,5593,5594,5595,5596))}
  •                         [I][url=]{set_style($c[catname],
  • $c[style])}[/url][/I]
  •                         {if $c[child]}{php $sub = get_maincat($c[catid], $CATEGORY, 2);}
  •                         {loop $sub $j $s}{if $j {if $c[child]}{php $sub = get_maincat($c[catid], $CATEGORY, 3);}
  •                         {loop $sub $j $s}[url=]{set_style($s
  • [catname], $s[style])}[/url]{/loop}
  •                         {/if}{/if}{/loop}
  •                     
  • [/ol]复制代码

    搜索了.下面这段不知道要往哪插入,请帮下忙哦.

    {if $j>1}[url=]
    [color=]更多
    [/url]{/if}

    if $j>1 修改数字1  说明子
    [color=]分类
    大于一个的都会带上“
    [color=]更多
    ”二字!
  • 回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|小黑屋|手机版|Archiver|destoon采集论坛

    GMT+8, 2025-11-26 19:58 , Processed in 0.015891 second(s), 21 queries .

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表