echoT($clsRpt->writeCell('<i>No ' . $strPeopleType . ' match your search criteria</i>', '', '', $lNumCols));
 } else {
     foreach ($people as $person) {
         $lPID = $person->lKeyID;
         echoT($clsRpt->openRow(true));
         //--------------------
         // People ID
         //--------------------
         if ($showFields->bPeopleID) {
             echoT($clsRpt->writeCell(strLinkView_PeopleRecord($lPID, 'View people record', true, 'id="viewPRecI_' . $lPID . '"') . '&nbsp;' . str_pad($lPID, 5, '0', STR_PAD_LEFT), 60));
         }
         //--------------------
         // Remove Link
         //--------------------
         if ($showFields->bRemPeople) {
             echoT($clsRpt->writeCell(strLinkRem_People($lPID, 'Remove this person\'s record', true, true, '', $showFields->deleteReturnPath, $showFields->lReturnPathID)));
         }
         //--------------------
         // Import ID
         //--------------------
         if ($showFields->bImportID) {
             echoT($clsRpt->writeCell(htmlspecialchars($person->strImportRecID) . '&nbsp;'));
         }
         //--------------------
         // Name
         //--------------------
         if ($showFields->bName) {
             echoT($clsRpt->writeCell($person->strSafeNameLF . '<br>' . strLinkView_Household($person->lHouseholdID, $lPID, 'View household', true) . '<i>' . htmlspecialchars($person->strHouseholdName) . '</i><br>' . $person->strFlagImage, 240));
         }
         //--------------------
         // Address
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) {
                $strVol .= '<i>Inactive since ' . date($genumDateFormat, $vol->dteInactive);
            } else {
                $strVol .= 'Active ' . strLinkView_Volunteer($vol->lVolID, '(view)', false);
            }
        } else {
            $strVol = 'Not a volunteer&nbsp;&nbsp;&nbsp;&nbsp;' . strLinkAdd_VolFromPeople($lPID, 'Add as volunteer', true) . '&nbsp;' . strLinkAdd_VolFromPeople($lPID, 'Add as volunteer', false);
        }
    }
    if ($people->strPreferredName != $people->strFName && $people->strPreferredName != '') {
        $strPreferred = ' (' . $people->strPreferredName . ')';
    } else {
        $strPreferred = '';
    }
    $strName = strBuildName(false, $people->strTitle, $people->strPreferredName, $people->strFName, $people->strLName, $people->strMName);
    if ($gbVolLogin) {
        openBlock('Contact Info', strLinkEdit_PeopleContact('', 'Edit your contact information', true) . '&nbsp;' . strLinkEdit_PeopleContact('', 'Edit your contact information', false));
    } else {
        openBlock('Contact Info', strLinkEdit_PeopleContact($lPID, 'Edit this person\'s contact information', true) . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . strLinkRem_People($lPID, 'Remove this person\'s record', true, true));
    }
    echoT($clsRpt->openReport(600));
    //------------------------
    // People ID
    //------------------------
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('People ID:') . $clsRpt->writeCell(str_pad($lPID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow());
    //------------------------
    // Name
    //------------------------
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell(htmlspecialchars($strName)) . $clsRpt->closeRow());
    //------------------------
    // Household
    //------------------------
    if (!$gbVolLogin) {
        echoT($clsRpt->openRow() . $clsRpt->writeLabel('Household:') . $clsRpt->writeCell(strLinkView_Household($people->lHouseholdID, $lPID, 'View Household', true) . ' ' . htmlspecialchars($people->strHouseholdName)) . $clsRpt->closeRow());
    }
    //------------------------
    // Birthdate
    //------------------------
    if (is_null($people->dteMysqlBirthDate)) {
        $strBDay = '&nbsp;';
    } else {
        $strBDay = $clsDateTime->strPeopleAge(0, $people->dteMysqlBirthDate, $lAgeYears, $glclsDTDateFormat);
    }
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Birthdate:') . $clsRpt->writeCell($strBDay) . $clsRpt->closeRow());
    //------------------------
    // Gender
    //------------------------
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Gender:') . $clsRpt->writeCell($people->enumGender) . $clsRpt->closeRow());
    //------------------------
    // Address
    //------------------------
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Address:') . $clsRpt->writeCell($people->strAddress) . $clsRpt->closeRow());
    //------------------------
    // Phone
    //------------------------
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Phone:') . $clsRpt->writeCell(htmlspecialchars(strPhoneCell($people->strPhone, $people->strCell))) . $clsRpt->closeRow());
    //------------------------
    // Accounting Country
    //------------------------
    if (!$gbVolLogin) {
        echoT($clsRpt->openRow() . $clsRpt->writeLabel('Accounting Country:') . $clsRpt->writeCell($people->strFlagImage . ' ' . $people->strCurSymbol) . $clsRpt->closeRow());
    }
    //------------------------
    // Email
    //------------------------
    if ($gbVolLogin) {
        echoT($clsRpt->openRow() . $clsRpt->writeLabel('Email:') . $clsRpt->writeCell(htmlspecialchars($people->strEmail)) . $clsRpt->closeRow());
    } else {
        echoT($clsRpt->openRow() . $clsRpt->writeLabel('Email:') . $clsRpt->writeCell($people->strEmailFormatted) . $clsRpt->closeRow());
    }
    //------------------------
    // Volunteer Status
    //------------------------
    if (!$gbVolLogin) {
        echoT($clsRpt->openRow() . $clsRpt->writeLabel('Volunteer Status:') . $clsRpt->writeCell($strVol) . $clsRpt->closeRow());
    }
    //------------------
    // Attributed To
    //------------------
    if (!$gbVolLogin) {
        echoT($clsRpt->openRow() . $clsRpt->writeLabel('Attributed To:') . $clsRpt->writeCell(htmlspecialchars($people->strAttrib)) . $clsRpt->closeRow());
    }
    //------------------
    // Notes
    //------------------
    if (!$gbVolLogin) {
        echoT($clsRpt->openRow() . $clsRpt->writeLabel('Notes:') . $clsRpt->writeCell(nl2br(htmlspecialchars($people->strNotes))) . $clsRpt->closeRow());
    }
    echoT($clsRpt->closeReport());
    closeBlock();
}