/** * 登录页. * * @param Request $request * * @return Response */ public function getLogin(Request $request) { if (Auth::check()) { return redirect($request->get('redirect', admin_url('/'))); } return admin_view('auth.login'); }
/** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/<method_name> * @see http://codeigniter.com/user_guide/general/urls.html */ public function index() { try { $data['heirs'] = $this->heir->get_by('user_id', $this->userId); $data['profiles'] = $this->profile->get_by('user_id', $this->userId); $data['banks'] = $this->bank->get_by('user_id', $this->userId); $data['provinces'] = $this->province->get_all(); admin_view('profile/index', $data); } catch (Exception $e) { echo $e->getMessage(); } }
public function view($id) { $this->db->where(['p.id' => $id]); $this->db->select('o.user_id,pr.type,inv.amount, p.*, i.due_date'); $this->db->from('payments p'); $this->db->join('invoices i', 'i.id = p.invoice_id', 'left'); $this->db->join('orders o', 'o.id = i.order_id', 'left'); $this->db->join('investments inv', 'inv.id = o.investment_id', 'left'); $this->db->join('products pr', 'pr.id = o.product_id', 'left'); $query = $this->db->get(); $data['payment'] = $query->result(); admin_view('payment/view', $data); }
public function view($order_id) { $this->db->where('c.order_id', $order_id); $this->db->select('c.id,c.due_date, c.total, c.isPaid, o.user_id,o.id as order_id, u.name, p.type, i.amount'); $this->db->from('commitions c'); $this->db->join('orders o', 'o.id = c.order_id', 'left'); $this->db->join('users u', 'u.id = o.user_id', 'left'); $this->db->join('products p', 'p.id = o.product_id', 'left'); $this->db->join('investments i', 'i.id = o.investment_id', 'left'); $query = $this->db->get(); $data['commitions'] = $query->result(); admin_view('commition/view', $data); }
public function view($id) { $this->db->where('o.id', $id); $this->db->select('o.id as order_id, i.due_date,p.type,inv.amount,i.id as invoice_id, i.sendStatus,u.name, pr.*, b.*'); $this->db->from('orders o'); $this->db->join('investments inv', 'inv.id = o.investment_id', 'left'); $this->db->join('products p', 'p.id = o.product_id', 'left'); $this->db->join('invoices i', 'i.order_id = o.id', 'left'); $this->db->join('users u', 'u.id = o.user_id', 'left'); $this->db->join('profiles pr', 'pr.user_id = o.user_id', 'left'); $this->db->join('banks b', 'b.user_id = o.user_id', 'left'); $this->db->group_by('o.id'); $query = $this->db->get(); $data['orders'] = $query->result(); admin_view('invoice/view', $data); }
/** * 推荐设置. */ public function getRecommand() { return admin_view('settings.recommand'); }
/** * @author Gaurav Dhiman. * @method index */ public function index() { //pre_print($this->session->all_userdata()); admin_view('admin'); }
/** * 展示修改. * * @param int $id id */ public function getUpdate($id) { $account = $this->accountRepository->getById($id); return admin_view('account.form', compact('account')); }
/** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/<method_name> * @see http://codeigniter.com/user_guide/general/urls.html */ public function index() { $data = array("profile" => $this->user); admin_view('product/index', $data, ['users' => $this->user]); }
/** * 菜单. */ public function getIndex() { return admin_view('menu.index', compact('menus')); }
/** * 修改密码. * * @return Response */ public function getPassword() { return admin_view('user.password'); }
/** * 消息资源. * * @return Response */ public function getResource() { return admin_view('message.resource'); }
public function view($id) { $data = array("order" => $this->order->with('investment')->with('product')->get($id), "incomes" => $this->income->get_many_by('order_id', $id)); admin_view('income/view', $data); }
/** * 获取自动回复. */ public function getIndex() { return admin_view('reply.index'); }
/** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/<method_name> * * @see http://codeigniter.com/user_guide/general/urls.html */ public function index() { admin_view('news/index', ['news' => $this->news->with('user')->get_all()]); }
/** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/<method_name> * @see http://codeigniter.com/user_guide/general/urls.html */ public function index() { $data = array("profile" => "test"); admin_view('setting/index', $data); }
/** * 系统设置界面. */ public function getAll() { return admin_view('settings.index'); }
/** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/<method_name> * @see http://codeigniter.com/user_guide/general/urls.html */ public function index() { $data['orders'] = $this->roleName != "user" ? $this->order->with('product')->with('investment')->limit(5)->get_all() : $this->order->with('product')->with('investment')->get_many_by('user_id', $this->userId); admin_view('dashboard/index', $data); }
/** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/<method_name> * @see http://codeigniter.com/user_guide/general/urls.html */ public function index() { $data = ['testimonials' => $this->testimonial->with('user')->get_all()]; admin_view('testimonial/index', $data); }
/** * 绩效. * * @return Response */ public function getPerformance() { return admin_view('staff.performance'); }
public function create() { $data = array("test" => 'test'); admin_view('dashboard/index', $data); }
/** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/<method_name> * @see http://codeigniter.com/user_guide/general/urls.html */ public function index() { admin_view('permission/index', ['permissions' => $this->permission->get_all()]); }
/** * Show the form for editing the specified resource. * * @param int $id * * @return Response */ public function edit($id) { $link = $this->model->findOrFail($id); return admin_view('link.form', compact('link')); }
public function invoice($order_id) { $this->db->select('o.id as order_id,o.status, o.isPaid, o.isInvoiceCreated,p.type,inv.amount,u.name, pr.*, b.*'); $this->db->where(['o.id' => $order_id]); $this->db->from('orders o'); $this->db->join('investments inv', 'inv.id = o.investment_id', 'left'); $this->db->join('products p', 'p.id = o.product_id', 'left'); $this->db->join('users u', 'u.id = o.user_id', 'left'); $this->db->join('profiles pr', 'pr.user_id = o.user_id', 'left'); $this->db->join('banks b', 'b.user_id = o.user_id', 'left'); $this->db->group_by('o.id'); $query = $this->db->get(); $data['orders'] = $query->result(); admin_view('order/invoice', $data); }
public function getIndex() { return admin_view('fan.index'); }
/** * Display a listing of the resource. * * @return Response */ public function index() { return admin_view('index'); }
/** * 创建新文章. * * @param string $value value */ public function getNewArticle($value = '') { return admin_view('material.new-article'); }
public function index() { admin_view('profile/upload_form', array('error' => ' ', 'upload_data' => '')); }