本文整理汇总了PHP中bAllowAccess函数的典型用法代码示例。如果您正苦于以下问题:PHP bAllowAccess函数的具体用法?PHP bAllowAccess怎么用?PHP bAllowAccess使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bAllowAccess函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: mgrViewLog
function mgrViewLog($lUserID)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
$this->load->helper('dl_util/verify_id');
verifyID($this, $lUserID, 'user ID');
$lUserID = (int) $lUserID;
$displayData = array();
$displayData['js'] = '';
$this->load->helper('dl_util/permissions');
// in autoload
if (!bAllowAccess('management')) {
return '';
}
$displayData['lUserID'] = $lUserID = (int) $lUserID;
//-------------------------------------
// models, libraries, and helpers
//-------------------------------------
$this->load->model('staff/mstaff_status', 'cstat');
$this->load->model('admin/muser_accts', 'clsUser');
$this->load->model('admin/mpermissions', 'perms');
$this->load->helper('dl_util/web_layout');
$this->load->helper('staff/link_staff');
$this->load->helper('staff/status_report');
// load the current user's record
$this->clsUser->loadSingleUserRecord($lUserID);
$displayData['uRec'] = $uRec =& $this->clsUser->userRec[0];
$this->cstat->loadStatusReportViaUserID($lUserID);
$displayData['lNumSReports'] = $lNumSReports = $this->cstat->lNumSReports;
$displayData['sreports'] = $sreports =& $this->cstat->sreports;
// $displayData['bReviewedByTheMan'] = false;
// load the reviews for this status report
if ($lNumSReports > 0) {
foreach ($sreports as $srpt) {
$lRptID = $srpt->lKeyID;
$srpt->bReviewedByTheMan = false;
$this->cstat->loadReviewsViaRptID($lRptID, $srpt->lNumReviews, $srpt->reviewLog);
if ($srpt->lNumReviews > 0) {
foreach ($srpt->reviewLog as $rlog) {
if ($rlog->lReviewerID == $lUserID) {
$srpt->bReviewedByTheMan = true;
break;
}
}
}
}
}
//--------------------------
// breadcrumbs
//--------------------------
$displayData['pageTitle'] = anchor('aayhf/main/aayhfMenu', 'AAYHF', 'class="breadcrumb"') . ' | ' . anchor('staff/mgr_performance/review', 'Status Report Review', 'class="breadcrumb"') . ' | Status Log for ' . $uRec->strSafeName;
$displayData['title'] = CS_PROGNAME . ' | Status Report Review';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$displayData['mainTemplate'] = 'aayhf/aayhf_staff/mgr_status_staff_log_view';
$this->load->vars($displayData);
$this->load->view('template');
}
示例2: viewTS
function viewTS($lTSLogID)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $glUserID;
$displayData = array();
$displayData['js'] = '';
$displayData['lTSLogID'] = $lTSLogID = (int) $lTSLogID;
//-------------------------
// models & helpers
//-------------------------
$this->load->helper('staff/link_staff');
$this->load->helper('dl_util/web_layout');
$this->load->model('staff/mtime_sheets', 'cts');
$this->load->helper('staff/timesheet');
$this->load->helper('dl_util/time_date');
$params = array('enumStyle' => 'enpRptC');
$this->load->library('generic_rpt', $params);
//---------------------------
// stripes
//---------------------------
$this->load->model('util/mbuild_on_ready', 'clsOnReady');
$this->clsOnReady->addOnReadyTableStripes();
$this->clsOnReady->closeOnReady();
$displayData['js'] .= $this->clsOnReady->strOnReady;
$this->cts->loadUserTSLogByLogID($lTSLogID, $lNumLogRecs, $logRecs, true);
if ($lNumLogRecs == 0) {
redirect('staff/timesheets/ts_log_edit/error_tst_access');
}
$displayData['logRec'] = $logRec =& $logRecs[0];
$lUserID = $logRec->lStaffID;
$lTSTemplateID = $logRec->lTimeSheetID;
// if time sheet is being edited by a 3rd party, make sure they are authorized
if ($glUserID != $lUserID) {
if (!bAllowAccess('timeSheetAdmin')) {
// if (!$this->cts->bIsUserAuthorizedToViewEdit($lTSTID, $glUserID)){
redirect('staff/timesheets/ts_log_edit/error_tst_access');
}
}
$displayData['lUserID'] = $lUserID;
// load project assignments for this time sheet
$this->cts->projectsViaLogID($lTSLogID, $displayData['lNumProjects'], $displayData['projects']);
//--------------------------
// breadcrumbs
//--------------------------
$displayData['pageTitle'] = anchor('main/menu/more', 'More', 'class="breadcrumb"') . ' | ' . anchor('staff/timesheets/ts_log/viewLog', 'Time Sheet Log', 'class="breadcrumb"') . ' | View Time Sheet';
$displayData['title'] = CS_PROGNAME . ' | Staff';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$displayData['mainTemplate'] = 'staff/timesheets/view_timesheet_view';
$this->load->vars($displayData);
$this->load->view('template');
}
示例3: initClientReportDisplay
function initClientReportDisplay(&$displayData)
{
$displayData['showFields'] = new stdClass();
$displayData['showFields']->bLocationDDL = false;
$displayData['showFields']->bClientID = true;
$displayData['showFields']->bRemClient = true;
$displayData['showFields']->bName = true;
$displayData['showFields']->bAgeGender = true;
$displayData['showFields']->bLocation = true;
$displayData['showFields']->bStatus = true;
$displayData['showFields']->bSponsors = bAllowAccess('showSponsors');
}
示例4: viewUsers
function viewUsers()
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
// $this->load->helper('dl_util/permissions'); // in autoload
if (!bAllowAccess('timeSheetAdmin')) {
redirect('staff/timesheets/ts_log_edit/error_tst_access');
}
$displayData = array();
$displayData['js'] = '';
//-------------------------
// models & helpers
//-------------------------
$this->load->helper('staff/link_staff');
$this->load->helper('dl_util/web_layout');
$this->load->model('staff/mtime_sheets', 'cts');
$this->load->helper('staff/timesheet');
$this->load->helper('staff/link_staff');
$this->load->helper('dl_util/time_date');
//--------------------------
// Stripes
//--------------------------
$this->load->model('util/mbuild_on_ready', 'clsOnReady');
$this->clsOnReady->addOnReadyTableStripes();
$this->clsOnReady->closeOnReady();
$displayData['js'] .= $this->clsOnReady->strOnReady;
$this->cts->loadMappedUsers($lNumUsers, $users);
if ($lNumUsers > 0) {
foreach ($users as $user) {
$lUserID = $user->lStaffID;
$user->lNumSubmitted = $this->cts->lNumSubUnSubTSViaUserID(true, $lUserID);
$user->lNumNotSubmitted = $this->cts->lNumSubUnSubTSViaUserID(false, $lUserID);
}
}
$displayData['lNumUsers'] = $lNumUsers;
$displayData['users'] =& $users;
/*/ -------------------------------------
echo('<font class="debug">'.substr(__FILE__, strrpos(__FILE__, '\\'))
.': '.__LINE__.'<br>$users <pre>');
echo(htmlspecialchars( print_r($users, true))); echo('</pre></font><br>');
// ------------------------------------- */
//--------------------------
// breadcrumbs
//--------------------------
$displayData['pageTitle'] = anchor('main/menu/more', 'More', 'class="breadcrumb"') . ' | Time Sheet Administration';
$displayData['title'] = CS_PROGNAME . ' | Staff';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$displayData['mainTemplate'] = 'staff/timesheets/ts_admin_users_view';
$this->load->vars($displayData);
$this->load->view('template');
}
示例5: initPeopleReportDisplay
function initPeopleReportDisplay(&$displayData)
{
$displayData['showFields'] = new stdClass();
$displayData['showFields']->bPeopleID = true;
$displayData['showFields']->bRemPeople = bAllowAccess('editPeopleBizVol');
$displayData['showFields']->bName = true;
$displayData['showFields']->bAddress = true;
$displayData['showFields']->bPhoneEmail = true;
$displayData['showFields']->bGiftSummary = bAllowAccess('showFinancials');
$displayData['showFields']->bSponsor = bAllowAccess('showSponsors');
$displayData['showFields']->bImportID = false;
$displayData['showFields']->deleteReturnPath = null;
$displayData['showFields']->lReturnPathID = null;
}
示例6: initBizReportDisplay
function initBizReportDisplay(&$displayData)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
$displayData['showFields'] = new stdClass();
$displayData['showFields']->bBizID = true;
$displayData['showFields']->bRemBiz = true;
$displayData['showFields']->bName = true;
$displayData['showFields']->bAddress = true;
$displayData['showFields']->bPhoneEmail = true;
$displayData['showFields']->bGiftSummary = bAllowAccess('showGiftHistory');
$displayData['showFields']->bSponsor = bAllowAccess('showSponsors');
$displayData['showFields']->bContacts = true;
$displayData['showFields']->bContactNames = false;
$displayData['showFields']->bImportID = false;
$displayData['showFields']->deleteReturnPath = null;
$displayData['showFields']->lReturnPathID = null;
}
示例7: strStatReviewTable
function strStatReviewTable($lSRptID, &$srpt)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $glUserID, $genumDateFormat;
if (!$srpt->bPublished) {
return '<i>n/a</i>';
}
$bReviewedByUser = false;
$strOut = '';
if ($srpt->lNumReviews == 0) {
$strOut .= '<i>No reviews for this weekly report.</i><br>';
} else {
foreach ($srpt->reviewLog as $review) {
$lReviewID = $review->lKeyID;
$lReviewerID = $review->lReviewerID;
$bIAmTheMan = $glUserID == $lReviewerID;
if ($bIAmTheMan) {
$bReviewedByUser = true;
}
if ($review->bReviewed) {
$strOut .= strLinkView_StaffReviewedRpt($lSRptID, $lReviewID, 'View review', true) . ' ' . 'reviewed by ' . $review->strReviewerSafeName . ' on ' . date('l, ' . $genumDateFormat, $review->dteReviewed) . '<br>';
} else {
if ($bIAmTheMan) {
$strOut .= strLinkEdit_StaffStatReview($lSRptID, $lReviewID, 'Edit the review draft', true) . ' ';
}
$strOut .= 'Draft saved by ' . $review->strReviewerSafeName . ' on ' . date('l, ' . $genumDateFormat, $review->dteLastUpdate) . '<br>';
}
}
$strOut .= strLinkView_StaffReviewedRpt($lSRptID, -1, 'View all reviews', true) . ' ' . strLinkView_StaffReviewedRpt($lSRptID, -1, 'View all reviews', false) . '<br>';
}
if (!$bReviewedByUser && bAllowAccess('management')) {
$strOut .= '<span style="background-color: #e1def6; color: red;">';
$strOut .= strLinkAdd_StaffStatReview($lSRptID, 'Add a review to weekly report', true) . ' ' . strLinkAdd_StaffStatReview($lSRptID, 'Add a review to weekly report', false, ' style="font-weight: bold; color: #5c48f4;" ') . '</span><br>' . "\n";
}
return $strOut;
}
示例8: writeProjectRow
<?php
if (!bAllowAccess('adminOnly')) {
return '';
}
echoT('<br>' . strLinkAdd_TimeSheetProject('Add time sheet project', true) . ' ' . strLinkAdd_TimeSheetProject('Add time sheet project', false) . '<br>');
if ($lNumProjects <= 0) {
echoT('<br><i>There are no time sheet projects defined in your database.</i><br><br>');
return;
}
openTSProjectsTable();
foreach ($projects as $proj) {
writeProjectRow($proj);
}
closeTSProjectsTable();
function writeProjectRow($proj)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
$lProjectID = $proj->lKeyID;
echoT('
<tr class="makeStripe">
<td class="enpRpt" style="width: 50pt; text-align: center;">' . strLinkEdit_TimeSheetProject($lProjectID, 'Edit project', true) . ' ' . str_pad($lProjectID, 5, '0', STR_PAD_LEFT) . '
</td>
<td class="enpRpt" style="width: 20pt; text-align: center;">' . strLinkRem_TimeSheetProject($lProjectID, 'Remove project', true, true) . '
</td>
<td class="enpRpt" style="width: 200pt;">' . htmlspecialchars($proj->strProjectName) . '
</td>
<td class="enpRpt" style="text-align: center;">' . ($proj->bInternalProject ? 'Yes' : 'No') . '
</td>
示例9: viewRec
function viewRec($lSReportID, $lReviewID = 0)
{
//------------------------------------------------------------------------
// if $lReviewID == -1, load all reviews
//------------------------------------------------------------------------
global $glUserID, $gdteNow;
/*----------------------------
echo(__FILE__.' '.__LINE__.'<br>'."\n"); $this->output->enable_profiler(TRUE);
//----------------------------- */
if (!bTestForURLHack('notVolunteer')) {
return;
}
$displayData = array();
$displayData['js'] = '';
$displayData['lSReportID'] = $lSReportID = (int) $lSReportID;
$displayData['lReviewID'] = $lReviewID = (int) $lReviewID;
$displayData['bAddReview'] = $bAddReview = $lReviewID != 0;
//-------------------------------------
// models, libraries, and helpers
//-------------------------------------
$this->load->model('staff/mstaff_status', 'cstat');
$params = array('enumStyle' => 'terse');
$this->load->library('generic_rpt', $params);
$this->load->helper('staff/status_report');
$this->load->helper('dl_util/web_layout');
$this->load->helper('staff/link_staff');
// load the status report
$this->cstat->loadStatusReportViaRptID($lSReportID);
$displayData['sreport'] = $sreport =& $this->cstat->sreports[0];
// if tagged with a review, load the review
if ($bAddReview) {
if ($lReviewID == -1) {
$this->cstat->loadReviewsViaRptID($lSReportID, $displayData['lNumReviews'], $displayData['reviews']);
} else {
$this->cstat->loadReviewsViaReviewID($lReviewID, $displayData['lNumReviews'], $displayData['reviews']);
}
}
$this->load->helper('js/div_hide_show');
$displayData['js'] .= showHideDiv();
$bAsTheMan = false;
if ($glUserID != $sreport->lUserID) {
if (!bAllowAccess('management')) {
return;
}
$bAsTheMan = true;
}
$displayData['bAsTheMan'] = $bAsTheMan;
//--------------------------
// breadcrumbs
//--------------------------
if ($bAsTheMan) {
$displayData['pageTitle'] = anchor('aayhf/main/aayhfMenu', 'AAYHF', 'class="breadcrumb"') . ' | ' . anchor('staff/mgr_performance/review', 'Status Report Review', 'class="breadcrumb"') . ' | ' . anchor('staff/mgr_performance/mgrViewLog/' . $sreport->lUserID, 'Status Log for ' . $sreport->strRptSafeName, 'class="breadcrumb"') . ' | Status Record';
} else {
$displayData['pageTitle'] = anchor('aayhf/main/aayhfMenu', 'AAYHF', 'class="breadcrumb"') . ' | ' . anchor('staff/performance/log', 'Status Report Log', 'class="breadcrumb"') . ' | Status Record';
}
$displayData['title'] = CS_PROGNAME . ' | Status Report';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$displayData['mainTemplate'] = 'aayhf/aayhf_staff/status_record_view';
$this->load->vars($displayData);
$this->load->view('template');
}
示例10: writeTSEntryRow
function writeTSEntryRow(&$attributes, &$lMonthGroup, $logRec)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $genumDateFormat;
$lMon = (int) date('n', $logRec->dteTSEntry);
$lTSLogID = $logRec->lKeyID;
$bPublished = !is_null($logRec->dteSubmitted);
$dteStarting = $logRec->dteTSEntry;
if ($lMonthGroup != $lMon) {
if ($lMonthGroup > 0) {
echoT('</table>' . "\n");
$attributes->bCloseDiv = true;
closeBlock($attributes);
$attributes->bCloseDiv = false;
}
$attributes->divID = 'month' . $lMon . 'Div';
$attributes->divImageID = 'month' . $lMon . 'DivImg';
$attributes->bStartOpen = true;
openBlock(date('F Y', $logRec->dteTSEntry), '', $attributes);
echoT('<table style="border: 1px solid black;">
<tr>
<td style="width: 50pt; color: #fff; background-color: #888;">
<b>entryID</b>
</td>
<td style="width: 50pt; color: #fff; background-color: #888;">
<b>Submitted?</b>
</td>
<td style="width: 200pt; color: #fff; background-color: #888;">
<b>Time Frame</b>
</td>
<td style="width: 150pt; color: #fff; background-color: #888;">
<b>Template</b>
</td>
<td style="width: 80pt; color: #fff; background-color: #888;">
<b>Reporting Period</b>
</td>
<td style="width: 50pt; color: #fff; background-color: #888;">
<b>Total Hours</b>
</td>
</tr>' . "\n");
$lMonthGroup = $lMon;
}
echoT('<tr class="makeStripe">
<td style="width: 50pt; text-align: center; vertical-align: top;">' . strLinkView_TSLogEntries($lTSLogID, 'View Time Sheet', true) . ' ' . str_pad($lTSLogID, 5, '0', STR_PAD_LEFT) . '
</td>');
if ($bPublished) {
if (bAllowAccess('timeSheetAdmin')) {
$strUnsubmit = '<br>' . strLink_TSLogEntryUnsubmit($lTSLogID, 'Unsubmit', true) . ' ' . strLink_TSLogEntryUnsubmit($lTSLogID, 'Unsubmit', false);
} else {
$strUnsubmit = '';
}
echoT('
<td style="width: 80pt; text-align: center; center; vertical-align: top;">Yes: ' . date($genumDateFormat, $logRec->dteSubmitted) . $strUnsubmit . '
</td>');
} else {
echoT('
<td style="width: 80pt; text-align: center; center; vertical-align: top;">' . strLinkEdit_TSLog($lTSLogID, 'Edit Time Sheet', true) . ' No
</td>');
}
echoT('
<td style="width: 50pt; text-align: left; center; vertical-align: top;">
<font style="font-size: 8pt;">Week beginning: </font>' . date('l, F jS, Y', $dteStarting) . '
</td>');
echoT('
<td style="width: 150pt; center; vertical-align: top;">' . htmlspecialchars($logRec->strTSName) . '
</td>');
echoT('
<td style="width: 80pt; center; vertical-align: top;">' . $logRec->enumRptPeriod . '
</td>');
echoT('
<td style="width: 50pt; text-align: right; padding-right: 3pt; center; vertical-align: top;">' . strDurationViaMinutes($logRec->lCumulativeMinutes) . '
</td>
</tr>');
}
示例11: anchor
<li>' . anchor('reports/pre_vol_hours/showOpts', 'Volunteer Hours (Scheduled)') . '</li>
<li>' . anchor('reports/pre_vol_hours/showOptsPVA', 'Volunteer Hours - Scheduled vs. Actual') . '</li>
<li>' . anchor('reports/pre_vol_schedule/past', 'Past Events') . '</li>
<li>' . anchor('reports/pre_vol_schedule/current', 'Current and Future Events') . '</li>
<li>' . anchor('reports/pre_vol_jobcodes/showOpts', 'Job Codes', 'id="viewrpts_vol_jcode"') . '</li>
</ul>
</ul>');
}
//---------------------
// Miscellaneous
//---------------------
echoT('<ul style="margin-top: 4pt;">
<li><b>Miscellaneous</b></li>
<ul>
<li>' . anchor('reports/pre_attrib/attrib', 'Attributed To') . '</li>
<li>' . anchor('reports/pre_log_search/searchOpts', 'Log Search') . '</li>
<li>' . anchor('reports/pre_data_entry/daOpts', 'Data Entry Log') . '</li>
</ul>
</ul>');
echoT('</ul>');
//-----------------
// exports
//-----------------
if (bAllowAccess('allowExports')) {
echoT('<b><u>Exports</u></b>
<ul style="margin-top: 4pt;">
<li>' . anchor('reports/exports/showTableOpts', 'Exports') . '
</li>
</ul>');
}
}
示例12: strLinkView_GrantProvider
function strLinkView_GrantProvider($lProviderID, $strTitle, $bShowIcon, $strAnchorExtra = '')
{
//---------------------------------------------------------------
//
//---------------------------------------------------------------
if (!bAllowAccess('showGrants')) {
return '';
}
return strImageLink('grants/provider_record/viewProvider/' . $lProviderID, $strAnchorExtra, $bShowIcon, !$bShowIcon, IMGLINK_VIEW, $strTitle);
}
示例13: echo
}
$strSearchIn .= '
<input type="checkbox" name="chkLogs[]" value="docsImages" ' . ($bCheckedLog->docsImages ? 'checked' : '') . '>Document and Image descriptions<br>' . "\n";
if (bAllowAccess('showFinancials')) {
$strSearchIn .= '
<input type="checkbox" name="chkLogs[]" value="giftNotes" ' . ($bCheckedLog->giftNotes ? 'checked' : '') . '>Donation notes<br>
';
}
/* -------------------------------------
echo('<font class="debug">'.substr(__FILE__, strrpos(__FILE__, '\\'))
.': '.__LINE__.'<br>$pTabs <pre>');
echo(htmlspecialchars( print_r($pTabs, true))); echo('</pre></font><br>');
// ------------------------------------- */
foreach ($pTabs as $pTab) {
$enumTType = $pTab->enumTType;
if (bAllowAccess('showImagesDocs', $enumTType)) {
$strLabel = 'Personalized ' . $pTab->strTTypeLabel . ' tables';
$lNumLF = $pTab->lNumLogFields;
if ($lNumLF == 0) {
$strCount = '(no log fields)';
} elseif ($lNumLF == 1) {
$strCount = '(one log field)';
} else {
$strCount = '(' . $lNumLF . ' log fields)';
}
$strSearchIn .= ($lNumLF == 0 ? '<i><font style="color: #999;">' : '') . '<input type="checkbox" name="chkLogs[]" value="' . $enumTType . '" ' . ($lNumLF == 0 ? ' disabled="disabled" ' : '') . ' ' . ($bCheckedLog->{$enumTType} ? 'checked' : '') . '>' . $strLabel . ' ' . $strCount . ($lNumLF == 0 ? '</i></font>' : '') . '<br>';
if ($lNumLF == 0) {
} else {
}
}
}
示例14: strLinkSpecial_XferUField
function strLinkSpecial_XferUField($lTableID, $lFieldID, $strTitle, $bShowIcon, $strAnchorExtra = '')
{
//---------------------------------------------------------------
//
//---------------------------------------------------------------
if (!bAllowAccess('adminOnly')) {
return '';
}
return strImageLink('admin/uf_fields/xfer1/' . $lTableID . '/' . $lFieldID, $strAnchorExtra, $bShowIcon, !$bShowIcon, IMGLINK_XFER, $strTitle);
}
示例15: showGifts
function showGifts($lFID, $bBiz, $strCumGiftsNonSoftMon, $strCumGiftsNonSoftInKind, $strCumGiftsSoft, $strCumSpon, $lNumPledges, $lTotHard, $lTotSoft, $lTotInKind, $lNumSponPay)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $gstrCurrency;
$attributes = new stdClass();
$attributes->lTableWidth = 900;
$attributes->divID = 'giftSumDiv';
$attributes->divImageID = 'giftSumDivImg';
$attributes->bStartOpen = false;
openBlock('Donations <span style="font-size: 9pt;">(' . $lTotHard . ' hard / ' . $lTotSoft . ' soft / ' . $lTotInKind . ' in-kind / ' . $lNumSponPay . ' spon pay)</span><br>', strLinkView_GiftsHistory($lFID, 'Gift history', true) . ' ' . strLinkView_GiftsHistory($lFID, 'Gift history', false) . ' ' . strLinkAdd_Gift($lFID, 'New donation', true) . ' ' . strLinkAdd_Gift($lFID, 'New donation', false) . ' ' . strLinkAdd_Pledge($lFID, 'New pledge', true) . ' ' . strLinkAdd_Pledge($lFID, 'New pledge', false), $attributes);
if (bAllowAccess('showGiftHistory')) {
echoT('
<table border="0">
<tr>
<td class="enpView" style="width: 120pt;">
Total Monetary Gifts:
</td>
<td class="enpView" style="text-align: right;
vertical-align: top; width: 70pt;" nowrap>' . $gstrCurrency . $strCumGiftsNonSoftMon . '
</td>
<td class="enpView"> </td>
</tr>');
echoT('
<tr>
<td class="enpView">
Total In-Kind Gifts:
</td>
<td class="enpView" style="text-align: right;">' . $gstrCurrency . ' ' . $strCumGiftsNonSoftInKind . '
</td>
<td class="enpView"> </td>
</tr>');
echoT('
<tr>
<td class="enpView">
Sponsorship Payments:<br>
<i>included in monetary gifts</i>
</td>
<td class="enpView" style="text-align: right;">' . $gstrCurrency . ' ' . $strCumSpon . '
</td>
<td class="enpView"> </td>
</tr>');
echoT('
<tr>
<td class="enpView">
Total Soft Donations:
</td>
<td class="enpView" style="text-align: right;">' . $gstrCurrency . ' ' . $strCumGiftsSoft . '
</td>
<td class="enpView"> </td>
</tr>');
if ($lNumPledges > 0) {
$strLinkPledges = strLinkView_PledgeViaFID($lFID, 'View pledges', true);
} else {
$strLinkPledges = '';
}
echoT('
<tr>
<td class="enpView">
Pledges:
</td>
<td class="enpView" style="text-align: center;">' . $lNumPledges . ' ' . $strLinkPledges . '
</td>
<td class="enpView"> </td>
</tr>');
echoT('
</table>');
}
$attributes = new stdClass();
$attributes->bCloseDiv = true;
closeBlock($attributes);
}