global $sMode, $HTTP_POST_VARS, $_SERVER, $arOrgSelectData, $objOrg, $arOrgs, $PUBLIC_IMAGE_PATH, $PUBLIC_WEB_ROOT;
$color1 = "E7E7E7";
$color2 = "6DB478";
$color3 = "B4B4B4";
$color4 = "FFFFFF";
$color5 = "C3C3C3";
$color6 = "6A6A6A";
$color7 = "CECECE";
list ($arProjects, $arCourses, $arSE) = $objOrg->getCorporateInfoUpcomingProjects();
?>
| = ProjectView::vShowCorporateInfoNav($sMode, $HTTP_POST_VARS['ixEntity']) ?> |
| = vCCSelectList('ixEntity', $arOrgSelectData, $objOrg->getProperty('entityid'), 1, "if(this.options[this.selectedIndex].value == '" . $objOrg->getProperty('entityid') . "') { return false; } else { window.open('" . $_SERVER['PHP_SELF'] . "?_mode=" . $sMode . "&ixEntity=' + this.options[this.selectedIndex].value,'_top'); }", false); ?> |
$arTypesToProcess = array ('P','C','S');
foreach($arTypesToProcess as $sType) {
switch($sType) {
case 'P':
$arItems =& $arProjects;
$sDesc = 'projects';
break;
case 'C':
$arItems =& $arCourses;
$sDesc = 'courses';
break;
case 'S':
$arItems =& $arSE;
$sDesc = 'special events';
break;
}
?>
 |
 |
= ucfirst($sDesc) ?> - = $objOrg->getProperty('name') ?> |
 |
 |
if (!sizeof($arItems)) {
?>
 |
 |
 |
The organization is not participating in any = $sDesc ?>.
|
|
 |
|
 |
} else { //if there are projects
foreach($arItems as $arItem) {
if($arItem['ixspecialevent']) {
?>
 |
Event: = $arItem['eventname'] ?> |
 |
}
?>
 |
if($arItem['ixentitysponsor'] == $objOrg->getProperty('entityid')) {
$arLogo = cGetSponsorLogo($arItem['ixentitysponsor']);
if($arLogo[0]['ixblobgenerallogo_alternate']) {
?>
}
}
?>
= $arItem['stitle'] ?>
|
 |
|
//loop through occurrences
foreach($arItem['occurrences'] as $arOccurrence) {
$objOccurrence =& OccurrenceFactory::get($arOccurrence['ixoccurrence']);
?>
| = DisplayDateTime(SHORT_DATETIME,$arOccurrence['dtbegin']) ?> |
Total Attendees: |
= $objOccurrence->getVolunteerCount() ?> of = $objOccurrence->getProperty("attendancemaxonline") ?> |
if(sizeof($arOccurrence['teams'])) {
$arTeams = cGetTeamSkeleton($arOccurrence['teams'], array('sname1', 'ixentity'));
$arTeamsFormatted = array();
foreach($arTeams as $arTeam) {
$sLink = ($arItem['ixspecialevent'])?($PUBLIC_WEB_ROOT . 'MemberCenter/index.php?_mode=ManageTeamsSE&teamID=' . $arTeam['ixentity'] . '&eventID=' . $arItem['ixspecialevent'] . '&occurID=' . $arOccurrence['ixoccurrence'] . '&sReturn=' . urlencode($PUBLIC_WEB_ROOT . 'corporateEvents/corporateInfo.php?_mode=upcomingProjects&ixEntity=' . $objOrg->getProperty('entityid'))):($PUBLIC_WEB_ROOT . 'MemberCenter/index.php?_mode=ManageTeams&occurID=' . $arOccurrence['ixoccurrence'] . '&entityID=' . $arTeam['ixentity'] . '&sReturn=' . urlencode($PUBLIC_WEB_ROOT . 'corporateEvents/corporateInfo.php?_mode=upcomingProjects&ixEntity=' . $objOrg->getProperty('entityid')));
$arTeamsFormatted[] = '' . $arTeam['sname1'] . '';
}
$sTeams = implode(', ', $arTeamsFormatted);
?>
|
Participating Teams: |
= $sTeams ?> |
}
}
?>
|
}
}
?>
|
}
?>