public function strAuctionHTMLSummary() { //----------------------------------------------------------------------- // assumes user has called $cAuction->loadAuctionByAucID($lAuctionID); //----------------------------------------------------------------------- global $genumDateFormat; $params = array('enumStyle' => 'terse'); $clsRpt = new generic_rpt($params); $clsRpt->setEntrySummary(); $auction =& $this->auctions[0]; $lAuctionID = $auction->lKeyID; $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Auction Name:') . $clsRpt->writeCell($auction->strSafeName) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Auction ID:') . $clsRpt->writeCell(str_pad($lAuctionID, 5, '0', STR_PAD_LEFT) . ' ' . strLinkView_AuctionRecord($lAuctionID, 'View auction record', true)) . $clsRpt->closeRow() . $clsRpt->writeLabel('Overview:') . $clsRpt->writeCell(strLinkView_AuctionOverview($lAuctionID, 'Overview', true)) . $clsRpt->closeRow() . $clsRpt->writeLabel('Packages:') . $clsRpt->writeCell(strLinkView_AuctionPackages($lAuctionID, 'View packages for this auction', true)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Date:') . $clsRpt->writeCell(date($genumDateFormat, $auction->dteAuction)) . $clsRpt->closeRow() . $clsRpt->closeReport('<br>'); return $strOut; }
Net </td> </tr>'); foreach ($auctions as $auction) { $lAuctionID = $auction->lKeyID; echoT(' <tr class="makeStripe"> <td class="enpRpt" style="text-align:left;">' . str_pad($lAuctionID, 5, '0', STR_PAD_LEFT) . ' ' . strLinkView_AuctionRecord($lAuctionID, 'View Auction Record', true) . '<br>' . strLinkView_AuctionOverview($lAuctionID, 'Overview', false) . ' </td> <td class="enpRpt">' . strLinkRem_Auction($lAuctionID, 'Remove Auction', true, true) . ' </td> <td class="enpRpt">' . htmlspecialchars($auction->strAuctionName) . ' </td> <td class="enpRpt" style="text-align:center;">' . date($genumDateFormat, $auction->dteAuction) . ' </td> <td class="enpRpt" style="text-align:center; padding-left: 7pt;">' . number_format($auction->lNumPackages) . ' ' . strLinkView_AuctionPackages($lAuctionID, 'View auction packages', true) . ' ' . strLinkAdd_AuctionPackage($lAuctionID, 'Add new package', true) . ' </td> <td class="enpRpt" style="text-align:center;">' . number_format($auction->lNumItems) . ' </td> <td class="enpRpt" style="text-align:right;">' . number_format($auction->curEstValue, 2) . ' ' . $auction->strFlagImg . ' </td> <td class="enpRpt" style="text-align:right;">' . number_format($auction->curOOP, 2) . ' </td> <td class="enpRpt" style="text-align:right;">' . number_format($auction->curIncome, 2) . ' </td> <td class="enpRpt" style="text-align:right;">' . number_format($auction->curIncome - $auction->curOOP, 2) . ' </td> </tr>'); } echoT(' </table><br><br>');