* rember the recPerPage.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user