global $sMode, $HTTP_POST_VARS, $_SERVER, $arOrgSelectData, $objOrg, $PUBLIC_IMAGE_PATH, $arGifts;
$color1 = "E7E7E7";
$color2 = "6DB478";
$color3 = "B4B4B4";
$color4 = "FFFFFF";
$color5 = "C3C3C3";
$color6 = "6A6A6A";
$color7 = "CECECE";
// Get the gift totals
$arTotals = Array();
$arTotals['CORPORATE'] = 0;
$arTotals['INKIND'] = 0;
$arTotals['MATCHING'] = 0;
$arTotals['TOTAL'] = 0;
foreach($arGifts as $arGift) {
$arTotals[$arGift['sgifttype']] += $arGift['iamount'];
$arTotals['TOTAL'] += $arGift['iamount'];
}
?>
| = 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); ?> |
 |
 |
Summary |
 |
 |
|
| Corporate Gifts: |
$= number_format($arTotals['CORPORATE'],2) ?> |
| In-Kind Gifts: |
$= number_format($arTotals['INKIND'],2) ?> |
| Matching Gifts: |
$= number_format($arTotals['MATCHING'],2) ?> |
| Total: |
$= number_format($arTotals['TOTAL'],2) ?> |
|
 |
 |
Corporate Gifts |
 |
 |
|
| Date |
Gift Amount |
$bDisplayedItem = false;
foreach($arGifts as $arGift) {
if($arGift['sgifttype'] != 'CORPORATE') continue;
$bDisplayedItem = true;
?>
| = $arGift['dtreceived'] ?> |
$= number_format($arGift['iamount'],2) ?> |
}
if(!$bDisplayedItem) {
?>
| The organization has not made any gifts of this type. |
}
?>
|
 |
 |
In-Kind Gifts |
 |
 |
|
| Date |
Estimated Market Value |
Gift Description |
$bDisplayedItem = false;
foreach($arGifts as $arGift) {
if($arGift['sgifttype'] != 'INKIND') continue;
$bDisplayedItem = true;
?>
| = $arGift['dtreceived'] ?> |
$= number_format($arGift['iamount'],2) ?> |
= $arGift['tinkinddesc'] ?> |
}
if(!$bDisplayedItem) {
?>
| The organization has not made any gifts of this type. |
}
?>
|
 |
 |
Matching Gifts |
 |
 |
|
| Date |
Matching Amount |
Individual(s) |
$bDisplayedItem = false;
foreach($arGifts as $arGift) {
if($arGift['sgifttype'] != 'MATCHING') continue;
$bDisplayedItem = true;
// Get the individuals and entities associated with this record (with type 'M')
$sEntities = $objOrg->getMatchingGiftEntities($arGift['ixgift']);
?>
| = $arGift['dtreceived'] ?> |
$= number_format($arGift['iamount'],2) ?> |
= $sEntities ?> |
}
if(!$bDisplayedItem) {
?>
| The organization has not made any gifts of this type. |
}
?>
|