本文整理汇总了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() {