Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[模型] 这段是显示影视模型的左边列表

[复制链接]
newfun2010 发表于 2009-9-8 16:16:44 | 显示全部楼层 |阅读模式
<!--{if !empty($childcategories)}-->
                <div class="global_module margin_bot10 bg_fff">
                        <div class="global_module2_caption"><h3>$cacheinfo[categoryarr][$_GET[mo_catid]][name]</h3></div>
                        <ul class="global_tx_list3">
                                <!--{loop $childcategories $value}-->
                                <li><a href="$siteurl/m.php?name=$modelsinfoarr[modelname]&mo_catid=$value[catid]">$value[name]</a></li>
                                <!--{/loop}-->
                        </ul>
                </div>
                <!--{/if}-->
                <!--{if !empty($gatherarr)}-->
                <!--{loop $gatherarr $key $value}-->
                <!--{if !empty($value)}-->
                <div class="global_module margin_bot10 bg_fff">
                        <div class="global_module2_caption"><h3>$cacheinfo[columns][$key][fieldcomment]</h3></div>
                        <ul class="global_tx_list1 ext_li_short clearfix">
                                <!--{loop $value $tmpvalue}-->
                                        <li><a href="$siteurl/m.php?name=$modelsinfoarr[modelname]&mo_$key=<!--{eval echo rawurlencode($tmpvalue);}-->">$tmpvalue</a></li>
                                <!--{/loop}-->
                        </ul>
                </div>
                <!--{/if}-->
                <!--{/loop}-->
                <!--{/if}-->
                <!--{if !empty($ads3['siderad'])}-->
                <div class="global_module margin_bot10 bg_fff">
                        <div class="global_module2_caption"><h3>网络资源</h3></div>
                        <div class="ad_sidebar">
                                $ads3[siderad]
                        </div>

                </div>
                <!--{/if}-->

这段是显示影视模型的左边列表,如果我现在只想显示其中的一个“类型”这个字段,该如何去掉。
lidq.jingwu 发表于 2009-9-8 16:46:24 | 显示全部楼层
仅用下面一段代码试一下:
<!--{if !empty($childcategories)}-->
                <div class="global_module margin_bot10 bg_fff">
                        <div class="global_module2_caption"><h3>$cacheinfo[categoryarr][$_GET[mo_catid]][name]</h3></div>
                        <ul class="global_tx_list3">
                                <!--{loop $childcategories $value}-->
                                <li><a href="$siteurl/m.php?name=$modelsinfoarr[modelname]&mo_catid=$value[catid]">$value[name]</a></li>
                                <!--{/loop}-->
                        </ul>
                </div>
                <!--{/if}-->
                <!--{if !empty($gatherarr)}-->
                <!--{loop $gatherarr $key $value}-->
                <!--{if !empty($value)}-->
                <div class="global_module margin_bot10 bg_fff">
                        <div class="global_module2_caption"><h3>$cacheinfo[columns][$key][fieldcomment]</h3></div>
                        <ul class="global_tx_list1 ext_li_short clearfix">
                                <!--{loop $value $tmpvalue}-->
                                        <li><a href="$siteurl/m.php?name=$modelsinfoarr[modelname]&mo_$key=<!--{eval echo rawurlencode($tmpvalue);}-->">$tmpvalue</a></li>
                                <!--{/loop}-->
                        </ul>
                </div>
                <!--{/if}-->
                <!--{/loop}-->
                <!--{/if}-->
回复

使用道具 举报

 楼主| newfun2010 发表于 2009-9-8 17:45:06 | 显示全部楼层
不行呀,把所有的三个大分类都显示出来了。
我只要显示其中的第一个“类型‘就行了。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-5-18 08:32 , Processed in 0.092652 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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