/
item_contents.tpl.html
executable file
·49 lines (49 loc) · 1.64 KB
/
item_contents.tpl.html
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
{$h=$list.0}
{$count=1}
<div class="row">
<div class="span12">
<ul class="breadcrumb">
<li><i class="icon-home"></i><a href="{$config.home}">首页</a><span class="divider">/</span></li>
<li><a href="?cate_id={$h.cate_id}">{$h.category}</a> <span class="divider">/</span></li>
<li><a href="?cate_id={$h.iid}">{$h.item}</a> <span class="divider">/</span></li>
<li class="active">内容:</li>
</ul>
<table class="table table-bordered table-hover table-striped table-condensed">
<tr>
<th>序号</th>
<th>标题</th>
<th>时间</th>
<th>阅览次数</th>
<th>关注度</th>
<th>总评论</th>
<th>选项</th>
</tr>
{foreach $list as $l}
<tr>
<td><span class="badge badge-warning">{$count++}</span></td>
<td><a href="{$config.f7.s}?cid={$l.cid}">{$l.title}</a></td>
<td>{$l.pubdate|default:'N/A'|date_format:"%Y-%m-%d %H:%M"}</td>
<td>{$l.clicks}</td>
<td>{$l.guanzhu}</td>
<td>{$l.pinglun}</td>
<td><a class="talk" href="{$config.f7.s}?cid={$l.cid}#Tab3"><i class="icon-comment"></i>我要PK</a> <i class="icon-list"></i><a class="talk fancybox.ajax" href="{$config.ag}?jsc=1&cid={$l.cid}">预览</a> </td>
</tr>
{/foreach}
</table>
</div>
</div>
<script type="text/javascript">
$(function() {
$('a.talk').fancybox({
maxWidth : 1000,
maxHeight : 800,
fitToView : false,
width : '85%',
height : '85%',
autoSize : false,
closeClick : false,
openEffect : 'none',
closeEffect : 'none'
});
});
</script>