* rember the recPerPage.

This commit is contained in:
wangchunsheng
2009-10-30 01:52:16 +00:00
parent 05d32b1ea3
commit d9e01b3d9e
2 changed files with 4 additions and 2 deletions

View File

@@ -78,6 +78,8 @@ class product extends control
$this->assign('moduleTree', $this->tree->getTreeMenu($productID, $viewType = 'product', $rooteModuleID = 0, array('treeModel', 'createStoryLink')));
$this->assign('parentModules', $this->tree->getParents($moduleID));
$this->assign('pager', $pager->get());
$this->assign('recTotal', $pager->recTotal);
$this->assign('recPerPage', $pager->recPerPage);
$this->assign('users', $users);
$this->assign('orderBy', $orderBy);

View File

@@ -97,7 +97,7 @@ function selectProduct(productID)
<thead>
<tr>
<?php
$app->global->vars = "productID=$productID&moduleID=$moduleID";
$app->global->vars = "productID=$productID&moduleID=$moduleID&orderBy=%s&recTotal=$recTotal&recPerPage=$recPerPage";
$app->global->orderBy = $orderBy;
function printOrderLink($fieldName)
{
@@ -111,7 +111,7 @@ function selectProduct(productID)
{
$orderBy = $fieldName . '|' . 'asc';
}
$link = helper::createLink('product', 'browse', $app->global->vars ."&orderBy=$orderBy");
$link = helper::createLink('product', 'browse', sprintf($app->global->vars, $orderBy));
echo html::a($link, $lang->story->$fieldName);
}
?>