本文整理汇总了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);
}