1. 程式人生 > >destoon6.0標簽調用自己整理筆記

destoon6.0標簽調用自己整理筆記

企業 名稱 bstr pan target cond 搜索 page cat

{items}調用欄目下內容總數,也適合搜索用
{$CAT[catname]}當前欄目名稱

獲取資訊欄目導航

<!--{php $tags=tag("table=category&condition=moduleid=21 and parentid=0&pagesize=13&order=listorder,catid&template=null");}-->  
{loop $tags $i $t}           
            <li><a href="{$MOD[linkurl]}{$t[linkurl]}">{$t[catname]}</a></li>  
{/loop}  

最新供應

<!--{php $tags=tag("moduleid=5&table=sell_5&condition=status=3&areaid=$cityid&pagesize=6&order=edittime desc&time=addtime&template=null");}-->  
                {loop $tags $k $t}  
                            <LI><A href="{$t[linkurl]}" target=_blank>{dsubstr($t[title], 36)}</A></LI>   
                {/loop}  

當前分類下的所有分類

//$CAT[parentid]當前分類的父級id  $moduleid前模型id  
{php $sub = get_maincat($CAT[parentid], $moduleid, 1);}   
<ul>  
{loop $sub $i $k}  
<li><a href="{$k[linkurl]}">{$k[catname]} {$i}</a></li>  
{/loop}  
</ul>  

當前分類的所有同父級分類

<!--{php $tags=tag("table=category&condition=moduleid=7 and catid=$catid&showcat=1&order=catid asc&template=null");}-->  
{$r[parentid]}  
{loop $tags $r}  
 <!--{php $tags=tag("table=category&condition=moduleid=7 and parentid=".$r[parentid]."&showcat=1&order=catid asc&template=null");}-->  
              {loop $tags $t}  
             <li><span>|</span><a href="{$MOD[linkurl]}{$t[linkurl]}" target="_blank">{$t[catname]}</a></li>  
             {/loop}  
{/loop}  

最新加入的企業

<!--{php $tags=tag("moduleid=4&condition=groupid>5 and thumb<>‘‘&areaid=$cityid&pagesize=7&order=userid desc&template=null")}-->  

            {loop $tags $t}                                   
            <li><a href="{userurl($t[username])}" target="_blank" >{dsubstr($t[company], 28)}</a></li>  
            {/loop}   

自己測試學習時候搭建的一個圓柱模板平臺

destoon6.0標簽調用自己整理筆記