Permalink
Browse files

update

  • Loading branch information...
1 parent c371ef8 commit a85cd90d611cf17caefeba84e47864c1e70f1a8e @williamjxj committed Dec 7, 2012
Showing with 4 additions and 5 deletions.
  1. +2 −2 f1Class.php
  2. +1 −1 templates/1/category_contents.tpl.html
  3. +1 −2 templates/1/item_contents.tpl.html
View
@@ -207,7 +207,7 @@ function get_item_contents($iid)
from contents where language='" . $this -> lang . "' and iid=$iid order by iid desc limit 0, ".ROWS_PER_PAGE;
if(!isset($_SESSION[PACKAGE]['cate_item']) || empty($_SESSION[PACKAGE]['cate_item']['total_pages'])) {
- $total = $this->get_category_count($cate_id);
+ $total = $this->get_item_count($iid);
$total_pages = ceil($total / ROWS_PER_PAGE);
$_SESSION[PACKAGE]['cate_item']['total'] = $total;
$_SESSION[PACKAGE]['cate_item']['total_pages'] = $total_pages;
@@ -218,7 +218,7 @@ function get_item_contents($iid)
else {
$this->__p($_SESSION[PACKAGE]);
exit;
- }
+ }
$res = $this -> mdb2 -> queryAll($sql, '', MDB2_FETCHMODE_ASSOC);
if (PEAR::isError($res))
@@ -4,7 +4,7 @@
{else}
{$page=1}
{/if}
-{$no=1+({$page}-1)*10}
+{$no=1+({$page}-1)*30}
<div class="row">
<div class="span12">
<ul class="breadcrumb">
@@ -4,7 +4,7 @@
{else}
{$page=1}
{/if}
-{$no=1+({$page}-1)*10}
+{$no=1+({$page}-1)*30}
<div class="row">
<div class="span12">
<ul class="breadcrumb">
@@ -14,7 +14,6 @@
<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;,

0 comments on commit a85cd90

Please sign in to comment.