• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP bAllowAccess函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中bAllowAccess函数的典型用法代码示例。如果您正苦于以下问题:PHP bAllowAccess函数的具体用法?PHP bAllowAccess怎么用?PHP bAllowAccess使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了bAllowAccess函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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');
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:58,代码来源:mgr_performance.php


示例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');
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:53,代码来源:view_ts_log.php


示例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');
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:12,代码来源:client_helper.php


示例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');
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:52,代码来源:ts_admin.php


示例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;
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:14,代码来源:people_helper.php


示例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;
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:19,代码来源:biz_helper.php


示例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) . '&nbsp;' . 'reviewed by ' . $review->strReviewerSafeName . ' on ' . date('l, ' . $genumDateFormat, $review->dteReviewed) . '<br>';
            } else {
                if ($bIAmTheMan) {
                    $strOut .= strLinkEdit_StaffStatReview($lSRptID, $lReviewID, 'Edit the review draft', true) . '&nbsp;';
                }
                $strOut .= 'Draft saved by ' . $review->strReviewerSafeName . ' on ' . date('l, ' . $genumDateFormat, $review->dteLastUpdate) . '<br>';
            }
        }
        $strOut .= strLinkView_StaffReviewedRpt($lSRptID, -1, 'View all reviews', true) . '&nbsp;' . 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) . '&nbsp;' . strLinkAdd_StaffStatReview($lSRptID, 'Add a review to weekly report', false, ' style="font-weight: bold; color: #5c48f4;" ') . '</span><br>' . "\n";
    }
    return $strOut;
}
开发者ID:nhom5UET,项目名称:tichhophethong,代码行数:38,代码来源:status_report_helper.php


示例8: writeProjectRow

<?php

if (!bAllowAccess('adminOnly')) {
    return '';
}
echoT('<br>' . strLinkAdd_TimeSheetProject('Add time sheet project', true) . '&nbsp;' . 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) . '&nbsp;' . 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>
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:31,代码来源:lists_ts_projects_view.php


示例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');
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:61,代码来源:performance_rec.php


示例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) . '&nbsp;' . str_pad($lTSLogID, 5, '0', STR_PAD_LEFT) . '
         </td>');
    if ($bPublished) {
        if (bAllowAccess('timeSheetAdmin')) {
            $strUnsubmit = '<br>' . strLink_TSLogEntryUnsubmit($lTSLogID, 'Unsubmit', true) . '&nbsp;' . 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>');
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:77,代码来源:time_sheet_log_view.php


示例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>');
    }
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:31,代码来源:menu_reports_view.php


示例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);
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:10,代码来源:link_grants_helper.php


示例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 {
        }
    }
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:31,代码来源:pre_log_search_view.php


示例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);
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:10,代码来源:link_personalization_helper.php


示例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) . '&nbsp;' . strLinkView_GiftsHistory($lFID, 'Gift history', false) . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . strLinkAdd_Gift($lFID, 'New donation', true) . '&nbsp;' . strLinkAdd_Gift($lFID, 'New donation', false) . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . strLinkAdd_Pledge($lFID, 'New pledge', true) . '&nbsp;' . 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">&nbsp;</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">&nbsp;</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">&nbsp;</td>
            </tr>');
        echoT('
            <tr>
               <td class="enpView">
                  Total Soft Donations:
               </td>
               <td class="enpView" style="text-align: right;">' . $gstrCurrency . ' ' . $strCumGiftsSoft . '
               </td>
               <td class="enpView">&nbsp;</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 . '&nbsp;' . $strLinkPledges . '
               </td>
               <td class="enpView">&nbsp;</td>
            </tr>');
        echoT('
         </table>');
    }
    $attributes = new stdClass();
    $attributes->bCloseDiv = true;
    closeBlock($attributes);
}
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:73,代码来源:record_view_helper.php


