diff --git a/Visa_DB.sql b/Visa_DB.sql old mode 100644 new mode 100755 diff --git a/application/config/database.php b/application/config/database.php index 346da4f..0e3cab1 100755 --- a/application/config/database.php +++ b/application/config/database.php @@ -77,7 +77,7 @@ $query_builder = TRUE; $hostname ="localhost"; $username ="root"; $password =""; -$database ="Visa_DB"; +$database ="VISA"; $db['default'] = array( 'dsn' => '', diff --git a/application/config/routes.php b/application/config/routes.php index 8319813..f004fd3 100755 --- a/application/config/routes.php +++ b/application/config/routes.php @@ -69,9 +69,11 @@ $route['Add_visa_type_master'] = 'Dashboard_Controller/Add_visa_type_master'; $route['document_master'] = 'Dashboard_Controller/document_master'; $route['Add_document_master'] = 'Dashboard_Controller/Add_document_master'; -$route['visa_type_master'] = 'Dashboard_Controller/visa_type_master'; $route['country_visa_details'] = 'Dashboard_Controller/country_visa_details'; +$route['favourite'] = 'Favourite_Controller/favourite'; + + $route['loginMe'] = 'Login_Controller/loginMe'; $route['forgotPassword'] = "Login_Controller/forgotPassword"; diff --git a/application/controllers/Dashboard_Controller.php b/application/controllers/Dashboard_Controller.php index 62aa3cb..c4d183d 100755 --- a/application/controllers/Dashboard_Controller.php +++ b/application/controllers/Dashboard_Controller.php @@ -39,7 +39,8 @@ class Dashboard_Controller extends BaseController */ function country_master(){ $this->global['pageTitle'] = 'Visa : Country Master'; - $this->loadViews('country_master', $this->global,NULL , NULL); + $data['getcountry']= $this->Dashboard_Model->Get_CountryMaster(); + $this->loadViews('country_master', $this->global,$data , NULL); } /** @@ -52,28 +53,31 @@ class Dashboard_Controller extends BaseController array( 'CountryName'=>$this->input->post('CountryName'), 'CapitalCity'=>$this->input->post('CapitalCity'), 'CountryDescription'=>$this->input->post('Editor')); - + + $Added = $this->Dashboard_Model->Add_CountryMaster($CountryMasterDatas); - - if( $Added >= 1 ){ - echo ""; - redirect ( 'country_master' ); + // echo $Added; + if( $Added != "" ){ + // ""; + echo ""; + // redirect ( 'country_master' ); } else { - echo ""; - redirect ( 'country_master' ); + echo ""; } } + /** * This function used to load the City Master page */ function city_master(){ $this->global['pageTitle'] = 'Visa : Country Master'; - $this->loadViews('city_master', $this->global,NULL , NULL); + $data['getcity']= $this->Dashboard_Model->Get_CityMaster(); + $this->loadViews('city_master', $this->global,$data , NULL); } /** @@ -105,7 +109,8 @@ class Dashboard_Controller extends BaseController */ function visa_type_master(){ $this->global['pageTitle'] = 'Visa : Visa Type Master'; - $this->loadViews('visa_type_master', $this->global,NULL , NULL); + $data['getvisatype']= $this->Dashboard_Model->Get_VisaTypeMaster(); + $this->loadViews('visa_type_master', $this->global,$data , NULL); } /** @@ -138,7 +143,8 @@ class Dashboard_Controller extends BaseController */ function document_master(){ $this->global['pageTitle'] = 'Visa : Upload Document'; - $this->loadViews('document_upload', $this->global,NULL , NULL); + $data['getdocument'] =$this->Dashboard_Model->Get_DocumentMaster(); + $this->loadViews('document_upload', $this->global,$data , NULL); } /** diff --git a/application/controllers/Error.php b/application/controllers/Error.php old mode 100644 new mode 100755 diff --git a/application/controllers/Favourite_Controller.php b/application/controllers/Favourite_Controller.php new file mode 100644 index 0000000..c1c280d --- /dev/null +++ b/application/controllers/Favourite_Controller.php @@ -0,0 +1,28 @@ +load->model('Favourite_Model'); + } + + /** + * This function used to load the Dashboard page + */ + function Favourite() + { + $this->global['pageTitle'] = 'Visa : Favourite'; + $this->loadViews('favourite', $this->global,NULL , NULL); + } +} \ No newline at end of file diff --git a/application/controllers/Login_Controller.php b/application/controllers/Login_Controller.php old mode 100644 new mode 100755 diff --git a/application/controllers/User_Controller.php b/application/controllers/User_Controller.php old mode 100644 new mode 100755 diff --git a/application/helpers/cias_helper.php b/application/helpers/cias_helper.php old mode 100644 new mode 100755 diff --git a/application/libraries/BaseController.php b/application/libraries/BaseController.php old mode 100644 new mode 100755 diff --git a/application/models/Dashboard_Model.php b/application/models/Dashboard_Model.php old mode 100644 new mode 100755 index 69adc5d..8b0d6b7 --- a/application/models/Dashboard_Model.php +++ b/application/models/Dashboard_Model.php @@ -11,11 +11,19 @@ class Dashboard_Model extends CI_Model{ { $this->db->insert('Tab_CountryMaster',$CountryMasterDatas); - $CountryMaster = $this->db->affected_rows(); + $id = $this->db->insert_id(); - return $CountryMaster; + return $id; + } + + function Get_CountryMaster() + { + $this->db->select('*'); + $this->db->from('Tab_CountryMaster'); + $query = $this->db->get(); + $CountryMasterDatas = $query->result(); + return $CountryMasterDatas; } - /** * To store City Related details into 'Tab_CityMaster' table * @param array $CityMasterDatas : Its have all the City master datas @@ -29,7 +37,15 @@ class Dashboard_Model extends CI_Model{ return $CityMaster; } - + + function Get_CityMaster() + { + $this->db->select('*'); + $this->db->from('Tab_CityMaster'); + $query = $this->db->get(); + $CityMasterDatas = $query->result(); + return $CityMasterDatas; + } /** * To store VisaType Related details into 'Tab_VisaTypeMaster' table @@ -44,6 +60,15 @@ class Dashboard_Model extends CI_Model{ return $VisaTypeMaster; } + function Get_VisaTypeMaster() + { + $this->db->select('*'); + $this->db->from('Tab_VisaTypeMaster'); + $query = $this->db->get(); + $VisaTypeMasterDatas = $query->result(); + return $VisaTypeMasterDatas; + } + /** * To store Document Related details into 'Tab_Documents' table * @param array $DocumentMasterDatas : Its have all the document master datas @@ -56,14 +81,15 @@ class Dashboard_Model extends CI_Model{ return $Documents; } - - function Get_CountryMaster() + + function Get_DocumentMaster() { $this->db->select('*'); - $this->db->from('Tab_CountryMaster'); - $query = $this->db->get(); - $CountryMasterDatas = $query->result(); - return $CountryMasterDatas; + $this->db->from('Tab_Documents'); + $query =$this->db->get(); + $DocumentMasterdatas = $query->result(); + return $DocumentMasterdatas; } + } \ No newline at end of file diff --git a/application/models/Favourite_Model.php b/application/models/Favourite_Model.php new file mode 100644 index 0000000..e69de29 diff --git a/application/models/Login_Model.php b/application/models/Login_Model.php old mode 100644 new mode 100755 diff --git a/application/models/User_Model.php b/application/models/User_Model.php old mode 100644 new mode 100755 diff --git a/application/views/UsersListing.php b/application/views/UsersListing.php old mode 100644 new mode 100755 diff --git a/application/views/addUser.php b/application/views/addUser.php old mode 100644 new mode 100755 diff --git a/application/views/changePassword.php b/application/views/changePassword.php old mode 100644 new mode 100755 diff --git a/application/views/city_master.php b/application/views/city_master.php index 0814da6..bd96946 100755 --- a/application/views/city_master.php +++ b/application/views/city_master.php @@ -195,11 +195,58 @@ span:nth-child(3) .slide-up:active {