diff --git a/application/config/routes.php b/application/config/routes.php index 3e24729..731bf8a 100755 --- a/application/config/routes.php +++ b/application/config/routes.php @@ -79,12 +79,16 @@ $route['country_visa_details'] = 'Dashboard_Controller/country_visa_details'; $route['favourite'] = 'Favourite_Controller/favourite'; - + $route['loginMe'] = 'Login_Controller/loginMe'; $route['forgotPassword'] = "Login_Controller/forgotPassword"; $route['resetPasswordUser'] = "Login_Controller/resetPasswordUser"; $route['resetPasswordConfirmUser'] = "Login_Controller/resetPasswordConfirmUser"; $route['createPasswordUser'] = "Login_Controller/createPasswordUser"; +$route['register'] = 'Login_Controller/register'; +$route['Add_Register'] = 'Login_Controller/Add_Register'; + +$route['user_details'] = 'User_Controller/user_details_master'; $route['logout'] = 'User_Controller/logout'; diff --git a/application/controllers/Login_Controller.php b/application/controllers/Login_Controller.php index 75bfb5f..6c34492 100755 --- a/application/controllers/Login_Controller.php +++ b/application/controllers/Login_Controller.php @@ -252,6 +252,48 @@ class Login_Controller extends CI_Controller redirect("/Login_Controller"); } } -} + /** + * This function used to load the Register page + */ + function Register() + { + $this->global['pageTitle'] = 'Visa : Register'; + $this->load->View('register', $this->global,NULL , NULL); + } + /** + * To Store Register Details + */ + function Add_Register(){ + + $Registerdata = + array( 'Name'=>$this->input->post('Name'), + 'PhoneNo'=>$this->input->post('PhoneNo'), + 'Email'=>$this->input->post('Email'), + 'AlternateEmail'=>$this->input->post('AlternateEmail'), + 'Designation'=>$this->input->post('Designation'), + 'CompanyName'=>$this->input->post('CompanyName'), + 'CityName'=>$this->input->post('CityName'), + 'CountryName'=>$this->input->post('CountryName'), + 'Address'=>$this->input->post('Address')); + $Userdata = + array( 'email'=>$this->input->post('Email'), + 'password'=>getHashedPassword($this->input->post('Password')), + 'mobile'=>$this->input->post('PhoneNo'), + 'roleId'=>'2', + 'name'=>$this->input->post('Name'), + 'createdDtm'=>date('Y-m-d H:i:s')); + $register= $this->Login_Model->Add_Register($Registerdata); + $user= $this->Login_Model->Add_User($Userdata); + + if($register != ''&& $user !='') + { + echo""; + } + else{ + echo""; + + } + } +} ?> \ No newline at end of file diff --git a/application/controllers/User_Controller.php b/application/controllers/User_Controller.php index f789164..c277d3e 100755 --- a/application/controllers/User_Controller.php +++ b/application/controllers/User_Controller.php @@ -30,7 +30,16 @@ class User_Controller extends BaseController $this->loadViews("dashboard", $this->global, NULL , NULL); } - + + /** + * This function used to load the User Details page + */ + function user_details_master(){ + $this->global['pageTitle'] = 'Visa : User Details'; + $data['getuserdetails']= $this->User_Model->Get_UserDetails(); + $this->loadViews('user_details', $this->global,$data , NULL); + } + /** * This function is used to load the user list */ diff --git a/application/models/Login_Model.php b/application/models/Login_Model.php index 9024770..4d0dac7 100755 --- a/application/models/Login_Model.php +++ b/application/models/Login_Model.php @@ -132,6 +132,31 @@ class Login_model extends CI_Model return $query->row(); } + /** + * To store register details into 'Tab_Register' table + * @param array $Registerdata : Its have all the register data + * @return $register : This will return Last inserted id of register number + */ + function Add_Register($Registerdata) + { + $this->db->insert('Tab_Register',$Registerdata); + $register = $this->db->insert_id(); + + return $register; + } + /** + * To store user datas details into 'Tab_Users' table + * @param array $Userdata : Its have all the user datas + * @return $user : This will return Last inserted id of user + */ + function Add_User($Userdata) + { + $this->db->insert('Tab_Users',$Userdata); + $user = $this->db->insert_id(); + + return $user; + } + } ?> \ No newline at end of file diff --git a/application/models/User_Model.php b/application/models/User_Model.php index 48f7f6d..2393e26 100755 --- a/application/models/User_Model.php +++ b/application/models/User_Model.php @@ -2,6 +2,16 @@ class User_model extends CI_Model { + + function Get_UserDetails() + { + $this->db->select('*'); + $this->db->from('Tab_Register'); + $query = $this->db->get(); + $UserDetailsData = $query->result(); + return $UserDetailsData; + } + /** * This function is used to get the user listing count * @param string $searchText : This is optional search text diff --git a/application/views/city_master.php b/application/views/city_master.php index 1158036..a42dc3d 100755 --- a/application/views/city_master.php +++ b/application/views/city_master.php @@ -26,7 +26,8 @@ font-weight: 300; } .slide-up + label { - font-weight: 400; + color: #fff; + font-weight: 400; display: inline-block; position: absolute; transform: translateX(0); @@ -184,6 +185,11 @@ span:nth-child(3) .slide-up:active { .nav-tabs-custom>.nav-tabs>li.active{ border-top-color:#dc2265 !important; } + .box-solid{ + box-shadow: 0 3px 4px 0 rgba(0,0,0,0.14), + 0 3px 3px -2px rgba(0,0,0,0.12), + 0 1px 8px 0 rgba(0,0,0,0.2); + } @@ -196,10 +202,10 @@ span:nth-child(3) .slide-up:active {