[模板] 关于我们列表页模板范例
{include file=$_Y['template']['header']} <div class="w1188 mt25 cl"> <div> {catbymod return="aboutcat" mod=$_Y['basescript']} <div>{$aboutcat['title']}<span>{$aboutcat['subtitle']}</span></div> <ul> <li><a href="about.html">企业简介</a></li> {articlebysql mod=$_Y['basescript'] limit=10 return="aboutnav" catids=$aboutcat['catid']} {foreach $aboutnav as $v} <li><a href="{$_Y['basescript']}-article-{$v['aid']}.html">{$v['title']}</a></li> {/foreach} {if $cat['sub']} {foreach $cat['sub'] as $v} <li {if $cat['catid'] == $v}class="a"{/if}><a href="{$_Y['basescript']}-list-{$v}-1.html">{$cats[$v]['title']}</a></li> {/foreach} {elseif $cat['other']} {foreach $cat['other'] as $v} <li {if $cat['catid'] == $v}class="a"{/if}><a href="{$_Y['basescript']}-list-{$v}-1.html">{$cats[$v]['title']}</a></li> {/foreach} {/if} </ul> </div> <div class="page_box"> <div class="title cl"> <h3>{$cat['title']}<span>{$cat['subtitle']}</span></h3> <p> 当前位置:<a href="/">网站首页</a> > {foreach $cat['path'] as $v} <a href="{$_Y['basescript']}-list-{$v}-1.html">{$cats[$v]['title']}</a> > {/foreach} <a href="{$_Y['basescript']}-list-{$cat['catid']}-1.html">{$cat['title']}</a> </p> </div> {nocache} {if $_Y['self']} <a href="{$_Y['basescript']}.php?mod=add&catid={$cat['catid']}" class="pub">添加内容</a> {/if} {/nocache} <ul> {foreach $list as $v} <li> <a href="{$_Y['basescript']}-article-{$v['aid']}.html" target="_blank" class="cover"> <img src="{$v['pic']}@220w_120h_1e_1c.{$v['picsuffix']}" width="246" height="136" alt="{$v['title']}" /> </a> <div> <a href="{$_Y['basescript']}-article-{$v['aid']}.html" target="_blank" class="title">{$v['title']}</a> <p>{$v['summary']}</p> </div> </li> {/foreach} </ul> {$pagehtml} </div> </div> {include file=$_Y['template']['footer']}
说明:关于我们列表页和其他模块列表页的却别在于边栏导航