function orgView($lChapterID = null) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- global $glChapterID; if (!bTestForURLHack('adminOnly')) { return; } if (is_null($lChapterID)) { $lChapterID = $glChapterID; } else { $lChapterID = (int) $lChapterID; } $displayData = array(); $displayData['js'] = ''; //------------------------- // models & helpers //------------------------- $this->load->helper('img_docs/img_doc_tags'); $this->load->helper('dl_util/directory'); $this->load->helper('dl_util/rs_navigate'); $this->load->model('admin/morganization', 'clsChapter'); $this->load->model('admin/madmin_aco', 'clsACO'); $this->load->model('img_docs/mimage_doc', 'clsImgDoc'); $this->load->model('img_docs/mimg_doc_tags', 'cidTags'); $this->load->helper('img_docs/image_doc'); $this->load->helper('img_docs/link_img_docs'); $this->load->helper('js/div_hide_show'); $this->load->helper('dl_util/web_layout'); $this->load->helper('dl_util/record_view'); $this->load->helper('img_docs/link_img_docs'); $displayData['js'] .= showHideDiv(); $this->clsChapter->lChapterID = $lChapterID; $this->clsChapter->loadChapterInfo(); $displayData['chapterRec'] = $this->clsChapter->chapterRec; //------------------------------- // images and documents //------------------------------- loadImgDocRecView($displayData, CENUM_CONTEXT_ORGANIZATION, $lChapterID); $this->load->library('generic_form'); $params = array('enumStyle' => 'terse'); $this->load->library('generic_rpt', $params); $displayData['title'] = CS_PROGNAME . ' | Your Organization'; $displayData['pageTitle'] = anchor('main/menu/admin', 'Admin', 'class="breadcrumb"') . ' | Your Organization'; $displayData['nav'] = $this->mnav_brain_jar->navData(); $displayData['mainTemplate'] = 'admin/organization_view'; $this->load->vars($displayData); $this->load->view('template'); }
public function view($lPID = 0) { //------------------------------------------------------------------------- // //------------------------------------------------------------------------- global $gbVolLogin, $gVolPerms, $glVolPeopleID, $glUserID; if ($gbVolLogin) { $lPID = $glVolPeopleID; } else { if (!bTestForURLHack('viewPeopleBizVol')) { return; } } $this->load->helper('dl_util/verify_id'); verifyID($this, $lPID, 'people ID'); $displayData = array(); $displayData['lPID'] = $lPID = (int) $lPID; $displayData['js'] = ''; $params = array('enumStyle' => 'terse', 'clsRpt'); $this->load->library('generic_rpt', $params); //------------------------------------------------ // libraries and utilities //------------------------------------------------ $this->load->model('people/mpeople', 'clsPeople'); $this->load->model('biz/mbiz', 'clsBiz'); $this->load->model('admin/madmin_aco', 'clsACO'); $this->load->model('admin/muser_accts', 'clsUser'); $this->load->model('sponsorship/msponsorship', 'clsSpon'); $this->load->model('sponsorship/msponsor_charge_pay', 'clsSCP'); $this->load->model('donations/mdonations', 'clsGifts'); $this->load->model('donations/mpledges', 'clsPledges'); $this->load->model('vols/mvol', 'clsVol'); $this->load->model('people/mrelationships', 'clsRel'); $this->load->model('groups/mgroups', 'groups'); $this->load->model('img_docs/mimage_doc', 'clsImgDoc'); $this->load->model('img_docs/mimg_doc_tags', 'cidTags'); $this->load->model('admin/mpermissions', 'perms'); $this->load->library('util/dl_date_time', '', 'clsDateTime'); $this->load->helper('groups/groups'); $this->load->helper('dl_util/web_layout'); // $this->load->helper ('dl_util/email_web'); $this->load->helper('dl_util/record_view'); $this->load->helper('img_docs/link_img_docs'); $this->load->helper('dl_util/time_date'); $this->load->helper('img_docs/image_doc'); $this->load->helper('img_docs/link_img_docs'); $this->load->helper('personalization/ptable'); $this->load->helper('img_docs/img_doc_tags'); $this->load->helper('js/div_hide_show'); $displayData['js'] .= showHideDiv(); // $this->load->model('reminders/mreminders', 'clsReminders'); // $displayData['clsRem'] = $this->clsReminders; $this->clsPeople->sqlWhereExtra = " AND pe_lKeyID = {$lPID} "; $this->clsPeople->loadPeople(true, true, true); $displayData['people'] =& $this->clsPeople->people[0]; //------------------------------- // volunteer info //------------------------------- $displayData['vol'] = new stdClass(); $displayData['vol']->bVol = $this->clsVol->bVolStatusViaPID($lPID, $displayData['vol']->lVolID, $displayData['vol']->bInactive, $displayData['vol']->dteInactive, $displayData['vol']->dteVolStart); //------------------------------- // sponsorship info //------------------------------- if (!$gbVolLogin) { $this->clsSpon->sponsorshipInfoViaPID($lPID); $displayData['sponInfo'] = $this->clsSpon->sponInfo; $displayData['lNumSponsors'] = $this->clsSpon->lNumSponsors; } //------------------------------- // personalized tables //------------------------------- if (!$gbVolLogin) { $this->perms->loadUserAcctInfo($glUserID, $acctAccess); $this->load->model('personalization/muser_fields', 'clsUF'); $this->load->model('personalization/muser_fields_display', 'clsUFD'); $displayData['strPT'] = strPTableDisplay(CENUM_CONTEXT_PEOPLE, $lPID, $this->clsUFD, $this->perms, $acctAccess, $displayData['strFormDataEntryAlert'], $displayData['lNumPTablesAvail']); } //------------------------------- // household //------------------------------- if (!$gbVolLogin) { $this->clsPeople->lHouseholdID = $this->clsPeople->people[0]->lHouseholdID; $this->clsPeople->loadPIDsViaHouseholdHID(); $displayData['arrHouseholds'] = $this->clsPeople->arrHouseholds; } //------------------------------- // relationships //------------------------------- if (!$gbVolLogin) { $this->clsRel->lPID = $lPID; $this->clsRel->loadFromRelViaPID(); $displayData['arrRelAB'] = $this->clsRel->arrRelAB; $displayData['lNumRelAB'] = $this->clsRel->lNumRelAB; $this->clsRel->loadToRelViaPID(); $displayData['arrRelBA'] = $this->clsRel->arrRelAB; $displayData['lNumRelBA'] = $this->clsRel->lNumRelAB; } //------------------------------- // groups //------------------------------- if (!$gbVolLogin) { $this->groups->groupMembershipViaFID(CENUM_CONTEXT_PEOPLE, $lPID); $displayData['inGroups'] = $this->groups->arrMemberInGroups; $displayData['lCntGroupMembership'] = $this->groups->lNumMemInGroups; $displayData['lNumGroups'] = $this->groups->lCntActiveGroupsViaType(CENUM_CONTEXT_PEOPLE); $this->groups->loadActiveGroupsViaType(CENUM_CONTEXT_PEOPLE, 'groupName', $this->groups->strMemListIDs, false, null); $displayData['groupList'] = $this->groups->arrGroupList; } //------------------------------- // images and documents //------------------------------- if (!$gbVolLogin) { loadImgDocRecView($displayData, CENUM_CONTEXT_PEOPLE, $lPID); } //------------------- // donation summary //------------------- if (!$gbVolLogin) { $this->clsGifts->lPeopleID = $lPID; $displayData['lTotGifts'] = 0; $this->clsGifts->cumulativeOpts = new stdClass(); $this->clsGifts->cumulativeOpts->enumCumulativeSource = 'people'; $this->clsGifts->cumulativeOpts->enumMoneySet = 'monetaryOnly'; $this->clsGifts->cumulativeOpts->bSoft = false; $this->clsGifts->cumulativeDonation($this->clsACO, $displayData['lTotHard']); $displayData['strCumGiftsNonSoftMon'] = strBuildCumlativeTable($this->clsGifts->lNumCumulative, $this->clsGifts->cumulative, true); // $displayData['lTotGifts'] += $this->clsGifts->lNumCumulative; // in-kind donations $this->clsGifts->cumulativeOpts->enumMoneySet = 'gikOnly'; $this->clsGifts->cumulativeDonation($this->clsACO, $displayData['lTotInKind']); $displayData['strCumGiftsNonSoftInKind'] = strBuildCumlativeTable($this->clsGifts->lNumCumulative, $this->clsGifts->cumulative, true); // $displayData['lTotGifts'] += $this->clsGifts->lNumCumulative; // soft donations $this->clsGifts->cumulativeOpts->enumMoneySet = 'all'; $this->clsGifts->cumulativeOpts->bSoft = true; $this->clsGifts->cumulativeDonation($this->clsACO, $displayData['lTotSoft']); $displayData['strCumGiftsSoft'] = strBuildCumlativeTable($this->clsGifts->lNumCumulative, $this->clsGifts->cumulative, true); // $displayData['lTotGifts'] += $this->clsGifts->lNumCumulative; // sponsorship payments $this->clsSCP->cumulativeSponsorshipViaPeopleID($this->clsACO, $lPID); $displayData['strCumSpon'] = strBuildCumlativeTable($this->clsSCP->lNumSponPayCumulative, $this->clsSCP->sponPayCumulative, true); $displayData['lNumSponPay'] = $this->clsSCP->lNumSponPayCumulative; $displayData['lNumPledges'] = $this->clsPledges->lNumPledgesViaFID($lPID); } //------------------- // business contacts //------------------- if (!$gbVolLogin) { $this->clsBiz->lPID = $lPID; $this->clsBiz->contactList(false, true, false); $displayData['lNumContacts'] = $this->clsBiz->lNumContacts; $displayData['contacts'] = $this->clsBiz->contacts; } //-------------------------- // breadcrumbs //-------------------------- if ($gbVolLogin) { $displayData['pageTitle'] = 'Contact Info'; $displayData['title'] = CS_PROGNAME . ' | Contact Info'; } else { $displayData['pageTitle'] = anchor('main/menu/people', 'People', 'class="breadcrumb"') . ' | People Record'; $displayData['title'] = CS_PROGNAME . ' | People'; } $displayData['nav'] = $this->mnav_brain_jar->navData(); $displayData['mainTemplate'] = 'people/people_record_view'; $this->load->vars($displayData); $this->load->view('template'); }
public function view($lClientID) { //------------------------------------------------------------------------- // //------------------------------------------------------------------------- global $glUserID; if (!bTestForURLHack('showClients')) { return; } $this->load->helper('dl_util/verify_id'); verifyID($this, $lClientID, 'client ID'); //------------------------- // models & helpers //------------------------- $displayData = array(); $displayData['lCID'] = $lClientID = (int) $lClientID; $displayData['js'] = ''; $params = array('enumStyle' => 'terse', 'clsRpt'); $this->load->library('generic_rpt', $params); $this->load->library('util/dl_date_time', '', 'clsDateTime'); $this->load->helper('img_docs/img_doc_tags'); $this->load->model('clients/mclients', 'clsClient'); $this->load->model('img_docs/mimage_doc', 'clsImgDoc'); $this->load->model('img_docs/mimg_doc_tags', 'cidTags'); $this->load->model('groups/mgroups', 'groups'); $this->load->model('clients/mclient_locations', 'clsLoc'); $this->load->model('admin/madmin_aco'); $this->load->model('custom_forms/mcustom_forms', 'cForm'); $this->load->model('client_features/mcprograms', 'cprograms'); $this->load->model('client_features/mcpre_post_tests', 'cpptests'); $this->load->model('admin/muser_accts'); $this->load->model('admin/mpermissions', 'perms'); $this->load->model('personalization/muser_fields', 'clsUF'); $this->load->model('personalization/muser_fields_display', 'clsUFD'); $this->load->model('util/mlist_generic', 'clsList'); $this->load->helper('groups/groups'); $this->load->helper('clients/client'); $this->load->helper('personalization/ptable'); $this->load->helper('dl_util/time_date'); $this->load->helper('img_docs/image_doc'); $this->load->helper('img_docs/link_img_docs'); $this->load->helper('dl_util/web_layout'); $this->load->helper('dl_util/record_view'); $this->load->helper('clients/link_client_features'); $this->load->helper('js/div_hide_show'); $displayData['js'] .= showHideDiv(); //---------------------------------------------------- // set up links to the custom forms (if any) and // associated permissions //---------------------------------------------------- $this->cForm->loadCustomFormsViaType(CENUM_CONTEXT_CLIENT); $displayData['lNumCustomForms'] = 0; $lNumCForms = $this->cForm->lNumCustomForms; $this->perms->loadUserAcctInfo($glUserID, $acctAccess); if ($lNumCForms > 0) { foreach ($this->cForm->customForms as $cform) { $cform->bShowCFormLink = $this->perms->bDoesUserHaveAccess($acctAccess, $cform->lNumConsolidated, $cform->cperms); if ($cform->bShowCFormLink) { ++$displayData['lNumCustomForms']; } // form history log $this->cForm->formLogViaCFID_FID($cform->lKeyID, $lClientID, $cform->lNumLogEntries, $cform->formLog); } } $displayData['cForms'] =& $this->cForm->customForms; //---------------------------------------------------- // set up links to the custom programs (if any) and // associated permissions //---------------------------------------------------- $this->cprograms->loadClientPrograms(false); $displayData['lNumCProgs'] = 0; $lNumCProgs = $this->cprograms->lNumCProgs; if ($lNumCProgs > 0) { foreach ($this->cprograms->cprogs as $cprog) { $cprog->bShowCProgLink = $this->perms->bDoesUserHaveAccess($acctAccess, $cprog->lNumPerms, $cprog->perms); if ($cprog->bShowCProgLink) { ++$displayData['lNumCProgs']; $cprog->bEnrolled = $this->cprograms->bIsClientInProgram($lClientID, $cprog, $cprog->lNumEnrollments, $cprog->erecs); if ($cprog->lNumEnrollments > 0) { $cprog->lTotAttend = 0; foreach ($cprog->erecs as $erec) { $lERecID = $erec->lKeyID; $erec->lNumAttend = $this->cprograms->lNumAttendanceViaEnrollID($lERecID, $cprog); $cprog->lTotAttend += $erec->lNumAttend; } } } } } $displayData['cProgs'] =& $this->cprograms->cprogs; //---------------------------------------------------- // set up links to the client pre/post test (if any) and // associated permissions //---------------------------------------------------- $this->cpptests->loadPPCatsAndTests($displayData['lNumCats'], $displayData['ppcats'], true); $displayData['lTotTests'] = 0; foreach ($displayData['ppcats'] as $ppcat) { $lNumPPTests = $ppcat->lNumPPTests; if ($lNumPPTests > 0) { foreach ($ppcat->pptests as $pptest) { $pptest->bShowTest = $this->perms->bDoesUserHaveAccess($acctAccess, $pptest->lNumPerms, $pptest->perms); if ($pptest->bShowTest) { $lPPTestID = $pptest->lKeyID; $this->cpptests->clientTestsViaTestID($lClientID, $lPPTestID, $pptest->lNumTests, $pptest->testInfo); ++$ppcat->lNumPPTests; ++$displayData['lTotTests']; } } } } $this->clsClient->loadClientsViaClientID($lClientID); $displayData['strName'] = $this->clsClient->clients[0]->strSafeName; $displayData['clsClient'] =& $this->clsClient; $bShowEMR = $displayData['bShowEMR'] = $this->clsClient->clients[0]->bEnableEMR; if ($bShowEMR) { $this->load->model('emr/mmeasurements', 'emrMeas'); $this->load->helper('emr/link_emr'); $this->load->library('util/dl_date_time', '', 'clsDateTime'); $displayData['emr'] = new stdClass(); $displayData['emr']->lNumMeasure = $this->emrMeas->lNumMeasureViaCID($lClientID, true, true, true); } $this->load->model('reminders/mreminders', 'clsRem'); $displayData['clsRem'] = $this->clsRem; //------------------------------- // personalized tables //------------------------------- $displayData['strPT'] = strPTableDisplay(CENUM_CONTEXT_CLIENT, $lClientID, $this->clsUFD, $this->perms, $acctAccess, $displayData['strFormDataEntryAlert'], $displayData['lNumPTablesAvail']); //------------------------------- // client status history //------------------------------- $this->load->model('clients/mclient_status', 'clsClientStat'); $this->clsClientStat->lClientID = $lClientID; $this->clsClientStat->fullStatusHistory(false, null); $displayData['clientStatus'] = $this->clsClientStat->clientStatus; $displayData['lNumClientStatus'] = $this->clsClientStat->lNumClientStatus; //------------------------------- // client transfers //------------------------------- $this->clsLoc->loadClientXfersViaClientID($lClientID); $displayData['lNumClientXfers'] = $this->clsLoc->lNumClientXfers; $displayData['clientXfers'] =& $this->clsLoc->clientXfers; //------------------------------- // client groups //------------------------------- $this->groups->groupMembershipViaFID(CENUM_CONTEXT_CLIENT, $lClientID); $displayData['inGroups'] = $this->groups->arrMemberInGroups; $displayData['lCntGroupMembership'] = $this->groups->lNumMemInGroups; $displayData['lNumGroups'] = $this->groups->lCntActiveGroupsViaType(CENUM_CONTEXT_CLIENT); $this->groups->loadActiveGroupsViaType(CENUM_CONTEXT_CLIENT, 'groupName', $this->groups->strMemListIDs, false, null); $displayData['groupList'] = $this->groups->arrGroupList; //------------------------------- // images and documents //------------------------------- loadImgDocRecView($displayData, CENUM_CONTEXT_CLIENT, $lClientID); //-------------------------- // breadcrumbs //-------------------------- $displayData['pageTitle'] = anchor('main/menu/client', 'Clients', 'class="breadcrumb"') . ' | Client Record'; $displayData['title'] = CS_PROGNAME . ' | Clients'; $displayData['nav'] = $this->mnav_brain_jar->navData(); $displayData['mainTemplate'] = 'client/client_record_view'; $this->load->vars($displayData); $this->load->view('template'); }
function commonAcctView($lUserID, $bAsAdmin, &$displayData) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- global $glUserID, $gbAdmin; $local =& get_instance(); $local->load->helper('dl_util/time_date'); if ($bAsAdmin) { if (!bTestForURLHack('adminOnly')) { return; } } else { if ($glUserID != $lUserID) { bTestForURLHack('forceFail'); return; } } $local->load->helper('dl_util/verify_id'); verifyID($local, $lUserID, 'user ID'); $displayData = array(); $displayData['lUserID'] = (int) $lUserID; $displayData['bAsAdmin'] = $bAsAdmin; $displayData['js'] = ''; $params = array('enumStyle' => 'terse'); $local->load->library('generic_rpt', $params, 'generic_rpt'); $displayData['clsRpt'] = $local->generic_rpt; $local->load->model('admin/muser_accts', 'clsUsers'); $local->clsUsers->us_lKeyID = $lUserID; $local->clsUsers->loadUserRec(); $userRec = $local->clsUsers->userRec; $displayData['userRec'] = $local->clsUsers->userRec; //----------------------------- // models and helpers //----------------------------- $local->load->library('generic_form'); $local->load->library('util/dl_date_time', '', 'clsDateTime'); $local->load->model('people/mpeople', 'clsPeople'); $local->load->model('donations/mdonations', 'clsGifts'); $local->load->model('admin/madmin_aco', 'clsACO'); $local->load->model('clients/mclients', 'clsClients'); $local->load->model('biz/mbiz', 'clsBiz'); $local->load->model('sponsorship/msponsorship', 'clsSpon'); $local->load->model('groups/mgroups', 'groups'); $local->load->model('personalization/muser_fields', 'clsUF'); $local->load->model('personalization/muser_fields_display', 'clsUFD'); $local->load->model('admin/mpermissions', 'perms'); $local->load->helper('groups/groups'); $local->load->helper('personalization/ptable'); $local->load->helper('js/div_hide_show'); $displayData['js'] .= showHideDiv(); // user permissions $local->perms->loadUserAcctInfo($glUserID, $acctAccess); if ($bAsAdmin) { //------------------------------- // images and documents //------------------------------- $local->load->helper('img_docs/image_doc'); $local->load->helper('img_docs/img_doc_tags'); $local->load->model('img_docs/mimage_doc', 'clsImgDoc'); $local->load->model('img_docs/mimg_doc_tags', 'cidTags'); loadImgDocRecView($displayData, CENUM_CONTEXT_STAFF, $lUserID); // reminders // $local->load->model('reminders/mreminders', 'clsRem'); // $displayData['clsRem'] = $local->clsRem; } $local->load->helper('dl_util/web_layout'); $local->load->helper('dl_util/record_view'); $local->load->helper('img_docs/link_img_docs'); //------------------------------- // user groups //------------------------------- if ($userRec->bStandardUser) { $local->groups->groupMembershipViaFID(CENUM_CONTEXT_USER, $lUserID); $displayData['inGroups'] = $local->groups->arrMemberInGroups; $displayData['lCntGroupMembership'] = $local->groups->lNumMemInGroups; $displayData['lNumGroups'] = $local->groups->lCntActiveGroupsViaType(CENUM_CONTEXT_USER); $local->groups->loadActiveGroupsViaType(CENUM_CONTEXT_USER, 'groupName', $local->groups->strMemListIDs, false, null); $displayData['groupList'] = $local->groups->arrGroupList; } //------------------------------- // personalized tables //------------------------------- if ($userRec->bStandardUser || $gbAdmin) { $displayData['strPT'] = strPTableDisplay(CENUM_CONTEXT_USER, $lUserID, $local->clsUFD, $local->perms, $acctAccess, $displayData['strFormDataEntryAlert'], $displayData['lNumPTablesAvail']); } //------------------------------- // staff groups //------------------------------- if ($userRec->bStandardUser || $gbAdmin) { $local->groups->groupMembershipViaFID(CENUM_CONTEXT_STAFF, $lUserID); $displayData['inGroupsStaff'] = $local->groups->arrMemberInGroups; $displayData['lCntGroupMembershipStaff'] = $local->groups->lNumMemInGroups; $displayData['lNumGroupsStaff'] = $local->groups->lCntActiveGroupsViaType(CENUM_CONTEXT_STAFF); $local->groups->loadActiveGroupsViaType(CENUM_CONTEXT_STAFF, 'groupName', $local->groups->strMemListIDs, false, null); $displayData['groupListStaff'] = $local->groups->arrGroupList; } if ($bAsAdmin) { $strLetter = strtoupper(substr($userRec->us_strLastName, 0, 1)); if ($strLetter < 'A' || $strLetter > 'Z') { $strLetter = '%23'; } $displayData['title'] = CS_PROGNAME . ' | User Accounts | View Account'; $displayData['pageTitle'] = anchor('main/menu/admin', 'Admin', 'class="breadcrumb"') . ' | ' . anchor('admin/accts/userAcctDir/' . $strLetter, 'User Accounts', 'class="breadcrumb"') . ' | View Account'; } else { $displayData['title'] = CS_PROGNAME . ' | More | Account Preferences'; $displayData['pageTitle'] = anchor('main/menu/more', 'More', 'class="breadcrumb"') . ' | Your Account'; } $displayData['nav'] = $local->mnav_brain_jar->navData(); $displayData['mainTemplate'] = 'admin/user_rec_view'; $local->load->vars($displayData); $local->load->view('template'); }
public function volRecordView($lVolID) { //------------------------------------------------------------------------- // //------------------------------------------------------------------------- global $glUserID; if (!bTestForURLHack('showPeople')) { return; } $this->load->helper('dl_util/verify_id'); verifyID($this, $lVolID, 'volunteer ID'); $displayData = array(); $displayData['lVolID'] = $lVolID = (int) $lVolID; $displayData['js'] = ''; //------------------------------------------------ // libraries / models / utilities //------------------------------------------------ $params = array('enumStyle' => 'terse'); $this->load->library('generic_rpt', $params); $this->load->library('util/dl_date_time', '', 'clsDateTime'); $this->load->model('vols/mvol', 'clsVol'); $this->load->model('vols/mvol_skills', 'clsVolSkills'); $this->load->model('vols/mvol_event_hours', 'clsVolHours'); $this->load->model('vols/mvol_event_dates_shifts', 'clsShifts'); $this->load->model('people/mpeople', 'clsPeople'); $this->load->model('groups/mgroups', 'groups'); $this->load->model('img_docs/mimage_doc', 'clsImgDoc'); $this->load->model('img_docs/mimg_doc_tags', 'cidTags'); $this->load->model('admin/madmin_aco'); $this->load->model('admin/muser_accts'); $this->load->model('sponsorship/msponsorship'); $this->load->model('donations/mdonations'); $this->load->helper('personalization/ptable'); // $this->load->helper ('dl_util/email_web'); $this->load->helper('groups/groups'); $this->load->helper('dl_util/web_layout'); $this->load->helper('dl_util/record_view'); $this->load->helper('img_docs/link_img_docs'); $this->load->helper('dl_util/time_date'); $this->load->helper('img_docs/image_doc'); $this->load->helper('img_docs/link_img_docs'); $this->load->helper('img_docs/img_doc_tags'); $this->load->helper('vols/vol_links'); $this->load->helper('js/div_hide_show'); $displayData['js'] .= showHideDiv(); //------------------------------------- // stripes //------------------------------------- $this->load->model('util/mbuild_on_ready', 'clsOnReady'); $this->clsOnReady->addOnReadyTableStripes(); $this->clsOnReady->closeOnReady(); $displayData['js'] .= $this->clsOnReady->strOnReady; //------------------------------- // volunteer record //------------------------------- $this->clsVol->loadVolRecsViaVolID($lVolID, true); $displayData['volRec'] = $volRec =& $this->clsVol->volRecs[0]; $displayData['lPID'] = $lPID = $volRec->lPeopleID; $this->load->model('reminders/mreminders', 'clsReminders'); $displayData['clsRem'] = $this->clsReminders; $this->clsPeople->loadPeopleViaPIDs($lPID, true, true); $displayData['contextSummary'] = $this->clsPeople->peopleHTMLSummary(0); //------------------------------- // volunteer-client associations //------------------------------- if (bAllowAccess('showClients')) { $this->clsVol->loadVolClientAssociations($lVolID, $displayData['volRec']->vca); $displayData['volRec']->lNumVolClientAssoc = count($displayData['volRec']->vca); } //------------------------------- // volunteer skills //------------------------------- $this->clsVolSkills->lVolID = $lVolID; $this->clsVolSkills->loadSingleVolSkills(); $displayData['lNumSingleVolSkills'] = $this->clsVolSkills->lNumSingleVolSkills; $displayData['singleVolSkills'] =& $this->clsVolSkills->singleVolSkills; //------------------------------- // personalized tables //------------------------------- $this->load->model('personalization/muser_fields', 'clsUF'); $this->load->model('personalization/muser_fields_display', 'clsUFD'); $this->load->model('admin/mpermissions', 'perms'); $this->perms->loadUserAcctInfo($glUserID, $acctAccess); $this->load->model('personalization/muser_fields', 'clsUF'); $this->load->model('personalization/muser_fields_display', 'clsUFD'); $displayData['strPT'] = strPTableDisplay(CENUM_CONTEXT_VOLUNTEER, $lVolID, $this->clsUFD, $this->perms, $acctAccess, $displayData['strFormDataEntryAlert'], $displayData['lNumPTablesAvail']); //------------------------------- // volunteer hours //------------------------------- $displayData['dTotHours'] = $this->clsVolHours->volEventHoursViaVolID($lVolID); $displayData['dTotUnHours'] = $this->clsVolHours->volUnscheduledEventHoursViaVolID($lVolID); //------------------------------- // volunteer schedule //------------------------------- $displayData['lPastShifts'] = $this->clsShifts->lNumShiftsViaVolID($lVolID, true); $displayData['lCurrentFutureShifts'] = $this->clsShifts->lNumShiftsViaVolID($lVolID, false); //------------------------------- // groups //------------------------------- $this->groups->groupMembershipViaFID(CENUM_CONTEXT_VOLUNTEER, $lVolID); $displayData['inGroups'] = $this->groups->arrMemberInGroups; $displayData['lCntGroupMembership'] = $this->groups->lNumMemInGroups; $displayData['lNumGroups'] = $this->groups->lCntActiveGroupsViaType(CENUM_CONTEXT_VOLUNTEER); $this->groups->loadActiveGroupsViaType(CENUM_CONTEXT_VOLUNTEER, 'groupName', $this->groups->strMemListIDs, false, null); $displayData['groupList'] = $this->groups->arrGroupList; //------------------------------- // images and documents //------------------------------- loadImgDocRecView($displayData, CENUM_CONTEXT_VOLUNTEER, $lVolID); //-------------------------- // breadcrumbs //-------------------------- $displayData['title'] = CS_PROGNAME . ' | View volunteer record'; $displayData['pageTitle'] = anchor('main/menu/vols', 'Volunteers', 'class="breadcrumb"') . ' | Record'; $displayData['nav'] = $this->mnav_brain_jar->navData(); $displayData['mainTemplate'] = 'vols/vol_record_view'; $this->load->vars($displayData); $this->load->view('template'); }
public function viewGrant($lGrantID) { //------------------------------------------------------------------------- // //------------------------------------------------------------------------- global $gclsChapterACO; // $gstrFormatDatePicker, $gbDateFormatUS; if (!bTestForURLHack('showGrants')) { return; } $this->load->helper('dl_util/verify_id'); verifyID($this, $lGrantID, 'grant ID'); $displayData = array(); $displayData['js'] = ''; $displayData['lGrantID'] = $lGrantID = (int) $lGrantID; //------------------------- // models & helpers //------------------------- $this->load->model('grants/mgrants', 'cgrants'); $this->load->model('img_docs/mimage_doc', 'clsImgDoc'); $this->load->model('img_docs/mimg_doc_tags', 'cidTags'); $this->load->helper('dl_util/web_layout'); $params = array('enumStyle' => 'terse', 'clsRpt'); $this->load->library('generic_rpt', $params); $this->load->helper('grants/link_grants'); $this->load->helper('dl_util/record_view'); $this->load->helper('img_docs/image_doc'); $this->load->helper('img_docs/link_img_docs'); // $this->load->helper ('img_docs/link_img_docs'); $this->load->helper('js/div_hide_show'); $displayData['js'] .= showHideDiv(); $this->load->model('admin/madmin_aco', 'clsACO'); $this->load->model('util/mlist_generic', 'clsList'); $this->clsList->enumListType = CENUM_LISTTYPE_ATTRIB; // load the associated grants $this->cgrants->loadGrantsViaGrantID($lGrantID, '', $lNumGrants, $grants); $grant = $displayData['grant'] =& $grants[0]; /* ------------------------------------- echo('<font class="debug">'.substr(__FILE__, strrpos(__FILE__, '\\')) .': '.__LINE__.'<br>$grant <pre>'); echo(htmlspecialchars( print_r($grant, true))); echo('</pre></font><br>'); // ------------------------------------- */ // load the grant provider $lProviderID = $grant->lProviderKeyID; $this->cgrants->loadGrantProviderViaGPID($lProviderID, $lNumProviders, $providers); $provider = $displayData['provider'] =& $providers[0]; //------------------------------- // images and documents //------------------------------- loadImgDocRecView($displayData, CENUM_CONTEXT_GRANTPROVIDER, $lProviderID); //-------------------------- // breadcrumbs //-------------------------- $displayData['contextSummary'] = $this->cgrants->providerHTMLSummary($provider); $displayData['pageTitle'] = anchor('main/menu/financials', 'Financials/Grants', 'class="breadcrumb"') . ' | ' . anchor('grants/provider_directory/viewProDirectory', 'Provider Directory', 'class="breadcrumb"') . ' | ' . anchor('grants/provider_record/viewProvider/' . $lProviderID, 'Provider Record', 'class="breadcrumb"') . ' | Grant Record'; $displayData['title'] = CS_PROGNAME . ' | Grants'; $displayData['nav'] = $this->mnav_brain_jar->navData(); $displayData['mainTemplate'] = 'grants/grant_record_view'; $this->load->vars($displayData); $this->load->view('template'); }
function viewPackageRecord($lPackageID) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- if (!bTestForURLHack('showAuctions')) { return; } $this->load->helper('dl_util/verify_id'); verifyID($this, $lPackageID, 'package ID'); $displayData = array(); $displayData['js'] = ''; //------------------------- // models & helpers //------------------------- $this->load->helper('dl_util/time_date'); $this->load->helper('img_docs/img_doc_tags'); $this->load->model('auctions/mauctions', 'cAuction'); $this->load->model('auctions/mpackages', 'cPackages'); $this->load->model('auctions/mitems', 'cItems'); $this->load->model('admin/madmin_aco', 'clsACO'); $this->load->model('img_docs/mimage_doc', 'clsImgDoc'); $this->load->model('img_docs/mimg_doc_tags', 'cidTags'); $this->load->helper('dl_util/web_layout'); $this->load->helper('dl_util/link_auction'); $this->load->helper('auctions/auction'); $this->load->helper('img_docs/image_doc'); $this->load->helper('dl_util/record_view'); $this->load->helper('img_docs/link_img_docs'); $params = array('enumStyle' => 'terse'); $this->load->library('generic_rpt', $params); $this->load->helper('js/div_hide_show'); $displayData['js'] .= showHideDiv(); //----------------------------------------- // load package and associated auction //----------------------------------------- $this->cPackages->loadPackageByPacID($lPackageID); $displayData['package'] = $package = $this->cPackages->packages[0]; $this->cPackages->loadPackageProfileImage(); $displayData['lAuctionID'] = $lAuctionID = $package->lAuctionID; $this->cAuction->loadAuctionByAucID($lAuctionID); $displayData['auction'] = $auction =& $this->cAuction->auctions[0]; $displayData['contextSummary'] = $this->cAuction->strAuctionHTMLSummary(); $package->lNumItems = $this->cItems->lCountItemsViaPID($lPackageID); $package->curEstValue = $this->cItems->curEstValueViaPID($lPackageID); $package->curOutOfPocket = $this->cItems->curOutOfPocketViaPID($lPackageID); $this->cItems->loadItemsViaPackageID($lPackageID); $displayData['lNumItems'] = $this->cItems->lNumItems; $displayData['items'] =& $this->cItems->items; if (!is_null($package->lBidWinnerID)) { $this->load->model('people/mpeople', 'clsPeople'); $this->clsPeople->peopleBizInfoViaPID($package->lBidWinnerID, $displayData['pbInfo']); } //------------------------------- // images and documents //------------------------------- loadImgDocRecView($displayData, CENUM_CONTEXT_AUCTIONPACKAGE, $lPackageID); //-------------------------- // breadcrumbs //-------------------------- $displayData['pageTitle'] = GSTR_AUCTIONTOPLEVEL . ' | ' . anchor('auctions/auctions/auctionEvents', 'Silent Auctions', 'class="breadcrumb"') . ' | ' . anchor('auctions/auctions/viewAuctionRecord/' . $lAuctionID, 'Auction', 'class="breadcrumb"') . ' | ' . anchor('auctions/packages/viewPackagesViaAID/' . $lAuctionID, 'Auction Packages', 'class="breadcrumb"') . ' | Package Record'; $displayData['title'] = CS_PROGNAME . ' | Silent Auctions'; $displayData['nav'] = $this->mnav_brain_jar->navData(); $displayData['mainTemplate'] = 'auctions/package_record_view'; $this->load->vars($displayData); $this->load->view('template'); }
function viewAuctionRecord($lAuctionID) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- if (!bTestForURLHack('showAuctions')) { return; } $this->load->helper('dl_util/verify_id'); verifyID($this, $lAuctionID, 'auction ID'); $displayData = array(); $displayData['lAuctionID'] = $lAuctionID = (int) $lAuctionID; $displayData['js'] = ''; $params = array('enumStyle' => 'terse', 'clsRpt'); $this->load->library('generic_rpt', $params); //----------------------------- // models and helpers //----------------------------- $this->load->helper('img_docs/img_doc_tags'); $this->load->model('auctions/mauctions', 'cAuction'); $this->load->model('auctions/mpackages', 'cPackages'); $this->load->model('auctions/mitems', 'cItems'); $this->load->model('admin/madmin_aco', 'clsACO'); $this->load->model('img_docs/mimage_doc', 'clsImgDoc'); $this->load->model('img_docs/mimg_doc_tags', 'cidTags'); $this->load->helper('img_docs/image_doc'); $this->load->helper('dl_util/link_auction'); $this->load->helper('auctions/auction'); $this->load->helper('dl_util/web_layout'); $this->load->helper('dl_util/record_view'); $this->load->helper('img_docs/link_img_docs'); $this->load->helper('js/div_hide_show'); $displayData['js'] .= showHideDiv(); //------------------------------- // images and documents //------------------------------- loadImgDocRecView($displayData, CENUM_CONTEXT_AUCTION, $lAuctionID); $this->cAuction->loadAuctionByAucID($lAuctionID); $auction =& $this->cAuction->auctions[0]; $lAuctionID = $auction->lKeyID; $auction->lNumPackages = $this->cPackages->lCountPackagesViaAID($lAuctionID); $auction->lNumItems = $this->cItems->lCountItemsViaAID($lAuctionID); $auction->curEstValue = $this->cItems->curEstValueViaAID($lAuctionID); $auction->curOutOfPocket = $this->cItems->curOutOfPocketViaAID($lAuctionID); $auction->curIncome = $this->cItems->curIncomeViaAID($lAuctionID); $auction->lNumWinningBids = $this->cItems->lNumWinningBidsViaAID($lAuctionID); $auction->lNumUnfulfilled = $this->cItems->lNumUnfulfilledViaAID($lAuctionID); $auction->curAmntWinBids = $this->cItems->curWinningBidAmntViaAID($lAuctionID); $displayData['auction'] =& $this->cAuction->auctions[0]; //-------------------------- // breadcrumbs //-------------------------- $displayData['pageTitle'] = GSTR_AUCTIONTOPLEVEL . ' | ' . anchor('auctions/auctions/auctionEvents', 'Silent Auctions', 'class="breadcrumb"') . ' | Auction Record'; $displayData['title'] = CS_PROGNAME . ' | Silent Auctions'; $displayData['nav'] = $this->mnav_brain_jar->navData(); $displayData['mainTemplate'] = 'auctions/auction_record_view'; $this->load->vars($displayData); $this->load->view('template'); }
public function view($lBID) { //------------------------------------------------------------------------- // //------------------------------------------------------------------------- global $glUserID; $this->load->helper('dl_util/verify_id'); verifyID($this, $lBID, 'business ID'); $displayData = array(); $displayData['lBID'] = $lBID = (int) $lBID; $displayData['js'] = ''; $params = array('enumStyle' => 'terse', 'clsRpt'); $this->load->library('generic_rpt', $params); //------------------------------------------------ // libraries and utilities //------------------------------------------------ $this->load->helper('img_docs/img_doc_tags'); $this->load->model('people/mpeople', 'clsPeople'); $this->load->model('biz/mbiz', 'clsBiz'); $this->load->model('admin/madmin_aco', 'clsACO'); $this->load->model('admin/muser_accts', 'clsUser'); $this->load->model('sponsorship/msponsorship', 'clsSpon'); $this->load->model('sponsorship/msponsor_charge_pay', 'clsSCP'); $this->load->model('donations/mdonations', 'clsGifts'); $this->load->model('donations/mpledges', 'clsPledges'); $this->load->model('vols/mvol', 'clsVol'); $this->load->model('people/mrelationships', 'clsRel'); $this->load->model('groups/mgroups', 'groups'); $this->load->model('img_docs/mimage_doc', 'clsImgDoc'); $this->load->model('img_docs/mimg_doc_tags', 'cidTags'); $this->load->library('util/dl_date_time', '', 'clsDateTime'); $this->load->helper('personalization/ptable'); $this->load->helper('dl_util/web_layout'); // $this->load->helper ('dl_util/email_web'); $this->load->helper('dl_util/record_view'); $this->load->helper('img_docs/link_img_docs'); $this->load->helper('dl_util/time_date'); $this->load->helper('img_docs/image_doc'); $this->load->helper('img_docs/link_img_docs'); $this->load->helper('groups/groups'); $this->load->model('reminders/mreminders', 'clsReminders'); $displayData['clsRem'] = $this->clsReminders; $this->load->helper('js/div_hide_show'); $displayData['js'] .= showHideDiv(); //------------------------------- // business record //------------------------------- $this->clsBiz->loadBizRecsViaBID($lBID); $displayData['biz'] =& $this->clsBiz->bizRecs[0]; //------------------------------- // associated contacts //------------------------------- $this->clsBiz->contactList(true, false, false); $displayData['contacts'] =& $this->clsBiz->contacts; $displayData['lNumContacts'] = $this->clsBiz->lNumContacts; //------------------------------- // personalized tables //------------------------------- $this->load->model('personalization/muser_fields', 'clsUF'); $this->load->model('personalization/muser_fields_display', 'clsUFD'); $this->load->model('admin/mpermissions', 'perms'); $this->perms->loadUserAcctInfo($glUserID, $acctAccess); $this->load->model('personalization/muser_fields', 'clsUF'); $this->load->model('personalization/muser_fields_display', 'clsUFD'); $displayData['strPT'] = strPTableDisplay(CENUM_CONTEXT_BIZ, $lBID, $this->clsUFD, $this->perms, $acctAccess, $displayData['strFormDataEntryAlert'], $displayData['lNumPTablesAvail']); //------------------------------- // groups //------------------------------- $this->groups->groupMembershipViaFID(CENUM_CONTEXT_BIZ, $lBID); $displayData['inGroups'] = $this->groups->arrMemberInGroups; $displayData['lCntGroupMembership'] = $this->groups->lNumMemInGroups; $displayData['lNumGroups'] = $this->groups->lCntActiveGroupsViaType(CENUM_CONTEXT_BIZ); $this->groups->loadActiveGroupsViaType(CENUM_CONTEXT_BIZ, 'groupName', $this->groups->strMemListIDs, false, null); $displayData['groupList'] = $this->groups->arrGroupList; //------------------------------- // images and documents //------------------------------- loadImgDocRecView($displayData, CENUM_CONTEXT_BIZ, $lBID); //------------------- // donation summary //------------------- $this->clsGifts->lPeopleID = $lBID; $displayData['lTotGifts'] = 0; // monetary $this->clsGifts->cumulativeOpts = new stdClass(); $this->clsGifts->cumulativeOpts->enumCumulativeSource = 'biz'; $this->clsGifts->cumulativeOpts->enumMoneySet = 'monetaryOnly'; $this->clsGifts->cumulativeOpts->bSoft = false; $this->clsGifts->cumulativeDonation($this->clsACO, $displayData['lTotHard']); $displayData['strCumGiftsNonSoftMon'] = strBuildCumlativeTable($this->clsGifts->lNumCumulative, $this->clsGifts->cumulative, true); // $displayData['lTotGifts'] += $this->clsGifts->lNumCumulative; // in-kind $this->clsGifts->cumulativeOpts->enumMoneySet = 'gikOnly'; $this->clsGifts->cumulativeDonation($this->clsACO, $displayData['lTotInKind']); $displayData['strCumGiftsNonSoftInKind'] = strBuildCumlativeTable($this->clsGifts->lNumCumulative, $this->clsGifts->cumulative, true); // $displayData['lTotGifts'] += $this->clsGifts->lNumCumulative; // soft $this->clsGifts->cumulativeOpts->enumMoneySet = 'all'; $this->clsGifts->cumulativeOpts->bSoft = true; $this->clsGifts->cumulativeDonation($this->clsACO, $displayData['lTotSoft']); $displayData['strCumGiftsSoft'] = strBuildCumlativeTable($this->clsGifts->lNumCumulative, $this->clsGifts->cumulative, true); // $displayData['lTotGifts'] += $this->clsGifts->lNumCumulative; // sponsorship payments $this->clsSCP->cumulativeSponsorshipViaPeopleID($this->clsACO, $lBID); $displayData['strCumSpon'] = strBuildCumlativeTable($this->clsSCP->lNumSponPayCumulative, $this->clsSCP->sponPayCumulative, true); $displayData['lNumSponPay'] = $this->clsSCP->lNumSponPayCumulative; $displayData['lNumPledges'] = $this->clsPledges->lNumPledgesViaFID($lBID); //------------------------------- // sponsorship info //------------------------------- $this->clsSpon->sponsorshipInfoViaPID($lBID); $displayData['sponInfo'] = $this->clsSpon->sponInfo; $displayData['lNumSponsors'] = $this->clsSpon->lNumSponsors; //-------------------------- // breadcrumbs //-------------------------- $displayData['pageTitle'] = anchor('main/menu/biz', 'Businesses/Organizations', 'class="breadcrumb"') . ' | Business Record'; $displayData['title'] = CS_PROGNAME . ' | Businesses'; $displayData['nav'] = $this->mnav_brain_jar->navData(); $displayData['mainTemplate'] = 'biz/biz_record_view'; $this->load->vars($displayData); $this->load->view('template'); }
public function viewViaSponID($lSponID) { //------------------------------------------------------------------------- // //------------------------------------------------------------------------- global $glUserID; if (!bTestForURLHack('showSponsors')) { return; } $this->load->helper('dl_util/verify_id'); verifyID($this, $lSponID, 'sponsor ID'); $displayData = array(); $displayData['lSponID'] = $lSponID = (int) $lSponID; $displayData['js'] = ''; $params = array('enumStyle' => 'terse', 'clsRpt'); $this->load->library('generic_rpt', $params); $clsRpt = new generic_rpt($params); //------------------------------------------------ // models, libraries and utilities //------------------------------------------------ $this->load->library('util/dl_date_time', '', 'clsDateTime'); $this->load->model('sponsorship/msponsorship', 'clsSpon'); $this->load->model('sponsorship/msponsor_charge_pay', 'clsSCP'); $this->load->model('clients/mclients', 'clsClient'); $this->load->model('people/mpeople', 'clsPeople'); $this->load->model('admin/madmin_aco', 'clsACO'); $this->load->model('admin/muser_accts', 'clsUser'); $this->load->model('img_docs/mimage_doc', 'clsImgDoc'); $this->load->model('img_docs/mimg_doc_tags', 'cidTags'); $this->load->model('biz/mbiz', 'clsBiz'); $this->load->model('groups/mgroups', 'groups'); $this->load->helper('personalization/ptable'); $this->load->helper('groups/groups'); $this->load->helper('dl_util/web_layout'); // $this->load->helper ('dl_util/email_web'); $this->load->helper('dl_util/record_view'); $this->load->helper('img_docs/link_img_docs'); $this->load->helper('dl_util/time_date'); $this->load->helper('img_docs/image_doc'); $this->load->helper('img_docs/link_img_docs'); $this->load->helper('img_docs/img_doc_tags'); $this->load->helper('js/div_hide_show'); $displayData['js'] .= showHideDiv(); $this->clsSpon->sponsorInfoViaID($lSponID); $displayData['sponRec'] = $sponRec =& $this->clsSpon->sponInfo[0]; $lFID = $sponRec->lForeignID; $displayData['strWidthLabel'] = $strWidthLabel = '130pt;'; $displayData['financialSummary'] = strSponsorFinancialSummary($clsRpt, $this->clsSCP, $lSponID, $strWidthLabel); if ($sponRec->bSponBiz) { $this->clsBiz->loadBizRecsViaBID($lFID); $displayData['contextSummary'] = $this->clsBiz->strBizHTMLSummary(); } else { $this->clsPeople->lPeopleID = $lFID; $this->clsPeople->loadPeopleViaPIDs($lFID, false, false); $displayData['contextSummary'] = $this->clsPeople->peopleHTMLSummary(0); } //------------------------------- // reminders //------------------------------- $this->load->model('reminders/mreminders', 'clsReminders'); $displayData['clsRem'] =& $this->clsReminders; //------------------------------- // personalized tables //------------------------------- $this->load->model('personalization/muser_fields', 'clsUF'); $this->load->model('personalization/muser_fields_display', 'clsUFD'); $this->load->model('admin/mpermissions', 'perms'); $this->perms->loadUserAcctInfo($glUserID, $acctAccess); $this->load->model('personalization/muser_fields', 'clsUF'); $this->load->model('personalization/muser_fields_display', 'clsUFD'); $displayData['strPT'] = strPTableDisplay(CENUM_CONTEXT_SPONSORSHIP, $lSponID, $this->clsUFD, $this->perms, $acctAccess, $displayData['strFormDataEntryAlert'], $displayData['lNumPTablesAvail']); //------------------------------- // groups //------------------------------- $this->groups->groupMembershipViaFID(CENUM_CONTEXT_SPONSORSHIP, $lSponID); $displayData['inGroups'] = $this->groups->arrMemberInGroups; $displayData['lCntGroupMembership'] = $this->groups->lNumMemInGroups; $displayData['lNumGroups'] = $this->groups->lCntActiveGroupsViaType(CENUM_CONTEXT_SPONSORSHIP); $this->groups->loadActiveGroupsViaType(CENUM_CONTEXT_SPONSORSHIP, 'groupName', $this->groups->strMemListIDs, false, null); $displayData['groupList'] = $this->groups->arrGroupList; //------------------------------- // client info //------------------------------- $displayData['lClientID'] = $lClientID = $sponRec->lClientID; $displayData['clsClient'] =& $this->clsClient; if (!is_null($lClientID)) { $this->clsClient->loadClientsViaClientID($lClientID); } //------------------------------- // images and documents //------------------------------- loadImgDocRecView($displayData, CENUM_CONTEXT_SPONSORSHIP, $lSponID); //-------------------------- // breadcrumbs //-------------------------- $displayData['pageTitle'] = anchor('main/menu/sponsorship', 'Sponsorship', 'class="breadcrumb"') . ' | Sponsorship Record'; $displayData['title'] = CS_PROGNAME . ' | Sponsorship'; $displayData['nav'] = $this->mnav_brain_jar->navData(); $displayData['mainTemplate'] = 'sponsorship/sponsor_record_view'; $this->load->vars($displayData); $this->load->view('template'); }
function iitemRec($lIItemID) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- if (!bTestForURLHack('inventoryMgr')) { return; } $this->load->helper('dl_util/verify_id'); verifyID($this, $lIItemID, 'inventory item ID'); $displayData = array(); $displayData['js'] = ''; $displayData['lIItemID'] = $lIItemID = (int) $lIItemID; //------------------------- // models & helpers //------------------------- $this->load->model('staff/inventory/minventory'); $this->load->model('staff/inventory/minv_cico', 'ccico'); $this->load->model('img_docs/mimage_doc', 'clsImgDoc'); $this->load->model('img_docs/mimg_doc_tags', 'cidTags'); $this->load->model('admin/madmin_aco', 'clsACO'); $this->load->helper('dl_util/web_layout'); $this->load->helper('staff/link_inventory'); $this->load->helper('staff/cico'); $this->load->helper('img_docs/image_doc'); $this->load->helper('img_docs/link_img_docs'); $this->load->helper('dl_util/record_view'); $params = array('enumStyle' => 'terse', 'clsRpt'); $this->load->library('generic_rpt', $params); $this->load->helper('js/div_hide_show'); $displayData['js'] .= showHideDiv(); //------------------------------------- // stripes //------------------------------------- $this->load->model('util/mbuild_on_ready', 'clsOnReady'); $this->clsOnReady->addOnReadyTableStripes(); $this->clsOnReady->closeOnReady(); $displayData['js'] .= $this->clsOnReady->strOnReady; // load the inventory item $this->ccico->loadSingleInventoryItem($lIItemID, $lNumItems, $items, true); $displayData['item'] =& $items[0]; $displayData['lICatID'] = $lICatID = $displayData['item']->lCategoryID; // load the inventory category $this->ccico->loadSingleInventoryCategories($lICatID, $displayData['cat']); // load the inventory category breadcrumbs $displayData['strBreadCrumb'] = ''; $this->ccico->icatBreadCrumbs($displayData['strBreadCrumb'], $lICatID); // check-out / check-in history $this->ccico->itemCICOHistory($lIItemID, '', '', $displayData['item']->lNumCICO, $displayData['item']->CICOrecs); $currentCICO =& $displayData['item']->CICOrecs[0]; // item history $this->ccico->loadItemHistory($lIItemID, $displayData['item']->lNumHRecs, $displayData['item']->histRecs); // images and documents loadImgDocRecView($displayData, CENUM_CONTEXT_INVITEM, $lIItemID); //-------------------------- // breadcrumbs //-------------------------- $displayData['pageTitle'] = anchor('main/menu/more', 'More', 'class="breadcrumb"') . ' | ' . anchor('staff/inventory/icat/viewICats', 'Inventory Categories', 'class="breadcrumb"') . ' | Item Record'; $displayData['title'] = CS_PROGNAME . ' | Inventory Management'; $displayData['nav'] = $this->mnav_brain_jar->navData(); $displayData['mainTemplate'] = 'staff/inventory/iitem_record_view'; $this->load->vars($displayData); $this->load->view('template'); }
function viewItemRecord($lItemID) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- if (!bTestForURLHack('showAuctions')) { return; } $displayData = array(); $displayData['js'] = ''; $this->load->helper('dl_util/verify_id'); verifyID($this, $lItemID, 'auction item ID'); //------------------------- // models & helpers //------------------------- $this->load->helper('img_docs/img_doc_tags'); $this->load->model('auctions/mauctions', 'cAuction'); $this->load->model('auctions/mpackages', 'cPackages'); $this->load->model('auctions/mitems', 'cItems'); $this->load->model('admin/madmin_aco', 'clsACO'); $this->load->model('img_docs/mimage_doc', 'clsImgDoc'); $this->load->model('img_docs/mimg_doc_tags', 'cidTags'); $this->load->helper('dl_util/web_layout'); $this->load->helper('dl_util/link_auction'); $this->load->helper('auctions/auction'); $this->load->model('img_docs/mimage_doc', 'clsImgDoc'); $this->load->helper('img_docs/image_doc'); $this->load->helper('dl_util/record_view'); $this->load->helper('img_docs/link_img_docs'); $params = array('enumStyle' => 'terse'); $this->load->library('generic_rpt', $params); //------------------------------- // images and documents //------------------------------- loadImgDocRecView($displayData, CENUM_CONTEXT_AUCTIONITEM, $lItemID); $this->load->helper('js/div_hide_show'); $displayData['js'] .= showHideDiv(); $displayData['lItemID'] = $lItemID = (int) $lItemID; $this->cItems->loadItemViaItemID($lItemID); $displayData['item'] = $item =& $this->cItems->items[0]; $displayData['lAuctionID'] = $lAuctionID = $item->lAuctionID; $displayData['lPackageID'] = $lPackageID = $item->lPackageID; setPackageContext($lPackageID, $lAuctionID, $displayData); //-------------------------- // breadcrumbs //-------------------------- $displayData['pageTitle'] = GSTR_AUCTIONTOPLEVEL . ' | ' . anchor('auctions/auctions/auctionEvents', 'Silent Auctions', 'class="breadcrumb"') . ' | ' . anchor('auctions/auctions/viewAuctionRecord/' . $lAuctionID, 'Auction', 'class="breadcrumb"') . ' | ' . anchor('auctions/packages/viewPackageRecord/' . $lPackageID, 'Auction Package', 'class="breadcrumb"') . ' | Item Record'; $displayData['title'] = CS_PROGNAME . ' | Silent Auctions'; $displayData['nav'] = $this->mnav_brain_jar->navData(); $displayData['mainTemplate'] = 'auctions/item_record_view'; $this->load->vars($displayData); $this->load->view('template'); }
public function view($lLocID) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- global $glUserID; if (!bTestForURLHack('showClients')) { return; } $this->load->helper('dl_util/verify_id'); verifyID($this, $lLocID, 'client location ID'); $displayData = array(); $displayData['js'] = ''; $lLocID = (int) $lLocID; $params = array('enumStyle' => 'terse', 'clsRpt'); $this->load->model('clients/mclient_locations', 'clsLoc'); $this->load->helper('dl_util/time_date'); $this->load->helper('img_docs/image_doc'); $this->load->helper('img_docs/img_doc_tags'); $this->load->helper('img_docs/link_img_docs'); $this->load->helper('personalization/ptable'); $this->load->helper('dl_util/web_layout'); $this->load->model('img_docs/mimage_doc', 'clsImgDoc'); $this->load->model('img_docs/mimg_doc_tags', 'cidTags'); $this->load->model('admin/madmin_aco'); $this->load->model('admin/muser_accts'); $this->load->library('generic_rpt', $params); $this->load->library('util/dl_date_time', '', 'clsDateTime'); $this->clsLoc->loadLocationRec($lLocID); $displayData['cLoc'] =& $this->clsLoc; $this->load->helper('js/div_hide_show'); $displayData['js'] .= showHideDiv(); //------------------------------- // personalized tables //------------------------------- $this->load->model('personalization/muser_fields', 'clsUF'); $this->load->model('personalization/muser_fields_display', 'clsUFD'); $this->load->model('admin/mpermissions', 'perms'); $this->perms->loadUserAcctInfo($glUserID, $acctAccess); $displayData['strPT'] = strPTableDisplay(CENUM_CONTEXT_LOCATION, $lLocID, $this->clsUFD, $this->perms, $acctAccess, $displayData['strFormDataEntryAlert'], $displayData['lNumPTablesAvail']); $this->load->helper('dl_util/web_layout'); $this->load->helper('dl_util/record_view'); $this->load->helper('img_docs/link_img_docs'); //------------------------------- // images and documents //------------------------------- loadImgDocRecView($displayData, CENUM_CONTEXT_LOCATION, $lLocID); $this->load->model('sponsorship/msponsorship_programs', 'clsSponProg'); $this->clsLoc->loadSupportedSponCats($lLocID, $this->clsSponProg); $displayData['sponProgs'] =& $this->clsSponProg->sponProgs; $displayData['lNumSponPrograms'] = $this->clsSponProg->lNumSponPrograms; //-------------------------- // breadcrumbs //-------------------------- $displayData['pageTitle'] = anchor('main/menu/admin', 'Admin', 'class="breadcrumb"') . ' | ' . anchor('admin/alists/showLists', 'Lists', 'class="breadcrumb" ') . ' | ' . anchor('admin/admin_special_lists/clients/locationView', 'Client Locations', 'class="breadcrumb" ') . ' | Location Record'; $displayData['title'] = CS_PROGNAME . ' | Client Locations'; $displayData['nav'] = $this->mnav_brain_jar->navData(); $displayData['lLocID'] = $lLocID; $displayData['mainTemplate'] = 'client/client_loc_rec_view'; $this->load->vars($displayData); $this->load->view('template'); }