本文整理汇总了PHP中showHideDiv函数的典型用法代码示例。如果您正苦于以下问题:PHP showHideDiv函数的具体用法?PHP showHideDiv怎么用?PHP showHideDiv使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showHideDiv函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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');
}
示例2: review
function review()
{
//------------------------------------------------------------------------
//
//------------------------------------------------------------------------
global $glUserID;
$this->load->helper('dl_util/permissions');
// in autoload
if (!bAllowAccess('management')) {
return '';
}
$displayData = array();
$displayData['js'] = '';
//-------------------------------------
// models, libraries, and helpers
//-------------------------------------
$this->load->model('staff/mstaff_status', 'cstat');
$params = array('enumStyle' => 'terse');
$this->load->library('generic_rpt', $params);
$this->load->helper('dl_util/web_layout');
$this->load->helper('staff/link_staff');
$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;
$displayData['lMgrGroupID'] = $lMgrGroupID = $this->cstat->lStaffManagementGroupID();
if (!is_null($lMgrGroupID)) {
$strTmpTable = 'tmp_mgr_status';
$this->cstat->loadUsersAndStaffGroups($strTmpTable);
$this->cstat->buildStaffGroups($strTmpTable, $displayData['lNumStaffGroups'], $displayData['staffGroups']);
$lNumStaffGroups = $displayData['lNumStaffGroups'];
$staffGroups =& $displayData['staffGroups'];
if ($lNumStaffGroups > 0) {
foreach ($staffGroups as $sg) {
if ($sg->lNumUsers > 0) {
foreach ($sg->users as $sguser) {
$lStaffUID = $sguser->lUserID;
$this->cstat->reviewCountsForStaffMember($lStaffUID, $glUserID, $sguser->lNumReviewed, $sguser->lNumReviewedDraft, $sguser->lNumNotReviewed, $sguser->lTotPublished);
}
}
}
}
}
//--------------------------
// breadcrumbs
//--------------------------
$displayData['pageTitle'] = anchor('aayhf/main/aayhfMenu', 'AAYHF', 'class="breadcrumb"') . ' | Status Report Review';
$displayData['title'] = CS_PROGNAME . ' | Status Report Review';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$displayData['mainTemplate'] = 'aayhf/aayhf_staff/mgr_status_review_overview_view';
$this->load->vars($displayData);
$this->load->view('template');
}
示例3: superVolMgr
function superVolMgr()
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $gdteNow;
if (!bTestForURLHack('superUser')) {
return;
}
$displayData = array();
$displayData['js'] = '';
//------------------------------------------------
// libraries and utilities
//------------------------------------------------
$this->load->model('admin/mpermissions', 'perms');
$this->load->model('admin/muser_accts', 'cusers');
$this->load->library('generic_form');
$this->load->helper('hospice/link_hospice');
$this->load->helper('hospice/link_hospice');
$this->load->helper('dl_util/web_layout');
$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 users
$this->cusers->loadSuperUsers($displayData['lNumSU'], $displayData['superUsers']);
$this->cusers->loadVolMgrUsers($displayData['lNumVM'], $displayData['vmUsers']);
$lNumSUActive = 0;
foreach ($displayData['superUsers'] as $lAcct) {
if (!$lAcct->us_bInactive) {
++$lNumSUActive;
}
}
$lNumVMActive = 0;
foreach ($displayData['vmUsers'] as $lAcct) {
if (!$lAcct->us_bInactive) {
++$lNumVMActive;
}
}
$displayData['lNumSUActive'] = $lNumSUActive;
$displayData['lNumVMActive'] = $lNumVMActive;
//------------------------------------------------
// breadcrumbs / page setup
//------------------------------------------------
$displayData['mainTemplate'] = 'hospice/super/accounts_su_vol_view';
$displayData['pageTitle'] = 'Super User / Volunteer Manager Accounts';
$displayData['title'] = CS_PROGNAME . ' | Accounts';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$this->load->vars($displayData);
$this->load->view('template');
}
示例4: viewRec
function viewRec($lVolID)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $gbVolMgr, $glChapterID, $gstrFormatDatePicker, $gbDateFormatUS;
global $glUserID, $gbVolLogin;
$this->load->helper('dl_util/verify_id');
verifyID($glChapterID, $lVolID, 'volunteer ID');
$displayData = array();
$displayData['lVolID'] = $lVolID = (int) $lVolID;
$displayData['js'] = '';
$displayData['formData'] = new stdClass();
//------------------------------------------------
// models, libraries and utilities
//------------------------------------------------
$this->load->model('vols/mvol', 'cVol');
$this->load->model('vols/mvol_training', 'cvt');
$this->load->model('hospice/mhospice_pvisit', 'cPVisit');
$this->load->model('admin/mpermissions', 'perms');
$this->load->model('admin/muser_accts', 'cusers');
$this->load->helper('dl_util/web_layout');
$this->load->helper('dl_util/time_date');
$this->load->helper('hospice/link_hospice');
$this->load->library('util/dl_date_time', '', 'clsDateTime');
$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 volunteer record
$this->cVol->loadVolRecsViaVolID($lVolID, true);
$displayData['volRec'] = $volRec =& $this->cVol->volRecs[0];
// associated patient contacts
$this->cVol->loadVolClientAssocViaVolID($lVolID, $displayData['volClient'], true);
// vol stats
$this->cPVisit->loadVolActivityStats($lVolID, $displayData['volStats']);
// vol training
$this->cvt->loadVolTrainingViaVID($lVolID, $displayData['lNumTraining'], $displayData['training']);
//--------------------------
// breadcrumbs
//--------------------------
$params = array('enumStyle' => 'terse');
$this->load->library('generic_rpt', $params, 'generic_rpt');
$displayData['clsRpt'] = $this->generic_rpt;
$displayData['pageTitle'] = 'Volunteer Record';
$displayData['title'] = CS_PROGNAME . ' | Volunteer';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$displayData['mainTemplate'] = 'hospice/vols/volunteer_rec_view';
$this->load->vars($displayData);
$this->load->view('template');
}
示例5: 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');
}
示例6: 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');
}
示例7: orgView
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');
}
示例8: viewTable
function viewTable($lTableID)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
$displayData = array();
$displayData['js'] = '';
$displayData['lTableID'] = $lTableID = (int) $lTableID;
//-----------------------------
// models and helpers
//-----------------------------
$this->load->model('personalization/muser_schema', 'cUFSchema');
$this->load->model('groups/mgroups', 'groups');
$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');
$params = array('enumStyle' => 'terse', 'clsRpt');
$this->load->library('generic_rpt', $params);
$this->load->helper('js/div_hide_show');
$displayData['js'] .= showHideDiv();
$this->cUFSchema->loadUFSchemaSingleTable($lTableID);
$displayData['schema'] = $schema =& $this->cUFSchema->schema;
$enumType = $schema[$lTableID]->enumAttachType;
//------------------------------------------------
// stripes
//------------------------------------------------
$this->load->model('util/mbuild_on_ready', 'clsOnReady');
$this->clsOnReady->addOnReadyTableStripes();
$this->clsOnReady->closeOnReady();
$displayData['js'] .= $this->clsOnReady->strOnReady;
//-------------------------------
// permission groups
//-------------------------------
$this->groups->groupMembershipViaFID(CENUM_CONTEXT_PTABLE, $lTableID);
$displayData['inGroups'] = $this->groups->arrMemberInGroups;
$displayData['lCntGroupMembership'] = $this->groups->lNumMemInGroups;
$displayData['lNumGroups'] = $this->groups->lCntActiveGroupsViaType(CENUM_CONTEXT_PTABLE);
$this->groups->loadActiveGroupsViaType(CENUM_CONTEXT_PTABLE, 'groupName', $this->groups->strMemListIDs, false, null);
$displayData['groupList'] = $this->groups->arrGroupList;
//--------------------------
// breadcrumbs
//--------------------------
$displayData['pageTitle'] = anchor('main/menu/admin', 'Admin', 'class="breadcrumb"') . ' | ' . anchor('admin/personalization/overview/' . $enumType, 'Personalization', 'class="breadcrumb"') . ' | Table';
$displayData['title'] = CS_PROGNAME . ' | Admin';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$displayData['mainTemplate'] = 'personalization/uf_table_rec_view';
$this->load->vars($displayData);
$this->load->view('template');
}
示例9: showDebugDetails
public function showDebugDetails()
{
//-------------------------------------------------------------------------
//
//-------------------------------------------------------------------------
global $glUserID;
/*----------------------------
echo(__FILE__.' '.__LINE__.'<br>'."\n"); $this->output->enable_profiler(TRUE);
//----------------------------- */
if (!bTestForURLHack('devOnly')) {
return;
}
$displayData = array();
$displayData['js'] = '';
//-------------------------------------
// models, libraries, and helpers
//-------------------------------------
$this->load->model('personalization/muser_fields', 'clsUF');
$this->load->model('client_features/mcprograms', 'cprograms');
$this->load->model('admin/mpermissions', 'perms');
$this->load->helper('dl_util/web_layout');
$params = array('enumStyle' => 'terse', 'clsRpt');
$this->load->library('generic_rpt', $params);
$this->load->helper('js/div_hide_show');
$displayData['js'] .= showHideDiv();
$this->cprograms->loadClientPrograms(true);
$displayData['cprogs'] = $cprogs =& $this->cprograms->cprogs;
$idx = 0;
foreach ($cprogs as $cp) {
$lETableID = $cp->lEnrollmentTableID;
$this->clsUF->lTableID = $lETableID;
$this->clsUF->loadTableFields();
$cp->efields = arrayCopy($this->clsUF->fields);
$lATableID = $cp->lAttendanceTableID;
$this->clsUF->lTableID = $lATableID;
$this->clsUF->loadTableFields();
$cp->afields = arrayCopy($this->clsUF->fields);
}
//--------------------------
// breadcrumbs
//--------------------------
$displayData['pageTitle'] = anchor('main/menu/admin', 'Admin', 'class="breadcrumb"') . ' | Client Programs';
$displayData['title'] = CS_PROGNAME . ' | Admin';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$displayData['mainTemplate'] = 'cprograms/cprograms_debug_detail_view';
$this->load->vars($displayData);
$this->load->view('template');
}
示例10: orgRecView
function orgRecView($lChapterID = null)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $glChapterID;
if (!bTestForURLHack('volMgr')) {
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/mlocations', 'cLoc');
// $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->cLoc->loadLocationViaChapterID($lChapterID, $lNumLocs, $locations);
$displayData['chapterRec'] =& $locations[0];
//-------------------------------
// 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'] = 'Your Organization';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$displayData['mainTemplate'] = 'admin/organization_view';
$this->load->vars($displayData);
$this->load->view('template');
}
示例11: overview
public function overview($enumOpenBlock = '')
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
if (!bTestForURLHack('adminOnly')) {
return;
}
$displayData = array();
$displayData['js'] = '';
//------------------------------------------------
// models & helpers
//------------------------------------------------
$this->load->model('personalization/muser_fields', 'clsUF');
$this->load->model('admin/mpermissions', 'perms');
$this->load->helper('dl_util/web_layout');
$this->load->helper('js/div_hide_show');
$displayData['js'] .= showHideDiv();
$displayData['enumOpenBlock'] = trim($enumOpenBlock);
$idx = 0;
$displayData['uf'] = array();
foreach ($this->clsUF->enumTableTypes as $enumTType) {
$this->clsUF->setTType($enumTType);
$displayData['uf'][$idx] = new stdClass();
$displayData['uf'][$idx]->strTTypeLabel = $this->clsUF->strTTypeLabel;
$displayData['uf'][$idx]->enumTType = $enumTType;
$this->clsUF->loadTablesViaTType(false);
$displayData['uf'][$idx]->lNumTables = $lNumTables = $this->clsUF->lNumTables;
if ($lNumTables > 0) {
$displayData['uf'][$idx]->userTables = $this->clsUF->userTables;
$jIdx = 0;
foreach ($this->clsUF->userTables as $clsUTable) {
$displayData['uf'][$idx]->userTables[$jIdx]->lNumFields = $this->clsUF->lNumUF_TableFields($clsUTable->lKeyID);
++$jIdx;
}
}
++$idx;
}
$displayData['title'] = CS_PROGNAME . ' | Personalization';
$displayData['pageTitle'] = anchor('main/menu/admin', 'Admin', 'class="breadcrumb"') . ' | Personalization';
$displayData['mainTemplate'] = 'personalization/overview';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$this->load->vars($displayData);
$this->load->view('template');
}
示例12: visitRecView
function visitRecView($lPVRecID)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $glVolID, $gbVolMgr, $glChapterID;
$this->load->helper('dl_util/verify_id');
verifyID($glChapterID, $lPVRecID, 'patientVisit ID');
$displayData = array();
$displayData['js'] = '';
//-------------------------------------
// models / helpers / libraries
//-------------------------------------
$this->load->model('util/mlist_generic', 'cList');
$this->load->model('hospice/mhospice_pvisit', 'cPVisit');
$this->load->helper('dl_util/web_layout');
$this->load->helper('dl_util/time_date');
$this->load->helper('hospice/patient_visit');
$this->load->helper('hospice/link_hospice');
$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;
$this->load->helper('js/div_hide_show');
$displayData['js'] .= showHideDiv();
// load patient visit record
$this->cPVisit->loadPVisitsViaVisitID($lPVRecID, $lNumPVRecs, $pVisits);
$displayData['pVisit'] = $pVisit =& $pVisits[0];
//--------------------------
// breadcrumbs
//--------------------------
$displayData['pageTitle'] = 'Patient Visit';
$displayData['title'] = CS_PROGNAME . ' | Review';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$displayData['mainTemplate'] = 'hospice/patient_visit_record_view';
$this->load->vars($displayData);
$this->load->view('template');
}
示例13: overview
public function overview()
{
//-------------------------------------------------------------------------
//
//-------------------------------------------------------------------------
global $glUserID;
if (!bTestForURLHack('showClients')) {
return;
}
$displayData = array();
$displayData['js'] = '';
//-------------------------------------
// models, libraries, and helpers
//-------------------------------------
$this->load->model('personalization/muser_fields', 'clsUF');
$this->load->model('admin/mpermissions', 'perms');
$this->load->model('client_features/mcpre_post_tests', 'cpptests');
$this->load->model('util/mlist_generic', 'clsList');
$this->load->helper('clients/link_client_features');
$this->load->helper('dl_util/web_layout');
$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;
$this->cpptests->loadPPCatsAndTests($displayData['lNumCats'], $displayData['ppcats'], false);
//--------------------------
// breadcrumbs
//--------------------------
$displayData['pageTitle'] = anchor('main/menu/client', 'Clients', 'class="breadcrumb"') . ' | Client Pre/Post Tests';
$displayData['title'] = CS_PROGNAME . ' | Clients';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$displayData['mainTemplate'] = 'cpre_post_tests/pp_overview_view';
$this->load->vars($displayData);
$this->load->view('template');
}
示例14: view
public function view($lCProgID)
{
//-------------------------------------------------------------------------
//
//-------------------------------------------------------------------------
global $genumDateFormat, $glUserID;
if (!bTestForURLHack('adminOnly')) {
return;
}
$this->load->helper('dl_util/verify_id');
verifyID($this, $lCProgID, 'client program ID');
$displayData = array();
$displayData['lCProgID'] = $lCProgID = (int) $lCProgID;
$displayData['js'] = '';
$params = array('enumStyle' => 'terse', 'clsRpt');
$this->load->library('generic_rpt', $params);
//-------------------------
// models & helpers
//-------------------------
$this->load->model('client_features/mcprograms', 'cprograms');
$this->load->model('personalization/muser_fields', 'clsUF');
$this->load->model('personalization/muser_fields_display', 'clsUFD');
$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');
$this->load->helper('js/div_hide_show');
$displayData['js'] .= showHideDiv();
//-------------------------
// load the client program
//-------------------------
$this->cprograms->loadClientProgramsViaCPID($lCProgID);
$displayData['cprog'] = $cprog =& $this->cprograms->cprogs[0];
$cprog->lNumEFields = $this->clsUF->lNumUF_TableFields($cprog->lEnrollmentTableID);
$cprog->lNumAFields = $this->clsUF->lNumUF_TableFields($cprog->lAttendanceTableID);
//-------------------------------
// personalized tables
//-------------------------------
$this->perms->loadUserAcctInfo($glUserID, $acctAccess);
$displayData['strPTEnroll'] = strPTableDisplay(CENUM_CONTEXT_CPROGENROLL, $lCProgID, $this->clsUFD, $this->perms, $acctAccess, $displayData['strFormDataEntryAlert'], $lDummy);
$displayData['strPTAttend'] = strPTableDisplay(CENUM_CONTEXT_CPROGATTEND, $lCProgID, $this->clsUFD, $this->perms, $acctAccess, $displayData['strFormDataEntryAlert'], $lDummy);
//-------------------------------
// permission groups
//-------------------------------
$this->groups->groupMembershipViaFID(CENUM_CONTEXT_CPROGRAM, $lCProgID);
$displayData['pdgroup'] = new stdClass();
$pdgroup =& $displayData['pdgroup'];
$pdgroup->inGroups =& $this->groups->arrMemberInGroups;
$pdgroup->lCntGroupMembership = $this->groups->lNumMemInGroups;
$pdgroup->lNumGroups = $this->groups->lCntActiveGroupsViaType(CENUM_CONTEXT_CPROGRAM);
$this->groups->loadActiveGroupsViaType(CENUM_CONTEXT_CPROGRAM, 'groupName', $this->groups->strMemListIDs, false, null);
$pdgroup->groupList = $this->groups->arrGroupList;
//--------------------------
// breadcrumbs
//--------------------------
$displayData['pageTitle'] = anchor('main/menu/admin', 'Admin', 'class="breadcrumb"') . ' | ' . anchor('cprograms/cprograms/overview', 'Client Programs', 'class="breadcrumb"') . ' | Client Program Record';
$displayData['title'] = CS_PROGNAME . ' | Admin';
$displayData['nav'] = $this->mnav_brain_jar->navData();
$displayData['mainTemplate'] = 'cprograms/cprograms_record_view';
$this->load->vars($displayData);
$this->load->view('template');
}
示例15: view
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) {
//.........这里部分代码省略.........