久久久精品国产免费看片_九九热日本在线视频_国产精品黄色网站_亚洲人妻在线播放视频

返回列表2015.09.22

[模板范例] 文章內(nèi)容頁

文章內(nèi)容頁模板范例

{include file=$_Y['template']['header']}

<div class="cl">
	<!--關(guān)于/資訊/網(wǎng)絡(luò)-->
    <div class="left">
        <div>{$cat['title']}<span>{$cat['subtitle']}</span></div>
        <ul class="menu_name">
        	{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="right">
        <div class="page_box">
            <div class="page_title">
            	<h3>{$article['title']}</h3>
                <p class="info">
                    PostTime:{date style="Y-m-d h:m" time=$article['dateline']}
                    {if $article['author']}
                    <span>發(fā)布人:{$article['author']}</span>
                    {/if}
                    <span>閱讀:{$article['views']}</span>
                    {if $article['from']}
                    <span>來源:<a href="{$article['fromurl']}">{$article['from']}</a></span>
                    {/if}
                    {nocache}
                    {if $_Y['self']}
                    <span><a href="{$_Y['basescript']}.php?mod=add&aid={$article['aid']}">編輯</a></span>
                    <span> <a  href="{$_Y['basescript']}.php?mod=delete&aid={$article['aid']}&catid={$cat['catid']}&formhash={$_Y['formhash']}" onClick="showAsk('您確定要?jiǎng)h除這篇文章嗎,刪除后還可以在回收站里找回',this.href);return false">刪除</a></span>
                    {/if}
                    {/nocache}
                </p>
            </div>
            <div class="article">
            	{$article['content']}
            </div>
            <div>
            	{if $article['prev']}<p>上一篇:<a href="{$_Y['basescript']}-article-{$article['prev']['aid']}.html">{$article['prev']['title']}</a></p>{/if}
                {if $article['next']}<p>下一篇:<a href="{$_Y['basescript']}-article-{$article['next']['aid']}.html">{$article['next']['title']}</a></p>{/if}
            </div>
        </div>
        
    </div>
</div>

{include file=$_Y['template']['footer']}

說明:本例是演示變量的使用,代碼結(jié)構(gòu)沒有要求