global $HTTP_POST_VARS, $objStateManager, $_submode, $ADMIN_IMAGE_PATH, $PUBLIC_IMAGE_PATH, $objPage, $objTblEntity, $arOrg, $ixEntityOrg, $bCorporation, $arTeams;
global $sMode, $HTTP_POST_VARS, $_SERVER, $arOrgSelectData;
$color1 = "E7E7E7";
$color2 = "6DB478";
$color3 = "B4B4B4";
$color4 = "FFFFFF";
$color5 = "C3C3C3";
$color6 = "6A6A6A";
$color7 = "CECECE";
?>
| = ProjectView::vShowCorporateInfoNav($sMode, $HTTP_POST_VARS['ixEntity']) ?> |
| = vCCSelectList('ixEntity', $arOrgSelectData, $HTTP_POST_VARS['ixEntity'], 1, "if(this.options[this.selectedIndex].value == '" . $HTTP_POST_VARS['ixEntity'] . "') { return false; } else { window.open('" . $_SERVER['PHP_SELF'] . "?_mode=" . $sMode . "&ixEntity=' + this.options[this.selectedIndex].value,'_top'); }", false); ?> |
 |
 |
Project History - = $arOrg['sname1'] ?> |
 |
 |
|
 |
|
= ($bCorporation)?'Individual Volunteering':'Total'; ?> |
= ($bCorporation)?'Affiliated Teams':''; ?> |
= ($bCorporation)?'Sponsored Projects':''; ?> |
 |
 |
// this page will display three sections: projects, courses and special events
// we are storing the entire array of activities and events in the session by entity id
$arProjectTypes = array('P','C','S');
$arAllProjectHours = cGetOrgProjectHistoryHours($ixEntityOrg, $bCorporation, $arTeams);
$selfReportedHours = cGetOrgSelfReportedHours($ixEntityOrg);
$arTotals = array();
foreach($arProjectTypes as $sProjectType)
{
$arProjectHours = $arAllProjectHours[$sProjectType];
switch($sProjectType) {
case 'P':
$sProjectTypeLink = ($arProjectHours[0] || $arProjectHours[1] || $arProjectHours[2])?('' . 'Project' . ''):'Project';
break;
case 'C':
$sProjectTypeLink = ($arProjectHours[0] || $arProjectHours[1] || $arProjectHours[2])?('' . 'Course' . ''):'Course';
break;
case 'S':
$sProjectTypeLink = ($arProjectHours[0] || $arProjectHours[1] || $arProjectHours[2])?('' . 'Special Event' . ''):'Special Event';
break;
}
$arTotals[0] += $arProjectHours[0];
$arTotals[1] += $arProjectHours[1];
$arTotals[2] += $arProjectHours[2];
?>
 |
= $sProjectTypeLink ?> hours: |
= number_format($arProjectHours[0],2) ?> |
= ($bCorporation)?number_format($arProjectHours[1],2):'' ?> |
= ($bCorporation)?number_format($arProjectHours[2],2):'' ?> |
 |
}
if ($bCorporation):
$arTotals[0] += $selfReportedHours;
?>
 |
Self-reported hours: |
= number_format($selfReportedHours, 2) ?> |
- |
- |
 |
 |
Total Volunteer Hours: |
= number_format($arTotals[0],2) ?> |
= ($bCorporation)?number_format($arTotals[1],2):'' ?> |
= ($bCorporation)?number_format($arTotals[2],2):'' ?> |
 |
 |
 |
 |
| For detailed project, course or special event participation, please select one of the links above. |
|