This commit is contained in:
venbatechnologies@gmail.com 2018-07-31 18:14:23 +05:30
parent 153d32fef7
commit 58d05e70c4
28 changed files with 416 additions and 55 deletions

0
Visa_DB.sql Normal file → Executable file
View File

View File

@ -77,7 +77,7 @@ $query_builder = TRUE;
$hostname ="localhost";
$username ="root";
$password ="";
$database ="Visa_DB";
$database ="VISA";
$db['default'] = array(
'dsn' => '',

View File

@ -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";

View File

@ -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 "<script>alert('Saved Successfully!');</script>";
redirect ( 'country_master' );
// echo $Added;
if( $Added != "" ){
// "<script type='text/javascript'>alert(".$Added."'Saved Successfully!');</script>";
echo "<script>alert('Successfully Created Country Code:$Added'); window.location.href='country_master';</script>";
// redirect ( 'country_master' );
}
else
{
echo "<script>alert('Saved Unsuccessfully!');</script>";
redirect ( 'country_master' );
echo "<script>alert('Unsuccessfully Not Created'); window.location.href='country_master';</script>";
}
}
/**
* 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);
}
/**

0
application/controllers/Error.php Normal file → Executable file
View File

View File

@ -0,0 +1,28 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
require APPPATH . '/libraries/BaseController.php';
/**
* Class : Favourite_Controller
* Favourite_Controller class to control the Favourite Menus.
* @author : Surendiran.M
* @version : 1.1
* @since : 27/07/2018
*/
class Favourite_Controller extends BaseController
{
/**
* This is default constructor of the class
*/
public function __construct(){
parent::__construct();
// $this->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);
}
}

0
application/controllers/Login_Controller.php Normal file → Executable file
View File

0
application/controllers/User_Controller.php Normal file → Executable file
View File

0
application/helpers/cias_helper.php Normal file → Executable file
View File

0
application/libraries/BaseController.php Normal file → Executable file
View File

46
application/models/Dashboard_Model.php Normal file → Executable file
View File

@ -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;
}
}

View File

0
application/models/Login_Model.php Normal file → Executable file
View File

0
application/models/User_Model.php Normal file → Executable file
View File

0
application/views/UsersListing.php Normal file → Executable file
View File

0
application/views/addUser.php Normal file → Executable file
View File

0
application/views/changePassword.php Normal file → Executable file
View File

View File

