Files
EasySoft-ZenTaoPMS/module/doc/control.php
2010-07-29 05:46:04 +00:00

50 lines
1.7 KiB
PHP

<?php
/**
* The control file of doc module of ZenTaoMS.
*
* 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-2010 青岛易软天创网络科技有限公司(www.cnezsoft.com)
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
* @package doc
* @version $Id: control.php 933 2010-07-06 06:53:40Z wwccss $
* @link http://www.zentaoms.com
*/
class doc extends control
{
public function __construct()
{
parent::__construct();
$this->libs = $this->doc->getLibs();
}
public function index()
{
$this->locate(inlink('browse'));
}
/* 浏览某一个产品。*/
public function browse($libID = 0, $browseType = 'byModule', $param = 0, $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1)
{
if($libID == 0) $libID = key($this->libs);
$this->doc->setMenu($this->libs, $libID);
$this->display();
}
/* 维护文档库模块。*/
public function manageModule($libID)
{
}
}