* tweak project list for lite vision, task #47144.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* The prjbrowse view file of project module for lite vision of ZenTaoPMS.
|
||||
*
|
||||
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
|
||||
* @license ZPL (http://zpl.pub/page/zplv12.html)
|
||||
* @author Wenrui LI <liwenrui@easycorp.ltd>
|
||||
* @package project
|
||||
* @version $Id: prjbrowse.html.php 4769 2013-05-05 07:24:21Z wwccss $
|
||||
* @link http://www.zentao.net
|
||||
*/
|
||||
?>
|
||||
<?php include $this->app->getModuleRoot() . '/common/view/header.html.php';?>
|
||||
<?php include $this->app->getModuleRoot() . '/common/view/datatable.fix.html.php';?>
|
||||
<?php
|
||||
js::set('orderBy', $orderBy);
|
||||
js::set('programID', $programID);
|
||||
js::set('browseType', $browseType);
|
||||
js::set('param', $param);
|
||||
js::set('orderBy', $orderBy);
|
||||
js::set('recTotal', $recTotal);
|
||||
js::set('recPerPage', $recPerPage);
|
||||
js::set('pageID', $pageID);
|
||||
?>
|
||||
<?php include $this->app->getModuleRoot() . '/project/view/browsebylist.html.php';?>
|
||||
<?php include $this->app->getModuleRoot() . '/common/view/footer.html.php';?>
|
||||
@@ -1,4 +1,8 @@
|
||||
<script>
|
||||
$('#sidebarHeader').remove();
|
||||
$('#sidebar').remove();
|
||||
$('.panel-actions').remove();
|
||||
$('.icon-project-manageProducts.icon-link').parent().remove();
|
||||
$(function()
|
||||
{
|
||||
$('.create-project-btn').attr('href', createLink('project', 'create'));
|
||||
|
||||
@@ -448,6 +448,8 @@ class programModel extends model
|
||||
->leftJoin(TABLE_TEAM)->alias('t2')->on('t1.id=t2.root')
|
||||
->leftJoin(TABLE_STAKEHOLDER)->alias('t3')->on('t1.id=t3.objectID')
|
||||
->where('t1.deleted')->eq('0')
|
||||
->beginIF($this->config->vision == 'lite')->andWhere('t1.vision')->eq('lite')->fi()
|
||||
->beginIF($this->config->vision == 'common')->andWhere('t1.vision')->eq('common')->fi()
|
||||
->beginIF($this->config->systemMode == 'new')->andWhere('t1.type')->eq('project')->fi()
|
||||
->beginIF($this->config->systemMode == 'new' and ($this->cookie->involved or $involved))->andWhere('t2.type')->eq('project')->fi()
|
||||
->beginIF($browseType != 'all' and $browseType != 'undone')->andWhere('t1.status')->eq($browseType)->fi()
|
||||
|
||||
Reference in New Issue
Block a user