示例16: logViaUserID

 function logViaUserID($lUserID)
 {
     //---------------------------------------------------------------------
     //
     //---------------------------------------------------------------------
     global $gbAdmin, $glUserID;
     $this->load->helper('dl_util/verify_id');
     verifyID($this, $lUserID, 'user ID');
     $lUserID = (int) $lUserID;
     $displayData = array();
     $displayData['js'] = '';
     // defense against the dark arts
     if (!$gbAdmin && $lUserID != $glUserID) {
         if (!bAllowAccess('management')) {
             $this->session->set_flashdata('error', '<b>ERROR:</b> User ID is not valid.</font>');
             redirect('main/menu/home');
         }
     }
     $displayData['bSelfSame'] = $lUserID == $glUserID;
     //-------------------------
     // models & helpers
     //-------------------------
     $this->load->model('staff/mstaff_status', 'cstat');
     $this->load->model('admin/muser_accts', 'clsUser');
     $this->load->model('admin/mpermissions', 'perms');
     $this->load->helper('staff/link_staff');
     $this->load->helper('staff/status_report');
     //--------------------------
     // Stripes
     //--------------------------
     $this->load->model('util/mbuild_on_ready', 'clsOnReady');
     $this->clsOnReady->addOnReadyTableStripes();
     $this->clsOnReady->closeOnReady();
     $displayData['js'] .= $this->clsOnReady->strOnReady;
     // load the status report history
     $this->cstat->loadStatusReportViaUserID($lUserID);
     $displayData['lNumSReports'] = $lNumSReports = $this->cstat->lNumSReports;
     $displayData['sreports'] = $sreports =& $this->cstat->sreports;
     // load the reviews
     if ($lNumSReports > 0) {
         foreach ($sreports as $srpt) {
             $lSReportID = $srpt->lKeyID;
             $this->cstat->loadReviewsViaRptID($lSReportID, $srpt->lNumReviews, $srpt->reviewLog);
         }
     }
     $this->clsUser->loadSingleUserRecord($lUserID);
     $displayData['uRec'] =& $this->clsUser->userRec[0];
     //--------------------------
     // breadcrumbs
     //--------------------------
     $displayData['pageTitle'] = anchor('aayhf/main/aayhfMenu', 'AAYHF', 'class="breadcrumb"') . ' | Weekly Report Log';
     $displayData['title'] = CS_PROGNAME . ' | Weekly Report';
     $displayData['nav'] = $this->mnav_brain_jar->navData();
     $displayData['mainTemplate'] = 'aayhf/aayhf_staff/status_log_view';
     $this->load->vars($displayData);
     $this->load->view('template');
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:57,代码来源:performance.php


示例17: showCustomForms

if ($lNumCustomForms > 0) {
    showCustomForms($lCID, $cForms);
}
// client programs
if ($lNumCProgs > 0) {
    showClientPrograms($lCID, $lNumCProgs, $cProgs);
}
// pre/post tests
if ($lTotTests > 0) {
    showPrePostTests($lCID, $ppcats);
}
closeClientServices();
// personalized tables
showCustomClientTableInfo($strPT, $lNumPTablesAvail);
// sponsorship
if (bAllowAccess('showSponsors')) {
    showClientSponsorInfo($clsRpt, $lCID, $clsClient);
}
showClientStatusInfo($clsRpt, $lCID, $clsClient, $clientStatus, $lNumClientStatus);
showGroupInfo($lCID, $client->strSafeName, $lNumGroups, $groupList, $inGroups, $lCntGroupMembership, CENUM_CONTEXT_CLIENT, 'cRecView');
if ($bShowEMR) {
    showClientMedicalInfo($clsRpt, $lCID, $clsClient, $emr);
}
showImageInfo(CENUM_CONTEXT_CLIENT, $lCID, $client->cv_strVocClientS . ' Images', $images, $lNumImages, $lNumImagesTot);
showDocumentInfo(CENUM_CONTEXT_CLIENT, $lCID, $client->cv_strVocClientS . ' Documents', $docs, $lNumDocs, $lNumDocsTot);
//   showReminderBlock        ($clsRem, $lCID, CENUM_CONTEXT_CLIENT);
showClientXfers($clsRpt, $lCID, $clientXfers, $lNumClientXfers);
showClientENPStats($clsRpt, $client);
function openClientServices()
{
    //---------------------------------------------------------------------
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:31,代码来源:client_record_view.php


示例18: editVolSkillsUpdate

 function editVolSkillsUpdate($lVolID)
 {
     //---------------------------------------------------------------------
     //
     //---------------------------------------------------------------------
     global $glUserID, $gbDev, $gbVolLogin, $gVolPerms, $glVolPeopleID;
     $this->load->model('vols/mvol_skills', 'clsVolSkills');
     if (!(bAllowAccess('dataEntryPeopleBizVol') || bAllowAccess('volJobSkills'))) {
         bTestForURLHack('forceFail');
         return;
     }
     if ($gbVolLogin) {
         $this->load->model('vols/mvol', 'clsVol');
         $this->load->model('people/mpeople', 'clsPeople');
         $this->clsVol->loadVolRecsViaPeopleID($glVolPeopleID, true);
         $lVolID = $this->clsVol->volRecs[0]->lKeyID;
     }
     $lVolID = (int) $lVolID;
     $this->clsVolSkills->lVolID = $lVolID;
     $this->clsVolSkills->clearVolSkills();
     if (count($_REQUEST['chkSkill']) > 0) {
         foreach ($_REQUEST['chkSkill'] as $lSkillID) {
             $this->clsVolSkills->setVolSkill((int) $lSkillID);
         }
     }
     if ($gbVolLogin) {
         $this->session->set_flashdata('msg', 'Thank you for updating your volunteer skills!');
         redirect('vol_reg/job_skills/update');
     } else {
         $this->session->set_flashdata('msg', 'Volunteer skills updated!');
         redirect_VolRec($lVolID);
     }
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:33,代码来源:vol_add_edit.php


示例19: echoT

        echoT('
         <li style="margin-left: 20pt; padding: 0pt;"><b>Inventory Management</b>
            <ul style="list-style-type: square; display:inline; ">
               <li style="margin-left: 20pt; padding: 0pt; margin-top: 3px;">' . anchor('staff/inventory/icat/viewICats', 'Categories') . '</li>
               <li style="margin-left: 20pt; padding: 0pt; margin-top: 3px;">Items
                  <ul>
                     <li>' . anchor('staff/inventory/icat/viewICatsRemOnly', 'Removed Items') . '</li>
                     <li>' . anchor('staff/inventory/icat/viewICatsLostOnly', 'Lost Items') . '</li>
                     <li>' . anchor('staff/inventory/icat/itemsCheckedOutList', 'Checked-Out Items') . '</li>
                     <li>' . anchor('staff/inventory/icat/itemsAllList', 'All Items') . '</li>
                  </ul>
           <!--    <li>' . anchor('staff/inventory/reports', 'Reports') . '</li> -->
            </ul>
         </li>');
    }
}
if (bAllowAccess('showAuctions')) {
    echoT('
         <li style="margin-left: 20pt; padding: 0pt;"><b>Silent Auctions</b>
            <ul style="list-style-type: square; display:inline; ">
               <li style="margin-left: 20pt; padding: 0pt; margin-top: 3px;">' . anchor('auctions/auction_add_edit/addEditAuction/0', 'Add New Auction') . '</li>
               <li style="margin-left: 20pt; padding: 0pt; margin-top: 3px;">' . anchor('auctions/auctions/auctionEvents', 'Silent Auction Events') . '</li>
               <li style="margin-left: 20pt; padding: 0pt; margin-top: 3px;">' . anchor('auctions/bid_templates/main', 'Bid Sheets') . '</li>
            </ul>
         </li>');
}
echoT('
         <li style="margin-left: 20pt; padding: 0pt;">' . anchor('more/about/aboutDL', 'About') . '</li>
         <li style="margin-left: 20pt; padding: 0pt; margin-top: 7px;">' . anchor('login/signout', 'Sign Out') . '</li>

     </ul>');
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:31,代码来源:menu_more_view.php


示例20: viewTSTRecord

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP bHasSurveyPermission函数代码示例发布时间:2022-05-24
下一篇:
PHP b函数代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap