Esempio n. 1
0
 public function index()
 {
     //        $this->setting->addGroup('system', '网站设置', 2);
     $data['setting_tabs'] = $this->setting->get('_sys_settingtabs');
     //        $data['settings'] = $this->setting->getAll();
     $data['token'] = Security::getToken();
     $data['system_manager'] = true;
     return View::make('admin/system/setting', $data);
 }
Esempio n. 2
0
 public function index()
 {
     return View::make('admin/login');
 }
Esempio n. 3
0
 public function index()
 {
     return View::make('admin/system/dashboard');
 }
Esempio n. 4
0
 public function edit($id)
 {
     if (!$id) {
         return Redirect::action('system/group')->with('error', '用户组不存在');
     }
     $group = DB::table('usergroups')->where('group_id', $id)->first();
     if (empty($group)) {
         return Redirect::action('system/group')->with('error', '用户组不存在');
     }
     $view = View::make('admin/system/group-edit');
     $view->system_manager = true;
     $view->group = $group;
     $view->token = Security::getToken($id);
     $view->id = $id;
     return $view;
 }
Esempio n. 5
0
 public function edit($id)
 {
     if (!$id) {
         return Redirect::action('system/user')->with('error', '用户不存在');
     }
     $user = \App\User::find($id);
     if (empty($user)) {
         return Redirect::action('system/user')->with('error', '用户不存在');
     }
     $view = View::make('admin/system/user-edit');
     $view->system_manager = true;
     $view->groups = \App\Group::findAll();
     $view->token = Security::getToken($id);
     $view->user = $user;
     return $view;
 }