返回列表2015.08.14

[模板] 关于我们内容页

关于我们内容页模板范例

{include file=$_Y['template']['header']}
<div class="w1188 mt25 cl">
    <div class="list_menu left">
        <div>{$cat['title']}<span>{$cat['subtitle']}</span></div>
        <ul>
        	{catbymod return="aboutcat" mod=$_Y['basescript']}
        	<li {if $article['aid'] == 'aboutus'} class="a"{/if}><a href="about.html">企业简介</a></li>
            {articlebysql mod=$_Y['basescript'] limit=10 return="aboutnav" catids=$aboutcat['catid']}
            {foreach $aboutnav as $v}
                <li{if $article['aid'] == $v['aid']} class="a"{/if}><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="cbox right">
        	<div class="title">
                <h3>{$article['title']}<span>{$cat['subtitle']}</span></h3>
                <p>
                    当前位置:<a href="/">网站首页</a> &gt;
                    {foreach $cat['path'] as $v}
                    <a href="{$_Y['basescript']}-list-{$v}-1.html">{$cats[$v]['title']}</a> &gt;
                    {/foreach}
                    <a href="{$_Y['basescript']}-list-{$cat['catid']}-1.html">{$cat['title']}</a>
                </p>
            </div>
            {nocache}
            {if $_Y['self']}
            <div>
                <a href="{$_Y['basescript']}.php?mod=add&aid={$article['aid']}">编辑</a>
                <span class="pipe">|</span>
                <a href="{$_Y['basescript']}.php?mod=delete&aid={$article['aid']}&formhash={$_Y['formhash']}" onClick="showAsk('您确定要删除这篇文章吗,删除后还可以在回收站里找回',this.href);return false">删除</a>
            </div>
            {/if}
            {/nocache}
            <div class="article">
            	{$article['content']}
            </div>
    </div>
</div>
{include file=$_Y['template']['footer']}


说明:

关于我们内容页和其他模块内容页的区别在于边栏导航的特殊性