當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CProject::getOwners方法代碼示例

本文整理匯總了PHP中CProject::getOwners方法的典型用法代碼示例。如果您正苦於以下問題:PHP CProject::getOwners方法的具體用法?PHP CProject::getOwners怎麽用?PHP CProject::getOwners使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CProject的用法示例。


在下文中一共展示了CProject::getOwners方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: arraySelect

$currentTabName = $project_statuses[$currentTabId];
echo '<strong>' . $AppUI->_('Status') . ' (' . $AppUI->_('Records') . '): ' . $currentTabName . '<strong>';
?>
					</td>
	      </tr>
			</table>
		</td>
	</tr>
	<tr>
		<td style="border: outset #d1d1cd 1px;" colspan="3">  
			<table border="0" cellpadding="0" cellspacing="0" width="100%" class="prjprint">	
	            <tr>
	            	<td align="center"  colspan="2">
		            	<?php 
$txt = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . $AppUI->_('Search') . ':&nbsp;' . '<input type="text" disabled class="text" SIZE="20" name="projsearchtext" onChange="document.searchfilter.submit();" value=' . "'{$search_text}'" . 'title="' . $AppUI->_('Search in name and description fields') . '"/>&nbsp;';
$txt .= $AppUI->_('Type') . ':&nbsp;' . arraySelect($project_types, 'project_type', 'size="1" disabled class="text"', $project_type, false);
$user_list = array(0 => '(all)') + CProject::getOwners();
$txt .= $AppUI->_('Owner') . ':&nbsp;' . arraySelect($user_list, 'project_owner', 'size="1" disabled class="text"', $owner, false);
$txt .= $AppUI->_('Company') . ':&nbsp;' . str_replace('<select', '<select disabled="disabled"', $buffer);
echo $txt;
?>
  
	            	</td>
	      	</tr>
	      	</table>
		</td>
	</tr>
	<?php 
require W2P_BASE_DIR . '/modules/projects/vw_projects.php';
?>
</table>
開發者ID:viniciusbudines,項目名稱:sisnuss,代碼行數:31,代碼來源:printprojects.php

示例2: CCompany

    if ($AppUI->getState('ProjIdxOrderDir') == 'asc') {
        $orderdir = 'desc';
    } else {
        $orderdir = 'asc';
    }
}
$AppUI->setState('ProjIdxOrderDir', $orderdir);
// collect the full projects list data via function in projects.class.php
$search_text = $search_string;
// @note this is only because the projects_list_data function takes a bunch of globals
//$projects = projects_list_data();
$oCompany = new CCompany();
$allowedCompanies[-1] = $AppUI->_('all');
$allowedCompanies += $oCompany->getAllowedRecords($AppUI->user_id, 'company_id,company_name', 'company_name');
$project_types = array(-1 => '(' . $AppUI->_('all') . ')') + w2PgetSysVal('ProjectType');
$user_list = array(0 => '(' . $AppUI->_('all') . ')') + CProject::getOwners();
// setup the title block
$titleBlock = new w2p_Theme_TitleBlock('Projects', 'icon.png', $m);
//$titleBlock->addSearchCell($search_string);
$titleBlock->addFilterCell('Type', 'project_type', $project_types, $project_type);
$titleBlock->addFilterCell('Company', 'project_company', $allowedCompanies, $company_id);
$titleBlock->addFilterCell('Owner', 'project_owner', $user_list, $owner);
if ($canCreate) {
    $titleBlock->addButton('new project', '?m=projects&a=addedit');
}
$titleBlock->addCell('<span title="' . $AppUI->_('Projects') . '::' . $AppUI->_('Print projects list') . '.">' . '<a href="javascript: void(0);" onclick ="window.open(\'index.php?m=projects&a=printprojects&dialog=1&suppressHeaders=1&company_id=' . $company_id . '&project_type=' . $project_type . '&project_owner=' . $owner . '\', \'printprojects\',\'width=1200, height=600, menubar=1, scrollbars=1\')">
		<img src="' . w2PfindImage('printer.png') . '" />
		</a></span>');
$titleBlock->show();
$project_statuses = array();
$project_statuses = w2PgetSysVal('ProjectStatus');
開發者ID:victorrod,項目名稱:web2project,代碼行數:31,代碼來源:index.php

示例3: testGetOwners

 /**
  * Tests getting a list of project owners.
  */
 public function testGetOwners()
 {
     $owners = CProject::getOwners();
     $this->assertEquals(1, count($owners));
     $this->assertEquals('Admin Person', $owners[1]);
 }
開發者ID:eureka2,項目名稱:web2project,代碼行數:9,代碼來源:projects.test.php


注:本文中的CProject::getOwners方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。