listing changes

This commit is contained in:
venbatechnologies@gmail.com 2018-08-01 15:45:30 +05:30
parent 58d05e70c4
commit f34ad5968f
12 changed files with 100 additions and 76 deletions

View File

@ -52,20 +52,19 @@ class Dashboard_Controller extends BaseController
$CountryMasterDatas =
array( 'CountryName'=>$this->input->post('CountryName'),
'CapitalCity'=>$this->input->post('CapitalCity'),
'CountryDescription'=>$this->input->post('Editor'));
'CountryDescription'=>$this->input->post('Editor'),
'IsActive'=>$this->input->post('IsActive') != '' ? 1 : 0);
$Added = $this->Dashboard_Model->Add_CountryMaster($CountryMasterDatas);
// 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' );
echo "<script>alert('Created Successfully ! Country Code:$Added'); window.location.href='country_master';</script>";
}
else
{
echo "<script>alert('Unsuccessfully Not Created'); window.location.href='country_master';</script>";
echo "<script>alert('Sorry Not Created ! Try Again '); window.location.href='country_master';</script>";
}
}
@ -87,20 +86,20 @@ class Dashboard_Controller extends BaseController
$CityMasterDatas =
array( 'CityName'=>$this->input->post('CityName'),
'CityDescription'=>$this->input->post('CitiesDescription'));
'CityDescription'=>$this->input->post('CitiesDescription'),
'IsActive'=>$this->input->post('IsActive') != '' ? 1 : 0);
$Added = $this->Dashboard_Model->Add_CityMaster($CityMasterDatas);
if( $Added >= 1 ){
echo "<script>alert('Saved Successfully!');</script>";
redirect ( 'city_master' );
if( $Added != "" ){
echo "<script>alert('Created Successfully ! City Code:$Added'); window.location.href='city_master';</script>";
}
else
{
echo "<script>alert('Saved Unsuccessfully!');</script>";
redirect ( 'city_master' );
echo "<script>alert('Sorry Not Created ! Try Again '); window.location.href='city_master';</script>";
}
}
@ -120,20 +119,19 @@ class Dashboard_Controller extends BaseController
$VisaTypeMasterDatas =
array( 'VisaName'=>$this->input->post('VisaName'),
'VisaDescription'=>$this->input->post('VisaDescription'));
'VisaDescription'=>$this->input->post('VisaDescription'),
'IsActive'=>$this->input->post('IsActive') != '' ? 1 : 0);
$Added = $this->Dashboard_Model->Add_VisaType($VisaTypeMasterDatas);
if( $Added >= 1 ){
echo "<script>alert('Saved Successfully!');</script>";
redirect ( 'visa_type_master' );
if( $Added != "" ){
echo "<script>alert('Created Successfully ! Visa NO :$Added'); window.location.href='visa_type_master';</script>";
}
else
{
echo "<script>alert('Saved Unsuccessfully!');</script>";
redirect ( 'visa_type_master' );
}
echo "<script>alert('Sorry Not Created ! Try Again '); window.location.href='visa_type_master';</script>";
}
}
@ -155,19 +153,18 @@ class Dashboard_Controller extends BaseController
$DocumentMasterDatas =
array( 'DocumentName'=>$this->input->post('DocumentName'),
'Document'=>$this->uploadFile(),
'DocumentDescription'=>$this->input->post('Description'));
'DocumentDescription'=>$this->input->post('Description'),
'IsActive'=>$this->input->post('IsActive') != '' ? 1 : 0);
$Added = $this->Dashboard_Model->Add_Document($DocumentMasterDatas);
if( $Added >= 1 ){
echo "<script>alert('Saved Successfully!');</script>";
if( $Added != "" ){
echo "<script>alert('Created Successfully ! Document NO :$Added'); window.location.href='document_master';</script>";
}
else
{
echo "<script>alert('Saved Unsuccessfully!');</script>";
echo "<script>alert('Sorry Not Created ! Try Again '); window.location.href='document_master';</script>";
}
}

View File

@ -91,7 +91,7 @@ class Login_Controller extends CI_Controller
{
$this->session->set_flashdata('error', 'Email or password mismatch');
redirect('/login');
redirect('/Login_Controller');
}
}
}
@ -203,7 +203,7 @@ class Login_Controller extends CI_Controller
}
else
{
redirect('/login');
redirect('/Login_Controller');
}
}
@ -249,7 +249,7 @@ class Login_Controller extends CI_Controller
setFlashData($status, $message);
redirect("/login");
redirect("/Login_Controller");
}
}
}

