本文整理汇总了PHP中bTestForURLHack函数的典型用法代码示例。如果您正苦于以下问题:PHP bTestForURLHack函数的具体用法?PHP bTestForURLHack怎么用?PHP bTestForURLHack使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bTestForURLHack函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addEditCommon
private function addEditCommon($bEnroll, $lFID, $lClientID, $lCProgID, $lERecID = null, $bUseReturnPath = false)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
if (!bTestForURLHack('showClients')) {
return;
}
$this->load->helper('dl_util/verify_id');
verifyID($this, $lClientID, 'client ID');
verifyID($this, $lCProgID, 'client program ID');
$lFID = (int) $lFID;
$lClientID = (int) $lClientID;
$lCProgID = (int) $lCProgID;
//-------------------------
// models & helpers
//-------------------------
$this->load->model('client_features/mcprograms', 'cprograms');
$this->load->model('personalization/muser_fields', 'clsUF');
$this->load->model('admin/mpermissions', 'perms');
$this->load->helper('img_docs/image_doc');
// load the client program
$this->cprograms->loadClientProgramsViaCPID($lCProgID);
$cprog =& $this->cprograms->cprogs[0];
if ($bEnroll) {
$lTableID = $cprog->lEnrollmentTableID;
} else {
$lTableID = $cprog->lAttendanceTableID;
}
redirect('admin/uf_multirecord/addEditMultiRecord/' . $lTableID . '/' . $lClientID . '/' . $lFID . '/' . (is_null($lERecID) ? '0' : $lERecID) . '/' . ($bUseReturnPath ? 'true' : 'false'));
}
示例2: setActiveState
function setActiveState($lPatientID, $bSetToActive)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $glChapterID;
global $gbVolMgr, $glChapterID;
if (!bTestForURLHack('volMgr')) {
return;
}
$this->load->helper('dl_util/verify_id');
verifyID($glChapterID, $lPatientID, 'patient ID');
$lPatientID = (int) $lPatientID;
$bSetToActive = $bSetToActive == 'true';
//------------------------------------------------
// models, libraries and utilities
//------------------------------------------------
$this->load->model('patients/mpatients', 'cPatients');
// load patient record
$this->cPatients->loadPatientsViaPatientID($lPatientID);
$pRec =& $this->cPatients->patients[0];
$strDirLetter = strtoupper(substr($pRec->strLName, 0, 1));
$this->cPatients->updateActiveStatus($lPatientID, $bSetToActive);
$this->session->set_flashdata('msg', 'The patient record for <b>' . htmlspecialchars($pRec->strFName . ' ' . $pRec->strLName) . '</b> was set to <b>' . ($bSetToActive ? 'active' : 'inactive') . '</b>.');
redirect('hospice/patients/patient_directory/view/Y/' . $strDirLetter);
}
示例3: statusCorrect
function statusCorrect()
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
if (!bTestForURLHack('showClients')) {
return;
}
$displayData = array();
$displayData['js'] = '';
$displayData['bCorrected'] = true;
//-------------------------------
// models / helpers / libraries
//-------------------------------
$this->load->model('clients/mclient_status', 'cStat');
$this->cStat->verifyClientStatus($displayData['lNumGood'], $displayData['lNumBad'], $displayData['badStatus']);
if ($displayData['lNumBad'] > 0) {
$this->cStat->correctClientStatus($displayData['badStatus']);
}
//--------------------------
// breadcrumbs
//--------------------------
$displayData['pageTitle'] = anchor('main/menu/client', 'Clients', 'class="breadcrumb"') . ' | ' . anchor('clients/client_verify/status', 'Verify Client Status', 'class="breadcrumb"') . ' | Correct Client Status';
$displayData['title'] = CS_PROGNAME . ' | Clients';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$displayData['mainTemplate'] = 'client/status_verify_view';
$this->load->vars($displayData);
$this->load->view('template');
}
示例4: opts
function opts()
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $gdteNow;
if (!bTestForURLHack('superUser')) {
return;
}
$displayData = array();
$displayData['js'] = '';
//------------------------------------------------
// libraries and utilities
//------------------------------------------------
$this->load->library('generic_form');
$this->load->helper('dl_util/web_layout');
//------------------------------------------------
// breadcrumbs / page setup
//------------------------------------------------
$displayData['mainTemplate'] = 'hospice/reports/su_annual_options_view';
$displayData['pageTitle'] = 'Annual Administrative Report Options';
$displayData['title'] = CS_PROGNAME . ' | Reports';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$this->load->vars($displayData);
$this->load->view('template');
}
示例5: update
public function update()
{
if (!bTestForURLHack('adminOnly')) {
return;
}
$this->load->model('admin/madmin_aco', 'aco');
if (!isset($_POST['chkACO'])) {
$this->session->set_flashdata('error', '<b>ERROR:</b> No countries were selected. Please select one or more countries.</font>');
redirect('admin/admin_special_lists/aco/view');
}
$lDefaultACO = (int) $_POST['rdoDefault'];
$lInUseIDs = array();
$bValidDef = false;
foreach ($_REQUEST['chkACO'] as $lACOID) {
array_push($lInUseIDs, $lACOID);
if ($lDefaultACO == $lACOID) {
$bValidDef = true;
}
}
if (!$bValidDef) {
$this->session->set_flashdata('error', '<b>ERROR:</b> No default country was selected. Please try again.');
redirect('admin/admin_special_lists/aco/view');
}
$this->load->model('admin/madmin_aco', 'aco');
$this->aco->clearInUse();
foreach ($lInUseIDs as $lInUseID) {
$this->aco->addInUse($lInUseID, $lInUseID == $lDefaultACO);
}
$this->session->set_flashdata('msg', 'Update successful!');
redirect('admin/admin_special_lists/aco/view');
}
示例6: view
function view($lPledgeID)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $gdteNow, $gclsChapterACO, $gbDateFormatUS;
if (!bTestForURLHack('showFinancials')) {
return;
}
$this->load->helper('dl_util/verify_id');
verifyID($this, $lPledgeID, 'pledge ID');
$displayData = array();
$displayData['lPledgeID'] = $lPledgeID = (int) $lPledgeID;
$displayData['js'] = '';
// load models
$params = array('enumStyle' => 'terse');
$this->load->library('generic_rpt', $params);
$this->load->helper('dl_util/web_layout');
// $this->load->helper ('dl_util/email_web');
$this->load->helper('gifts/pledge');
$this->load->model('admin/madmin_aco', 'clsACO');
$this->load->model('people/mpeople', 'clsPeople');
$this->load->model('biz/mbiz', 'clsBiz');
$this->load->model('donations/maccts_camps', 'clsAC');
$this->load->model('donations/mpledges', 'clsPledges');
$this->load->model('donations/mdonations', 'clsGifts');
$this->load->helper('js/div_hide_show');
$displayData['js'] .= showHideDiv();
$this->clsPledges->loadPledgeViaPledgeID($lPledgeID);
$displayData['pledge'] = $pledge =& $this->clsPledges->pledges[0];
$displayData['lFID'] = $lFID = $pledge->lForeignID;
$bPeople = !$pledge->bBiz;
$displayData['pledge']->curTotFulfill = $this->clsPledges->curTotalFulfillmentViaPledgeID($pledge->lKeyID, $pledge->lACOID);
$this->clsPledges->pledgeSchedule($pledge, $displayData['schedule']);
$this->clsPledges->curFillmentViaPledgeID($pledge->lKeyID, $pledge->lACOID, $this->clsGifts);
//------------------------------------------------
// stripes
//------------------------------------------------
$this->load->model('util/mbuild_on_ready', 'clsOnReady');
$this->clsOnReady->addOnReadyTableStripes();
$this->clsOnReady->closeOnReady();
$displayData['js'] .= $this->clsOnReady->strOnReady;
//--------------------------
// breadcrumbs
//--------------------------
$displayData['mainTemplate'] = 'donations/pledge_record_view';
if ($bPeople) {
$displayData['pageTitle'] = anchor('main/menu/people', 'People', 'class="breadcrumb"') . ' | ' . anchor('people/people_record/view/' . $lFID, 'Record', 'class="breadcrumb"') . ' | View Pledge Record';
$this->clsPeople->loadPeopleViaPIDs($lFID, false, false);
$displayData['contextSummary'] = $this->clsPeople->peopleHTMLSummary(0);
} else {
$displayData['pageTitle'] = anchor('main/menu/biz', 'Businesses/Organizations', 'class="breadcrumb"') . ' | ' . anchor('biz/biz_record/view/' . $lFID, 'Record', 'class="breadcrumb"') . ' | View Pledge Record';
$this->clsBiz->loadBizRecsViaBID($lFID);
$displayData['contextSummary'] = $this->clsBiz->strBizHTMLSummary(0);
}
$displayData['title'] = CS_PROGNAME . ' | Pledges';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$this->load->vars($displayData);
$this->load->view('template');
}
示例7: rcalReport
function rcalReport($lYear, $bPatientVisit)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $glChapterID;
if (!bTestForURLHack('volMgr')) {
return;
}
$displayData = array();
$displayData['js'] = '';
$displayData['lYear'] = $lYear = (int) $lYear;
$displayData['bPatientVisit'] = $bPatientVisit = $bPatientVisit == 'T';
//------------------------------------------------
// libraries and utilities
//------------------------------------------------
$this->load->model('hospice/mhospice_pvisit', 'cPVisit');
$this->load->model('hospice/mhospice_reports', 'cHRpt');
// $this->load->model('personalization/muser_schema', 'cUFSchema');
$this->load->helper('hospice/link_hospice');
$calYear = array();
for ($idx = 1; $idx <= 12; ++$idx) {
$calYear[$idx] = new stdClass();
$cY =& $calYear[$idx];
$dteFOM = strtotime($idx . '/1/' . $lYear);
$cY->lFirstDayOfMonth = date('w', $dteFOM);
$cY->daysInMonth = $lDaysInMonth = date('t', $dteFOM);
$cY->strMonth = date('F', $dteFOM);
$cY->dayCount = array();
for ($jIdx = 1; $jIdx <= $lDaysInMonth; ++$jIdx) {
$cY->dayCount[$jIdx] = 0;
}
}
if ($bPatientVisit) {
$strTitle = 'Volunteer Patient Visits - ' . $lYear;
} else {
$strTitle = 'Non-Visit Volunteer Activities - ' . $lYear;
}
$this->cHRpt->initHReports();
$this->cHRpt->volActivityCountByYear($glChapterID, $lYear, $bPatientVisit, $calYear);
$displayData['strCalendar'] = $this->cHRpt->strHTMLCalendar($lYear, $bPatientVisit, $strTitle, $calYear);
//------------------------------------------------
// breadcrumbs / page setup
//------------------------------------------------
$displayData['mainTemplate'] = 'hospice/reports/calendar_run_view';
$displayData['pageTitle'] = anchor('hospice/reports/calendar_report/opts', 'Calendar Report Options', 'class="breadcrumb"') . ' | Calendar Report';
$displayData['title'] = CS_PROGNAME . ' | Reports';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$this->load->vars($displayData);
$this->load->view('template');
/* -------------------------------------
$zzzlPos = strrpos(__FILE__, '\\'); $zzzlLen=strlen(__FILE__); echo('<font class="debug">'.substr(__FILE__, strrpos(__FILE__, '\\',-(($zzzlLen-$zzzlPos)+1))) .': '.__LINE__
.":\$displayData[strCalendar] = ".$displayData['strCalendar']." <br></font>\n");
echo('<font class="debug">'.substr(__FILE__, strrpos(__FILE__, '\\'))
.': '.__LINE__.'<br>$calYear <pre>');
echo(htmlspecialchars( print_r($calYear, true))); echo('</pre></font><br>');
// ------------------------------------- */
}
示例8: runDataEntry
function runDataEntry($lMonth, $lYear)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
if (!bTestForURLHack('superUser')) {
return;
}
$displayData = array();
$displayData['js'] = '';
$displayData['lMonth'] = $lMonth = (int) $lMonth;
$displayData['lYear'] = $lYear = (int) $lYear;
//------------------------------------------------
// libraries and utilities
//------------------------------------------------
$this->load->helper('dl_util/web_layout');
$this->load->helper('dl_util/time_date');
$this->load->model('hospice/mhospice_su_reports', 'cHSURpt');
$this->load->model('admin/mlocations', 'cLoc');
$params = array('enumStyle' => 'enpRptC');
$this->load->library('generic_rpt', $params);
$this->load->helper('js/div_hide_show');
$displayData['js'] .= showHideDiv();
$this->cLoc->loadLocationInfo('', $lNumLocs, $lNumActive, $locations);
// super-user level
$displayData['deStats'] = new stdClass();
$strLogInWhereDate = " AND YEAR(el_dteLogDate)={$lYear} AND MONTH(el_dteLogDate)={$lMonth} ";
$displayData['deStats']->lLogInGood = $this->cHSURpt->lLogInCounts($strLogInWhereDate . ' AND el_bLoginSuccessful ');
$displayData['deStats']->lLogInBad = $this->cHSURpt->lLogInCounts($strLogInWhereDate . ' AND NOT el_bLoginSuccessful ');
$displayData['deStats']->lLogInsSU = $this->cHSURpt->lLogInCountsViaUserRole('SuperUser', $strLogInWhereDate);
$displayData['deStats']->lLogInsVM = $this->cHSURpt->lLogInCountsViaUserRole('VolMgr', $strLogInWhereDate);
$displayData['deStats']->lLogInsVols = $this->cHSURpt->lLogInCountsViaUserRole('Vol', $strLogInWhereDate);
$displayData['deStats']->lPVRecsViaVM = $this->cHSURpt->lNumRecs_PVisit(null, $lYear, $lMonth, true);
$displayData['deStats']->lPVRecsViaVol = $this->cHSURpt->lNumRecs_PVisit(null, $lYear, $lMonth, false);
$displayData['deStats']->lVolActViaVM = $this->cHSURpt->lNumRecs_OtherVolAct(null, $lYear, $lMonth, true);
$displayData['deStats']->lVolActViaVol = $this->cHSURpt->lNumRecs_OtherVolAct(null, $lYear, $lMonth, false);
foreach ($locations as $loc) {
$lLocID = $loc->lKeyID;
$strLogInWhereDateLoc = $strLogInWhereDate . " AND us_lChapterID={$lLocID} ";
$loc->deStats = new stdClass();
$loc->deStats->lLogInsVM = $this->cHSURpt->lLogInCountsViaUserRole('VolMgr', $strLogInWhereDate);
$loc->deStats->lLogInsVols = $this->cHSURpt->lLogInCountsViaUserRole('Vol', $strLogInWhereDate);
$loc->deStats->lPVRecsViaVM = $this->cHSURpt->lNumRecs_PVisit($lLocID, $lYear, $lMonth, true);
$loc->deStats->lPVRecsViaVol = $this->cHSURpt->lNumRecs_PVisit($lLocID, $lYear, $lMonth, false);
$loc->deStats->lVolActViaVM = $this->cHSURpt->lNumRecs_OtherVolAct($lLocID, $lYear, $lMonth, true);
$loc->deStats->lVolActViaVol = $this->cHSURpt->lNumRecs_OtherVolAct($lLocID, $lYear, $lMonth, false);
}
$displayData['locations'] =& $locations;
//------------------------------------------------
// breadcrumbs / page setup
//------------------------------------------------
$displayData['mainTemplate'] = 'hospice/reports/su_data_entry_view';
$displayData['pageTitle'] = anchor('hospice/reports/su_data_entry/opts', 'Data Entry Report Options', 'class="breadcrumb"') . ' | Report';
$displayData['title'] = CS_PROGNAME . ' | Reports';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$this->load->vars($displayData);
$this->load->view('template');
}
示例9: addEditActivity
function addEditActivity($lVolID, $lActivityID)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
if (!bTestForURLHack('dataEntryPeopleBizVol')) {
return;
}
$this->addEditActivityCommon(false, $lVolID, $lActivityID);
}
示例10: viewQuestions
public function viewQuestions($lPPTestID)
{
//-------------------------------------------------------------------------
//
//-------------------------------------------------------------------------
global $glUserID;
/*----------------------------
echo(__FILE__.' '.__LINE__.'<br>'."\n"); $this->output->enable_profiler(TRUE);
//----------------------------- */
if (!bTestForURLHack('showClients')) {
return;
}
$this->load->helper('dl_util/verify_id');
verifyID($this, $lPPTestID, 'pre/post test ID');
$displayData = array();
$displayData['js'] = '';
//-------------------------
// models & helpers
//-------------------------
$this->load->model('client_features/mcpre_post_tests', 'cpptests');
$this->load->model('admin/mpermissions', 'perms');
$this->load->helper('clients/link_client_features');
$this->load->library('util/up_down_top_bottom');
$params = array('enumStyle' => 'terse');
$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;
//-------------------------
// load the pre/post test
//-------------------------
$this->cpptests->loadPPTestsViaPPTID($lPPTestID);
$displayData['pptest'] = $pptest =& $this->cpptests->pptests[0];
//-------------------------
// load the questions
//-------------------------
$this->cpptests->loadQuestionsViaPPTID($lPPTestID);
$displayData['quests'] = $quests =& $this->cpptests->questions;
$displayData['lNumQuestions'] = $this->cpptests->lNumQuestions;
$displayData['strTestSummary'] = $this->cpptests->strHTMLPPTestSummaryDisplay();
//--------------------------
// breadcrumbs
//--------------------------
$displayData['pageTitle'] = anchor('main/menu/client', 'Clients', 'class="breadcrumb"') . ' | ' . anchor('cpre_post_tests/pptests/overview', ' Client Pre/Post Tests', 'class="breadcrumb"') . ' | ' . anchor('cpre_post_tests/pptest_record/view/' . $lPPTestID, htmlspecialchars($pptest->strTestName), 'class="breadcrumb"') . ' | Questions';
$displayData['title'] = CS_PROGNAME . ' | Client Pre/Post Tests';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$displayData['mainTemplate'] = 'cpre_post_tests/questions_list_view';
$this->load->vars($displayData);
$this->load->view('template');
}
示例11: view
public function view($lPPTestID)
{
//-------------------------------------------------------------------------
//
//-------------------------------------------------------------------------
if (!bTestForURLHack('showClients')) {
return;
}
$this->load->helper('dl_util/verify_id');
verifyID($this, $lPPTestID, 'pre/post test ID');
$displayData = array();
$displayData['js'] = '';
$displayData['lPPTestID'] = $lPPTestID = (int) $lPPTestID;
//-------------------------
// models & helpers
//-------------------------
$this->load->model('client_features/mcpre_post_tests', 'cpptests');
$this->load->model('admin/mpermissions', 'perms');
$this->load->model('groups/mgroups', 'groups');
$this->load->helper('dl_util/web_layout');
$this->load->helper('clients/link_client_features');
$this->load->helper('dl_util/record_view');
$this->load->helper('img_docs/link_img_docs');
$this->load->helper('personalization/ptable');
$this->load->helper('groups/groups');
$params = array('enumStyle' => 'terse', 'clsRpt');
$this->load->library('generic_rpt', $params);
$this->load->helper('js/div_hide_show');
$displayData['js'] .= showHideDiv();
// load the Pre/Post test
$this->cpptests->loadPPTestsViaPPTID($lPPTestID);
$displayData['pptest'] = $pptest =& $this->cpptests->pptests[0];
$displayData['lNumQuests'] = $this->cpptests->lNumQuestsViaPPTID($lPPTestID);
//-------------------------------
// permission groups
//-------------------------------
$this->groups->groupMembershipViaFID(CENUM_CONTEXT_CPREPOST, $lPPTestID);
$displayData['pdgroup'] = new stdClass();
$pdgroup =& $displayData['pdgroup'];
$pdgroup->inGroups =& $this->groups->arrMemberInGroups;
$pdgroup->lCntGroupMembership = $this->groups->lNumMemInGroups;
$pdgroup->lNumGroups = $this->groups->lCntActiveGroupsViaType(CENUM_CONTEXT_CPREPOST);
$this->groups->loadActiveGroupsViaType(CENUM_CONTEXT_CPREPOST, 'groupName', $this->groups->strMemListIDs, false, null);
$pdgroup->groupList = $this->groups->arrGroupList;
//--------------------------
// breadcrumbs
//--------------------------
$displayData['pageTitle'] = anchor('main/menu/client', 'Clients', 'class="breadcrumb"') . ' | ' . anchor('cpre_post_tests/pptests/overview', 'Client Pre/Post Tests', 'class="breadcrumb"') . ' | ' . htmlspecialchars($pptest->strTestName);
$displayData['title'] = CS_PROGNAME . ' | Clients';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$displayData['mainTemplate'] = 'cpre_post_tests/pp_record_view';
$this->load->vars($displayData);
$this->load->view('template');
}
示例12: bidsheetViaPID
function bidsheetViaPID($lBSID, $lPackageID)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $gpdf;
if (!bTestForURLHack('showAuctions')) {
return;
}
$gpdf = new stdClass();
$gpdf->bItemLayoutInProcess = false;
// are we spliting the items across multiple pages?
$this->load->helper('dl_util/verify_id');
verifyID($this, $lBSID, 'bidsheet ID');
verifyID($this, $lPackageID, 'package ID');
//-----------------------------
// models and helpers
//-----------------------------
$this->load->helper('dl_util/pdf');
$this->load->model('auctions/mbid_sheet_pdf', 'cBSPDF');
$this->load->model('auctions/mbid_sheets', 'cBidSheets');
$this->load->model('auctions/mpackages', 'cPackages');
$this->load->model('auctions/mitems', 'cItems');
$this->load->model('img_docs/mimage_doc', 'clsImgDoc');
$this->load->helper('img_docs/image_doc');
$this->load->helper('img_docs/link_img_docs');
$this->load->helper('auctions/auction');
$this->cBidSheets->loadSheetByBSID($lBSID);
$bs = $gpdf->bs =& $this->cBidSheets->bidSheets[0];
$this->cPackages->loadPackageByPacID($lPackageID);
$this->cPackages->loadPackageProfileImage();
$package = $gpdf->package =& $this->cPackages->packages[0];
$package->curEstValue = $this->cItems->curEstValueViaPID($lPackageID);
$this->cItems->loadItemsViaPackageID($lPackageID);
$gpdf->items =& $this->cItems->items;
$gpdf->lNumItems = $this->cItems->lNumItems;
$this->cItems->loadItemProfileImage();
$pdf = new bsPDF('Portrait', 'pt', $bs->enumPaperType);
$pdf->SetAutoPageBreak(true, 50);
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->createBidSheet();
$pdf->SetFont('Arial', '', 12);
$lNumExtra = $bs->lNumSignupPages;
if ($lNumExtra > 0 && $bs->bIncludeSignup) {
for ($idx = 0; $idx < $lNumExtra; ++$idx) {
$pdf->AddPage();
$pdf->addSignUpColumns($gpdf->lTopMargin);
}
}
$pdf->Output('package_' . str_pad($package->lKeyID, 5, '0', STR_PAD_LEFT) . '.pdf', 'I');
}
示例13: showLists
public function showLists()
{
if (!bTestForURLHack('adminOnly')) {
return;
}
$displayData = array();
$displayData['title'] = CS_PROGNAME . ' | Lists';
$displayData['pageTitle'] = anchor('main/menu/admin', 'Admin', 'class="breadcrumb"') . ' | Lists';
$displayData['mainTemplate'] = 'admin/alist';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$this->load->vars($displayData);
$this->load->view('template');
}
示例14: viewProDirectory
function viewProDirectory($bHide = true)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
if (!bTestForURLHack('showGrants')) {
return;
}
$displayData = array();
$displayData['js'] = '';
//--------------------------------
// models/helpers
//--------------------------------
// $this->load->model ('admin/madmin_aco', 'cACO');
$this->load->model('grants/mgrants', 'cgrants');
$this->load->model('admin/madmin_aco', 'clsACO');
$this->load->helper('grants/link_grants');
//------------------------------------------------
// stripes
//------------------------------------------------
$this->load->model('util/mbuild_on_ready', 'clsOnReady');
$this->clsOnReady->addOnReadyTableStripes();
$this->clsOnReady->closeOnReady();
$displayData['js'] .= $this->clsOnReady->strOnReady;
if ($bHide) {
$this->cgrants->loadGrantProvidersNotHidden('', '', $displayData['lNumProviders'], $displayData['providers']);
} else {
$this->cgrants->loadGrants('', '', $displayData['lNumProviders'], $displayData['providers']);
}
$lNumProviders = $displayData['lNumProviders'];
if ($lNumProviders > 0) {
for ($idx = 0; $idx < $lNumProviders; ++$idx) {
$lProviderID = $displayData['providers'][$idx]->lKeyID;
$this->cgrants->loadGrantsViaProviderID($lProviderID, '', '', $displayData['providers'][$idx]->lNumGrants, $displayData['providers'][$idx]->grants);
}
}
echo '<font class="debug">' . substr(__FILE__, strrpos(__FILE__, '\\')) . ': ' . __LINE__ . '<br>$displayData[providers] <pre>';
echo htmlspecialchars(print_r($displayData['providers'], true));
echo '</pre></font><br>';
/* -------------------------------------
// ------------------------------------- */
//--------------------------
// breadcrumbs
//--------------------------
$displayData['pageTitle'] = anchor('main/menu/financials', 'Financials/Grants', 'class="breadcrumb"') . ' | Grant Provider Directory';
$displayData['title'] = CS_PROGNAME . ' | Grants';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$displayData['mainTemplate'] = 'grants/provider_directory_view';
$this->load->vars($displayData);
$this->load->view('template');
}
示例15: overview
function overview()
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
if (!bTestForURLHack('showReports')) {
return;
}
$displayData = array();
$displayData['js'] = '';
/*-------------------------------------------------
models and helpers
-------------------------------------------------*/
$this->load->helper('img_docs/img_doc_tags');
$this->load->model('img_docs/mimg_doc_tags', 'cidTags');
$this->load->model('img_docs/mimage_doc', 'clsImgDoc');
$this->load->model('img_docs/mimage_doc_stats', 'cIDStats');
$this->load->helper('img_docs/link_img_docs');
$this->load->helper('dl_util/web_layout');
$this->load->helper('js/div_hide_show');
$displayData['js'] .= showHideDiv();
$displayData['lTotImages'] = $this->cIDStats->lTotImages();
$displayData['lTotDocs'] = $this->cIDStats->lTotDocs();
$this->cIDStats->lImagesGrouped($displayData['lNumImgContextGroups'], $displayData['contextImgGroups']);
$this->cIDStats->lDocsGrouped($displayData['lNumDocContextGroups'], $displayData['contextDocGroups']);
$this->cIDStats->loadImageTags($displayData['tagsImage']);
$this->cIDStats->loadDocTags($displayData['tagsDoc']);
foreach ($displayData['tagsImage'] as $ti) {
if ($ti->lNumTags > 0) {
foreach ($ti->tags as $tag) {
$tag->lCnt = $this->cidTags->lNumImgDocTagsViaTagID($tag->lTagID);
}
}
}
foreach ($displayData['tagsDoc'] as $td) {
if ($td->lNumTags > 0) {
foreach ($td->tags as $tag) {
$tag->lCnt = $this->cidTags->lNumImgDocTagsViaTagID($tag->lTagID);
}
}
}
//--------------------------
// breadcrumbs
//--------------------------
$displayData['pageTitle'] = anchor('main/menu/reports', 'Reports', 'class="breadcrumb"') . ' | Image/Document Overview';
$displayData['title'] = CS_PROGNAME . ' | Images/Documents';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$displayData['mainTemplate'] = 'img_docs/image_doc_overview_view';
$this->load->vars($displayData);
$this->load->view('template');
}