Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
williamjxj committed Dec 7, 2012
1 parent d39b832 commit 0ccf3c7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
12 changes: 9 additions & 3 deletions templates/1/category_contents.tpl.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{$h=$list.0}
{$count=1}
{if $smarty.get.page}
{$page=$smarty.get.page}
{else}
{$page=1}
{/if}
{$no=1+({$page}-1)*10}
<div class="row">
<div class="span12">
<ul class="breadcrumb">
Expand All @@ -11,7 +16,8 @@
<div class="alert">
<button type="button" class="close" data-dismiss="alert">×</button>
位置:&lt;<strong>{$smarty.session.fmxw.search.key}</strong>&gt;,
页数:&lt;<strong>{$smarty.session.fmxw.cate_item.page}/{$smarty.session.fmxw.cate_item.total_pages}</strong>&gt;</div>
页数:&lt;<strong>{$smarty.session.fmxw.cate_item.page}/{$smarty.session.fmxw.cate_item.total_pages}</strong>&gt;
</div>
{include file="{$config.t6}pagination.tpl.html"}
<div style="clear:both;"></div>
<table class="table table-bordered table-hover table-striped table-condensed">
Expand All @@ -29,7 +35,7 @@
</tr>
{foreach $list as $l}
<tr>
<td><span class="badge badge-warning">{$count++}</span></td>
<td><span class="badge badge-warning">{$no++}</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"}</td>
<td><a href="{$config.f1.s}?iid={$l.iid}">{$l.item}</a></td>
Expand Down
10 changes: 8 additions & 2 deletions templates/1/item_contents.tpl.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{$h=$list.0}
{$count=1}
{if $smarty.get.page}
{$page=$smarty.get.page}
{else}
{$page=1}
{/if}
{$no=1+({$page}-1)*10}
<div class="row">
<div class="span12">
<ul class="breadcrumb">
Expand All @@ -9,6 +14,7 @@
<li class="active">内容:</li>
<li style="float:right"> {include file="{$config.shared}bshare.tpl.html"} </li>
</ul>
{$no=1+({$page}-1)*30}
<div class="alert">
<button type="button" class="close" data-dismiss="alert">×</button>
位置:&lt;<strong>{$smarty.session.fmxw.search.key}</strong>&gt;,
Expand All @@ -29,7 +35,7 @@
</tr>
{foreach $list as $l}
<tr>
<td><span class="badge badge-warning">{$count++}</span></td>
<td><span class="badge badge-warning">{$no++}</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"}</td>
<td>{$l.clicks}</td>
Expand Down

0 comments on commit 0ccf3c7

Please sign in to comment.