public function __construct() { parent::__construct(); $this->load->model('a_com_model'); $this->load->model('a_caifu_model'); $this->load->model('consult_buy'); }
public function __construct() { parent::__construct(); $this->load->model('a_article_model'); $this->load->model('a_caifu_model'); $this->load->model('a_com_model'); }
public function __construct() { parent::__construct(); // Load library template $this->load->library('template'); // Set template $this->template->set_template('site'); // Add CSS and JS $this->template->add_css('public/site/css/font-awesome.min.css'); $this->template->add_css('public/site/css/style_userpage.css'); $this->template->add_js('public/site/js/jquery.ad-gallery.js'); date_default_timezone_set('Asia/Ho_Chi_Minh'); $sess = $this->session->userdata("user_email"); if ($sess == '') { redirect("dang-nhap"); } $this->user = $this->db->query("select * from site_user where Email='{$sess}'")->row(); $this->shop = $this->db->query("select b.* from site_user c,site_user_shop a,gianhang_shop b where c.Email='{$sess}' and a.UserID=c.ID and a.ShopID=b.ID")->row(); }
public function __construct() { parent::__construct(); //加载模型 $this->load->model('a_cart_model'); $this->load->model('a_com_model'); $this->load->library('session'); $this->user_id = isset($this->session->userdata['member_user_id']) ? $this->session->userdata['member_user_id'] : 0; /********相关数据表*********/ $this->tb_goods = 'goods'; $this->tb_price = 'goods_price_library'; $this->tb_user = '******'; $this->tb_group = 'user_group'; $this->tb_discount = 'user_group_discount'; $this->tb_cart = 'cart'; $this->tb_order = 'order'; $this->tb_order_goods = 'order_goods'; // $this->tb_order_address='order_address'; $this->tb_order_log = 'order_log'; }
function __construct() { parent::__construct(); }
public function __construct() { parent::__construct('pwreset'); }
public function __construct() { parent::__construct('contact'); }
function __construct() { parent::__construct(); $this->load->model('parks/park_model'); $this->load->library('form_validation'); }
public function __construct() { parent::__construct(); $this->load->library(array('form_validation', 'facebook_manager')); $this->load->helper('facebook_helper'); }
public function __construct() { parent::__construct(); $this->load->model('a_com_model'); $this->load->model('areas'); }
function __construct() { parent::__construct(); if (!$this->uri->segment(2) || config_item('users_profile') != 'TRUE') { redirect(base_url()); } $timeline_view = null; $this->user = $this->social_auth->get_user('username', $this->uri->segment(2)); if ($this->user) { $this->user_meta = $this->social_auth->get_user_meta($this->user->user_id); // User Data $this->data['user_id'] = $this->user->user_id; $this->data['username'] = $this->user->username; $this->data['gravatar'] = $this->user->gravatar; $this->data['name'] = $this->user->name; $this->data['image'] = $this->user->image; $this->data['created_on'] = $this->user->created_on; // Meta Tags $this->data['site_image'] = base_url() . config_item('users_images_folder') . $this->user->user_id . '/large_' . $this->user->image; // User Meta $this->data['company'] = $this->social_auth->find_user_meta_value('company', $this->user_meta); $this->data['location'] = $this->social_auth->find_user_meta_value('location', $this->user_meta); $this->data['url'] = $this->social_auth->find_user_meta_value('url', $this->user_meta); $this->data['bio'] = $this->social_auth->find_user_meta_value('bio', $this->user_meta); // Social Connections $this->data['connections'] = $this->social_auth->get_connections_user($this->user->user_id); // Relationships $this->data['followers'] = $this->social_tools->get_relationships_user($this->user->user_id, 'users', 'follow'); $this->data['follows'] = $this->social_tools->get_relationships_owner($this->user->user_id, 'users', 'follow'); $this->data['follow_word'] = 'follow'; // Links if ($this->social_auth->logged_in()) { if ($follow_check = $this->social_tools->check_relationship_exists(array('site_id' => config_item('site_id'), 'owner_id' => $this->session->userdata('user_id'), 'user_id' => $this->user->user_id, 'module' => 'users', 'type' => 'follow', 'status' => 'Y'))) { $this->data['follow_word'] = 'unfollow'; } else { $this->data['follow_word'] = 'follow'; } } $this->data['message_url'] = base_url() . 'api/message/send/id/' . $this->user->user_id; // Sidebar $this->data['sidebar_profile'] = $this->load->view(config_item('site_theme') . '/partials/sidebar_profile.php', $this->data, true); // Timeline $timeline = $this->social_igniter->get_timeline_user($this->user->user_id, 8); $timeline_view = NULL; $timeline_count = 1; $this->data['activities'] = array(); $this->data['social_igniter'] = $this->social_igniter; if (!empty($timeline)) { foreach ($timeline as $activity) { $timeline_count++; // Item array_push($this->data['activities'], $activity); $this->data['item_id'] = $activity->activity_id; $this->data['item_type'] = item_type_class($activity->type); // Contributor $this->data['item_user_id'] = $activity->user_id; $this->data['item_avatar'] = $this->social_igniter->profile_image($activity->user_id, $activity->image, $activity->gravatar); $this->data['item_contributor'] = $activity->name; $this->data['item_profile'] = base_url() . 'profile/' . $activity->username; // Activity $this->data['item_content'] = $this->social_igniter->render_item($activity); $this->data['item_content_id'] = $activity->content_id; $this->data['item_date'] = format_datetime(config_item('home_date_style'), $activity->created_at); // Actions $this->data['item_comment'] = base_url() . 'comment/item/' . $activity->activity_id; $this->data['item_comment_avatar'] = $this->data['logged_image']; $this->data['item_can_modify'] = $this->social_auth->has_access_to_modify('activity', $activity, $this->session->userdata('user_id'), $this->session->userdata('user_level_id')); $this->data['item_edit'] = base_url() . 'home/' . $activity->module . '/manage/' . $activity->content_id; $this->data['item_delete'] = base_url() . 'status/delete/' . $activity->activity_id; // View $timeline_view .= $this->load->view(config_item('site_theme') . '/partials/user_timeline.php', $this->data, true); } } else { $timeline_view = '<li>Nothing to show from anyone!</li>'; } } else { redirect(404); } $this->data['timeline_view'] = $timeline_view; $this->data['timeline_count'] = $timeline_count; }
public function __construct() { parent::__construct(); $this->load->library(array('form_validation')); $this->load->model('register_model'); }
public function __construct() { parent::__construct('home'); }
public function __construct() { parent::__construct('sign_up'); }
public function __construct() { parent::__construct(); $this->add('section', 'Home'); }
public function __construct() { parent::__construct('user_settings'); $this->data['title'] = 'Asynctive | Settings'; }