function showAuctionInfo(&$clsRpt, &$auction, $lAuctionID)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    global $genumDateFormat;
    $attributes = new stdClass();
    $attributes->lUnderscoreWidth = 600;
    openBlock('Silent Auction Overview: <b>' . htmlspecialchars($auction->strAuctionName) . '</b>', strLinkView_AuctionRecord($lAuctionID, 'View auction record', true) . '&nbsp;&nbsp;' . strLinkEdit_Auction($lAuctionID, 'Edit auction information', true) . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . strLinkRem_Auction($lAuctionID, 'Remove this auction record', true, true), $attributes);
    echoT($clsRpt->openReport());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Auction ID:') . $clsRpt->writeCell(str_pad($lAuctionID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell(htmlspecialchars($auction->strAuctionName)) . $clsRpt->closeRow());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Date of Auction:') . $clsRpt->writeCell(date($genumDateFormat, $auction->dteAuction)) . $clsRpt->closeRow());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Contact:') . $clsRpt->writeCell(htmlspecialchars($auction->strContact)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Email:') . $clsRpt->writeCell(htmlspecialchars($auction->strEmail)) . $clsRpt->closeRow());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Phone:') . $clsRpt->writeCell(htmlspecialchars($auction->strPhone)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Location:') . $clsRpt->writeCell(htmlspecialchars($auction->strLocation)) . $clsRpt->closeRow());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Account/Campaign:') . $clsRpt->writeCell(htmlspecialchars($auction->strAccount . ' / ' . $auction->strCampaign)) . $clsRpt->closeRow());
    // Accounting Country
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Accounting Country:') . $clsRpt->writeCell($auction->strFlagImg . ' ' . $auction->strCurrencySymbol) . $clsRpt->closeRow());
    // description
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Description:') . $clsRpt->writeCell(nl2br(htmlspecialchars($auction->strDescription))) . $clsRpt->closeRow());
    // default bidsheet
    if (is_null($auction->lBidsheetID)) {
        echoT($clsRpt->openRow() . $clsRpt->writeLabel('Default Bid Sheet:') . $clsRpt->writeCell('<i>Not set!</i>&nbsp;&nbsp; Click ' . strLinkView_BidSheets('here', false) . ' to work with bid sheet templates.') . $clsRpt->closeRow());
    } else {
        echoT($clsRpt->openRow() . $clsRpt->writeLabel('Default Bid Sheet:') . $clsRpt->writeCell(htmlspecialchars($auction->strSheetName) . ' ' . strLinkView_BidSheetRecord($auction->lDefaultBidSheet, 'View bid sheet', true) . ' (based on template "' . $auction->tInfo->title . '")') . $clsRpt->closeRow());
    }
    echoT($clsRpt->closeReport());
    closeBlock();
}
function showPackageInfo(&$clsRpt, &$package, &$auction, $lPackageID, $lAuctionID)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    global $genumDateFormat;
    openBlock('Silent Auction Package', strLinkEdit_AuctionPackage($lAuctionID, $lPackageID, 'Edit package information', true) . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . strLinkRem_AuctionPackage($lAuctionID, $lPackageID, 'Remove this package record', true, true));
    echoT($clsRpt->openReport());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Package ID:') . $clsRpt->writeCell(str_pad($lPackageID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow());
    // Package Name
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell($package->strPackageSafeName) . $clsRpt->closeRow());
    // Min bid amount
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Min. Bid Amount:') . $clsRpt->writeCell($auction->strCurrencySymbol . ' ' . number_format($package->curMinBidAmnt, 2)) . $clsRpt->closeRow());
    // Min bid increment
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Min. Bid Increment:') . $clsRpt->writeCell($auction->strCurrencySymbol . ' ' . number_format($package->curMinBidInc, 2)) . $clsRpt->closeRow());
    // Buy it now amount
    if (is_null($package->curBuyItNowAmnt)) {
        $strBuyItNow = '<i>Not set for this package</i>';
    } else {
        $strBuyItNow = $auction->strCurrencySymbol . ' ' . number_format($package->curBuyItNowAmnt, 2);
    }
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('"Buy it now" amount:') . $clsRpt->writeCell($strBuyItNow) . $clsRpt->closeRow());
    // Reserve
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Reserve:') . $clsRpt->writeCell($auction->strCurrencySymbol . ' ' . number_format($package->curReserveAmnt, 2)) . $clsRpt->closeRow());
    // default bidsheet
    if (is_null($package->lBidSheetID) || is_null($package->tInfo) || is_null($package->lTemplateID)) {
        echoT($clsRpt->openRow() . $clsRpt->writeLabel('Bid Sheet:') . $clsRpt->writeCell('<i>Not set!</i>') . $clsRpt->closeRow());
    } else {
        echoT($clsRpt->openRow() . $clsRpt->writeLabel('Bid Sheet:') . $clsRpt->writeCell(htmlspecialchars($package->strSheetName) . '&nbsp;' . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . strLinkView_BidSheetRecord($package->lBidSheetID, 'View bid sheet template', true) . '&nbsp;(based on template "' . $package->tInfo->title . '")') . $clsRpt->closeRow());
        echoT($clsRpt->openRow() . $clsRpt->writeLabel('Bid Sheet PDF:') . $clsRpt->writeCell(strLink_PDF_PackageBidSheet($package->lBidSheetID, $lPackageID, 'Create bid sheet for this package', true, ' target="_blank" ') . '&nbsp;' . strLink_PDF_PackageBidSheet($package->lBidSheetID, $lPackageID, 'Create bid sheet for this package', false, ' target="_blank" ')) . $clsRpt->closeRow());
    }
    // # items
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('# Auction Items:') . $clsRpt->writeCell(number_format($package->lNumItems) . '&nbsp;' . strLinkView_AuctionItemsViaPID($lPackageID, 'View package items', true) . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . strLinkAdd_AuctionItem($lPackageID, 'Add new item', true)) . $clsRpt->closeRow());
    // Est. Value of Items
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Est. Value:') . $clsRpt->writeCell($auction->strCurrencySymbol . ' ' . number_format($package->curEstValue, 2)) . $clsRpt->closeRow());
    // Out of pocket Expenses
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Out-of-Pocket:') . $clsRpt->writeCell($auction->strCurrencySymbol . ' ' . number_format($package->curOutOfPocket, 2)) . $clsRpt->closeRow());
    // Public Notes
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Public Notes:') . $clsRpt->writeCell(nl2br(htmlspecialchars($package->strDescription))) . $clsRpt->closeRow());
    // Private Notes
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Private Notes:') . $clsRpt->writeCell(nl2br(htmlspecialchars($package->strInternalNotes))) . $clsRpt->closeRow());
    echoT($clsRpt->closeReport());
    closeBlock();
}
                  Auction
               </td>
               <td class="enpRptLabel">
                  Name
               </td>
               <td class="enpRptLabel">
                  Description
               </td>
               <td class="enpRptLabel">
                  Base Template
               </td>
            </tr>');
    foreach ($bidSheets as $bs) {
        $lBSID = $bs->lKeyID;
        echoT('
            <tr class="makeStripe">
               <td class="enpRpt" style="text-align:center;">' . str_pad($lBSID, 5, '0', STR_PAD_LEFT) . '&nbsp;' . strLinkView_BidSheetRecord($lBSID, 'View Bid Sheet', true) . '
               </td>
               <td class="enpRpt" style="width: 180pt;">' . htmlspecialchars($bs->strAuctionName) . '&nbsp;(' . date($genumDateFormat, $bs->dteAuction) . ')
               </td>
               <td class="enpRpt" style="width: 180pt;">' . htmlspecialchars($bs->strSheetName) . '
               </td>
               <td class="enpRpt" style="width: 200pt;">' . nl2br(htmlspecialchars($bs->strDescription)) . '
               </td>
               <td class="enpRpt" >' . $bs->tInfo->title . '
               </td>
            </tr>');
    }
    echoT('
         </table><br><br>');
}