Exemplo n.º 1
0
 function contact()
 {
     $customer = new Estateuser($this->session->userdata('userLoginId'));
     if (!$customer->exists()) {
         show_404();
     }
     $dis['customer'] = $customer;
     $news = new Article(1273);
     $dis['base_url'] = base_url();
     $dis['view'] = 'front/user/vip';
     $dis['news'] = $news;
     $this->page_title = "Liên hệ - " . $this->page_title;
     $this->page_keyword = "Liên hệ ";
     $this->page_description = "thông tin, địa chỉ liên hệ ";
     $this->viewfront($dis);
 }
Exemplo n.º 2
0
 function phoneCheck()
 {
     $mobile = $this->input->post('mobile');
     $o = new Estateuser();
     $o->get_by_mobile($mobile);
     if ($o->exists()) {
         echo 'false';
     } else {
         echo 'true';
     }
     exit;
 }
Exemplo n.º 3
0
 function lock($id = 0, $value)
 {
     if ($id != 0) {
         $estateuser = new Estateuser($id);
         if (!$estateuser->exists()) {
             show_404();
         }
         $estateuser->isLock = ($estateuser->isLock + 1) % 2;
         $estateuser->save();
     }
     flash_message('success', "Thao tác thành công.");
     redirect($_SERVER['HTTP_REFERER']);
 }