Files
EasySoft-ZenTaoPMS/module/index/control.php
2009-10-25 12:27:50 +00:00

49 lines
1.6 KiB
PHP

<?php
/**
* The control file of index module of ZenTaoMS.
*
* When requests the root of a website, this index module will be called.
*
* ZenTaoMS is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* ZenTaoMS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with ZenTaoMS. If not, see <http://www.gnu.org/licenses/>.
*
* @copyright Copyright: 2009 Chunsheng Wang
* @author Chunsheng Wang <wwccss@263.net>
* @package ZenTaoMS
* @version $Id: control.php 1446 2009-10-22 08:29:25Z wwccss $
* @link http://www.zentao.cn
*/
class index extends control
{
/* ¹¹Ô캯Êý¡£*/
public function __construct()
{
parent::__construct();
$this->loadModel('project');
$this->loadModel('product');
}
public function index()
{
$header['title'] = $this->lang->index->common;
$projects = $this->project->getList();
$products = array_values($this->product->getList());
$this->assign('header', $header);
$this->assign('projects', $projects);
$this->assign('products', $products);
$this->display();
}
}