<?php

//   $clsDateTime = new dl_date_time;
$params = array('enumStyle' => 'terse', 'clsRpt');
$clsRpt = new generic_rpt($params);
$clsRpt->strWidthLabel = '130pt';
showIItemInfo($clsRpt, $lIItemID, $lICatID, $strBreadCrumb, $item);
showIItemActions($clsRpt, $lIItemID, $item);
showIItemCICOInfo($clsRpt, $lIItemID, $item);
showIItemHistory($clsRpt, $lIItemID, $item);
showImageInfo(CENUM_CONTEXT_INVITEM, $lIItemID, 'Inventory Item Images', $images, $lNumImages, $lNumImagesTot);
showDocumentInfo(CENUM_CONTEXT_INVITEM, $lIItemID, 'Inventory Item Documents', $docs, $lNumDocs, $lNumDocsTot);
showENPIItemStats($clsRpt, $item);
function showIItemActions($clsRpt, $lIItemID, $item)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    global $genumDateFormat;
    $attributes = new stdClass();
    $attributes->lTableWidth = 1400;
    $attributes->divID = 'actDiv';
    $attributes->divImageID = 'actDivImg';
    openBlock('Actions' . "\n", '', $attributes);
    echoT(strLinkXfer_IItemCat($lIItemID, 'Transfer to different category', true) . '&nbsp;' . strLinkXfer_IItemCat($lIItemID, 'Transfer to different category', false) . '<br><br>');
    $properties = $item->statProps;
    if ($properties->bLinkCO) {
        echoT(strLinkCO_IItem($lIItemID, 'Check-out / loan item', true) . '&nbsp;' . strLinkCO_IItem($lIItemID, 'Check-out / loan item', false) . '<br><br>');
    }
    if ($properties->bLinkCI) {
        echoT(strLinkCI_IItem($lIItemID, 'Check-in / return item', true) . '&nbsp;' . strLinkCI_IItem($lIItemID, 'Check-in / return item', false) . '<br><br>');
<?php

global $genumDateFormat;
$params = array('enumStyle' => 'terse', 'clsRpt');
$clsRpt = new generic_rpt($params);
$clsRpt->strWidthLabel = '120pt';
$clsRpt->bValueEscapeHTML = false;
showItemInfo($clsRpt, $item, $auction, $lPackageID, $lItemID);
showImageInfo(CENUM_CONTEXT_AUCTIONITEM, $lItemID, ' Images', $images, $lNumImages, $lNumImagesTot);
showDocumentInfo(CENUM_CONTEXT_AUCTIONITEM, $lItemID, ' Documents', $docs, $lNumDocs, $lNumDocsTot);
showItemENPStats($clsRpt, $item);
function showItemInfo(&$clsRpt, &$item, &$auction, $lPackageID, $lItemID)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    global $genumDateFormat;
    openBlock('Silent Auction Item', strLinkEdit_AuctionItem($lPackageID, $lItemID, 'Edit item information', true) . '&nbsp;&nbsp;' . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . strLinkRem_AuctionItem($lPackageID, $lItemID, 'Remove this item record', true, true));
    echoT($clsRpt->openReport());
    // Item ID
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Item ID:') . $clsRpt->writeCell(str_pad($lItemID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow());
    // Item Name
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell($item->strSafeItemName) . $clsRpt->closeRow());
    // Date Obtained
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Date Obtained:') . $clsRpt->writeCell(date($genumDateFormat, $item->dteObtained)) . $clsRpt->closeRow());
    // Item Donor
    if ($item->itemDonor_bBiz) {
        $strNameLink = ' <i>(business)</i> ' . strLinkView_BizRecord($item->lItemDonorID, 'View business record', true);
    } else {
        $strNameLink = ' ' . strLinkView_PeopleRecord($item->lItemDonorID, 'View people record', true);
    }
