当前位置: 首页>>代码示例>>PHP>>正文


PHP User_helper::complete_user_profile_check方法代码示例

本文整理汇总了PHP中User_helper::complete_user_profile_check方法的典型用法代码示例。如果您正苦于以下问题:PHP User_helper::complete_user_profile_check方法的具体用法?PHP User_helper::complete_user_profile_check怎么用?PHP User_helper::complete_user_profile_check使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在User_helper的用法示例。


在下文中一共展示了User_helper::complete_user_profile_check方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: system_edit

 private function system_edit($id)
 {
     if ($this->permissions['edit']) {
         $this->current_action = 'edit';
         $ajax['status'] = true;
         $data = array();
         $data['title'] = $this->lang->line("EDIT_USER");
         $data['resources'] = Query_helper::get_info($this->config->item('table_resources'), array('res_id value', 'res_name text'), array('visible = 1'));
         $data['user_info'] = Query_helper::get_info($this->config->item('table_users'), '*', array('id =' . $id), 1);
         $uisc_id = $data['user_info']['uisc_id'];
         $data['chairmen_info'] = Query_helper::get_info($this->config->item('table_entrepreneur_chairmen_info'), '*', array('uisc_id =' . $uisc_id), 1);
         $data['secretary_info'] = Query_helper::get_info($this->config->item('table_secretary_infos'), '*', array('user_id =' . $id, 'uisc_id =' . $uisc_id), 1);
         $data['entrepreneur_info'] = Query_helper::get_info($this->config->item('table_entrepreneur_infos'), '*', array('user_id =' . $id, 'uisc_id =' . $uisc_id), 1);
         $data['education_info'] = Query_helper::get_info($this->config->item('table_entrepreneur_education'), '*', array('user_id =' . $id, 'uisc_id =' . $uisc_id), 1);
         $data['training_info'] = Query_helper::get_info($this->config->item('table_training'), '*', array('user_id =' . $id, 'uisc_id =' . $uisc_id), 0);
         $data['investment_info'] = Query_helper::get_info($this->config->item('table_investment'), '*', array('user_id =' . $id, 'uisc_id =' . $uisc_id), 1);
         $data['location_info'] = Query_helper::get_info($this->config->item('table_center_location'), '*', array('user_id =' . $id, 'uisc_id =' . $uisc_id), 1);
         $data['resources_info'] = Query_helper::get_info($this->config->item('table_uisc_resources'), '*', array('user_id =' . $id, 'uisc_id =' . $uisc_id), 0);
         $data['device_info'] = Query_helper::get_info($this->config->item('table_device_infos'), '*', array('user_id =' . $id, 'uisc_id =' . $uisc_id), 1);
         $data['electricity_info'] = Query_helper::get_info($this->config->item('table_electricity'), '*', array('user_id =' . $id, 'uisc_id =' . $uisc_id), 1);
         //            $user_group_id = $data['user_info']['user_group_id'];
         //            $division_id = $data['user_info']['division'];
         //            $zilla_id = $data['user_info']['zilla'];
         //            $upazila_id = $data['user_info']['upazila'];
         //            //$unioun_id = $data['user_info']['unioun'];
         //            $city_corporation_id = $data['user_info']['citycorporation'];
         //            //$city_corporation_ward_id = $data['user_info']['citycorporationward'];
         //            $municipal_id = $data['user_info']['municipal'];
         //            //$municipal_ward_id = $data['user_info']['municipalward'];
         //
         //            $data['groups']=Query_helper::get_info($this->config->item('table_user_group'),array('id value','name_'.$this->get_language_code().' text'),array('status !=99'), 12);
         //            $data['divisions']=Query_helper::get_info($this->config->item('table_divisions'),array('divid value', 'divname text'), array());
         //            $data['zillas']=Query_helper::get_info($this->config->item('table_zillas'),array('zillaid value', 'zillaname text'), array('visible = 1', 'divid = '.$division_id));
         //            $data['upazilas']=Query_helper::get_info($this->config->item('table_upazilas'),array('upazilaid value', 'upazilaname text'), array('visible = 1', 'zillaid = '.$zilla_id));
         //            $data['unions']=Query_helper::get_info($this->config->item('table_unions'),array('unionid value', 'unionname text'), array('visible = 1', 'zillaid = '.$zilla_id, 'upazilaid='.$upazila_id));
         //            $data['city_corporations']=Query_helper::get_info($this->config->item('table_city_corporations'),array('citycorporationid value', 'citycorporationname text'), array('visible = 1', 'zillaid = '.$zilla_id, 'divid='.$division_id));
         //            $data['city_corporation_words']=Query_helper::get_info($this->config->item('table_city_corporation_wards'),array('citycorporationwardid value', 'wardname text'), array('visible = 1', 'zillaid = '.$zilla_id, 'divid='.$division_id, 'citycorporationid = '.$city_corporation_id));
         //            $data['municipals']=Query_helper::get_info($this->config->item('table_municipals'),array('municipalid value', 'municipalname text'), array('visible = 1', 'zillaid = '.$zilla_id));
         //            $data['municipal_wards']=Query_helper::get_info($this->config->item('table_municipal_wards'),array('wardid value', 'wardname text'), array('visible = 1', 'zillaid = '.$zilla_id, 'municipalid = '.$municipal_id));
         $user = User_helper::get_user();
         if ($user->user_group_id == $this->config->item('UISC_GROUP_ID')) {
             $profile_status = User_helper::complete_user_profile_check();
             if (!$profile_status) {
                 $ajax['system_content'][] = array("id" => "#system_wrapper_top_menu", "html" => "");
                 $ajax['system_content'][] = array("id" => "#system_wrapper", "html" => $this->load_view("user_management/user_profile_update/system_add_edit", $data, true));
             } else {
                 $ajax['system_content'][] = array("id" => "#system_wrapper_top_menu", "html" => $this->load_view("top_menu", "", true));
                 $ajax['system_content'][] = array("id" => "#system_wrapper", "html" => $this->load_view("user_management/user_profile_update/system_add_edit", $data, true));
             }
         } else {
             $ajax['system_content'][] = array("id" => "#system_wrapper_top_menu", "html" => $this->load_view("top_menu", "", true));
             $ajax['system_content'][] = array("id" => "#system_wrapper", "html" => $this->load_view("user_management/user_profile_update/system_add_edit", $data, true));
         }
         if ($this->message) {
             $ajax['system_message'] = $this->message;
         }
         $ajax['system_page_url'] = $this->get_encoded_url('user_management/user_profile_update/index/edit/' . $id);
         $this->jsonReturn($ajax);
     } else {
         $ajax['status'] = true;
         $ajax['system_message'] = $this->lang->line("YOU_DONT_HAVE_ACCESS");
         $this->jsonReturn($ajax);
     }
 }