View File

@ -33,7 +33,7 @@ class Dashboard_Model extends CI_Model{
{
$this->db->insert('Tab_CityMaster',$CityMasterDatas);
$CityMaster = $this->db->affected_rows();
$CityMaster = $this->db->insert_id();
return $CityMaster;
}
@ -55,7 +55,7 @@ class Dashboard_Model extends CI_Model{
function Add_VisaType($VisaTypeMasterDatas)
{
$this->db->insert('Tab_VisaTypeMaster',$VisaTypeMasterDatas);
$VisaTypeMaster = $this->db->affected_rows();
$VisaTypeMaster = $this->db->insert_id();
return $VisaTypeMaster;
}
@ -77,8 +77,7 @@ class Dashboard_Model extends CI_Model{
function Add_Document($DocumentMasterDatas)
{
$this->db->insert('Tab_Documents',$DocumentMasterDatas);
$Documents = $this->db->affected_rows();
$Documents = $this->db->insert_id();
return $Documents;
}
@ -92,4 +91,4 @@ class Dashboard_Model extends CI_Model{
}
}
}

View File

@ -226,8 +226,9 @@ span:nth-child(3) .slide-up:active {
<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>
<td style="text-align:center;"><?php echo $gcity->IsActive == 1 ? '<span class="label label-success">Active</span>' : '<span class="label label-danger">Deactive</span>' ?></td>
<td style="text-align:center;"><a href="#Editcenter"><i class="fa fa-edit" data-toggle="tooltip" title="" data-original-title="Click here to view/Edit" style="color: #dc2265;"></i></a>
</td>
</tr>
<?php }
}?>
@ -264,8 +265,16 @@ span:nth-child(3) .slide-up:active {
<textarea class="form-control" rows="3" name="CitiesDescription" placeholder="Enter ..." data-gramm="true" data-txt_gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" data-gramm_id="d620fc04-2898-2668-7729-ac0c777081d4" spellcheck="false" data-gramm_editor="true" style="z-index: auto; position: relative; line-height: 20px; font-size: 14px; transition: none; background: transparent !important;"></textarea>
</div>
</div>
<div class="row" style="padding-top:15px;">
<div class="col-md-offset-8 col-md-4">
<div class="col-md-2">
<div class="form-group">
<label>Active/Deactive
<input type="checkbox" class="flat-red" name="IsActive" checked>
</label>
</div>
</div>
<div class="col-md-offset-6 col-md-4">
<button type="submit" class="btn btn-primary">Submit</button>
<div class="or-button">Or</div>
<button type="reset" class="btn btn-primary12">Reset</button>
@ -295,7 +304,8 @@ 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>
<!-- jQuery 3 -->
<script src="<?php echo base_url(); ?>assets/bower_components/jquery/dist/jquery.min.js"></script>
<script>
$(function () {
@ -308,23 +318,11 @@ span:nth-child(3) .slide-up:active {
'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
//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

@ -231,8 +231,9 @@ span:nth-child(3) .slide-up:active {
<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>
<td style="text-align:center;"><?php echo $gc->IsActive == 1 ? '<span class="label label-success">Active</span>' : '<span class="label label-danger">Deactive</span>' ?></td>
<td style="text-align:center;"><a data-toggle="modal" data-target="#editcountry" href="#Editcenter"><i class="fa fa-edit" data-toggle="tooltip" title="" data-original-title="Click here to view/Edit" style="color: #dc2265;"></i></a>
</td>
</tr>
<?php }
}?>
@ -248,6 +249,7 @@ span:nth-child(3) .slide-up:active {
</tr>
</tfoot>
</table>
</div>
<!-- /.tab-pane -->
<div class="tab-pane" id="tab_2">
@ -284,7 +286,7 @@ span:nth-child(3) .slide-up:active {
<div class="col-md-2">
<div class="form-group">
<label>Active/Deactive
<input type="checkbox" class="flat-red" checked>
<input type="checkbox" class="flat-red" name="IsActive" checked>
</label>
</div>
</div>

View File

@ -710,13 +710,14 @@ span:nth-child(3) .slide-up:active {
</tbody>
<tfoot>
<tr>
<th>Visa Type</th>
<th>Embassy Fee</th>
<th>VFS Fee</th>
<th>Processing Time</th>
<th>Download Form</th>
<th>Download Checklist</th>
<th>Action</th>
<th>Place</th>
<th>Email</th>
<th>Alternate Email</th>
<th>Phone Number</th>
<th>Fax</th>
<th>Submission Timing</th>
<th>Holiday List</th>
<th>Action<th>
</tr>
</tfoot>
</table>
@ -909,12 +910,12 @@ span:nth-child(3) .slide-up:active {
</tbody>
<tfoot>
<tr>
<th>Visa Type</th>
<th>Embassy Fee</th>
<th>VFS Fee</th>
<th>Processing Time</th>
<th>Download Form</th>
<th>Download Checklist</th>
<th>City</th>
<th>Phone No</th>
<th>Zip Code</th>
<th>Email</th>
<th>Fax</th>
<th>Address</th>
<th>Action</th>
</tr>
</tfoot>
@ -972,5 +973,6 @@ span:nth-child(3) .slide-up:active {
//Initialize Select2 Elements
$('.select2').select2()
});
</script>

View File

@ -219,8 +219,9 @@ span:nth-child(3) .slide-up:active {
<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>
<td style="text-align:center;"><?php echo $gdoc->IsActive == 1 ? '<span class="label label-success">Active</span>' : '<span class="label label-danger">Deactive</span>' ?></td>
<td style="text-align:center;"><a href="#Editcenter"><i class="fa fa-edit" data-toggle="tooltip" title="" data-original-title="Click here to view/Edit" style="color: #dc2265;"></i></a>
</td>
</tr>
<?php }
}?>
@ -267,7 +268,14 @@ span:nth-child(3) .slide-up:active {
</div>
</div>
<div class="row" style="padding-top:15px;">
<div class="col-md-offset-8 col-md-4">
<div class="col-md-2">
<div class="form-group">
<label>Active/Deactive
<input type="checkbox" class="flat-red" name="IsActive" checked>
</label>
</div>
</div>
<div class="col-md-offset-6 col-md-4">
<button type="submit" class="btn btn-primary">Submit</button>
<div class="or-button">Or</div>
<button type="reset" class="btn btn-primary12">Reset</button>
@ -311,6 +319,11 @@ span:nth-child(3) .slide-up:active {
'info' : true,
'autoWidth' : false
})
//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

@ -64,7 +64,7 @@
<!-- Google Font -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition login-page" style="background-image: url(wallpaper2you_237173.jpg);
<body class="hold-transition login-page" style="background-image: url(assets/dist/img/loginbg.jpg);
background-size: cover;
background-position: top center;margin-top:150px;">
<div class="login-box">

View File

@ -224,8 +224,9 @@ span:nth-child(3) .slide-up:active {
<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>
<td style="text-align:center;"><?php echo $gvisatype->IsActive == 1 ? '<span class="label label-success">Active</span>' : '<span class="label label-danger">Deactive</span>' ?></td>
<td style="text-align:center;"><a href="#Editcenter"><i class="fa fa-edit" data-toggle="tooltip" title="" data-original-title="Click here to view/Edit" style="color: #dc2265;"></i></a>
</td>
</tr>
<?php }
}?>
@ -262,7 +263,14 @@ span:nth-child(3) .slide-up:active {
</div>
</div>
<div class="row" style="padding-top:15px;">
<div class="col-md-offset-8 col-md-4">
<div class="col-md-2">
<div class="form-group">
<label>Active/Deactive
<input type="checkbox" class="flat-red" name="IsActive" checked>
</label>
</div>
</div>
<div class="col-md-offset-6 col-md-4">
<button type="submit" class="btn btn-primary">Submit</button>
<div class="or-button">Or</div>
<button type="reset" class="btn btn-primary12">Reset</button>
@ -305,6 +313,11 @@ span:nth-child(3) .slide-up:active {
'info' : true,
'autoWidth' : false
})
//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>

BIN
assets/dist/img/Uploads/hero-bg.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

0
assets/dist/img/Uploads/visa_document.pdf vendored Normal file → Executable file
View File

BIN
assets/dist/img/loginbg.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB