當前位置: 首頁>>代碼示例>>PHP>>正文


PHP header::admin方法代碼示例

本文整理匯總了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);
 }
開發者ID:quantm,項目名稱:mywebprovn,代碼行數:10,代碼來源:product.php

示例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);
 }
開發者ID:quantm,項目名稱:mywebprovn,代碼行數:14,代碼來源:mail.php

示例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);
 }
開發者ID:quantm,項目名稱:mywebprovn,代碼行數:27,代碼來源:admin.php


注:本文中的header::admin方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。