if ($lTotTests > 0) {
    showPrePostTests($lCID, $ppcats);
}
closeClientServices();
// personalized tables
showCustomClientTableInfo($strPT, $lNumPTablesAvail);
// sponsorship
if (bAllowAccess('showSponsors')) {
    showClientSponsorInfo($clsRpt, $lCID, $clsClient);
}
showClientStatusInfo($clsRpt, $lCID, $clsClient, $clientStatus, $lNumClientStatus);
showGroupInfo($lCID, $client->strSafeName, $lNumGroups, $groupList, $inGroups, $lCntGroupMembership, CENUM_CONTEXT_CLIENT, 'cRecView');
if ($bShowEMR) {
    showClientMedicalInfo($clsRpt, $lCID, $clsClient, $emr);
}
showImageInfo(CENUM_CONTEXT_CLIENT, $lCID, $client->cv_strVocClientS . ' Images', $images, $lNumImages, $lNumImagesTot);
showDocumentInfo(CENUM_CONTEXT_CLIENT, $lCID, $client->cv_strVocClientS . ' Documents', $docs, $lNumDocs, $lNumDocsTot);
//   showReminderBlock        ($clsRem, $lCID, CENUM_CONTEXT_CLIENT);
showClientXfers($clsRpt, $lCID, $clientXfers, $lNumClientXfers);
showClientENPStats($clsRpt, $client);
function openClientServices()
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    $attributes = new stdClass();
    $attributes->lTableWidth = 1200;
    $attributes->divID = 'clientServices';
    $attributes->divImageID = 'clientServicesDivImg';
    $attributes->bStartOpen = true;
    openBlock('Client Services', '', $attributes);
<?php

$clsDateTime = new dl_date_time();
$params = array('enumStyle' => 'terse', 'clsRpt');
$clsRpt = new generic_rpt($params);
$clsRpt->strWidthLabel = '170pt';
showClientLocInfo($clsRpt, $lLocID, $cLoc, $clsDateTime, $sponProgs, $lNumSponPrograms);
showCustomLocationTableInfo($strPT, $lNumPTablesAvail);
showImageInfo(CENUM_CONTEXT_LOCATION, $lLocID, 'Client Location Images', $images, $lNumImages, $lNumImagesTot);
showDocumentInfo(CENUM_CONTEXT_LOCATION, $lLocID, 'Client Location Documents', $docs, $lNumDocs, $lNumDocsTot);
showLocationENPStats($clsRpt, $cLoc);
function showClientLocInfo(&$clsRpt, $lLocID, &$cLoc, &$clsDateTime, &$sponProgs, $lNumSponPrograms)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    openBlock('Location Information', strLinkEdit_ClientLocation($lLocID, 'Edit Location', true) . '&nbsp;' . strLinkEdit_ClientLocation($lLocID, 'Edit Location', false));
    echoT($clsRpt->openReport() . $clsRpt->openRow() . $clsRpt->writeLabel('Location ID:') . $clsRpt->writeCell(str_pad($lLocID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Location:') . $clsRpt->writeCell(htmlspecialchars($cLoc->strLocation)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Address:') . $clsRpt->writeCell($cLoc->strAddress) . $clsRpt->closeRow());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Show medical rec. features?:') . $clsRpt->writeCell($cLoc->bEnableEMR ? 'Yes' : 'No', '500pt;') . $clsRpt->closeRow());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Description:') . $clsRpt->writeCell(nl2br(htmlspecialchars($cLoc->strDescription)), '500pt;') . $clsRpt->closeRow());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Sponsorship Programs:'));
    $strOut = '';
    if ($lNumSponPrograms == 0) {
        $strOut = '<i>Not participating in any sponsorship programs</i>';
    } else {
        $strOut = 'Participating in: </ul>';
        foreach ($sponProgs as $prog) {
            $strOut .= '<li>' . htmlspecialchars($prog->strProg) . '</li>' . "\n";
        }
        $strOut .= '</ul>';
    }
