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


PHP CProject::getMembers方法代碼示例

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


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

示例1: setColor

$projectPriority = dPgetSysVal('ProjectPriority');
// format dates
$df = $AppUI->getPref('SHDATEFORMAT');
$start_date = new CDate($row->project_start_date);
$end_date = intval($row->project_end_date) ? new CDate($row->project_end_date) : null;
$actual_end_date = intval($criticalTasks[0]['task_end_date']) ? new CDate($criticalTasks[0]['task_end_date']) : null;
$style = $actual_end_date > $end_date && !empty($end_date) ? 'style="color:red; font-weight:bold; width: 70px"' : '';
// setup the title block
$titleBlock = new CTitleBlock($project_id > 0 ? 'Edit Project' : 'New Project');
$titleBlock->addButton('projects list', 'index.php?m=projects');
$titleBlock->addCell();
$titleBlock->show();
//Build display list for departments
$company_id = $row->project_company;
// Build Project member list
$project_contacts = $project_id > 0 ? $row->getMembers() : array($AppUI->user_id => $AppUI->user_first_name . ' ' . $AppUI->user_last_name);
$project_status = $project_id > 0 ? $row->project_status : $_REQUEST['project_status'];
?>
<script language="javascript">
Calendar.enabled = true;

function setColor(color) {
	var f = document.editFrm;
	if (color) {
		f.project_color_identifier.value = color;
	}
	$('test').style.background = '#' + f.project_color_identifier.value;
	//fix for mozilla: does this work with ie? opera ok.
}

function setShort() {
開發者ID:n2i,項目名稱:xvnkb,代碼行數:31,代碼來源:addedit.php


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