Example #1
0
 /**
  * 登录页.
  *
  * @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');
 }
Example #2
0
 /**
  * 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();
     }
 }
Example #3
0
 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);
 }
Example #4
0
 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);
 }
Example #5
0
 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);
 }
Example #6
0
 /**
  * 推荐设置.
  */
 public function getRecommand()
 {
     return admin_view('settings.recommand');
 }
Example #7
0
 /**
  * @author Gaurav Dhiman.
  * @method index	
  */
 public function index()
 {
     //pre_print($this->session->all_userdata());
     admin_view('admin');
 }
Example #8
0
 /**
  * 展示修改.
  *
  * @param int $id id
  */
 public function getUpdate($id)
 {
     $account = $this->accountRepository->getById($id);
     return admin_view('account.form', compact('account'));
 }
Example #9
0
 /**
  * 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]);
 }
Example #10
0
 /**
  * 菜单.
  */
 public function getIndex()
 {
     return admin_view('menu.index', compact('menus'));
 }
Example #11
0
 /**
  * 修改密码.
  *
  * @return Response
  */
 public function getPassword()
 {
     return admin_view('user.password');
 }
Example #12
0
 /**
  * 消息资源.
  *
  * @return Response
  */
 public function getResource()
 {
     return admin_view('message.resource');
 }
Example #13
0
 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);
 }
Example #14
0
 /**
  * 获取自动回复.
  */
 public function getIndex()
 {
     return admin_view('reply.index');
 }
Example #15
0
 /**
  * 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()]);
 }
Example #16
0
 /**
  * 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);
 }
Example #17
0
 /**
  * 系统设置界面.
  */
 public function getAll()
 {
     return admin_view('settings.index');
 }
Example #18
0
 /**
  * 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);
 }
Example #19
0
 /**
  * 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);
 }
Example #20
0
 /**
  * 绩效.
  *
  * @return Response
  */
 public function getPerformance()
 {
     return admin_view('staff.performance');
 }
Example #21
0
 public function create()
 {
     $data = array("test" => 'test');
     admin_view('dashboard/index', $data);
 }
Example #22
0
 /**
  * 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()]);
 }
Example #23
0
 /**
  * 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'));
 }
Example #24
0
 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);
 }
Example #25
0
 public function getIndex()
 {
     return admin_view('fan.index');
 }
Example #26
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     return admin_view('index');
 }
Example #27
0
 /**
  * 创建新文章.
  *
  * @param string $value value
  */
 public function getNewArticle($value = '')
 {
     return admin_view('material.new-article');
 }
Example #28
0
 public function index()
 {
     admin_view('profile/upload_form', array('error' => ' ', 'upload_data' => ''));
 }