* adjust the display style of product's projects page and all products page.

This commit is contained in:
wangchunsheng
2012-12-15 01:14:50 +00:00
parent 1148b028c3
commit dc0a46bb3a
6 changed files with 19 additions and 15 deletions
+8 -2
View File
@@ -37,14 +37,18 @@ class product extends control
/**
* Index page, to browse.
*
*
* @param string $locate locate to browse page or not. If not, display all products.
* @param int $productID
* @access public
* @return void
*/
public function index($locate = 'yes')
public function index($locate = 'yes', $productID = 0)
{
if($locate == 'yes') $this->locate($this->createLink($this->moduleName, 'browse'));
$this->product->setMenu($this->products, $productID);
$this->app->loadLang('my');
$this->view->productStats = $this->product->getStats();
$this->display();
@@ -60,6 +64,8 @@ class product extends control
*/
public function project($status = 'all', $productID = 0)
{
$this->product->setMenu($this->products, $productID);
$this->app->loadLang('my');
$this->view->projectStats = $this->loadModel('project')->getProjectStats($status, $productID);