开发者ID:marajmmc,项目名称:asset,代码行数:64,代码来源:User_profile_update.php

示例2: exit

<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
$CI =& get_instance();
$user = User_helper::get_user();
//echo "<pre>";
//print_r($user);
//echo "</pre>";
if ($user) {
    $profile_status = true;
    if ($user->user_group_level == $this->config->item('UISC_GROUP_ID')) {
        $profile_status = User_helper::complete_user_profile_check();
    }
    if (!$profile_status) {
        redirect(base_url() . 'home/dashboard');
    } else {
        //$CI->load_view('sidebar_left');
        $components = User_helper::get_task_module_component($CI->config->item('system_sidebar01'));
        //    echo "<pre>";
        //    print_r($components);
        //    echo "</pre>";
        ?>
        <div class="row">
            <div class="col-lg-12">
                <div class="top-nav"
                     style="clear:both; border-bottom:1px solid gray;display:inline-table;width:100%;text-align: center;">
                    <ul class="nav1">
                        <li><a href="<?php 
        echo base_url();
开发者ID:saj696,项目名称:dcms_new,代码行数:31,代码来源:top_menu.php

示例3: dashboard_page

 public function dashboard_page($message = "")
 {
     $ajax['status'] = true;
     $user = User_helper::get_user();
     if ($user->user_group_level == $this->config->item('UISC_GROUP_ID')) {
         $profile_status = User_helper::complete_user_profile_check();
         if (!$profile_status) {
             $ajax['system_content'][] = array("id" => "#top_header", "html" => $this->load_view("header", "", true));
             $ajax['system_content'][] = array("id" => "#system_wrapper_top_menu", "html" => "");
             $ajax['system_content'][] = array("id" => "#system_wrapper", "html" => $this->load_view("home", "", true));
             $ajax['system_content'][] = array("id" => "#system_header", "html" => $this->load_view("header", "", true));
             $ajax['system_content'][] = array("id" => "#system_wrapper_footer", "html" => $this->load_view("footer", "", true));
         } else {
             $ajax['system_content'][] = array("id" => "#top_header", "html" => $this->load_view("header", "", true));
             $ajax['system_content'][] = array("id" => "#system_wrapper_top_menu", "html" => $this->load_view("top_menu", "", true));
             $ajax['system_content'][] = array("id" => "#system_wrapper", "html" => $this->load_view("home", "", true));
             $ajax['system_content'][] = array("id" => "#system_header", "html" => $this->load_view("header", "", true));
             $ajax['system_content'][] = array("id" => "#system_wrapper_footer", "html" => $this->load_view("footer", "", true));
         }
     } else {
         $ajax['system_content'][] = array("id" => "#top_header", "html" => $this->load_view("header", "", true));
         $ajax['system_content'][] = array("id" => "#system_wrapper_top_menu", "html" => $this->load_view("top_menu", "", true));
         $ajax['system_content'][] = array("id" => "#system_wrapper", "html" => $this->load_view("home", "", true));
         $ajax['system_content'][] = array("id" => "#system_header", "html" => $this->load_view("header", "", true));
         $ajax['system_content'][] = array("id" => "#system_wrapper_footer", "html" => $this->load_view("footer", "", true));
     }
     if ($message) {
         $ajax['system_message'] = $message;
     }
     $ajax['system_page_url'] = base_url() . 'home/dashboard/';
     $ajax['system_page_title'] = $this->lang->line("DASHBOARD");
     $this->jsonReturn($ajax);
 }
开发者ID:saj696,项目名称:dcms_new,代码行数:33,代码来源:Root_Controller.php


注:本文中的User_helper::complete_user_profile_check方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。