@ -195,11 +195,58 @@ span:nth-child(3) .slide-up:active {
<div class="col-md-offset-1 col-md-10">
<div class="box box-solid" style="box-shadow:0 1px 4px 0 rgba(0,0,0,.14);padding: 20px;">
<div class="box-body">
<div class="row">
<h3 class="box-title-box">City Master</h3>
</div>
<!-- form start -->
<div class="box-body">
<div class="row">
<div class="col-md-12">
<!-- Custom Tabs -->
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#tab_1" data-toggle="tab">View City</a></li>
<li><a href="#tab_2" data-toggle="tab">Add City</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab_1">
<h3 style="text-align:center;">View City</h3>
<table id="example2" class="table table-bordered table-hover">
<thead>
<tr>
<th>S.no</th>
<th>City Name</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php if(!empty($getcity)){
foreach($getcity as $gcity){?>
<tr>
<td><?php echo $gcity->CityCode;?></td>
<td><?php echo $gcity->CityName;?></td>
<td><?php echo $gcity->IsActive == 1 ? '<span class="label label-success">Active</span>' : '<span class="label label-danger">Deactive</span>' ?></td>
<td></td>
</tr>
<?php }
}?>
</tbody>
<tfoot>
<tr>
<th>S.no</th>
<th>City Name</th>
<th>Status</th>
<th>Action</th>
</tr>
</tfoot>
</table>
</div>
<!-- /.tab-pane -->
<div class="tab-pane" id="tab_2">
<h3 style="text-align:center;">Add City</h3>
<!-- form start -->
<form role="form" action="<?php echo base_url() ?>Add_city_master" method="post" style="padding:40px;">
<div class="row">
<div class="col-md-5 designinput">
@ -225,6 +272,15 @@ span:nth-child(3) .slide-up:active {
</div>
</div>
</form>
</div>
<!-- /.tab-pane -->
</div>
<!-- /.tab-content -->
</div>
<!-- nav-tabs-custom -->
</div>
<!-- /.col -->
</div>
<!-- /.box-body -->
@ -239,3 +295,36 @@ span:nth-child(3) .slide-up:active {
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script src="<?php echo base_url(); ?>assets/bower_components/jquery/dist/jquery.min.js"></script>
<script>
$(function () {
$('#example1').DataTable()
$('#example2').DataTable({
'paging' : true,
'lengthChange': true,
'searching' : true,
'ordering' : true,
'info' : true,
'autoWidth' : false
})
});
</script>
<script>
$(function () {
// Replace the <textarea id="editor1"> with a CKEditor
// instance, using default configuration.
CKEDITOR.replace('editor1')
//bootstrap WYSIHTML5 - text editor
$('.textarea').wysihtml5()
//Flat red color scheme for iCheck
$('input[type="checkbox"].flat-red, input[type="radio"].flat-red').iCheck({
checkboxClass: 'icheckbox_flat-green',
radioClass : 'iradio_flat-green'
})
})
</script>

View File

@ -199,6 +199,59 @@ span:nth-child(3) .slide-up:active {
<div class="row">
<h3 class="box-title-box">Country Master</h3>
</div>
<div class="row">
<div class="col-md-12">
<!-- Custom Tabs -->
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#tab_1" data-toggle="tab">View Country</a></li>
<li><a href="#tab_2" data-toggle="tab">Add Country</a></li>
</ul>
<div class="tab-content">
<!-- /.tab-pane -->
<div class="tab-pane active" id="tab_1">
<!--<?php print_r($getcountry);?>-->
<h3 style="text-align:center;">View Country Master</h3>
<table id="example2" class="table table-bordered table-hover">
<thead>
<tr>
<th>S.no</th>
<th>Country Name</th>
<th>Country Capital</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php if(!empty($getcountry)){
foreach($getcountry as $gc){?>
<tr>
<td><?php echo $gc->CountryCode;?></td>
<td><?php echo $gc->CountryName;?></td>
<td><?php echo $gc->CapitalCity;?></td>
<td><?php echo $gc->IsActive == 1 ? '<span class="label label-success">Active</span>' : '<span class="label label-success">Deactive</span>' ?></td>
<td></td>
</tr>
<?php }
}?>
</tbody>
<tfoot>
<tr>
<th>S.no</th>
<th>Country Name</th>
<th>Country Capital</th>
<th>Status</th>
<th>Action</th>
</tr>
</tfoot>
</table>
</div>
<!-- /.tab-pane -->
<div class="tab-pane" id="tab_2">
<h3 style="text-align:center;">Add Country Master</h3>
<!-- form start -->
<form role="form" action="<?php echo base_url() ?>Add_country_master" method="post" style="padding:40px;">
<div class="row">
@ -243,6 +296,15 @@ span:nth-child(3) .slide-up:active {
</div>
</div>
</form>
</div>
</div>
<!-- /.tab-content -->
</div>
<!-- nav-tabs-custom -->
</div>
<!-- /.col -->
</div>
<!-- /.box-body -->
@ -260,7 +322,20 @@ span:nth-child(3) .slide-up:active {
<!-- jQuery 3 -->
<script src="<?php echo base_url(); ?>assets/bower_components/jquery/dist/jquery.min.js"></script>
<script>
$(function () {
$('#example1').DataTable()
$('#example2').DataTable({
'paging' : true,
'lengthChange': true,
'searching' : true,
'ordering' : true,
'info' : true,
'autoWidth' : false
})
});
</script>
<script>
$(function () {
// Replace the <textarea id="editor1"> with a CKEditor
@ -268,9 +343,13 @@ span:nth-child(3) .slide-up:active {
CKEDITOR.replace('editor1')
//bootstrap WYSIHTML5 - text editor
$('.textarea').wysihtml5()
})
$('input[type="checkbox"].flat-red, input[type="radio"].flat-red').iCheck({
//Flat red color scheme for iCheck
$('input[type="checkbox"].flat-red, input[type="radio"].flat-red').iCheck({
checkboxClass: 'icheckbox_flat-green',
radioClass : 'iradio_flat-green'
})
</script>
})
</script>

View File

@ -99,14 +99,7 @@ span:nth-child(3) .slide-up:active {
}
.btn-primary:hover, .btn-primary:active, .btn-primary.hover{
background-color: #087322;
}
@ -199,7 +192,53 @@ span:nth-child(3) .slide-up:active {
<div class="row">
<h3 class="box-title-box">Document Master</h3>
</div>
<!-- form start -->
<div class="row">
<div class="col-md-12">
<!-- Custom Tabs -->
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#tab_1" data-toggle="tab">View Document</a></li>
<li><a href="#tab_2" data-toggle="tab">Add Document</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab_1">
<h3 style="text-align:center;">View Document</h3>
<table id="example2" class="table table-bordered table-hover">
<thead>
<tr>
<th>S.no</th>
<th>Document Name</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php if(!empty($getdocument)){
foreach($getdocument as $gdoc){?>
<tr>
<td><?php echo $gdoc->DocumentCode;?></td>
<td><?php echo $gdoc->DocumentName;?></td>
<td><?php echo $gdoc->IsActive == 1 ? '<span class="label label-success">Active</span>' : '<span class="label label-danger">Deactive</span>' ?></td>
<td></td>
</tr>
<?php }
}?>
</tbody>
<tfoot>
<tr>
<th>S.no</th>
<th>Document Name</th>
<th>Status</th>
<th>Action</th>
</tr>
</tfoot>
</table>
</div>
<!-- /.tab-pane -->
<div class="tab-pane" id="tab_2">
<h3 style="text-align:center;">View Document</h3>
<!-- form start -->
<form role="form" action="<?php echo base_url() ?>Add_document_master" method="post" style="padding:40px;" enctype="multipart/form-data">
<div class="row">
<div class="col-md-5 designinput">
@ -235,6 +274,14 @@ span:nth-child(3) .slide-up:active {
</div>
</div>
</form>
</div>
<!-- /.tab-pane -->
</div>
<!-- /.tab-content -->
</div>
<!-- nav-tabs-custom -->
</div>
<!-- /.col -->
</div>
<!-- /.box-body -->
@ -251,21 +298,19 @@ span:nth-child(3) .slide-up:active {
<!-- /.content-wrapper -->
<!-- jQuery 3 -->
<script src="<?php echo base_url(); ?>assets/bower_components/jquery/dist/jquery.min.js"></script>
<script src="<?php echo base_url(); ?>assets/bower_components/jquery/dist/jquery.min.js"></script>
<script>
// function readURL(input) {
// if (input.files && input.files[0]) {
// var reader = new FileReader();
// reader.onload = function (e) {
// $('#profilepicture')
// .attr('src', e.target.result)
// .width(180)
// .height(180);
// };
// reader.readAsDataURL(input.files[0]);
// }
// }
</script>
<script>
$(function () {
$('#example1').DataTable()
$('#example2').DataTable({
'paging' : true,
'lengthChange': true,
'searching' : true,
'ordering' : true,
'info' : true,
'autoWidth' : false
})
});
</script>

0
application/views/editUser.php Normal file → Executable file
View File

View File

@ -0,0 +1,3 @@
<div class="content-wrapper" style="background-color: #eee;">
</div>

View File

@ -208,6 +208,12 @@
<script>
$.widget.bridge('uibutton', $.ui.button);
</script>
<!-- InputMask -->
<script src="<?php echo base_url(); ?>assets/plugins/input-mask/jquery.inputmask.js"></script>
<script src="<?php echo base_url(); ?>assets/plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
<script src="<?php echo base_url(); ?>assets/plugins/input-mask/jquery.inputmask.extensions.js"></script>
<!-- iCheck 1.0.1 -->
<script src="<?php echo base_url(); ?>assets/plugins/iCheck/icheck.min.js"></script>
<!-- DataTables -->
<script src="<?php echo base_url(); ?>assets/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
<script src="<?php echo base_url(); ?>assets/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>

View File

@ -138,6 +138,13 @@
<span class="pull-right-container">
</span>
</a>
</li>
<li>
<a href="<?php echo base_url(); ?>favourite">
<i class="fa fa-star"></i> <span>Favourite</span>
<span class="pull-right-container">
</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>#">

0
application/views/login.php Normal file → Executable file
View File

0
application/views/loginHistory.php Normal file → Executable file
View File

View File

@ -198,6 +198,51 @@ span:nth-child(3) .slide-up:active {
<div class="row">
<h3 class="box-title-box">Visa Type Master</h3>
</div>
<div class="row">
<div class="col-md-12">
<!-- Custom Tabs -->
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#tab_1" data-toggle="tab">View Visa Type</a></li>
<li><a href="#tab_2" data-toggle="tab">Add Visa Type</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab_1">
<h3 style="text-align:center;">View Visa Type</h3>
<table id="example2" class="table table-bordered table-hover">
<thead>
<tr>
<th>S.no</th>
<th>Visa Name</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php if(!empty($getvisatype)){
foreach($getvisatype as $gvisatype){?>
<tr>
<td><?php echo $gvisatype->VisaCode;?></td>
<td><?php echo $gvisatype->VisaName;?></td>
<td><?php echo $gvisatype->IsActive == 1 ? '<span class="label label-success">Active</span>' : '<span class="label label-danger">Deactive</span>' ?></td>
<td></td>
</tr>
<?php }
}?>
</tbody>
<tfoot>
<tr>
<th>S.no</th>
<th>Visa Name</th>
<th>Status</th>
<th>Action</th>
</tr>
</tfoot>
</table>
</div>
<!-- /.tab-pane -->
<div class="tab-pane" id="tab_2">
<h3 style="text-align:center;">Add Visa Type</h3>
<!-- form start -->
<form role="form" action="<?php echo base_url() ?>Add_visa_type_master" method="post" style="padding:40px;">
<div class="row">
@ -224,7 +269,16 @@ span:nth-child(3) .slide-up:active {
</div>
</div>
</form>
</div>
<!-- /.tab-pane -->
</div>
<!-- /.tab-content -->
</div>
<!-- nav-tabs-custom -->
</div>
<!-- /.col -->
</div>
<!-- /.box-body -->
</div>
@ -238,3 +292,19 @@ span:nth-child(3) .slide-up:active {
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script src="<?php echo base_url(); ?>assets/bower_components/jquery/dist/jquery.min.js"></script>
<script>
$(function () {
$('#example1').DataTable()
$('#example2').DataTable({
'paging' : true,
'lengthChange': true,
'searching' : true,
'ordering' : true,
'info' : true,
'autoWidth' : false
})
});
</script>

Binary file not shown.