本文整理匯總了PHP中header::admin方法的典型用法代碼示例。如果您正苦於以下問題:PHP header::admin方法的具體用法?PHP header::admin怎麽用?PHP header::admin使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類header
的用法示例。
在下文中一共展示了header::admin方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: input
function input()
{
//load header
$header = new header();
$header->admin('Thêm m?i s?n ph?m');
$data['manufacturer'] = $this->db->select('*')->from('product_manufacturer')->get()->result_array();
$data['brand'] = $this->db->select('*')->from('product_brand')->get()->result_array();
$data['cate'] = $this->db->select('*')->from('product_category')->get()->result_array();
$this->load->view('/admin/product/input', $data);
}
示例2: index
function index()
{
$this->load->model('log_model');
$id_u = $this->log_model->getId();
$user = $this->db->select('*')->from('user')->where('id_u', $id_u)->get()->result_array();
foreach ($user as $val) {
}
$title = 'Danh sách tài khoản mail của ' . $val['name'];
//load header
$header = new header();
$header->admin($title);
$data['mail'] = $this->db->select('*')->from('mail')->where('id_u', $id_u)->get()->result_array();
$this->load->view('/mail/index', $data);
}
示例3: order
function order($offset = 0)
{
$post = $this->input->post();
$limit = 10;
//new model
$this->load->model('admin_model');
//load header
$header = new header();
$header->admin('Quản trị đơn hàng');
//asign model value
$result = $this->admin_model->order($limit, $offset);
// pagination
$this->load->library('pagination');
$config = array();
$config['base_url'] = site_url("/admin/order/");
$config['total_rows'] = count($result);
$config['per_page'] = $limit;
$config['uri_segment'] = 5;
$this->pagination->initialize($config);
$data['pagination'] = $this->pagination->create_links();
//asign view value
$data['order_stat'] = $this->db->select('*')->from('order_status')->get()->result_array();
$data['order'] = $result;
$data['total_rows'] = count($result);
$data['user'] = $this->db->select('*')->from('order_info')->get()->result_array();
$this->load->view('/admin/order/index', $data);
}