예제 #1
0
 public function index()
 {
     // $this->output->enable_profiler(TRUE);
     if (!$this->session->flashdata('start_ujian')) {
         $this->is_time_up();
     }
     setJsPreHeader(base_url() . 'assets/js/icheck.js');
     setCssPreHeader(base_url() . 'assets/skins/square/blue.css');
     setJsPreHeader(base_url() . 'assets/js/ujian.js');
     setCssPreHeader('https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css');
     setJsPreHeader('https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js');
     $this->load->model('waktu_model');
     $this->load->model('ujian_model');
     $this->load->model('soal_model');
     $this->load->model('opsi_model');
     $data['data']['waktu'] = $this->waktu_model->getWaktuByUserId($this->user_id)->row();
     $data['data']['ujian'] = $this->ujian_model->getUjianById($this->ujian_id)->row();
     $soal['data']['soal'] = $this->soal_model->getSoal()->result();
     $soal['data']['opsi'] = $this->opsi_model->getOpsi();
     $opsi = array();
     foreach ($soal['data']['opsi']->result() as $row) {
         $opsi[$row->no_soal][$row->no_opsi] = $row->isi;
     }
     $soal['data']['opsi'] = $opsi;
     $this->load->view('pre_header');
     $this->load->view('ujian/_header_ujian');
     $this->load->view('ujian/_head_of_paper', $data);
     $this->load->view('ujian/_soal', $soal);
     $this->load->view('footer');
 }
예제 #2
0
 public function index()
 {
     setJsPreHeader(base_url() . 'assets/js/login.js');
     setCssPreHeader(base_url() . 'assets/css/kofein-custom.css');
     $this->load->view('pre_header');
     $this->load->view('login/index_content');
     $this->load->view('footer');
 }
예제 #3
0
 public function index()
 {
     setJsPreHeader(base_url() . 'assets/js/login.js');
     setCssPreHeader(base_url() . 'assets/css/kofein-custom.css');
     $pesan['data_pesan'] = null;
     $pesan['data_pesan'] = $this->session->flashdata('message');
     $this->load->view('pre_header');
     $this->load->view('register/index_content', $pesan);
     $this->load->view('footer');
 }