本文整理汇总了PHP中strLinkView_PeopleRecord函数的典型用法代码示例。如果您正苦于以下问题:PHP strLinkView_PeopleRecord函数的具体用法?PHP strLinkView_PeopleRecord怎么用?PHP strLinkView_PeopleRecord使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了strLinkView_PeopleRecord函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: showItemInfo
function showItemInfo(&$clsRpt, &$item, &$auction, $lPackageID, $lItemID)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $genumDateFormat;
openBlock('Silent Auction Item', strLinkEdit_AuctionItem($lPackageID, $lItemID, 'Edit item information', true) . ' ' . ' ' . strLinkRem_AuctionItem($lPackageID, $lItemID, 'Remove this item record', true, true));
echoT($clsRpt->openReport());
// Item ID
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Item ID:') . $clsRpt->writeCell(str_pad($lItemID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow());
// Item Name
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell($item->strSafeItemName) . $clsRpt->closeRow());
// Date Obtained
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Date Obtained:') . $clsRpt->writeCell(date($genumDateFormat, $item->dteObtained)) . $clsRpt->closeRow());
// Item Donor
if ($item->itemDonor_bBiz) {
$strNameLink = ' <i>(business)</i> ' . strLinkView_BizRecord($item->lItemDonorID, 'View business record', true);
} else {
$strNameLink = ' ' . strLinkView_PeopleRecord($item->lItemDonorID, 'View people record', true);
}
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Item Donor:') . $clsRpt->writeCell($item->itemDonor_safeName . $strNameLink) . $clsRpt->closeRow());
// Donor Acknowledgement
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Donor Ack.:') . $clsRpt->writeCell(htmlspecialchars($item->strDonorAck)) . $clsRpt->closeRow());
// Est. Value
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Est. Value:') . $clsRpt->writeCell($auction->strCurrencySymbol . ' ' . number_format($item->curEstAmnt, 2)) . $clsRpt->closeRow());
// Out-of-Pocket
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Out-of-Pocket:') . $clsRpt->writeCell($auction->strCurrencySymbol . ' ' . number_format($item->curOutOfPocket, 2)) . $clsRpt->closeRow());
// Public Notes
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Public Notes:') . $clsRpt->writeCell(nl2br(htmlspecialchars($item->strDescription))) . $clsRpt->closeRow());
// Private Notes
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Private Notes:') . $clsRpt->writeCell(nl2br(htmlspecialchars($item->strInternalNotes))) . $clsRpt->closeRow());
echoT($clsRpt->closeReport());
closeBlock();
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:34,代码来源:item_record_view.php
示例2: writeAutoChargeRow
function writeAutoChargeRow($clsACInfo)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
$lCID = $clsACInfo->lKeyID;
$lSponID = $clsACInfo->lSponsorshipID;
$bBiz = $clsACInfo->bBiz;
$lFID = $clsACInfo->lForeignID;
$lClientID = $clsACInfo->lClientID;
if (is_null($lClientID)) {
$strClientRow = 'n/a';
} else {
$strClientRow = strLinkView_ClientRecord($lClientID, 'View Client', true) . ' ' . str_pad($lClientID, 5, '0', STR_PAD_LEFT) . ' ' . $clsACInfo->strClientSafeNameFL . ' / ' . htmlspecialchars($clsACInfo->strLocation);
}
if ($bBiz) {
$strFLink = strLinkView_BizRecord($lFID, 'View business record', true);
} else {
$strFLink = strLinkView_PeopleRecord($lFID, 'View people record', true);
}
echoT('
<tr>
<td class="enpRpt" style="text-align:center">' . strLinkView_SponsorCharge($lCID, 'View charge record', true) . ' ' . str_pad($lCID, 5, '0', STR_PAD_LEFT) . '
</td>');
echoT('
<td class="enpRpt" style="text-align:center">' . strLinkView_Sponsorship($lSponID, 'View sponsorship record', true) . ' ' . str_pad($lSponID, 5, '0', STR_PAD_LEFT) . '
</td>');
//------------------------------
// sponsor
//------------------------------
echoT('
<td class="enpRpt">' . $strFLink . ' ' . $clsACInfo->strSponSafeNameFL . '
</td>');
//------------------------------
// charge
//------------------------------
echoT('
<td class="enpRpt" style="text-align: right;">' . $clsACInfo->strCurSymbol . ' ' . number_format($clsACInfo->curChargeAmnt, 2) . ' ' . $clsACInfo->strFlagImage . '
</td>');
//------------------------------
// client
//------------------------------
echoT('
<td class="enpRpt">' . $strClientRow . '
</td>');
echoT('
</tr>');
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:48,代码来源:auto_charge_record_view.php
示例3: showPeopleInfo
function showPeopleInfo($clsDateTime, $clsRpt, $people, $dupIDs)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $gbDateFormatUS, $genumDateFormat, $glclsDTDateFormat;
// People ID
$lPeopleID = $people->lKeyID;
echoT($clsRpt->openRow() . $clsRpt->writeLabel('People ID:') . $clsRpt->writeCell(strLinkView_PeopleRecord($lPeopleID, 'View people record', true) . ' ' . str_pad($lPeopleID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow());
// Name
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell($people->strSafeNameLF) . $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());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Consolidated With:') . $clsRpt->writeCell('People IDs: ' . implode(', ', $dupIDs)) . $clsRpt->closeRow());
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:17,代码来源:dup_complete_people_view.php
示例4: showSingleSponsorshipInfo
function showSingleSponsorshipInfo($clsRpt, $strTitle, $clsSpon)
{
//---------------------------------------------------------------------
// use for single sponsorship
//---------------------------------------------------------------------
$attributes = new stdClass();
$attributes->lTableWidth = 900;
$attributes->divID = 'ssponDiv';
$attributes->divImageID = 'ssponDivImg';
openBlock($strTitle, '', $attributes);
$clsRpt->openReport();
if ($clsSpon->lNumSponsors == 0) {
echoT('<i>(no sponsorships)</i><br>');
} else {
foreach ($clsSpon->sponInfo as $idx => $spon) {
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Sponsor ID:') . $clsRpt->writeCell(strLinkView_Sponsorship($spon->lKeyID, 'view sponsorship', true) . ' ' . str_pad($spon->lKeyID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow());
$lFID = $spon->lForeignID;
if ($spon->bSponBiz) {
$strLinkFID = strLinkView_Biz($lFID, 'View business record', true);
} else {
$strLinkFID = strLinkView_PeopleRecord($lFID, 'View people record', true);
}
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Sponsor:') . $clsRpt->writeCell($strLinkFID . ' ' . str_pad($lFID, 5, '0', STR_PAD_LEFT) . ' ' . $spon->strSponSafeNameFL) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Sponsorship Program:') . $clsRpt->writeCell(htmlspecialchars($spon->strSponProgram)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Client:'));
if (is_null($spon->lClientID)) {
echoT($clsRpt->writeCell('<i>Client not set</i>'));
} else {
echoT($clsRpt->writeCell(strLinkView_Client($spon->lClientID, 'View client record', true) . ' ' . $spon->strClientSafeNameFL . ' (' . htmlspecialchars($spon->strLocation) . ')'));
}
echoT($clsRpt->closeRow());
}
}
echoT($clsRpt->closeReport());
$attributes = new stdClass();
$attributes->bCloseDiv = true;
closeBlock($attributes);
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:36,代码来源:record_view_helper.php
示例5: showPayRec
function showPayRec($clsRpt, &$pRec, $lSponID, $lFPayerID, $lPayID)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $genumDateFormat;
openBlock('Sponsor payment record ', strLinkEdit_SponsorPayment($lSponID, $lFPayerID, $lPayID, 'Edit payment record', true) . ' ' . strLinkAdd_SponsorPayment($lSponID, 'Add new payment', true) . ' ' . strLinkRem_SponsorPayment($lSponID, $lPayID, 'Remove payment', true, true));
echoT($clsRpt->openReport() . $clsRpt->openRow() . $clsRpt->writeLabel('Payment ID:') . $clsRpt->writeCell(str_pad($lPayID, 5, '0', STR_PAD_LEFT), '', '', 1, 1, 'id="sponPayID"') . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Amount:') . $clsRpt->writeCell($pRec->strCurSymbol . ' ' . number_format($pRec->curPaymentAmnt, 2) . ' ' . $pRec->strFlagImage) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Date of payment:') . $clsRpt->writeCell(date($genumDateFormat, $pRec->dtePayment)) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Payment type:') . $clsRpt->writeCell(htmlspecialchars($pRec->strPaymentType)) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Check #:') . $clsRpt->writeCell(htmlspecialchars($pRec->strCheckNum)) . $clsRpt->closeRow());
if ($pRec->lSponPeopleID == $pRec->lDonorID) {
$strPayer = $pRec->strSponSafeNameFL . ' (sponsor)';
} else {
if ($pRec->bDonorBiz) {
$strPayer = strLinkView_BizRecord($pRec->lDonorID, 'View business record', true) . ' ';
} else {
$strPayer = strLinkView_PeopleRecord($pRec->lDonorID, 'View people record', true) . ' ';
}
$strPayer .= $pRec->strDonorSafeNameFL . ' <b>(THIRD PARTY PAYER)</b>';
}
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Payer:') . $clsRpt->writeCell($strPayer) . $clsRpt->closeRow() . $clsRpt->closeReport());
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:24,代码来源:payment_record_view.php
示例6: showBizContactInfo
function showBizContactInfo($clsRpt, $lBID, $clsBiz, $lNumContacts, &$contacts)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
$attributes = new stdClass();
$attributes->lTableWidth = 900;
$attributes->divID = 'bizCon';
$attributes->divImageID = 'bizConDivImg';
openBlock('Associated Contacts <span style="font-size: 9pt;"> (' . $lNumContacts . ')</span>', strLinkView_BizContacts($lBID, 'View contacts', true, '') . ' ' . strLinkView_BizContacts($lBID, 'View', false, '') . ' ' . strLinkAdd_BizContact($lBID, 'Add new business contact', true, '') . ' ' . strLinkAdd_BizContact($lBID, 'Add new contact', false, ''), $attributes);
if ($lNumContacts == 0) {
echoT('<i>There are no contacts associated with this business/organization</i><br>');
} else {
echoT("\n\n" . $clsRpt->openReport());
foreach ($contacts as $clsCon) {
$lContactID = $clsCon->lBizConRecID;
$lPID = $clsCon->lPeopleID;
echoT($clsRpt->openRow() . $clsRpt->writeCell(strLinkView_PeopleRecord($clsCon->lPeopleID, 'View people record', true)) . $clsRpt->writeCell(strLinkEdit_BizContact($lBID, $lContactID, $lPID, 'Edit business contact', true)) . $clsRpt->writeCell(strLinkRem_BizContact($lBID, $lContactID, 'Remove business contact', true, true)) . $clsRpt->writeCell($clsCon->strSafeNameLF));
if ($clsCon->strRelationship . '' == '') {
echoT($clsRpt->writeCell(' '));
} else {
echoT($clsRpt->writeCell('(' . htmlspecialchars($clsCon->strRelationship) . ')'));
}
if ($clsCon->bSoftCash) {
echoT($clsRpt->writeCell('<img src="' . DL_IMAGEPATH . '/misc/dollar.gif" border="0" title="soft cash relationship">'));
} else {
echoT($clsRpt->writeCell(' '));
}
echoT($clsRpt->closeRow());
}
echoT($clsRpt->closeReport());
}
$attributes = new stdClass();
$attributes->bCloseDiv = true;
closeBlock($attributes);
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:36,代码来源:biz_record_view.php
示例7: foreach
</td>
<td class="enpRptLabel">
Account
</td>
<td class="enpRptLabel">
Campaign
</td>
</tr>');
foreach ($gifts as $gift) {
$lGiftID = $gift->gi_lKeyID;
$lDonorID = $gift->gi_lForeignID;
$bBizGift = $gift->pe_bBiz;
if ($bBizGift) {
$strLinkDonor = strLinkView_BizRecord($lDonorID, 'View business record', true);
} else {
$strLinkDonor = strLinkView_PeopleRecord($lDonorID, 'View people record', true);
}
echoT('
<tr class="makeStripe">
<td class="enpRpt">' . strLinkView_GiftsRecord($lGiftID, 'View gift record', true) . ' ' . str_pad($lGiftID, 5, '0', STR_PAD_LEFT) . '
</td>
<td class="enpRpt">' . $strLinkDonor . ' ' . str_pad($lDonorID, 5, '0', STR_PAD_LEFT) . '
</td>
<td class="enpRpt">' . htmlspecialchars($gift->strImportID) . '
</td>
<td class="enpRpt">' . $gift->strSafeNameLF . '
</td>
<td class="enpRpt" style="text-align: right;">' . $gift->strFormattedAmnt . '
</td>
<td class="enpRpt" style="text-align: center;">' . date($genumDateFormat, $gift->gi_dteDonation) . '
</td>
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:31,代码来源:import_details_gifts.php
示例8: strPeopleBasedGroupRptHTML
private function strPeopleBasedGroupRptHTML($enumContext)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
switch ($enumContext) {
case CENUM_CONTEXT_PEOPLE:
$strIDLabel = 'PeopleID';
$strInner = ' INNER JOIN people_names ON pe_lKeyID=gm_lForeignID ';
$strFID = ' pe_lKeyID AS lFID ';
break;
case CENUM_CONTEXT_BIZ:
$strIDLabel = 'businessID';
$strInner = ' INNER JOIN people_names ON pe_lKeyID=gm_lForeignID ';
$strFID = ' pe_lKeyID AS lFID ';
break;
case CENUM_CONTEXT_VOLUNTEER:
$strIDLabel = 'volunteerID';
$strInner = ' INNER JOIN volunteers ON vol_lKeyID = gm_lForeignID ' . ' INNER JOIN people_names ON vol_lPeopleID = pe_lKeyID ';
$strFID = ' pe_lKeyID, vol_lKeyID AS lFID ';
break;
case CENUM_CONTEXT_SPONSORSHIP:
$strIDLabel = 'sponsorID';
$strInner = ' INNER JOIN sponsor ON sp_lKeyID = gm_lForeignID ' . ' INNER JOIN people_names ON sp_lForeignID = pe_lKeyID ';
$strFID = ' pe_lKeyID, sp_lKeyID AS lFID ';
break;
default:
screamForHelp($enumContext . ': group type not yet available<br>error on <b>line:</b> ' . __LINE__ . '<br><b>file: </b>' . __FILE__ . '<br><b>function: </b>' . __FUNCTION__);
break;
}
$strOut = '<table class="enpRptC">
<tr>
<td class="enpRptLabel">' . $strIDLabel . '
</td>
<td class="enpRptLabel">
Name
</td>
<td class="enpRptLabel">
Address
</td>
<td class="enpRptLabel">
Phone/Email
</td>
<td class="enpRptLabel">
Group Membership
</td>
</tr>' . "\n";
$sqlStr = "SELECT\n {$strFID},\n pe_strLName, pe_strFName, pe_strAddr1, pe_strAddr2,\n pe_strCity, pe_strState, pe_strCountry, pe_strZip, pe_strPhone, pe_strCell, pe_strEmail\n FROM tmpGroupMatch\n {$strInner}\n ORDER BY gm_lKeyID;";
$query = $this->db->query($sqlStr);
foreach ($query->result() as $row) {
$lFID = $row->lFID;
if ($row->pe_strEmail . '' == '') {
$strEmail = '';
} else {
$strEmail = '<br>' . mailto($row->pe_strEmail, $row->pe_strEmail);
}
$this->groupMembershipViaFID($enumContext, $lFID);
/*
tip for preventing that pesky line break before a list
http://stackoverflow.com/questions/1682873/how-do-i-prevent-a-line-break-occurring-before-an-unordered-list
ul.errorlist {list-style-type: none; display:inline; margin-left: 0; padding-left: 0;}
ul.errorlist li {display: inline; color:red; font-size: 0.8em; margin-left: 0px; padding-left: 10px;}
*/
$strGroupList = '<ul style="list-style-type: square; display:inline; margin-left: 0; padding-left: 0;">';
foreach ($this->arrMemberInGroups as $grpMember) {
$strGroupList .= '<li style="margin-left: 20px; padding-left: 3px;">' . htmlspecialchars($grpMember->strGroupName) . '</li>';
}
$strGroupList .= '</ul>';
switch ($enumContext) {
case CENUM_CONTEXT_PEOPLE:
$strLink = strLinkView_PeopleRecord($lFID, 'View people record', true) . ' ';
break;
case CENUM_CONTEXT_BIZ:
$strLink = strLinkView_BizRecord($lFID, 'View people record', true) . ' ';
break;
case CENUM_CONTEXT_VOLUNTEER:
$strLink = strLinkView_Volunteer($lFID, 'View volunteer record', true) . ' ';
break;
case CENUM_CONTEXT_SPONSORSHIP:
$strLink = strLinkView_Sponsorship($lFID, 'View sponsor record', true) . ' ';
break;
default:
screamForHelp($enumContext . ': group type not yet available<br>error on <b>line:</b> ' . __LINE__ . '<br><b>file: </b>' . __FILE__ . '<br><b>function: </b>' . __FUNCTION__);
break;
}
$bBiz = $enumContext == CENUM_CONTEXT_BIZ;
$strOut .= '<tr class="makeStripe">
<td class="enpRpt" style="width: 65px;">' . $strLink . str_pad($lFID, 5, '0', STR_PAD_LEFT) . '
</td>
<td class="enpRpt" style="width: 160px;">' . htmlspecialchars($row->pe_strLName . ($bBiz ? '' : ', ' . $row->pe_strFName)) . '
</td>
<td class="enpRpt" style="width: 200px;">' . strBuildAddress($row->pe_strAddr1, $row->pe_strAddr2, $row->pe_strCity, $row->pe_strState, $row->pe_strCountry, $row->pe_strZip, true) . '
</td>
<td class="enpRpt" style="width: 120px;">' . htmlspecialchars(strPhoneCell($row->pe_strPhone, $row->pe_strCell)) . $strEmail . '
</td>
<td class="enpRpt" style="width: 200px;">' . $strGroupList . '
</td>
</tr>' . "\n";
$strOut .= '</tr>' . "\n";
}
//.........这里部分代码省略.........
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:101,代码来源:mgroups.php
示例9: strPeopleBizDupWarning
function strPeopleBizDupWarning($bPeople, $strCheckBoxName, $lNumMatches, $matches)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
$strWarning = '';
$strLabel1 = $bPeople ? 'people' : 'business/organization';
$strLabel2 = $bPeople ? 'People' : 'Biz/Org';
$strWarning = '<br><div class="formError" style="width: 400pt;">
<b><i>Delightful Labor</i></b> has detected ' . $lNumMatches . ' ' . $strLabel1 . '
records with similar names to your new entry.<br><br>
To prevent duplicate records, please verify that your
new ' . $strLabel1 . ' record <b><i>is not</i></b> in the database.<br>
<table style="border:2px solid #ff0000; border-collapse:collapse;">
<tr>
<td class="enpRptTitle" colspan="3" style="background-color: #ffd3d3;">
' . $strLabel2 . ' records in the database
</td>
</tr>
<tr>
<td class="enpRptLabel" style="background-color: #ffd3d3;">
' . $strLabel2 . ' ID
</td>
<td class="enpRptLabel" style="background-color: #ffd3d3;">
Name
</td>
<td class="enpRptLabel" style="background-color: #ffd3d3;">
Address
</td>';
$strWarning .= '</tr>';
foreach ($matches as $match) {
$lKeyID = $match->lKeyID;
if ($bPeople) {
$strLink = strLinkView_PeopleRecord($lKeyID, 'View people record', true);
} else {
$strLink = strLinkView_BizRecord($lKeyID, 'View business/organization record', true);
}
$strWarning .= '
<tr>
<td class="enpRpt" style="text-align: center;background-color: #fff5f5;">' . str_pad($lKeyID, 6, '0', STR_PAD_LEFT) . ' ' . $strLink . '
</td>
<td class="enpRpt" style="background-color: #fff5f5;">' . $match->strSafeNameLF . '
</td>
<td class="enpRpt" style="background-color: #fff5f5;">' . $match->strAddress . '
</td>';
$strWarning .= '</tr>';
}
$strWarning .= '
</table><br>
<div style="width: 300pt; border: 1px solid black; padding: 3px 3px 6px 3px;
background-color: #fff; vertical-align: middle;">
<input type="checkbox" name="' . $strCheckBoxName . '" value="true">
I have verified that this <b>IS NOT</b> a duplicate entry<br>
</div>
</div>';
return $strWarning;
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:57,代码来源:mdup_checker.php
示例10: foreach
</table>';
}
}
}
if ($person->lNumFromRels > 0) {
$strRels .= '<br>';
}
if ($person->lNumToRels > 0) {
foreach ($person->toRels as $b2a) {
if ($b2a->bSoftDonations) {
$strSoftImg = ' <img src="' . IMGLINK_DOLLAR . ' " border="0">';
} else {
$strSoftImg = '';
}
$lPIDLink = $a2b->lPerson_A_ID;
$strRels .= strLinkView_PeopleRecord($lPIDLink, 'View record', true) . ' ' . htmlspecialchars($b2a->strAFName . ' ' . $b2a->strALName) . ' is <b>' . $b2a->strRelationship . '</b> to ' . htmlspecialchars($b2a->strBFName . ' ' . $b2a->strBLName) . $strSoftImg . '<br>' . "\n";
if ($b2a->strNotes != '') {
$strRels .= '
<table>
<tr>
<td style="width: 15pt;"> </td>
<td>' . nl2br(htmlspecialchars($b2a->strNotes)) . '</td>
</tr>
</table>';
}
}
}
} else {
$strRels = ' ';
}
echoT($clsRpt->writeCell($strRels, 520, ' vertical-align: middle; '));
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:31,代码来源:rpt_people_rel_dir_view.php
示例11: strLinkView_BizRecord
$lPayID = $payrec->lKeyID;
$lSponID = $payrec->lSponsorshipID;
$lClientID = $payrec->lClientID;
$lDonorID = $payrec->lDonorID;
$lSponFID = $payrec->lSponPeopleID;
$bBizDonor = $payrec->bDonorBiz;
$bBizSponsor = $payrec->bSponBiz;
if ($bBizDonor) {
$strLinkDonor = strLinkView_BizRecord($lDonorID, 'View business record of payer', true);
} else {
$strLinkDonor = strLinkView_PeopleRecord($lDonorID, 'View people record of payer', true);
}
if ($bBizSponsor) {
$strLinkSpon = strLinkView_BizRecord($lSponFID, 'View business record of sponsor', true);
} else {
$strLinkSpon = strLinkView_PeopleRecord($lSponFID, 'View people record of sponsor', true);
}
if (is_null($lClientID)) {
$strClientLink = ' ';
} else {
$strClientLink = strLinkView_ClientRecord($lClientID, 'View client record', true) . ' ';
}
echoT('
<tr class="makeStripe">
<td class="enpRpt" style="text-align: center;">' . strLinkView_SponsorPayment($lPayID, 'View payment record', true) . ' ' . str_pad($lPayID, 5, '0', STR_PAD_LEFT) . '
</td>
<td class="enpRpt" style="text-align: center;">' . strLinkView_Sponsorship($lSponID, 'View sponsorship record', true) . ' ' . str_pad($lSponID, 5, '0', STR_PAD_LEFT) . '
</td>
<td class="enpRpt" style="text-align: center;">' . $strLinkDonor . ' ' . str_pad($lDonorID, 5, '0', STR_PAD_LEFT) . '
</td>
<td class="enpRpt">' . htmlspecialchars($payrec->strImportID) . '
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:31,代码来源:import_details_spon_pay.php
示例12: writeHonMemGiftsTable
function writeHonMemGiftsTable($lGiftID, $clsRpt, $honMemTable)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $gbAdmin;
echoT($clsRpt->openReport());
foreach ($honMemTable as $clsHM) {
echoT($clsRpt->openRow());
$bHon = $clsHM->ghm_bHon;
$strCell = strLinkView_PeopleRecord($clsHM->ghm_lFID, 'View people record', true) . ' ' . strLinkRem_HonMemLink($clsHM->lHMLinkID, $lGiftID, $bHon, 'Remove ' . ($bHon ? 'honorarium' : 'memorial'), true, true) . ' ' . $clsHM->honorMem->strSafeNameFL;
if ($bHon) {
echoT($clsRpt->writeLabel('Honorarium:'));
echoT($clsRpt->writeCell($strCell));
} else {
$lMCID = $clsHM->ghm_lMailContactID;
if (is_null($lMCID)) {
$strCell .= ' <font color="red"><i>(Mail contact not set!';
if ($gbAdmin) {
$strCell .= ' Click ' . strLinkView_ListHonMem(false, 'here', false) . ' to work with memorials.';
}
$strCell .= ')</i></font>';
} else {
$strCell .= ' (mail contact: ' . $clsHM->mailContact->strSafeNameFL . strLinkView_PeopleRecord($lMCID, 'View people record for the mail contact', true) . ' ' . ')';
}
echoT($clsRpt->writeLabel('Memorial:'));
echoT($clsRpt->writeCell($strCell, '', 'vertical-align: text-top;'));
}
echoT($clsRpt->closeRow());
}
echoT($clsRpt->closeReport('<br>'));
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:32,代码来源:donation_record_view.php
示例13: loadImgDocInfoViaContext
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;
}
//.........这里部分代码省略.........
开发者ID:nhom5UET,项目名称:tichhophethong,代码行数:101,代码来源:mimage_doc.php
示例14: showRelEntry
function showRelEntry($lPID, &$clsRel, $bA2B)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
if ($bA2B) {
$strLinkPeopleA = '';
$strLinkPeopleB = strLinkView_PeopleRecord($clsRel->lPerson_B_ID, 'View people record', true) . ' ';
} else {
$strLinkPeopleA = strLinkView_PeopleRecord($clsRel->lPerson_A_ID, 'View people record', true) . ' ';
$strLinkPeopleB = '';
}
echoT('
<tr>');
echoT('
<td>' . strLinkEdit_Relationship($clsRel->lRelID, $bA2B, 'Edit relationship', true) . '
</td>
<td>' . strLinkRem_Relationship($clsRel->lRelID, $lPID, 'Remove relationship', true, true) . '
</td>');
if ($clsRel->bSoftDonations) {
echoT('<td><img src="' . IMGLINK_DOLLAR . '" border="0" title="Soft cash relationship"></td>');
} else {
echoT('<td> </td>');
}
echoT('
<td>' . $strLinkPeopleA . htmlspecialchars($clsRel->strAFName . ' ' . $clsRel->strALName) . ' is <b>' . htmlspecialchars($clsRel->strRelationship) . '</b> to ' . $strLinkPeopleB . htmlspecialchars($clsRel->strBFName . ' ' . $clsRel->strBLName) . '
</td>');
echoT('</tr>');
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:29,代码来源:people_record_view.php
示例15: strVolHoursRptViaEventHTML
private function strVolHoursRptViaEventHTML($reportID, &$query, $newReportID)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
$lEventBase = -999;
$strOut = '';
foreach ($query->result() as $row) {
$lEventID = $row->ved_lVolEventID;
if ($lEventBase != $lEventID) {
if ($lEventBase > 0) {
$strOut .= '
<tr>
<td class="enpRpt" style="text-align: left; font-weight: bold;" colspan="3">
Total Hours
</td>
<td class="enpRpt" style="width: 50px; text-align: right; font-weight: bold;">' . number_format($dSumHours, 2) . '
</td>
</tr>';
$strOut .= '</table><br><br>';
}
$lEventBase = $lEventID;
$dSumHours = 0;
$strOut .= '<table class="enpRptC" style="width: 500px;">
<tr>
<td class="enpRptTitle" colspan="6">
Event: ' . htmlspecialchars($row->vem_strEventName) . ' ' . strLinkView_VolEvent($lEventID, 'View Event', true) . '
</td>
</tr>
<tr>
<td class="enpRptLabel" style="width: 60px;">
vol ID
</td>
<td class="enpRptLabel" style="width: 70px;">
people ID
</td>
<td class="enpRptLabel">
Name
</td>
<td class="enpRptLabel" style="width: 50px;">
Hours
</td>
</tr>';
}
$lVolID = $row->vsa_lVolID;
$lPID = $row->pe_lKeyID;
$dHours = $row->dHours;
$dSumHours += $dHours;
$fIDs = array($lVolID, $lEventID);
$strOut .= '
<tr class="makeStripe">
<td class="enpRpt" style="width: 60px; text-align: center;">' . strLinkView_Volunteer($lVolID, 'View Volunteer Record', true) . ' ' . str_pad($lVolID, 5, '0', STR_PAD_LEFT) . '
</td>
<td class="enpRpt" style="width: 70px; text-align: center;">' . strLinkView_PeopleRecord($lPID, 'View People Record', true) . ' ' . str_pad($lPID, 5, '0', STR_PAD_LEFT) . '
</td>
<td class="enpRpt">' . htmlspecialchars($row->pe_strLName . ', ' . $row->pe_strFName) . '
</td>
<td class="enpRpt" style="width: 50px; text-align: right;">' . number_format($dHours, 2) . ' ' . strLinkView_RptDetailGeneric($newReportID, $fIDs, 'View details', true) . '
</td>
</tr>';
}
$strOut .= '
<tr>
<td class="enpRpt" style="text-align: left; font-weight: bold;" colspan="3">
Total Hours
</td>
<td class="enpRpt" style="width: 50px; text-align: right; font-weight: bold;">' . number_format($dSumHours, 2) . '
</td>
</tr>';
$strOut .= '</table><br><br>';
return $strOut;
}
开发者ID:nhom5UET,项目名称:tichhophethong,代码行数:72,代码来源:mvol_event_hours.php
-
librespeed/speedtest: Self-hosted Speedtest for HTML5 and more. Easy setup, exam
阅读:1218|2022-08-30
-
avehtari/BDA_m_demos: Bayesian Data Analysis demos for Matlab/Octave
阅读:1130|2022-08-17
-
女人怀孕后,为了有一个健康聪明的宝宝,经历各种体检、筛查。其实这些体检和筛查中的
阅读:938|2022-11-06
-
medfreeman/markdown-it-toc-and-anchor: markdown-it plugin to add a toc and ancho
阅读:1334|2022-08-18
-
微慕小程序专业版支持在文章的详情页跳转商品卡片和公众号文章卡片;不过这些跳转卡片
阅读:588|2022-07-18
-
微信小程序不知不觉都走过了三个年头。
从当初的一夜成名到今天火爆的市场占有率,微
阅读:608|2022-07-18
-
** REJECT ** DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: none. Reason: This ca
阅读:504|2022-07-08
-
sydney0zq/covid-19-detection: The implementation of A Weakly-supervised Framewor
阅读:484|2022-08-16
-
kubernetes-client/python: Official Python client library for kubernetes
阅读:581|2022-08-15
-
离中国最远的国家是阿根廷。从太平洋直线计算,即往东线走,北京到阿根廷的布宜诺斯艾
阅读:636|2022-11-06
|
请发表评论