function showTSLocationsBlock($lTSTID, $groupsLoc, $tst)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    showGroupInfo($lTSTID, $tst->strTSName, $groupsLoc->lNumGroups, $groupsLoc->groupList, $groupsLoc->inGroups, $groupsLoc->lCntGroupMembership, CENUM_CONTEXT_STAFF_TS_LOCATIONS, 'timesheetRecView', null, true);
}
if ($lNumCProgs > 0) {
    showClientPrograms($lCID, $lNumCProgs, $cProgs);
}
// pre/post tests
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;
$lPID = $people->lKeyID;
//------------------------------------------------------------------------
// is this a temporary people record? If so, give the user some options
// Expiration dates are used for imported mailing lists
//------------------------------------------------------------------------
if (!is_null($people->dteExpire)) {
    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)
{
    //---------------------------------------------------------------------
    //
<?php

//   $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);
$bInactive = $sponRec->bInactive;
$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);
<?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('
示例#7
0
<?php

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)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------