load->model('WelcomeModel'); } /** * 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/ * @see https://codeigniter.com/user_guide/general/urls.html */ public function index() { $data['lastId']=$this->WelcomeModel->getLastId(); $data['dep']=$this->WelcomeModel->dep_list(); $data['semester']=$this->WelcomeModel->semesterList(); $this->load->view('index',$data); } public function subjectList($id) { $data['lastId']=$this->WelcomeModel->getLastId(); $data['dep']=$this->WelcomeModel->dep_list(); $data['semester']=$this->WelcomeModel->semesterList(); //echo $this->db->last_query();exit; $data['subject_list']=$this->WelcomeModel->subject_list($id); //echo $this->db->last_query();exit; $this->load->view('subject_list',$data); } public function subjectDetail($id) { $data['lastId']=$this->WelcomeModel->getLastId(); $data['dep']=$this->WelcomeModel->dep_list(); $data['semester']=$this->WelcomeModel->semesterList(); //echo $this->db->last_query();exit; $data['subject_Det']=$this->WelcomeModel->subject_Detail($id); //echo $this->db->last_query();exit; $this->load->view('subject',$data); } public function projectDetail($id) { $data['lastId']=$this->WelcomeModel->getLastId(); $data['dep']=$this->WelcomeModel->dep_list(); $data['semester']=$this->WelcomeModel->semesterList(); //echo $this->db->last_query();exit; $data['projectdetail']=$this->WelcomeModel->projectDetail($id); //echo $this->db->last_query();exit; $this->load->view('project_details',$data); } public function about() { $data['lastId']=$this->WelcomeModel->getLastId(); $data['dep']=$this->WelcomeModel->dep_list(); $data['semester']=$this->WelcomeModel->semesterList(); $this->load->view('about',$data); } public function contact() { $data['lastId']=$this->WelcomeModel->getLastId(); $data['dep']=$this->WelcomeModel->dep_list(); $data['semester']=$this->WelcomeModel->semesterList(); $this->load->view('contact',$data); } function getDepartment() { $defaultId=$_POST['defaultId']; $data=$_POST['data']; //$hidd=$_POST['hidd']; $this->session->set_userdata('dateYear',$data); $this->session->set_userdata('dataId',$defaultId); $getDepartment=$this->WelcomeModel->getDepartment($defaultId); //echo $this->db->last_query(); if(isset($getDepartment) && $getDepartment->num_rows()>0) { foreach($getDepartment->result() as $list) { $depId=$list->depId; $depName=$list->depName; $depCode=$list->depCode; $depImage=$list->depImage; ?>

session->set_userdata('dateYear',$sessionNameYear); $this->session->set_userdata('dataId',$sessionId); $getDepartment=$this->WelcomeModel->getDepartment($sessionId); //echo $this->db->last_query(); if(isset($getDepartment) && $getDepartment->num_rows()>0) { foreach($getDepartment->result() as $list) { $depId=$list->depId; $depName=$list->depName; $depCode=$list->depCode; $depImage=$list->depImage; ?>

session->set_userdata('dateYear',$nameYear); $this->session->set_userdata('dataId',$clickId); $getDepartment=$this->WelcomeModel->getDepartment($sessionId); //echo $this->db->last_query(); if(isset($getDepartment) && $getDepartment->num_rows()>0) { foreach($getDepartment->result() as $list) { $depId=$list->depId; $depName=$list->depName; $depCode=$list->depCode; $depImage=$list->depImage; ?>

session->set_userdata('dateYear',$nameYear); $this->session->set_userdata('dataId',$clickId); } }