[模板] 關于我們列表頁模板范例
{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']}
說明:關于我們列表頁和其他模塊列表頁的卻別在于邊欄導航