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(); }
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; }
private function loadImgDocInfoViaContext($enumContext, $imgDoc, $row) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- global $genumDateFormat, $glChapterID; $lFID = (int) $imgDoc->lForeignID; switch ($enumContext) { case CENUM_CONTEXT_CLIENT: $imgDoc->strNameLabel = 'Client'; $imgDoc->strName = strLinkView_ClientRecord($lFID, 'View Client Record', true) . ' ' . str_pad($lFID, 6, '0', STR_PAD_LEFT) . ' <b>' . htmlspecialchars($row->cr_strLName . ', ' . $row->cr_strFName) . '</b>'; $imgDoc->strAddressLabel = 'Address'; $imgDoc->strAddr = strBuildAddress($row->cr_strAddr1, $row->cr_strAddr2, $row->cr_strCity, $row->cr_strState, $row->cr_strCountry, $row->cr_strZip, true); $strPhone = strPhoneCell($row->cr_strPhone, $row->cr_strCell); if ($strPhone != '') { $imgDoc->strAddr .= '<br>' . $strPhone; } break; case CENUM_CONTEXT_PEOPLE: $imgDoc->strNameLabel = 'Name'; $imgDoc->strName = strLinkView_PeopleRecord($lFID, 'View People Record', true) . ' ' . str_pad($lFID, 6, '0', STR_PAD_LEFT) . ' <b>' . htmlspecialchars($row->pe_strLName . ', ' . $row->pe_strFName) . '</b>'; $imgDoc->strAddressLabel = 'Address'; $imgDoc->strAddr = strBuildAddress($row->pe_strAddr1, $row->pe_strAddr2, $row->pe_strCity, $row->pe_strState, $row->pe_strCountry, $row->pe_strZip, true); $strPhone = strPhoneCell($row->pe_strPhone, $row->pe_strCell); if ($strPhone != '') { $imgDoc->strAddr .= '<br>' . $strPhone; } break; case CENUM_CONTEXT_LOCATION: $imgDoc->strNameLabel = 'Client Location'; $imgDoc->strName = strLinkView_ClientLocation($lFID, 'View client location', true) . ' ' . htmlspecialchars($row->cl_strLocation); break; case CENUM_CONTEXT_GRANTPROVIDER: $imgDoc->strNameLabel = 'Funder/Provider'; $imgDoc->strName = strLinkView_GrantProvider($lFID, 'View funder/provider', true) . ' ' . htmlspecialchars($row->gpr_strGrantOrg); break; case CENUM_CONTEXT_INVITEM: $imgDoc->strNameLabel = 'Inventory Item'; $imgDoc->strName = strLinkView_InventoryItem($lFID, 'View inventory item', true) . ' ' . htmlspecialchars($row->ivi_strItemName); break; case CENUM_CONTEXT_AUCTION: $imgDoc->strNameLabel = 'Silent Auction'; $imgDoc->strName = strLinkView_AuctionRecord($lFID, 'View Auction', true) . ' ' . htmlspecialchars($row->auc_strAuctionName) . ' (' . date($genumDateFormat, dteMySQLDate2Unix($row->auc_dteAuctionDate)) . ')'; break; case CENUM_CONTEXT_AUCTIONITEM: $imgDoc->strNameLabel = 'Auction Item'; $imgDoc->strName = strLinkView_AuctionItem($lFID, 'View Auction Item', true) . ' ' . 'item: ' . htmlspecialchars($row->ait_strItemName) . '<br>package: ' . htmlspecialchars($row->ap_strPackageName) . '<br>auction: ' . htmlspecialchars($row->auc_strAuctionName); break; case CENUM_CONTEXT_AUCTIONPACKAGE: $imgDoc->strNameLabel = 'Auction Package'; $imgDoc->strName = strLinkView_AuctionPackageRecord($lFID, 'View Auction Package', true) . ' ' . 'package: ' . htmlspecialchars($row->ap_strPackageName) . '<br>auction: ' . htmlspecialchars($row->auc_strAuctionName); break; case CENUM_CONTEXT_BIZ: $imgDoc->strNameLabel = 'Business/Organization Name'; $imgDoc->strName = strLinkView_BizRecord($lFID, 'View Business/Organization Record', true) . ' ' . str_pad($lFID, 6, '0', STR_PAD_LEFT) . ' <b>' . htmlspecialchars($row->pe_strLName) . '</b>'; $imgDoc->strAddressLabel = 'Address'; $imgDoc->strAddr = strBuildAddress($row->pe_strAddr1, $row->pe_strAddr2, $row->pe_strCity, $row->pe_strState, $row->pe_strCountry, $row->pe_strZip, true); $strPhone = strPhoneCell($row->pe_strPhone, $row->pe_strCell); if ($strPhone != '') { $imgDoc->strAddr .= '<br>' . $strPhone; } break; case CENUM_CONTEXT_SPONSORSHIP: $bBiz = (bool) $row->pe_bBiz; if ($bBiz) { $imgDoc->strNameLabel = 'Sponsor (Business/organization)'; $imgDoc->strName = strLinkView_PeopleRecord($lFID, 'View People Record', true) . ' ' . str_pad($lFID, 6, '0', STR_PAD_LEFT) . ' <b>' . htmlspecialchars($row->pe_strLName . ', ' . $row->pe_strFName) . '</b>'; } else { $imgDoc->strNameLabel = 'Sponsor (Individual)'; $imgDoc->strName = strLinkView_BizRecord($lFID, 'View Business/Organization Record', true) . ' ' . str_pad($lFID, 6, '0', STR_PAD_LEFT) . ' <b>' . htmlspecialchars($row->pe_strLName) . '</b>'; } $imgDoc->strAddressLabel = 'Address'; $imgDoc->strAddr = strBuildAddress($row->pe_strAddr1, $row->pe_strAddr2, $row->pe_strCity, $row->pe_strState, $row->pe_strCountry, $row->pe_strZip, true); $strPhone = strPhoneCell($row->pe_strPhone, $row->pe_strCell); if ($strPhone != '') { $imgDoc->strAddr .= '<br>' . $strPhone; } break; case CENUM_CONTEXT_ORGANIZATION: $imgDoc->strNameLabel = 'Your organization'; $imgDoc->strName = strLinkView_OrganizationRecord($lFID, 'View organization record', true) . ' ' . htmlspecialchars($row->ch_strChapterName); break; case CENUM_CONTEXT_STAFF: $imgDoc->strNameLabel = 'Staff Member'; $imgDoc->strName = strLinkView_User($lFID, 'View staff member record', true) . ' ' . htmlspecialchars($row->strFirstName . ' ' . $row->strLastName); break; case CENUM_CONTEXT_VOLUNTEER: $imgDoc->strNameLabel = 'Name'; $imgDoc->strName = strLinkView_Volunteer($lFID, 'View Volunteer Record', true) . ' ' . str_pad($lFID, 6, '0', STR_PAD_LEFT) . ' <b>' . htmlspecialchars($row->pe_strLName . ', ' . $row->pe_strFName) . '</b>'; $imgDoc->strAddressLabel = 'Address'; $imgDoc->strAddr = strBuildAddress($row->pe_strAddr1, $row->pe_strAddr2, $row->pe_strCity, $row->pe_strState, $row->pe_strCountry, $row->pe_strZip, true); $strPhone = strPhoneCell($row->pe_strPhone, $row->pe_strCell); if ($strPhone != '') { $imgDoc->strAddr .= '<br>' . $strPhone; } break; default: screamForHelp($enumContext . ': image context not currently implemented<br>error on line <b> -- ' . __LINE__ . ' --</b>,<br>file ' . __FILE__ . ',<br>function ' . __FUNCTION__); break; } }
</td> <td class="enpRptLabel"> Out of Pocket </td> <td class="enpRptLabel"> Income </td> <td class="enpRptLabel"> 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>
function showBidSheetInfo(&$clsRpt, &$bs, &$template, $BSID) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- global $genumMeasurePref; openBlock('Bid Sheet for <b>' . htmlspecialchars($bs->strAuctionName) . '</b>', strLinkEdit_BidSheet($BSID, 'Edit bid sheet', true) . ' ' . strLinkRem_BidSheet($BSID, 'Remove bid sheet', true, true)); echoT($clsRpt->openReport()); // bidSheet ID echoT($clsRpt->openRow() . $clsRpt->writeLabel('Bid Sheet ID:') . $clsRpt->writeCell(str_pad($bs->lKeyID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow()); // name echoT($clsRpt->openRow() . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell(htmlspecialchars($bs->strSheetName)) . $clsRpt->closeRow()); // auction echoT($clsRpt->openRow() . $clsRpt->writeLabel('Auction:') . $clsRpt->writeCell(htmlspecialchars($bs->strAuctionName) . ' ' . strLinkView_AuctionRecord($bs->lAuctionID, 'View auction record', true)) . $clsRpt->closeRow()); // description echoT($clsRpt->openRow() . $clsRpt->writeLabel('Description:') . $clsRpt->writeCell(nl2br(htmlspecialchars($bs->strDescription))) . $clsRpt->closeRow()); // template echoT($clsRpt->openRow() . $clsRpt->writeLabel('Template:') . $clsRpt->writeCell($bs->tInfo->title . '<br>' . $bs->tInfo->strThumbImgLink) . $clsRpt->closeRow()); // paper type echoT($clsRpt->openRow() . $clsRpt->writeLabel('Paper Type:') . $clsRpt->writeCell(strXlatePaperSize($bs->enumPaperType, $genumMeasurePref == 'metric')) . $clsRpt->closeRow()); // # Extra Signup Sheets echoT($clsRpt->openRow() . $clsRpt->writeLabel('# Extra Signup Sheets:') . $clsRpt->writeCell($bs->lNumSignupPages) . $clsRpt->closeRow()); // signup sheet columns echoT(' <tr> <td class="enpViewLabel" >Signup Sheet Columns:</td> <td class="enpView" > <table cellpadding="0"> <tr> <td style="vertical-align: top; width: 100pt;"><b>Column Heading</b></td> <td><b>Width</b></td> </tr>'); for ($idx = 1; $idx <= $bs->lNumSignupCols; ++$idx) { $suCols =& $bs->signUpCols[$idx]; echoT('<tr><td>' . htmlspecialchars($suCols->heading) . '</td> <td style="text-align: right;">' . $suCols->width . ' %</td></tr>'); } echoT(' </table> </td> </tr>'); // Logo if ($template->bShowIncludeOrgLogo) { if ($bs->bIncludeOrgLogo) { echoT($clsRpt->openRow() . $clsRpt->writeLabel('Logo:') . $clsRpt->writeCell($bs->strLogoImgLink . $bs->strLogoImgTN . '</a>') . $clsRpt->closeRow()); } else { echoT($clsRpt->openRow() . $clsRpt->writeLabel('Include Logo?:') . $clsRpt->writeCell('No') . $clsRpt->closeRow()); } } yesNoIncludes($clsRpt, $template->bShowIncludeSignup, $bs->bIncludeSignup, 'Include signup table?:'); yesNoIncludes($clsRpt, $template->bShowIncludeOrgName, $bs->bIncludeOrgName, 'Include Organization Name?:'); yesNoIncludes($clsRpt, $template->bShowIncludeMinBid, $bs->bIncludeMinBid, 'Include Minimum Bid?:'); yesNoIncludes($clsRpt, $template->bShowIncludeMinBidInc, $bs->bIncludeMinBidInc, 'Include Min. Bid Increment?:'); yesNoIncludes($clsRpt, $template->bShowIncludeBuyItNow, $bs->bIncludeBuyItNow, 'Include "Buy It Now"?:'); yesNoIncludes($clsRpt, $template->bShowIncludeReserve, $bs->bIncludeReserve, 'Include Reserve?:'); yesNoIncludes($clsRpt, $template->bShowIncludeDate, $bs->bIncludeDate, 'Include Date?:'); yesNoIncludes($clsRpt, $template->bShowIncludeFooter, $bs->bIncludeFooter, 'Include Footer?:'); yesNoIncludes($clsRpt, $template->bShowIncludePackageName, $bs->bIncludePackageName, 'Include Package Name?:'); yesNoIncludes($clsRpt, $template->bShowIncludePackageID, $bs->bIncludePackageID, 'Include Package ID?:'); yesNoIncludes($clsRpt, $template->bShowIncludePackageDesc, $bs->bIncludePackageDesc, 'Include Package Description?:'); yesNoIncludes($clsRpt, $template->bShowIncludePackageImage, $bs->bIncludePackageImage, 'Include Package Image?:'); yesNoIncludes($clsRpt, $template->bShowIncludePackageEstValue, $bs->bIncludePackageEstValue, 'Include Package Est. Value?:'); yesNoIncludes($clsRpt, $template->bShowIncludeItemName, $bs->bIncludeItemName, 'Include Item Names?:'); yesNoIncludes($clsRpt, $template->bShowIncludeItemID, $bs->bIncludeItemID, 'Include Item IDs?:'); yesNoIncludes($clsRpt, $template->bShowIncludeItemDesc, $bs->bIncludeItemDesc, 'Include Item Descriptions?:'); yesNoIncludes($clsRpt, $template->bShowIncludeItemImage, $bs->bIncludeItemImage, 'Include Item Images?:'); yesNoIncludes($clsRpt, $template->bShowIncludeItemDonor, $bs->bIncludeItemDonor, 'Include Item Donors?:'); yesNoIncludes($clsRpt, $template->bShowIncludeItemEstValue, $bs->bIncludeItemEstValue, 'Include Item Est. Values?:'); echoT($clsRpt->closeReport()); closeBlock(); }
public function packageHTMLSummary() { //----------------------------------------------------------------------- // assumes user has called $cPackages->loadPackageByPacID($lPackageID); //----------------------------------------------------------------------- global $genumDateFormat; $params = array('enumStyle' => 'terse'); $clsRpt = new generic_rpt($params); $clsRpt->setEntrySummary(); $package =& $this->packages[0]; $lAuctionID = $package->lAuctionID; $lPackageID = $package->lKeyID; $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Auction Name:') . $clsRpt->writeCell(htmlspecialchars($package->strAuctionName)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Overview:') . $clsRpt->writeCell(strLinkView_AuctionOverview($lAuctionID, 'Auction overview', true)) . $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->openRow(false) . $clsRpt->writeLabel('Package Name:') . $clsRpt->writeCell($package->strPackageSafeName) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Package ID:') . $clsRpt->writeCell(str_pad($lPackageID, 5, '0', STR_PAD_LEFT) . ' ' . strLinkView_AuctionPackageRecord($lPackageID, 'View auction package record', true)) . $clsRpt->closeRow(); if (is_null($package->lBidWinnerID)) { $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Bid Winner:') . $clsRpt->writeCell('<i>Not set</i>') . $clsRpt->closeRow(); } else { if ($package->bw_bBiz) { $strLink = strLinkView_BizRecord($package->lBidWinnerID, 'View business record', true); } else { $strLink = strLinkView_PeopleRecord($package->lBidWinnerID, 'View people record', true); } $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Bid Winner:') . $clsRpt->writeCell($package->bw_strSafeName . ' ' . $strLink) . $clsRpt->closeRow(); } $strOut .= $clsRpt->closeReport('<br>'); return $strOut; }
size="3" maxlength="4">% </td> </tr>'; ++$idx; } $strColTable .= ' </table>'; echoT($clsForm->strLabelRow('Signup Sheet Columns', $strColTable, 1)); // Notes $clsForm->strStyleExtraLabel = 'padding-top: 8px;'; echoT($clsForm->strNotesEntry('Notes', 'txtDesc', false, $formData->txtDesc, 3, 50)); // Logo image if ($formData->bShowIncludeOrgLogo) { if ($lNumLogoImages == 0) { $clsForm->strStyleExtraLabel = 'padding-top: 2px;'; echoT($clsForm->strLabelRow('Logo Image', 'You have no logo images defined for <br>' . 'your auction. You can add logos from the ' . strLinkView_AuctionRecord($lAuctionID, 'auction record', false) . '.', 1)); } else { echoT($clsForm->strLabelRow('Logo Image', $formData->rdoLogo, 1)); } } showIncludeCheck($clsForm, $formData->bShowIncludeOrgName, $formData->bIncludeOrgName, 'Show Organization Name?', 'chkIncludeOrgName'); showIncludeCheck($clsForm, $formData->bShowIncludeMinBid, $formData->bIncludeMinBid, 'Show Min Bid Amount?', 'chkIncludeMinBid'); showIncludeCheck($clsForm, $formData->bShowIncludeMinBidInc, $formData->bIncludeMinBidInc, 'Show Min Bid Increment?', 'chkIncludeMinBidInc'); showIncludeCheck($clsForm, $formData->bShowIncludeBuyItNow, $formData->bIncludeBuyItNow, 'Show "Buy It Now"?', 'chkIncludeBuyItNow'); showIncludeCheck($clsForm, $formData->bShowIncludeReserve, $formData->bIncludeReserve, 'Show Reserve Amount?', 'chkIncludeReserve'); showIncludeCheck($clsForm, $formData->bShowIncludeDate, $formData->bIncludeDate, 'Show Auction Date?', 'chkIncludeDate'); showIncludeCheck($clsForm, $formData->bShowIncludeFooter, $formData->bIncludeFooter, 'Show Footer?', 'chkIncludeFooter'); showIncludeCheck($clsForm, $formData->bShowIncludePackageName, $formData->bIncludePackageName, 'Show Package Name?', 'chkIncludePkgName'); showIncludeCheck($clsForm, $formData->bShowIncludePackageID, $formData->bIncludePackageID, 'Show Package ID?', 'chkIncludePkgID'); showIncludeCheck($clsForm, $formData->bShowIncludePackageDesc, $formData->bIncludePackageDesc, 'Show Package Description?', 'chkIncludePkgDesc'); showIncludeCheck($clsForm, $formData->bShowIncludePackageImage, $formData->bIncludePackageImage, 'Show Package Image?', 'chkIncludePkgImage');
public function strItemHTMLSummary() { //----------------------------------------------------------------------- // assumes user has called $cItems->loadItemViaItemID($lItemID); //----------------------------------------------------------------------- global $genumDateFormat; $params = array('enumStyle' => 'terse'); $clsRpt = new generic_rpt($params); $clsRpt->setEntrySummary(); $item =& $this->items[0]; $lAuctionID = $item->lAuctionID; $lPackageID = $item->lPackageID; $lItemID = $item->lKeyID; $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Auction Name:') . $clsRpt->writeCell(htmlspecialchars($item->strAuctionName)) . $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->openRow(false) . $clsRpt->writeLabel('Package Name:') . $clsRpt->writeCell(htmlspecialchars($item->strPackageName)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Package ID:') . $clsRpt->writeCell(str_pad($lPackageID, 5, '0', STR_PAD_LEFT) . ' ' . strLinkView_AuctionPackageRecord($lPackageID, 'View auction package record', true)) . $clsRpt->closeRow() . $clsRpt->closeReport('<br>'); return $strOut; }