consult.html
3.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!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>