consult.html 3.0 KB
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>资讯</title>
    <link href="__TMPL__Public/assets/css/reset.css" rel="stylesheet" type="text/css" />
    <link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" />
    <link href="__TMPL__Public/assets/css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<tc_include file="Public:header" />
<tc_include file="Public:nav"/>
<php>
    $home_slides=sp_getslide("consult_banner");

    $home_slides=empty($home_slides)?$default_home_slides:$home_slides[0];
</php>
<div class="inbanner" style="background-image: url({:sp_get_asset_upload_path($home_slides['slide_pic'])});">
    <!--分类-->
    <div class="catebox">
        <div class="in-catebox">
            <div class="in-cate-tit">资讯</div>
            <ul class="in-cate-nav">
                <li><a href="{:U('news')}">新闻</a></li>
                <li class="active"><a href="{:U('consult')}">资讯</a></li>
                <li><a href="{:U('policy')}">政策</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="page-container">
    <div class="main">
        <div class="news-list">
            <ul class="clearfix">
                <volist name="posts" id="vo">
                    <php>$smeta=json_decode($vo['smeta'],true);</php>
                    <li class="news-sort">
                        <div class="news-pic">
                            <a href="{:U('detail',array('id'=>$vo['id'],'sort'=>'consult'))}" class="news-in-pic scale">
                                <img src="{:sp_get_asset_upload_path($smeta['thumb'])}"/>
                            </a>
                        </div>
                        <div class="news-intro">
                            <div class="news-hd">
                                <div class="news-title"><a href="{:U('detail',array('id'=>$vo['id'],'sort'=>'consult'))}">{$vo.post_title|msubstr=###,0,26}</a></div>
                                <div class="news-tr">
                                    <span class="date">发布时间:{:date('Y-m-d', strtotime($vo['post_date']))}</span>
                                    <a href="{:U('detail',array('id'=>$vo['id'],'sort'=>'consult'))}" class="look-more">阅读全文</a>
                                </div>
                            </div>
                            <div class="news-desc"><a href="{:U('detail',array('id'=>$vo['id'],'sort'=>'consult'))}">{$vo.post_excerpt}</a></div>
                        </div>
                    </li>
                </volist>
            </ul>
        </div>
        <!--pages-->
        <div class="page-wrap">
            <div class="page-box">
                {$page}
            </div>
        </div>
    </div>
</div>
<tc_include file="Public:footer"/>
<!-- js -->
<script src="__TMPL__Public/assets/js/jquery.min.js"></script>
<script src="__TMPL__Public/assets/js/common.js"></script>
<tc_include file="Public:script"/>
</body>
</html>