本文整理汇总了PHP中strLinkView_ClientRecord函数的典型用法代码示例。如果您正苦于以下问题:PHP strLinkView_ClientRecord函数的具体用法?PHP strLinkView_ClientRecord怎么用?PHP strLinkView_ClientRecord使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了strLinkView_ClientRecord函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: showVolClientAssoc
function showVolClientAssoc($clsRpt, $volRec, $lVolID)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
$attributes = new stdClass();
$attributes->lTableWidth = 900;
$attributes->divID = 'volClient';
$attributes->divImageID = 'volClientImg';
openBlock('Volunteer-Client Associations <span style="font-size: 9pt;">(' . $volRec->lNumVolClientAssoc . ')</span>', strLinkAdd_VolClientAssoc($lVolID, 'Add new volunteer/client association', true, 'id="vcaImg"') . ' ' . strLinkAdd_VolClientAssoc($lVolID, 'Add new association', false, 'id="vcaImgLnk"'), $attributes);
if ($volRec->lNumVolClientAssoc == 0) {
echoT('<i>There are no volunteer/client associations for this volunteer.</i>');
} else {
echoT('
<table class="enpRpt">
<tr>
<td class="enpRptLabel">
clientID
</td>
<td class="enpRptLabel">
</td>
<td class="enpRptLabel">
Name
</td>
<td class="enpRptLabel">
Address
</td>
<td class="enpRptLabel">
Phone
</td>
</tr>');
foreach ($volRec->vca as $va) {
$lClientID = $va->lClientID;
echoT('
<tr class="makeStripe">
<td class="enpRpt" style="text-align: center;">' . str_pad($lClientID, 5, '0', STR_PAD_LEFT) . ' ' . strLinkView_ClientRecord($lClientID, 'View client record', true, 'id="cr' . $lClientID . '"') . '
</td>
<td class="enpRpt" style="text-align: center;">' . strLinkRem_VolClientAssoc($va->lKeyID, $lVolID, 'Remove association', true, true) . '
</td>
<td class="enpRpt">' . htmlspecialchars($va->strLName . ', ' . $va->strFName) . '
</td>
<td class="enpRpt">' . strBuildAddress($va->strAddr1, $va->strAddr2, $va->strCity, $va->strState, $va->strCountry, $va->strZip, true) . '
</td>
<td class="enpRpt">' . strPhoneCell($va->strPhone, $va->strCell, true) . '
</td>
</tr>');
}
echoT('
</table>');
}
$attributes = new stdClass();
$attributes->bCloseDiv = true;
closeBlock($attributes);
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:55,代码来源:vol_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: showClientInfo
function showClientInfo($clsDateTime, $clsRpt, $client)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $gbDateFormatUS, $genumDateFormat, $glclsDTDateFormat;
// Client ID
$lClientID = $client->lKeyID;
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Client ID:') . $clsRpt->writeCell(strLinkView_ClientRecord($lClientID, 'View client record', true) . ' ' . str_pad($lClientID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow());
// Name
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell($client->strSafeName) . $clsRpt->closeRow());
// Address
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Address:') . $clsRpt->writeCell($client->strAddress) . $clsRpt->closeRow());
// birthday
$mdteBirth = $client->dteBirth;
$clsDateTime->setDateViaMySQL(0, $mdteBirth);
$strAgeBDay = $clsDateTime->strPeopleAge(0, $mdteBirth, $lAgeYears, $glclsDTDateFormat);
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Birth Date:') . $clsRpt->writeCell($strAgeBDay) . $clsRpt->closeRow());
// Phone
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Phone:') . $clsRpt->writeCell(htmlspecialchars(strPhoneCell($client->strPhone, $client->strCell))) . $clsRpt->closeRow());
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:21,代码来源:client_dup_review_view.php
示例4: showGiftSponsorInfo
function showGiftSponsorInfo(&$clsRpt, $lGiftID, $lFID, $gifts, &$spon)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
$bMismo = $lFID == $spon->lForeignID;
$lSponID = $spon->lKeyID;
$lClientID = $spon->lClientID;
if (is_null($lClientID)) {
$strClientID = '<i>not set</i>';
} else {
$strClientID = str_pad($lClientID, 5, '0', STR_PAD_LEFT) . ' ' . strLinkView_ClientRecord($lClientID, 'View client record', true) . ' ' . $spon->strClientSafeNameFL;
}
openBlock('Sponsorship' . "\n", strLinkView_Sponsorship($lSponID, 'View sponsorship', true) . ' ' . strLinkView_Sponsorship($lSponID, 'View sponsorship', false) . "\n");
echoT($clsRpt->openReport());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Sponsor ID:') . $clsRpt->writeCell(str_pad($spon->lKeyID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Sponsor:') . $clsRpt->writeCell($spon->strSponSafeNameLF . ($bMismo ? ' (same as donor)' : '')) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Sponsorship program:') . $clsRpt->writeCell(htmlspecialchars($spon->strSponProgram)) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Client:') . $clsRpt->writeCell($strClientID) . $clsRpt->closeRow());
echoT($clsRpt->closeReport(''));
closeBlock();
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:22,代码来源:donation_record_view.php
示例5: strClientDupWarning
function strClientDupWarning(&$cprograms, $strCheckBoxName, $lNumMatches, $matches)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
$strWarning = '';
$cprograms->loadClientPrograms(true);
$bTestCProgs = $cprograms->lNumCProgs > 0;
$strWarning = '<br><div class="formError" style="width: 400pt;">
<b><i>Delightful Labor</i></b> has detected ' . $lNumMatches . ' client' . ($lNumMatches == 1 ? '' : 's') . ' with similar names to your new client.<br><br>
To prevent duplicate client entry, please verify that your
new client <b><i>is not</i></b> in the database.<br>
<table style="border:2px solid #ff0000; border-collapse:collapse;">
<tr>
<td class="enpRptTitle" colspan="4" style="background-color: #ffd3d3;">
Clients already in the database
</td>
</tr>
<tr>
<td class="enpRptLabel" style="background-color: #ffd3d3;">
Client ID
</td>
<td class="enpRptLabel" style="background-color: #ffd3d3;">
Name
</td>
<td class="enpRptLabel" style="background-color: #ffd3d3;">
Address
</td>';
if ($bTestCProgs) {
$strWarning .= '
<td class="enpRptLabel" style="background-color: #ffd3d3;">
Enrolled In
</td>';
}
$strWarning .= '</tr>';
foreach ($matches as $match) {
$lClientID = $match->lKeyID;
$strWarning .= '
<tr>
<td class="enpRpt" style="text-align: center;background-color: #fff5f5;">' . str_pad($lClientID, 6, '0', STR_PAD_LEFT) . ' ' . strLinkView_ClientRecord($lClientID, 'View client record', true) . '
</td>
<td class="enpRpt" style="background-color: #fff5f5;">' . $match->strSafeNameLF . '
</td>
<td class="enpRpt" style="background-color: #fff5f5;">' . $match->strAddress . '
</td>';
if ($bTestCProgs) {
$cprograms->cprogramEnrollmentsViaClientID($lClientID, $lNumEnrolls, $enrollments);
if ($lNumEnrolls == 0) {
$strEs = 'n/a';
} else {
$strEs = '<ul style="margin: 0px;">';
foreach ($enrollments as $enroll) {
$strEs .= '<li style="margin-left: -20pt;">' . htmlspecialchars($enroll->strCProgName) . '</li>';
}
$strEs .= '</ul>';
}
$strWarning .= '
<td class="enpRpt" style="background-color: #fff5f5;">' . $strEs . '
</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,代码行数:72,代码来源:mdup_checker.php
示例6: showSponsorsPayments
function showSponsorsPayments(&$sponInfo, &$clsForm, &$linkOpts, &$validation)
{
// $strSort, $lSponProgID, $lStartRec, $lRecsPerPage){
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
openSponsorPaymentTable($clsForm, $linkOpts);
foreach ($sponInfo as $spon) {
$lSponID = $spon->lKeyID;
$lFID = $spon->lForeignID;
echoT('<input type="hidden" name="hdnAOCID[' . $lSponID . ']" value="' . $spon->lCommitACO . '">' . "\n");
echoT('<input type="hidden" name="hdnFID[' . $lSponID . ']" value="' . $spon->lForeignID . '">' . "\n");
if ($spon->bSponBiz) {
$strFLink = 'bizID: ' . str_pad($lFID, 6, '0', STR_PAD_LEFT) . ' ' . strLinkView_BizRecord($lFID, 'View business record (new window)', true, 'target="_blank"');
} else {
$strFLink = 'peopleID: ' . str_pad($lFID, 6, '0', STR_PAD_LEFT) . ' ' . strLinkView_PeopleRecord($lFID, 'View people record (new window)', true, 'target="_blank"');
}
$strRadioName = 'rdoPayType' . $lSponID;
$lClientID = $spon->lClientID;
if (is_null($lClientID)) {
$strClient = 'client: n/a';
} else {
$strClient = 'client: ' . str_pad($lClientID, 6, '0', STR_PAD_LEFT) . strLinkView_ClientRecord($lClientID, 'View client record (new window)', true, 'target="_blank"') . ' ' . $spon->strClientSafeNameFL;
}
echoT('
<tr class="makeStripe">
<td class="enpRpt" style="text-align: center;">' . str_pad($lSponID, 6, '0', STR_PAD_LEFT) . ' ' . strLinkView_Sponsorship($lSponID, 'View sponsorship (new window)', true, 'target="_blank"') . '
</td>');
echoT('
<td class="enpRpt" style="width: 230pt;"><b>' . $spon->strSponSafeNameLF . '</b><br>' . $strFLink . '<br>' . $strClient . '<br>
program: ' . htmlspecialchars($spon->strSponProgram) . '
</td>');
echoT('
<td class="enpRpt" style="text-align: right;">' . $spon->strCommitACOCurSym . ' ' . number_format($spon->curCommitment, 2) . ' ' . $spon->strCommitACOFlagImg . '
</td>');
echoT('
<td class="enpRpt" style="vertical-align: top;">' . $spon->strCommitACOCurSym . ' ' . '<input type="text"
name="' . $spon->strAmountFN . '" style="width: 60pt; text-align: right;"
onChange="bUserDataEntered = true;"
value="' . $spon->txtAmount . '">' . $validation->amount[$lSponID] . '<br><span style="font-size: 8pt;">' . $spon->strLastPay . '</span>
</td>');
echoT('
<td class="enpRpt">
<table cellpadding="0" cellspacing="0">
<tr>
<td style="text-align: right; font-size: 8pt;">
check #:
</td>
<td>
<input type="text" style="width: 60pt;"
onChange="bUserDataEntered = true;"
name="' . $spon->strCheckFN . '"
value="' . $spon->txtCheckNum . '">
</tr>');
echoT(' <tr>
<td style="text-align: right; vertical-align: top; font-size: 8pt; padding-top: 4px;">
payment type:
</td>
<td>' . $spon->strDDLPayType . $validation->paymentType[$lSponID] . '
</td>
</tr>');
//----------------------
// Payment Date
//----------------------
echoT(' <tr>
<td style="text-align: right; vertical-align: top; font-size: 8pt; padding-top: 6px;">
payment date:
</td>
<td>' . $clsForm->strGenericDatePicker('', 'txtPayDate' . $lSponID, true, $spon->txtPayDate, 'frmBatchPayments', 'datepicker' . $lSponID, '', true) . $validation->paymentDate[$lSponID] . '
</td>
</tr>');
echoT('
</table>
</td>');
echoT('
</tr>');
echoT(strDatePicker('datepicker' . $lSponID, true));
}
closeSponsorPaymentTable();
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:80,代码来源:batch_payments_form_view.php
示例7: form_error
$clsForm->strExtraFieldText = form_error('txtADate');
echoT($clsForm->strGenericDatePicker('Attendance Date', 'txtADate', true, $formData->txtADate, 'frmCloneAttendance', 'datepicker1'));
//----------------------
// skip duplicates
//----------------------
$clsForm->strStyleExtraLabel = 'padding-top: 4px;';
$clsForm->strExtraFieldText = '<br><i>If checked, skip clients who already
have attendance records<br>for the specified date.</i>';
echoT($clsForm->strGenericCheckEntry('Skip duplicates', 'chkSkipDups', 'true', false, $bSkipDups));
// the client list
$clsForm->strStyleExtraLabel = 'padding-top: 8px;';
$strClientChk = strHTMLSetClearAllButton(true, 'frmCloneAttendance', 'chkClient[]', 'Select All') . ' ' . strHTMLSetClearAllButton(false, 'frmCloneAttendance', 'chkClient[]', 'Clear All') . '<br>' . "\n";
foreach ($clients as $client) {
if ($client->lNumERecs > 0) {
$lClientID = $client->lClientID;
foreach ($client->erecs as $erec) {
$strEDates = ' <i>(enrollment: ' . date('m/d/Y', $erec->dteStart) . ' - ';
if (is_null($erec->dteEnd) || $erec->dteEnd == 0) {
$strEDates .= 'ongoing)</i>';
} else {
$strEDates .= date('m/d/Y', $erec->dteEnd) . ')</i>';
}
$strClientChk .= '<div><input type="checkbox" name="chkClient[]" ' . ($client->bSelected ? 'checked' : '') . ' value="' . $client->lClientID . '_' . $erec->lKeyID . '">' . strLinkView_ClientRecord($lClientID, 'View client record', true) . ' ' . htmlspecialchars($client->strClientLName . ', ' . $client->strClientFName) . ' ' . $strEDates . '</div>' . "\n";
}
}
}
echoT($clsForm->strLabelRow('Clone to', $strClientChk, 1));
echoT($clsForm->strSubmitEntry('Clone', 2, 'cmdSubmit', 'text-align: center; width: 150px;', 'return(verifyBoxChecked(\'frmCloneAttendance\', \'chkClient[]\', \' (Clients)\'))'));
echoT('</table>' . form_close('<br>'));
echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>');
closeBlock();
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:31,代码来源:arec_clone_view.php
示例8: strAttribRptSponsor
private function strAttribRptSponsor(&$sRpt, $strLimit, $strAttrib, $strLabel)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $genumDateFormat;
$this->load->model('sponsorship/msponsorship', 'clsSpon');
$params = array('enumStyle' => 'enpRptC');
$clsRpt = new generic_rpt($params);
// $this->load->helper('dl_util/email_web');
$this->clsSpon->sponsorInfoGenericViaWhere(" AND sp_lAttributedTo {$strAttrib} ", $strLimit);
$strOut = '<br>' . $clsRpt->openReport();
$strOut .= $clsRpt->writeTitle('Sponsorships ' . $strLabel, '', '', 7);
$strOut .= $clsRpt->openRow(true);
$strOut .= $clsRpt->writeLabel('SponsorID', 60) . $clsRpt->writeLabel('Active', 90) . $clsRpt->writeLabel('Sponsor', 150) . $clsRpt->writeLabel('Address') . $clsRpt->writeLabel('Client') . $clsRpt->writeLabel('Commitment') . $clsRpt->closeRow();
foreach ($this->clsSpon->sponInfo as $sponRec) {
$lSponID = $sponRec->lKeyID;
$lFID = $sponRec->lForeignID;
if ($sponRec->bInactive) {
$strIStyle = 'color: #999;';
$strActiveDates = 'sponsor dates: ' . date($genumDateFormat, $sponRec->dteStart) . ' - ' . date($genumDateFormat, $sponRec->dteInactive);
} else {
$strIStyle = '';
$strActiveDates = 'sponsor since: ' . date($genumDateFormat, $sponRec->dteStart);
}
$strOut .= $clsRpt->openRow(true);
$strOut .= $clsRpt->writeCell(strLinkView_Sponsorship($lSponID, 'View sponsorship record', true) . ' ' . str_pad($lSponID, 5, '0', STR_PAD_LEFT), 60, $strIStyle);
//---------------------------
// active state
//---------------------------
$strOut .= $clsRpt->writeCell($strActiveDates, '', $strIStyle);
if ($sponRec->bSponBiz) {
$strLinkFID = 'business ID: ' . strLinkView_BizRecord($lFID, 'View business record', true);
} else {
$strLinkFID = 'people ID: ' . strLinkView_PeopleRecord($lFID, 'View people record', true);
}
$strLinkFID .= str_pad($lFID, 5, '0', STR_PAD_LEFT);
//---------------------------
// sponsor name
//---------------------------
$strHonoree = '';
if ($sponRec->bHonoree) {
$lHFID = $sponRec->lHonoreeID;
if ($sponRec->bHonBiz) {
$strLinkHFID = 'business ID: ' . strLinkView_BizRecord($lHFID, 'View business record', true);
} else {
$strLinkHFID = 'people ID: ' . strLinkView_PeopleRecord($lHFID, 'View people record', true);
}
$strLinkHFID .= str_pad($lHFID, 5, '0', STR_PAD_LEFT);
$strHonoree = '<br><br>Honoree: ' . $sponRec->strHonSafeNameLF . '<br>' . $strLinkHFID;
}
$strContact = '<b>' . $sponRec->strSponSafeNameLF . '</b>' . '<br>' . $strLinkFID . $strHonoree . '<br>
program: ' . htmlspecialchars($sponRec->strSponProgram);
$strOut .= $clsRpt->writeCell($strContact, '', $strIStyle);
//---------------------------
// address / contact
//---------------------------
$strAddr = strBuildAddress($sponRec->strSponAddr1, $sponRec->strSponAddr2, $sponRec->strSponCity, $sponRec->strSponState, $sponRec->strSponCountry, $sponRec->strSponZip, true);
if ($sponRec->strSponEmail . '' != '') {
$strAddr .= strBuildEmailLink($sponRec->strSponEmail, '<br>', false, ' style="' . $strIStyle . '"');
}
$strPhone = strPhoneCell($sponRec->strSponPhone, $sponRec->strSponPhone, true, true);
if ($strPhone != '') {
$strAddr .= '<br>' . $strPhone;
}
$strOut .= $clsRpt->writeCell($strAddr, '', $strIStyle);
//---------------------------
// client
//---------------------------
$lClientID = $sponRec->lClientID;
if (is_null($lClientID)) {
if ($sponRec->bInactive) {
$strClientInfo = '<i>Client not set</i>';
} else {
$strClientInfo = '<i>Client not set</i><br>' . strLinkAdd_ClientToSpon($lSponID, 'Add client to sponsorship', false);
}
} else {
$strClientInfo = '<b>' . $sponRec->strClientSafeNameLF . '</b><br>' . 'client ID: ' . strLinkView_ClientRecord($lClientID, 'View client record', true) . str_pad($lClientID, 5, '0', STR_PAD_LEFT) . '<br>' . htmlspecialchars($sponRec->strLocation) . '<br>' . 'birth/age: ' . $sponRec->strClientAgeBDay;
$strClientInfo .= '<br>' . htmlspecialchars($sponRec->strLocation);
}
$strOut .= $clsRpt->writeCell($strClientInfo, '', $strIStyle);
//---------------------------
// financial commitment
//---------------------------
$strOut .= $clsRpt->writeCell($sponRec->strCommitACOCurSym . ' ' . number_format($sponRec->curCommitment, 2) . ' ' . $sponRec->strCommitACOFlagImg . '<br>' . strLinkView_SponsorFinancials($lSponID, 'View sponsorship financials', true) . strLinkView_SponsorFinancials($lSponID, 'View financials', false), '', $strIStyle);
$strOut .= $clsRpt->closeRow();
}
$strOut .= $clsRpt->closeReport();
return $strOut;
}
开发者ID:nhom5UET,项目名称:tichhophethong,代码行数:90,代码来源:mattrib.php
示例9: showClientInfo
function showClientInfo($clsRpt, $lCID, $clsClient, $clsDateTime, $bShowAddNew, $lSponID, $bViewOnly, $strClientPreLabel = '')
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $gbDateFormatUS, $genumDateFormat, $glclsDTDateFormat;
if (is_null($lCID)) {
if ($bViewOnly) {
$attributes = new stdClass();
$attributes->lTableWidth = 900;
$attributes->divID = 'clientA';
$attributes->divImageID = 'clientADivImg';
openBlock('Client Information', '', $attributes);
} else {
openBlock('Client Information', '');
}
echoT('<i>No client has been linked to this sponsorship.</i>');
if ($bShowAddNew) {
echoT(' ' . strLinkAdd_ClientToSpon($lSponID, 'Add client to this sponsorship', true) . ' ' . strLinkAdd_ClientToSpon($lSponID, 'Add client to this sponsorship', false) . ' ');
}
if ($bViewOnly) {
$attributes = new stdClass();
$attributes->bCloseDiv = true;
closeBlock($attributes);
} else {
closeBlock();
}
} else {
$clsC = $clsClient->clients[0];
if ($bShowAddNew) {
echoT(strLinkAdd_Client('Add new client', true) . ' ' . strLinkAdd_Client('Add new client', false) . ' ' . strLinkSpecial_SearchClient('Search clients', true) . ' ' . strLinkSpecial_SearchClient('Search clients', false) . '<br>');
}
if (isset($clsC->strFlagsTable)) {
$strCFlags = ' ' . $clsC->strFlagsTable;
} else {
$strCFlags = '';
}
if ($bViewOnly) {
$strBlockLink = strLinkView_ClientRecord($lCID, 'View client record', true) . ' ' . strLinkView_ClientRecord($lCID, 'View client record', false);
$strVocLink = '';
$strLinkLocation = '';
$strLinkStatCat = '';
$strLinkStatHist = '';
$strLinkRem = '';
$attributes = new stdClass();
$attributes->lTableWidth = 900;
$attributes->divID = 'clientB';
$attributes->divImageID = 'clientBDivImg';
openBlock($strClientPreLabel . $clsClient->clients[0]->cv_strVocClientS, $strBlockLink . $strCFlags, $attributes);
} else {
/*
$strBlockLink = strLinkEdit_Client ($lCID, 'Edit client record', true ).' '
.strLinkEdit_Client ($lCID, 'Edit client record', false).' '
.strLinkView_ClientAssessmentViaCID($lCID, 'Client Assessments', true ).' '
.strLinkView_ClientAssessmentViaCID($lCID, 'Client Assessments', false);
*/
$strBlockLink = strLinkEdit_Client($lCID, 'Edit client record', true) . ' ' . strLinkEdit_Client($lCID, 'Edit client record', false);
$strVocLink = strLinkEdit_ClientRecVoc($lCID, 'Edit this client\'s vocabulary', true) . ' ';
$strLinkLocation = strLinkView_ClientsViaLocation($clsC->lLocationID, 'View this location\'s directory', true);
$strLinkStatCat = strLinkEdit_ClientRecStatCat($lCID, 'Edit this client\'s status category', true) . ' ';
$strLinkStatHist = strLinkView_ClientStatusHistory($lCID, 'status history', true);
$strLinkRem = ' ' . strLinkRem_Client($lCID, 'Remove client record', true, true);
openBlock($strClientPreLabel . $clsClient->clients[0]->cv_strVocClientS, $strBlockLink . $strCFlags . $strLinkRem);
}
echoT($clsRpt->openReport() . $clsRpt->openRow() . $clsRpt->writeLabel('Client ID:') . $clsRpt->writeCell(str_pad($lCID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell(htmlspecialchars($clsC->strFName . ' ' . $clsC->strMName . ' ' . $clsC->strLName . ' (' . $clsC->enumGender . ')')) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Enrollment Date:') . $clsRpt->writeCell(date($genumDateFormat, $clsC->dteEnrollment)) . $clsRpt->closeRow());
//---------------
// birthday
//---------------
$mdteBirth = $clsC->dteBirth;
$clsDateTime->setDateViaMySQL(0, $mdteBirth);
$strAgeBDay = $clsDateTime->strPeopleAge(0, $mdteBirth, $lAgeYears, $glclsDTDateFormat);
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Birth Date:') . $clsRpt->writeCell($strAgeBDay) . $clsRpt->closeRow());
//---------------
// location
//---------------
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Location:') . $clsRpt->writeCell($strLinkLocation . htmlspecialchars($clsC->strLocation)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Max # of Sponsors:') . $clsRpt->writeCell($clsC->lMaxSponsors) . $clsRpt->closeRow());
//------------------------
// Address
//------------------------
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Address:') . $clsRpt->writeCell($clsC->strAddress) . $clsRpt->closeRow());
//------------------------
// Email
//------------------------
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Email:') . $clsRpt->writeCell($clsC->strEmailFormatted) . $clsRpt->closeRow());
//------------------------
// Phone
//------------------------
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Phone:') . $clsRpt->writeCell(htmlspecialchars(strPhoneCell($clsC->strPhone, $clsC->strCell))) . $clsRpt->closeRow());
//---------------
// Vocabulary
//---------------
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Vocabulary:') . $clsRpt->writeCell($strVocLink . $clsC->cv_strVocTitle) . $clsRpt->closeRow());
//------------------
// Status Category
//------------------
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Status Category:') . $clsRpt->writeCell($strLinkStatCat . $clsC->strStatusCatName) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Current Status:') . $clsRpt->writeCell($strLinkStatHist . $clsC->curStat_strStatus . ' <small>(set on ' . date($genumDateFormat, $clsC->curStat_dteStatus) . ')</small>') . $clsRpt->closeRow());
//------------------
// Attributed To
//------------------
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Attributed To:') . $clsRpt->writeCell(htmlspecialchars($clsC->strAttrib)) . $clsRpt->closeRow());
//.........这里部分代码省略.........
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:101,代码来源:record_view_helper.php
示例10: foreach
<tr>
<td class="enpRptLabel" style="width: 50pt;">
Client ID
</td>
<td class="enpRptLabel">
Client
</td>
<td class="enpRptLabel">
Program/Enrollment
</td>
</tr>');
foreach ($enrollees as $erec) {
$lClientID = $erec->lClientID;
echoT('
<tr class="makeStripe">
<td class="enpRpt" style="width: 50pt; text-align: center;">' . strLinkView_ClientRecord($lClientID, 'View Client Record', true) . str_pad($lClientID, 5, '0', STR_PAD_LEFT) . '
</td>
<td class="enpRpt" style="width: 160pt;">' . htmlspecialchars($erec->strCLName . ', ' . $erec->strCFName) . '
</td>
<td class="enpRpt">' . strProgramTable($lClientID, $erec->programs) . '
</td>
</tr>');
}
echoT('</table><br><br>');
function strProgramTable($lClientID, $programs)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $genumDateFormat;
$strOut = '<table class="enpRpt" width="100%">';
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:31,代码来源:cprograms_enrollee_rpt_run_view.php
示例11: strLinkView_ViaRecType
function strLinkView_ViaRecType($enumSearchType, $lFKey01 = null, $lFKey02 = null)
{
//-----------------------------------------------------------------
//
//-----------------------------------------------------------------
switch ($enumSearchType) {
case CENUM_CONTEXT_HOUSEHOLD:
return strLinkView_Household($lFKey01, $lFKey02, 'View household', true);
break;
case CENUM_CONTEXT_PEOPLE:
return strLinkView_PeopleRecord($lFKey01, 'View people record', true);
break;
case CENUM_CONTEXT_BIZ:
return strLinkView_BizRecord($lFKey01, 'View business/prganization record', true);
break;
case CENUM_CONTEXT_CLIENT:
return strLinkView_ClientRecord($lFKey01, 'View client record', true);
break;
case CENUM_CONTEXT_SPONSORSHIP:
return strLinkView_Sponsorship($lFKey01, 'View sponsor record', true);
break;
default:
screamForHelp($enumSearchType . ': invalid link type<br>error on <b>line:</b> ' . __LINE__ . '<br><b>file: </b>' . __FILE__ . '<br><b>function: </b>' . __FUNCTION__);
break;
}
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:26,代码来源:link_helper.php
示例12: strDisplayValueViaType
function strDisplayValueViaType($vVal, $enumType, $lTableID, $bAsTableRow, $lWidth = 0, $strClass = 'enpRpt', $strStyleExtra = '')
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $gbDateFormatUS;
$strAlign = 'left';
switch ($enumType) {
case CS_FT_HEADING:
$strOut = $vVal;
break;
case CS_FT_LOG:
$strOut = $vVal;
break;
case CS_FT_CHECKBOX:
$strOut = $vVal ? 'Yes' : 'No';
break;
case CS_FT_DATE:
$strAlign = 'center';
if ($vVal . '' == '') {
$strOut = ' ';
} else {
$strOut = strNumericDateViaMysqlDate($vVal, $gbDateFormatUS);
}
break;
case CS_FT_DDL:
case CS_FT_DDL_SPECIAL:
case CS_FT_DDLMULTI:
case CS_FT_TEXT80:
case CS_FT_TEXT255:
case CS_FT_TEXT20:
$strOut = htmlspecialchars($vVal);
break;
case CS_FT_TEXT:
case CS_FT_TEXTLONG:
$strOut = nl2br(htmlspecialchars($vVal));
break;
case CS_FT_ID:
$strAlign = 'center';
$strOut = str_pad($vVal, 5, '0', STR_PAD_LEFT);
switch ($lTableID) {
case CL_STID_CLIENT:
$strOut .= ' ' . strLinkView_ClientRecord($vVal, 'View client record', true);
break;
case CL_STID_GIFTS:
$strOut .= ' ' . strLinkView_GiftsRecord($vVal, 'View gift record', true);
break;
case CL_STID_PEOPLEBIZ:
break;
case CL_STID_PEOPLE:
$strOut .= ' ' . strLinkView_PeopleRecord($vVal, 'View people record', true);
break;
case CL_STID_BIZ:
$strOut .= ' ' . strLinkView_BizRecord($vVal, 'View business/organization record', true);
break;
}
break;
case CS_FT_INTEGER:
$strAlign = 'right';
if ($vVal . '' == '') {
$strOut = ' ';
} else {
$strOut = number_format($vVal, 0);
}
break;
case CS_FT_CURRENCY:
$strAlign = 'right';
if ($vVal . '' == '') {
$strOut = ' ';
} else {
$strOut = number_format($vVal, 2);
}
break;
default:
screamForHelp($enumType . ': unexpected field type<br>error on line <b> -- ' . __LINE__ . ' --</b>,<br>file ' . __FILE__ . ',<br>function ' . __FUNCTION__);
break;
}
if ($bAsTableRow) {
if ($lWidth > 0) {
$strStyle = ' style="width: ' . $lWidth . 'pt; ' . $strStyleExtra . ' text-align: ' . $strAlign . ';" ';
} else {
$strStyle = ' style="' . $strStyleExtra . ' text-align: ' . $strAlign . ';" ';
}
$strOut = '<td class="' . $strClass . '" ' . $strStyle . '>' . $strOut . '</td>';
}
return $strOut;
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:87,代码来源:field_display_helper.php
示例13: sponsorshipHTMLSummary
public function sponsorshipHTMLSummary()
{
//-----------------------------------------------------------------------
// assumes user has called $clsSpon->sponsorInfoViaID($lSID);
//-----------------------------------------------------------------------
global $gdteNow, $genumDateFormat;
$params = array('enumStyle' => 'terse');
$clsRpt = new generic_rpt($params);
$clsRpt->setEntrySummary();
$sponRec = $this->sponInfo[0];
$bBiz = $sponRec->bSponBiz;
if ($bBiz) {
$strLinkPeopleBiz = strLinkView_BizRecord($sponRec->lForeignID, 'View business record', true);
$strLabel = '(business ID: ';
} else {
$strLinkPeopleBiz = strLinkView_PeopleRecord($sponRec->lForeignID, 'View people record', true);
$strLabel = '(people ID: ';
}
$lSponID = $sponRec->lKeyID;
$strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel(' Sponsor:') . $clsRpt->writeCell($strLinkPeopleBiz . ' ' . $sponRec->strSponSafeNameFL . ' ' . $strLabel . str_pad($sponRec->lForeignID, 5, '0', STR_PAD_LEFT) . ')') . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Sponsorship:') . $clsRpt->writeCell(strLinkView_Sponsorship($lSponID, 'View sponsorship', true) . ' ' . htmlspecialchars($sponRec->strSponProgram) . ' (sponsor ID: ' . str_pad($lSponID, 5, '0', STR_PAD_LEFT) . ')') . $clsRpt->closeRow();
if (is_null($sponRec->lClientID)) {
$strClient = '<i>not set</i>';
} else {
$strClient = strLinkView_ClientRecord($sponRec->lClientID, 'View client record', true) . ' ' . $sponRec->strClientSafeNameFL . ' (client ID: ' . str_pad($sponRec->lClientID, 5, '0', STR_PAD_LEFT) . ')';
}
$strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Client:') . $clsRpt->writeCell($strClient) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Status:') . $clsRpt->writeCell($sponRec->bInactive ? 'Inactive since ' . date($genumDateFormat, $sponRec->dteInactive) : 'Active') . $clsRpt->closeRow() . $clsRpt->closeReport('<br>');
return $strOut;
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:28,代码来源:msponsorship.php
示例14: echoT
echoT('
</td>');
}
//---------------------------
// client
//---------------------------
if ($showFields->bClient) {
$lClientID = $sponRec->lClientID;
if (is_null($lClientID)) {
if ($sponRec->bInactive) {
$strClientInfo = '<i>Client not set</i>';
} else {
$strClientInfo = '<i>Client not set</i><br>' . strLinkAdd_ClientToSpon($lSponsorID, 'Add client to sponsorship', false);
}
} else {
$strClientInfo = '<b>' . $sponRec->strClientSafeNameLF . '</b><br>' . 'client ID: ' . strLinkView_ClientRecord($lClientID, 'View client record', true) . str_pad($lClientID, 5, '0', STR_PAD_LEFT) . '<br>' . htmlspecialchars($sponRec->strLocation) . '<br>' . 'birth/age: ' . $sponRec->strClientAgeBDay;
if ($showFields->bProgram) {
$strClientInfo .= '<br>' . htmlspecialchars($sponRec->strLocation);
}
}
echoT('
<td class="enpRpt" style="width: 130pt;' . $strIStyle . '">' . $strClientInfo . '
</td>');
}
//---------------------------
// financial commitment
//---------------------------
if ($showFields->bCommitment) {
echoT('
<td class="enpRpt" style="width: 80pt; text-align: right;' . $strIStyle . '">' . $sponRec->strCommitACOCurSym . ' ' . number_format($sponRec->curCommitment, 2) . ' ' . $sponRec->strCommitACOFlagImg . '<br>' . strLinkView_SponsorFinancials($lSponsorID, 'View sponsorship financials', true) . strLinkView_SponsorFinancials($lSponsorID, 'View financials', false) . '
</td>');
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:31,代码来源:rpt_generic_spon_list.php
示例15: strClientBasedGroupRptHTML
private function strClientBasedGroupRptHTML()
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $glclsDTDateFormat;
$clsDateTime = new dl_date_time();
$strOut = '<table class="enpRptC">
|
请发表评论