public function index()
 {
     $session = new class_sessions_admin();
     if ($session->get_login_admin_in()) {
         $page = new render_admin();
         $page->page_trainer();
     } else {
         redirect('admin/home/login');
     }
 }
 public function view_student()
 {
     $session = new class_sessions_admin();
     if ($session->get_login_admin_in()) {
         $page = new render_admin();
         $page->page_supervisor_view_student();
     } else {
         redirect('admin/home/login');
     }
 }
 public function login()
 {
     $session = new class_sessions_admin();
     if (!$session->get_login_admin_in()) {
         $page = new render_admin();
         $page->page_login();
     } else {
         redirect('admin/home');
     }
 }
예제 #4
0
 public function users()
 {
     $this->use->use_lib('admin/render_admin');
     $page = new render_admin();
     $page->page_users();
 }