当前位置:首页 > CMS教程 > phpcms > 列表

首页 subcat(0,0,0,$siteid)怎么显示某些栏目?

发布:smiling 来源: PHP粉丝网  添加日期:2014-10-20 17:16:03 浏览: 评论:0 

首页 subcat(0,0,0,$siteid)怎么显示某些栏目?

  1. subcat(父id,0,0,$siteid
  2. {loop subcat(6,0,0,$siteid$r
  3.   {if $r['catid']==83||$r['catid']==84 } 
  4.         {php $num++} 
  5.         <div class="box cat-area" {if $num%2!=0}style=" margin-right:10px"{/if}> 
  6.           <h5 class="title-1">{$r}<a href="{$r}" class="more">更多>></a></h5> 
  7.              <div class="content"
  8.              {pc:content  action="lists" catid="$r" order="updatetime DESC" thumb="1" num="1" return="info"
  9.              {loop $info $v
  10.               <p> 
  11.                <img src="{thumb($v,90,0)}" width="90" height="60"/> 
  12.                     <strong><a   target="_blank" title="{$v['title']}"{title_style($v)}>{str_cut($v['title'],28)}</a></strong><br />{str_cut($v['description'],100)} 
  13.                 </p> 
  14.               {/loop} 
  15.               {/pc}                
  16.                 <div class="bk15 hr"></div> 
  17.                 {pc:content action="lists" catid="$r" num="5" order="id DESC" return="info"
  18.                 <ul class="list lh24 f14"
  19.                 {loop $info $v
  20.                  <li>·<a href="{$v['url']}" target="_blank" title="{$v['title']}"{title_style($v)}>{str_cut($v['title'],40)}</a></li> 
  21.                 {/loop} //phpfensi.com 
  22.                 </ul> 
  23.                 {/pc} 
  24.             </div> 
  25.         </div> 
  26.         {if $num%2==0}<div class="bk10"></div>{/if
  27.   {/if
  28.   {/loop}

Tags: subcat(0 0 0 $siteid) phpcms显示栏目

分享到: