[ 5.7仿站常用代码 ]

5.6仿站常用代码

(1).嵌套模板

<include file="Public:common" />
<include file="Public:header" />
<include file="Public:footer" />

(2)路径代码

__PUBLIC__/picture/

__PUBLIC__/js/

__PUBLIC__/images/

__PUBLIC__/css/

(3)二级导航

<volist name='navlist' id='v'>
<a href="<{$v.url}>" ><{$v.column_name}> </a>
</volist>

(4)当前栏目

<{$vcolumn}>

(5)数据分页

<div class="green-black"><{$page}></div>

(6)文字广告

<adstextlist id='17'><{$adstext_content}></adstextlist>

(7)图片广告

<adlist navid='2' order='advert_sort' limit='0,5'>
<a href="<{$advert_url}>">
<img src="<{$advert_image}>" alt="<{$advert_name}>">
</a>
</adlist>