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) . ' ' . strLinkEdit_Auction($lAuctionID, 'Edit auction information', true) . ' ' . 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> 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(); }
//------------------------------------------ $clsForm->strExtraFieldText = ' (for gift records from winning bids)' . form_error('ddlAccount'); $clsForm->strExtraSelect = ' onChange="showCampaigns(this.value, \'ddlCamps\')" '; $clsForm->strStyleExtraValue = 'vertical-align: middle; padding-top: 4pt;'; echoT($clsForm->strGenericDDLEntry('Account', 'ddlAccount', true, $formData->strDDLAccts)); $clsForm->strExtraFieldText = ' (for gift records from winning bids)' . form_error('ddlCamps'); $clsForm->strExtraSelect = ' ID="ddlCamps" '; $clsForm->strStyleExtraValue = 'vertical-align: middle;'; echoT($clsForm->strGenericDDLEntry('Campaign', 'ddlCamps', true, $formData->strDDLCamps)); $clsForm->strExtraSelect = ''; //------------------------------- // Default Bid Sheet //------------------------------- if ($lNumBidSheets <= 0) { $clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 2pt; '; if ($bNew) { echoT($clsForm->strLabelRow('Default Bid Sheet', '<i>You will be able to create bid sheets after creating your new auction.</i>', 1)); } else { echoT($clsForm->strLabelRow('Default Bid Sheet', '<i>Not set!</i> Click ' . strLinkView_BidSheets('here', false) . ' to work with bid sheet templates.</i>', 1)); } } else { echoT($clsForm->strLabelRow('Default Bid Sheet', $ddlDefBidSheet, 1)); } //------------------------------------------ // Save / Close form //------------------------------------------ echoT($clsForm->strSubmitEntry('Save', 2, 'cmdSubmit', 'width: 90pt;')); echoT(form_close()); echoT('<script type="text/javascript">frmEditAuction.addEditEntry.focus();</script>'); echoT('</table>'); closeBlock();
<?php global $genumDateFormat; echoT(strLinkAdd_Auction('Add new auction', true) . ' ' . strLinkAdd_Auction('Add new auction', false) . ' ' . strLinkView_BidSheets('View bid sheet templates', true) . ' ' . strLinkView_BidSheets('View bid sheet templates', false) . '<br><br>'); if ($lNumAuctions == 0) { echoT('<i>There are currently no auctions in your database.<br><br></i>'); } else { echoT(' <table class="enpRptC"> <tr> <td class="enpRptTitle" colspan="10"> Silent Auctions </td> </tr>'); echoT(' <tr> <td class="enpRptLabel"> Auction ID </td> <td class="enpRptLabel"> </td> <td class="enpRptLabel"> Name </td> <td class="enpRptLabel"> Date </td> <td class="enpRptLabel"> # Packages </td>