|
|
@ -15,8 +15,17 @@ class Login extends CI_Controller |
|
|
|
// Header |
|
|
|
// Header |
|
|
|
$this->load->view('header'); |
|
|
|
$this->load->view('header'); |
|
|
|
|
|
|
|
|
|
|
|
// Content |
|
|
|
$this->form_validation->set_rules('username', 'Username', 'required'); |
|
|
|
$this->load->view('login'); |
|
|
|
$this->form_validation->set_rules('password', 'Password', 'required'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($this->form_validation->run() == FALSE) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// login page |
|
|
|
|
|
|
|
$this->load->view('login'); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
echo "Done"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Footer |
|
|
|
// Footer |
|
|
|
$this->load->view('footer'); |
|
|
|
$this->load->view('footer'); |
|
|
|