| Server IP : 103.48.194.25 / Your IP : 216.73.216.74 Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64 User : sieuthimay ( 1016) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/hocthongminh.net-bk/public_html/site/components/chinhsach/controllers/ |
Upload File : |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Chinhsach extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->helper('file');
$this->load->helper('app') ;
//$this->load->model('chinhsach_model','chinhsach');
}
public function index()
{
$data['title'] = 'Điều kiện đổi và trả hàng' ;
$rs = read_file(ROOT_SITE.'cache/gioithieu.php');
$data['rs'] = $this->checkvalue($rs);
$data['page'] = 'index';
$this->load->view('skin',$data) ;
}
public function chinhsach()
{
$data['title'] = 'Điều kiện đổi và trả hàng' ;
$rs = read_file(ROOT_SITE.'cache/chinhsach.php');
$data['rs'] = $this->checkvalue($rs);
$data['page'] = 'chinhsach';
$this->load->view('skin',$data) ;
}
public function vanchuyen()
{
$data['title'] = 'Điều kiện đổi và trả hàng' ;
$rs = read_file(ROOT_SITE.'cache/vanchuyen.php');
$data['rs'] = $this->checkvalue($rs);
$data['page'] = 'vanchuyen';
$this->load->view('skin',$data) ;
}
public function hoptac()
{
$data['title'] = 'HỢP TÁC' ;
$rs = read_file(ROOT_SITE.'cache/hoptac.php');
$data['rs'] = $this->checkvalue($rs);
$data['page'] = 'hoptac';
$this->load->view('skin',$data) ;
}
public function tuyendung()
{
$data['title'] = 'Điều kiện đổi và trả hàng' ;
$rs = read_file(ROOT_SITE.'cache/tuyendung.php');
$data['rs'] = $this->checkvalue($rs);
$data['page'] = 'tuyendung';
$this->load->view('skin',$data) ;
}
//thong tin thanh toan
public function thanhtoan()
{
$data['title'] = 'Thông tin thanh toán' ;
$rs = read_file(ROOT_SITE.'cache/thanhtoan.php');
$data['rs'] = $this->checkvalue($rs);
$data['page'] = 'thanhtoan';
$this->load->view('skin',$data) ;
}
public function dathang()
{
$data['title'] = 'Hướng dẫn đặt hàng' ;
$rs = read_file(ROOT_SITE.'cache/dathang.php');
$data['rs'] = $this->checkvalue($rs);
$data['page'] = 'dathang';
$this->load->view('skin',$data) ;
}
public function faq()
{
$data['title'] = 'Điều kiện đổi và trả hàng' ;
$rs = read_file(ROOT_SITE.'cache/faq.php');
$data['rs'] = $this->checkvalue($rs);
$data['page'] = 'faq';
$this->load->view('skin',$data) ;
}
public function baohanh()
{
$data['title'] = 'Chính sách bảo hành' ;
$rs = read_file(ROOT_SITE.'cache/baohanh.php');
$data['rs'] = $this->checkvalue($rs);
$data['page'] = 'baohanh';
$this->load->view('skin',$data) ;
}
public function baomat()
{
$data['title'] = 'Chính sách bảo mật thông tin' ;
$rs = read_file(ROOT_SITE.'cache/baomat.php');
$data['rs'] = $this->checkvalue($rs);
$data['page'] = 'baomat';
$this->load->view('skin',$data) ;
}
public function doitra()
{
$data['title'] = 'Điều kiện đổi và trả hàng' ;
$rs = read_file(ROOT_SITE.'cache/doitra.php');
$data['rs'] = $this->checkvalue($rs);
$data['page'] = 'doitra';
$this->load->view('skin',$data) ;
}
public function dieukhoan()
{
$data['title'] = 'Điều khoản sử dụng' ;
$rs = read_file(ROOT_SITE.'cache/dieukhoan.php');
$data['rs'] = $this->checkvalue($rs);
$data['page'] = 'dieukhoan';
$this->load->view('skin',$data) ;
}
public function camket()
{
$data['title'] = 'Cam kết chất lượng' ;
$rs = read_file(ROOT_SITE.'cache/camket.php');
$data['rs'] = $this->checkvalue($rs);
$data['page'] = 'camket';
$this->load->view('skin',$data) ;
}
function xacnhan()
{
$data['title'] = '' ;
$this->site->load('thanhtoan/xacnhan', $data);
}
private function checkvalue($json)
{
$rs = json_decode($json);
$obj = new stdClass();
$obj->lb_image = isset($rs->lb_image)? $rs->lb_image : '';
$obj->lb_subject = isset($rs->lb_subject)? $rs->lb_subject : '';
$obj->lb_content = isset($rs->lb_content)? $rs->lb_content : 'Đang cập nhật...';
return $obj;
}
}
?>