{{extends file="../main.htm"}}
{{block name="title"}}{{$article.TITLE}}_{{$_site.name}}_37游戏{{/block}}
{{block name="keywords"}}{{/block}}
{{block name="description"}}{{$article.CONTENT|truncate:100:"..."}}{{/block}}
{{block name="config_page"}}content{{/block}}
{{block name="content"}}
<div class="body">
    <div class="wrap cls">
        <div class="header">
            {{include file="../header.htm"}}
        </div>
        <div class="side">
            {{include file="../side.htm"}}
            {{include file="../side2.htm"}}
            {{include file="../service.htm"}}
        </div>
        <!--main-->
        <div class="main">
            <div class="blink cont-text">
                <div class="cont-nav">
                    <div class="cont-tt">
                        <h1>{{article_cate_name cate_id=$article.CATE_ID}}</h1>
                        <p class="cont-tt-sub"><a href="{{$smarty.env.cur_site_data.site_url}}">{{$smarty.env.cur_site_data.name}}</a> &gt; <a href="{{article_cate_link cate_id=$article.CATE_ID}}">{{article_cate_name cate_id=$article.CATE_ID}}</a> &gt; {{$article.TITLE}}</p>
                    </div>
                    <ul class="cont-nume" id="cont-nume">
                        <li><a href="http://www.37.com/potian/xinwen/">新闻</a></li>
                        <li><a href="http://www.37.com/potian/huodong/">活动</a></li>
                        <li><a href="http://www.37.com/potian/meiti/">媒体</a></li>
                        <li><a href="http://www.37.com/potian/gonglue/">攻略</a></li>
                    </ul>
                </div>
                <div class="cont-text-box">
                    <h1 class="cont-text-tt">{{$article.TITLE}}</h1>
                    <p class="cont-text-tip">作者： {{$article.DERIVATION}}&nbsp;&nbsp;&nbsp;时间：{{$article.PUB_TIME}}</p>
                    <div class="article-content">
                        {{$article.CONTENT}}
                        <div class="article-content-pager">
                            {{$pager}}
                        </div>
                        {{data_article_prenext article=$article name='list'}}
                        {{data_article_prenext article=$article name='list'}}
                        <p align="left"><br><br>
                            {{if $list.pre.TITLE}}
                            上一篇：<a href="{{$list.pre.URL}}" title="{{$list.pre.TITLE}}">{{$list.pre.TITLE}}</a><br/>
                            {{/if}}
                            {{if $list.next.TITLE}}
                            下一篇：<a href="{{$list.next.URL}}" title="{{$list.next.TITLE}}">{{$list.next.TITLE}}</a> </p>
                        {{/if}}
                    </div>
                    <dl class="article-relation">
                        <dt>相关文章</dt>
                        {{data_article_relation article=$article name='list' limit=6}}
                        {{foreach $list as $item}}
                        <dd><span class="time">[{{$item.PUB_TIME|date_format:"m/d"}}]</span>&bull;&nbsp;<a href="{{$item.URL}}" title="{{$item.TITLE}}" target="_blank">{{$item.TITLE}}</a></dd>
                        {{/foreach}}
                    </dl>
                </div>
            </div>
        </div>
        <!-- end wrap -->
    </div>
    <!-- end container -->
</div>

{{/block}}
{{block name="add_footer_content" append}}
<script type="text/javascript">
    var type = '{{article_cate_name cate_id=$article.CATE_ID}}',
        cate = {
            '新闻公告': 0,
            '活动资讯': 1,
            '媒体消息': 2,
            '游戏攻略': 3
        }
    if (type in cate) {
        $('#cont-nume li').eq(cate[type]).addClass('on').siblings().removeClass('on');
    }
</script>
{{/block}}