<?php

global $genumDateFormat;
$params = array('enumStyle' => 'terse', 'clsRpt');
$clsRpt = new generic_rpt($params);
$clsRpt->strWidthLabel = '120pt';
$clsRpt->bValueEscapeHTML = false;
$lPackageID = $package->lKeyID;
//   $lAuctionID = $auction->lKeyID;
showPackageInfo($clsRpt, $package, $auction, $lPackageID, $lAuctionID);
showBidAssignment($clsRpt, $package, $auction, $pbInfo, $lPackageID);
showItemInfo($clsRpt, $lNumItems, $items, $lPackageID);
showImageInfo(CENUM_CONTEXT_AUCTIONPACKAGE, $lPackageID, ' Images', $images, $lNumImages, $lNumImagesTot);
showDocumentInfo(CENUM_CONTEXT_AUCTIONPACKAGE, $lPackageID, ' Documents', $docs, $lNumDocs, $lNumDocsTot);
showPackageENPStats($clsRpt, $package);
function showItemInfo(&$clsRpt, $lNumItems, &$items, $lPackageID)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    $attributes = new stdClass();
    $attributes->divID = 'aucENPItems';
    $attributes->divImageID = 'aucENPItemsDivImg';
    openBlock('Items', strLinkView_AuctionItemsViaPID($lPackageID, 'View package items', true) . '&nbsp;' . strLinkView_AuctionItemsViaPID($lPackageID, 'View package items', false) . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . strLinkAdd_AuctionItem($lPackageID, 'Add new item', true) . '&nbsp;' . strLinkAdd_AuctionItem($lPackageID, 'Add new item', false), $attributes);
    if ($lNumItems == 0) {
        echoT('<i>There are no items assigned to this package.</i>');
    } else {
        echoT('
            <table class="enpRpt">
               <tr>
                  <td class="enpRptLabel">
    displayExpirationInfo($lPID, $people);
}
$lIndentWidth = 20;
showPeopleInfo($clsRpt, $lPID, $people, $vol, $clsDateTime);
if (!$gbVolLogin) {
    if (bAllowAccess('showSponsors')) {
        showSponsorshipInfo($clsRpt, $sponInfo, $lNumSponsors, $lPID, $people);
    }
    showHouseholdInfo($people, $lPID, $arrHouseholds);
    showGroupInfo($lPID, $people->strSafeName, $lNumGroups, $groupList, $inGroups, $lCntGroupMembership, CENUM_CONTEXT_PEOPLE, 'pRecView');
    showRelationships($lPID, $people, $arrRelAB, $arrRelBA, $lNumRelAB, $lNumRelBA);
    showCustomPeopleTableInfo($strPT, $lNumPTablesAvail);
    if (bAllowAccess('showFinancials')) {
        showGifts($lPID, false, $strCumGiftsNonSoftMon, $strCumGiftsNonSoftInKind, $strCumGiftsSoft, $strCumSpon, $lNumPledges, $lTotHard, $lTotSoft, $lTotInKind, $lNumSponPay);
    }
    showImageInfo(CENUM_CONTEXT_PEOPLE, $lPID, ' Images', $images, $lNumImages, $lNumImagesTot);
    showDocumentInfo(CENUM_CONTEXT_PEOPLE, $lPID, ' Documents', $docs, $lNumDocs, $lNumDocsTot);
    showPeopleBizContacts($lPID, $people, $lNumContacts, $contacts, $clsRpt);
    //      showReminderBlock        ($clsRem, $lPID, CENUM_CONTEXT_PEOPLE);
    showPeopleENPStats($clsRpt, $people);
}
function showPeopleInfo(&$clsRpt, $lPID, &$people, $vol, &$clsDateTime)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    global $gbDateFormatUS, $glclsDTDateFormat, $genumDateFormat, $gbVolLogin;
    if (!$gbVolLogin) {
        if ($vol->bVol) {
            $strVol = strLinkView_Volunteer($vol->lVolID, 'View volunteer record', true) . ' ';
            if ($vol->bInactive) {
//   $clsDateTime = new dl_date_time;
$params = array('enumStyle' => 'terse', 'clsRpt');
$clsRpt = new generic_rpt($params);
$clsRpt->strWidthLabel = '90pt';
$clsRpt->bValueEscapeHTML = false;
$lBID = $biz->lKeyID;
$lIndentWidth = 20;
showBizInfo($clsRpt, $lBID, $biz);
showSponsorshipInfo($clsRpt, $sponInfo, $lNumSponsors, $lBID, $biz);
showBizContactInfo($clsRpt, $lBID, $biz, $lNumContacts, $contacts);
showGroupInfo($lBID, $biz->strSafeName, $lNumGroups, $groupList, $inGroups, $lCntGroupMembership, CENUM_CONTEXT_BIZ, 'bRecView');
showCustomBizTableInfo($strPT, $lNumPTablesAvail);
if (bAllowAccess('showFinancials')) {
    showGifts($lBID, true, $strCumGiftsNonSoftMon, $strCumGiftsNonSoftInKind, $strCumGiftsSoft, $strCumSpon, $lNumPledges, $lTotHard, $lTotSoft, $lTotInKind, $lNumSponPay);
}
showImageInfo(CENUM_CONTEXT_BIZ, $lBID, ' Images', $images, $lNumImages, $lNumImagesTot);
//   showReminderBlock          ($clsRem, $lBID, CENUM_CONTEXT_BIZ);
showDocumentInfo(CENUM_CONTEXT_BIZ, $lBID, ' Documents', $docs, $lNumDocs, $lNumDocsTot);
showBizENPStats($clsRpt, $biz);
function showBizENPStats($clsRpt, $biz)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    $attributes = new stdClass();
    $attributes->lTableWidth = 900;
    $attributes->divID = 'bizENPStats';
    $attributes->divImageID = 'bizENPStatsDivImg';
    openBlock('Record Information', '', $attributes);
    echoT($clsRpt->showRecordStats($biz->dteOrigin, $biz->strStaffCFName . ' ' . $biz->strStaffCLName, $biz->dteLastUpdate, $biz->strStaffLFName . ' ' . $biz->strStaffLLName, $clsRpt->strWidthLabel));
    $attributes = new stdClass();
<?php

$params = array('enumStyle' => 'terse', 'clsRpt');
$clsRpt = new generic_rpt($params);
$clsRpt->strWidthLabel = '120pt';
showProvider($clsRpt, $provider, $lProviderID);
showGrants($clsRpt, $provider, $lProviderID);
showImageInfo(CENUM_CONTEXT_GRANTPROVIDER, $lProviderID, 'Provider Images', $images, $lNumImages, $lNumImagesTot);
showDocumentInfo(CENUM_CONTEXT_GRANTPROVIDER, $lProviderID, 'Provider Documents', $docs, $lNumDocs, $lNumDocsTot);
function showProvider($clsRpt, $provider, $lProviderID)
{
    //--------------------------------------------------
    // provider section
    //--------------------------------------------------
    openBlock('Funding Provider', strLinkEdit_GrantProvider($lProviderID, 'Edit Provider Record', true) . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . strLinkRem_Provider($lProviderID, 'Remove Provider', true, true));
    echoT($clsRpt->openReport() . $clsRpt->openRow() . $clsRpt->writeLabel('Funder/Provider ID:') . $clsRpt->writeCell(str_pad($lProviderID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell(htmlspecialchars($provider->strGrantOrg)) . $clsRpt->closeRow());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Address:') . $clsRpt->writeCell($provider->strAddress) . $clsRpt->closeRow());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Phone:') . $clsRpt->writeCell(htmlspecialchars($provider->strPhone)) . $clsRpt->closeRow());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Cell:') . $clsRpt->writeCell(htmlspecialchars($provider->strCell)) . $clsRpt->closeRow());
    if ($provider->strEmail == '') {
        $strOut = '&nbsp;';
    } else {
        $strOut = mailto($provider->strEmail, htmlspecialchars($provider->strEmail));
    }
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Email:') . $clsRpt->writeCell($strOut) . $clsRpt->closeRow());
    if ($provider->strWebSite == '') {
        $strOut = '&nbsp;';
    } else {
        if (!strtoupper(substr($provider->strWebSite, 0, 4)) == 'HTTP') {
            $provider->strWebSite = 'http://' . $provider->strWebSite;
        }
$clsDateTime = new dl_date_time();
$params = array('enumStyle' => 'terse', 'clsRpt');
$clsRpt = new generic_rpt($params);
$clsRpt->strWidthLabel = $strWidthLabel;
//'120pt';
showSponInfo($clsRpt, $sponRec, $lSponID, $bInactive);
showSponHonInfo($clsRpt, $lSponID, $sponRec, $bInactive);
if (bAllowAccess('showClients')) {
    showClientInfo($clsRpt, $lClientID, $clsClient, $clsDateTime, is_null($lClientID), $lSponID, true, 'Sponsored ');
}
if (bAllowAccess('showSponsorFinancials')) {
    showSponFinancialInfo($clsRpt, $lSponID, $sponRec, $financialSummary);
}
showGroupInfo($lSponID, $sponRec->strSponSafeNameFL, $lNumGroups, $groupList, $inGroups, $lCntGroupMembership, CENUM_CONTEXT_SPONSORSHIP, 'spRecView');
showCustomSponsorTableInfo($strPT, $lNumPTablesAvail);
showImageInfo(CENUM_CONTEXT_SPONSORSHIP, $lSponID, 'Sponsorship Images', $images, $lNumImages, $lNumImagesTot);
showDocumentInfo(CENUM_CONTEXT_SPONSORSHIP, $lSponID, 'Sponsorship Documents', $docs, $lNumDocs, $lNumDocsTot);
//   showReminderBlock         ($clsRem, $lSponID, CENUM_CONTEXT_SPONSORSHIP);
showSponsorENPStats($clsRpt, $sponRec);
function showSponsorENPStats($clsRpt, $sponRec)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    $attributes = new stdClass();
    $attributes->lTableWidth = 900;
    $attributes->divID = 'sponENP';
    $attributes->divImageID = 'sponENPDivImg';
    openBlock('Record Information', '', $attributes);
    echoT($clsRpt->showRecordStats($sponRec->dteOrigin, $sponRec->ucstrFName . ' ' . $sponRec->ucstrLName, $sponRec->dteLastUpdate, $sponRec->ulstrFName . ' ' . $sponRec->ulstrLName, $clsRpt->strWidthLabel));
    $attributes = new stdClass();
<?php

global $glChapterID;
$params = array('enumStyle' => 'terse');
$clsRpt = new generic_rpt($params);
$strLabWidth = 170;
chapterInfo($clsRpt, $strLabWidth, $chapterRec);
showVocabInfo($clsRpt, $strLabWidth, $chapterRec);
showImageInfo(CENUM_CONTEXT_ORGANIZATION, $glChapterID, ' Images', $images, $lNumImages, $lNumImagesTot);
showDocumentInfo(CENUM_CONTEXT_ORGANIZATION, $glChapterID, ' Documents', $docs, $lNumDocs, $lNumDocsTot);
showUserENPStats($clsRpt, $strLabWidth, $chapterRec);
function chapterInfo($clsRpt, $strLabWidth, $chapterRec)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    global $gclsChapterVoc;
    $bUSDateFormat = $chapterRec->bUS_DateFormat;
    if ($bUSDateFormat) {
        $strDateFormat = 'US (m/d/Y)';
    } else {
        $strDateFormat = 'Europe/India (d/m/Y)';
    }
    openBlock('Your Organization', strLinkEdit_Chapter($chapterRec->lKeyID, 'Edit organization record', true));
    echoT($clsRpt->openReport() . $clsRpt->openRow() . $clsRpt->writeLabel('Name:', $strLabWidth) . $clsRpt->writeCell(htmlspecialchars($chapterRec->strChapterName)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Banner Tag:', $strLabWidth) . $clsRpt->writeCell(htmlspecialchars($chapterRec->strBannerTagLine)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Address:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strAddress) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Phone:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strPhone) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Fax:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strFax) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Email:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strEmail) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Web Site:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strWebSite) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Default Area Code:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strDefAreaCode) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Default ' . $gclsChapterVoc->vocState . ':', $strLabWidth) . $clsRpt->writeCell($chapterRec->strDefState) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Default Country:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strDefCountry) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Default Date Format:', $strLabWidth) . $clsRpt->writeCell($strDateFormat) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Time Zone:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strTimeZone, '', '', 1, 1, ' id="orgTZ" ') . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Default Accounting Country:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strCountryName . ' ' . $chapterRec->strFlagImg) . $clsRpt->closeRow() . $clsRpt->closeReport());
    $attributes = new stdClass();
    $attributes->strExtraText = '<br>';
    closeBlock($attributes);
}
function showVocabInfo($clsRpt, $strLabWidth, $chapterRec)
{
$clsRpt = new generic_rpt($params);
$clsRpt->strWidthLabel = '120pt';
$attributes = new stdClass();
$attributes->lTableWidth = 1200;
$attributes->lUnderscoreWidth = 400;
$attributes->divID = 'grantDiv';
$attributes->divImageID = 'grantDivImg';
$attributes->bStartOpen = false;
$attributes->bAddTopBreak = true;
showGrant($clsRpt, $grant, $lGrantID);
showProjects($clsRpt, $grant, $lGrantID, $attributes);
showSchedule($clsRpt, $grant, $lGrantID, $attributes);
showAwards($clsRpt, $grant, $lGrantID, $attributes);
showResources($clsRpt, $grant, $lGrantID, $attributes);
showReporting($clsRpt, $grant, $lGrantID, $attributes);
showImageInfo(CENUM_CONTEXT_GRANTS, $lGrantID, 'Grant Images', $images, $lNumImages, $lNumImagesTot);
showDocumentInfo(CENUM_CONTEXT_GRANTS, $lGrantID, 'Grant Documents', $docs, $lNumDocs, $lNumDocsTot);
function showGrant($clsRpt, $grant, $lGrantID)
{
    //--------------------------------------------------
    //
    //--------------------------------------------------
    openBlock('Grant', strLinkEdit_Grant($lGrantID, 'Edit Grant Record', true) . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . strLinkRem_Grant($lGrantID, 'Remove Grant Record', true, true));
    echoT($clsRpt->openReport() . $clsRpt->openRow() . $clsRpt->writeLabel('Grant ID:') . $clsRpt->writeCell(str_pad($lGrantID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Grant Name:') . $clsRpt->writeCell(htmlspecialchars($grant->strGrantName)) . $clsRpt->closeRow());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Accounting Country:') . $clsRpt->writeCell($grant->strFlagImg) . $clsRpt->closeRow());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Notes:') . $clsRpt->writeCell(nl2br(htmlspecialchars($grant->strNotes))) . $clsRpt->closeRow());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Attributed to:') . $clsRpt->writeCell(htmlspecialchars($grant->strAttributedTo)) . $clsRpt->closeRow());
    echoT($clsRpt->closeReport());
    closeBlock();
}
function showProjects($clsRpt, $grant, $lGrantID, $attributes)
<?php

$params = array('enumStyle' => 'terse');
$clsRpt = new generic_rpt($params);
$clsRpt->strWidthLabel = '110pt';
showVolStatus($clsRpt, $volRec, $lVolID);
showVolSchedule($clsRpt, $volRec, $lVolID, $lPastShifts, $lCurrentFutureShifts);
showVolHours($clsRpt, $volRec, $dTotHours, $dTotUnHours, $lVolID);
showVolSkills($clsRpt, $volRec, $lVolID, $lNumSingleVolSkills, $singleVolSkills);
if (bAllowAccess('showClients')) {
    showVolClientAssoc($clsRpt, $volRec, $lVolID);
}
showGroupInfo($lVolID, $volRec->strSafeName, $lNumGroups, $groupList, $inGroups, $lCntGroupMembership, CENUM_CONTEXT_VOLUNTEER, 'vRecView');
showCustomVolTableInfo($strPT, $lNumPTablesAvail);
showImageInfo(CENUM_CONTEXT_VOLUNTEER, $lVolID, 'Volunteer Images', $images, $lNumImages, $lNumImagesTot);
showDocumentInfo(CENUM_CONTEXT_VOLUNTEER, $lVolID, 'Volunteer Documents', $docs, $lNumDocs, $lNumDocsTot);
showVolENPStats($clsRpt, $volRec);
function showVolClientAssoc($clsRpt, $volRec, $lVolID)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    $attributes = new stdClass();
    $attributes->lTableWidth = 900;
    $attributes->divID = 'volClient';
    $attributes->divImageID = 'volClientImg';
    openBlock('Volunteer-Client Associations  <span style="font-size: 9pt;">(' . $volRec->lNumVolClientAssoc . ')</span>', strLinkAdd_VolClientAssoc($lVolID, 'Add new volunteer/client association', true, 'id="vcaImg"') . '&nbsp;' . strLinkAdd_VolClientAssoc($lVolID, 'Add new association', false, 'id="vcaImgLnk"'), $attributes);
    if ($volRec->lNumVolClientAssoc == 0) {
        echoT('<i>There are no volunteer/client associations for this volunteer.</i>');
    } else {
        echoT('
示例#13
0
global $gbVolLogin;
if ($bAsAdmin) {
    echoT(strLinkAdd_User('Add new user', true) . ' ' . strLinkAdd_User('Add new user', false) . '<br>');
}
$lLabelWidth = 140;
showUserRecBlock($clsRpt, $lUserID, $userRec, $lLabelWidth, $bAsAdmin);
if (!$gbVolLogin) {
    if (!$userRec->us_bVolAccount) {
        showGroupInfo($lUserID, $userRec->strSafeName, $lNumGroupsStaff, $groupListStaff, $inGroupsStaff, $lCntGroupMembershipStaff, CENUM_CONTEXT_STAFF, 'staffRecView', null);
    }
    if ($userRec->bStandardUser) {
        showGroupInfo($lUserID, $userRec->strSafeName, $lNumGroups, $groupList, $inGroups, $lCntGroupMembership, CENUM_CONTEXT_USER, 'uRecView', CENUM_CONTEXT_USER);
    }
}
if ($bAsAdmin) {
    showImageInfo(CENUM_CONTEXT_STAFF, $lUserID, 'Staff Images', $images, $lNumImages, $lNumImagesTot);
    showDocumentInfo(CENUM_CONTEXT_STAFF, $lUserID, 'Staff Documents', $docs, $lNumDocs, $lNumDocsTot);
    // personalized tables
    showCustomUserTableInfo($strPT, $lNumPTablesAvail);
    //   showReminderBlock     ($clsRem, $lUserID, CENUM_CONTEXT_USER, $lUserID);
}
if (!$gbVolLogin) {
    showUserENPStats($clsRpt, $userRec, $lLabelWidth);
}
function showCustomUserTableInfo($strPT, $lNumPTablesAvail)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    $attributes = new stdClass();
    $attributes->lTableWidth = 900;