297 lines
13 KiB
PHP
Executable File
297 lines
13 KiB
PHP
Executable File
|
||
|
||
<?php
|
||
|
||
|
||
$Pay_Data_ID='';
|
||
$EmpID='';
|
||
$Basic_Pay='';
|
||
$HRA_Rate='';
|
||
$OT_Rate='';
|
||
$Allowances='';
|
||
$PF_Rate='';
|
||
$ESI_Rate='';
|
||
$is_Active='';
|
||
$Food_Allowances='';
|
||
$Created_By='';
|
||
$Created_Time='';
|
||
$Last_Mod_By='';
|
||
$Last_Mod_Time='';
|
||
|
||
|
||
if(!empty($emppay))
|
||
{
|
||
|
||
foreach ($emppay as $ep)
|
||
{
|
||
|
||
|
||
|
||
$Pay_Data_ID=$ep->Pay_Data_ID;
|
||
$EmpID=$ep->EmpID;
|
||
$Basic_Pay=$ep->Basic_Pay;
|
||
$HRA_Rate=$ep->HRA_Rate;
|
||
$OT_Rate=$ep->OT_Rate;
|
||
$Allowances=$ep->Allowances;
|
||
$PF_Rate=$ep->PF_Rate;
|
||
$ESI_Rate=$ep->ESI_Rate;
|
||
$is_Active=$ep->is_Active;
|
||
$Food_Allowances=$ep->Food_Allowances;
|
||
$Created_By=$ep->Created_By;
|
||
$Created_Time=$ep->Created_Time;
|
||
$Last_Mod_By=$ep->Last_Mod_By;
|
||
$Last_Mod_Time=$ep->Last_Mod_Time;
|
||
|
||
|
||
}
|
||
}
|
||
|
||
|
||
?>
|
||
|
||
|
||
<div class="content-wrapper">
|
||
<!-- Content Header (Page header) -->
|
||
<section class="content-header">
|
||
<h1>
|
||
<!--title-->
|
||
<center>Edit Salary Payment Details</center>
|
||
|
||
</h1>
|
||
</section>
|
||
|
||
<section class="content">
|
||
<div style="text-align:right;">
|
||
<a href="<?php echo base_url() ?>emppayListings" class="btn btn-info" value="Back">Back</a>
|
||
</div>
|
||
<br/>
|
||
<div class="row">
|
||
<!-- left column -->
|
||
<div class="col-md-12">
|
||
<!-- general form elements -->
|
||
<div class="box box-primary">
|
||
|
||
<!-- form start-->
|
||
|
||
<form role="form" id="edit" action="<?php echo base_url() ?>emppaydate/editemppay" method="post">
|
||
<div class="box-body">
|
||
<div class="row">
|
||
|
||
<div class="col-md-4">
|
||
<div class="form-group">
|
||
<div class="form-group">
|
||
|
||
|
||
<span for="Pay_Data_ID">Pay Data ID</span>
|
||
<input type="text" class="form-control" readonly id="Pay_Data_ID" name="Pay_Data_ID" value="<?php echo $Pay_Data_ID; ?>">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<div class="col-md-4">
|
||
<div class="form-group">
|
||
<div class="form-group">
|
||
<span for="EmpID">Employee ID:</span>
|
||
<input type="text" class="form-control" readonly id="EmployeeID" name="EmpID" value="<?php echo $EmpID; ?>">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="col-md-4">
|
||
<div class="form-group">
|
||
<div class="form-group">
|
||
<span for="Basic_Pay">Basic Pay:</span><font color="Red">*</font>
|
||
<input type="text" class="form-control requried" id="Basic_Pay" name="Basic_Pay" value="<?php echo $Basic_Pay; ?>" pattern="[0-9]{4,6}" title="Minimum 4 digit,Maximum 6 Digit">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="row">
|
||
|
||
<div class="col-md-4">
|
||
<div class="form-group">
|
||
<div class="form-group">
|
||
<span for="HRA_Rate">HRA_Rate(%):</span><font color="Red">*</font>
|
||
<input type="text" class="form-control required" id="HRA_Rate" name="HRA_Rate" value="<?php echo $HRA_Rate; ?>" pattern="([0-9]{1,2}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 2 Digit">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="col-md-4">
|
||
<div class="form-group">
|
||
<div class="form-group">
|
||
<span for="OT_Rate">OT_Rate:</span><font color="Red">*</font>
|
||
<input type="text" class="form-control required" id="OT_Rate" name="OT_Rate" value="<?php echo $OT_Rate; ?>" pattern="[0-9]{1,4}"title="Minimum 1 digit,Maximum 4 Digit">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="col-md-4">
|
||
<div class="form-group">
|
||
<div class="form-group">
|
||
<span for="Allowances">Allowances:</span><font color="Red">*</font>
|
||
<input type="text" class="form-control required" id="Allowances" name="Allowances" value="<?php echo $Allowances; ?>" pattern="[0-9]{1,4}" title="Minimum 1 digit,Maximum 4 Digit">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<div class="row">
|
||
<div class="col-md-4">
|
||
<div class="form-group">
|
||
<div class="form-group">
|
||
<span for="PF_Rate">PF_Rate(%):</span><font color="Red">*</font>
|
||
<input type="text" class="form-control required" id="PF_Rate" name="PF_Rate" value="<?php echo $PF_Rate; ?>" pattern="([0-9]{1,2}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 2 Digit">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="col-md-4">
|
||
<div class="form-group">
|
||
<div class="form-group">
|
||
<span for="ESI_Rate">ESI_Rate(%):</span><font color="Red">*</font>
|
||
<input type="text" class="form-control required" id="ESI_Rate" name="ESI_Rate" value="<?php echo $ESI_Rate; ?>" pattern="([0-9]{1,2}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 2 Digit">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-md-4">
|
||
<div class="form-group">
|
||
<div class="form-group">
|
||
<span for ="Food_Allowances">Food Allowances:</span><font color="Red">*</font>
|
||
<input type="text" class="form-control" id="Food_Allowances" name="Food_Allowances" value="<?php echo $Food_Allowances; ?>" pattern="[0-9]{1,4}" title="Minimum 1 digit,Maximum 4 Digit">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<div class="form-group">
|
||
<!--<span for ="CreatedBy">Created By:</span>-->
|
||
<input type="hidden" class="form-control required" id="CreatedBy" name="CreatedBy" value="<?php echo $Created_By; ?>">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<div class="form-group">
|
||
<!--<span for ="Created_Time">Created Time:</span>-->
|
||
<input type="hidden" class="form-control required" id="Created_Time" name="Created_Time" value="<?php echo $Created_Time; ?>">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<div class="form-group">
|
||
<!--<span for ="Last_Mod_By">Last Modified By:</span>-->
|
||
<input type="hidden" class="form-control required" id="LastModifiedBy" name="LastModifiedBy" value="<?php echo $name; ?>">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<div class="form-group">
|
||
<!--<span for ="Last_Mod_Time">Last Modified Time:</span>-->
|
||
<input type="hidden" class="form-control required" id="Last Modified Time" name="Last Modified Time" value="<?php echo $Last_Mod_Time; ?>">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="row">
|
||
<div class="offset col-md-7">
|
||
<div class="form-group">
|
||
<input type="checkbox" name="is_Active" />Active state<br>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div><!--row completed div-->
|
||
|
||
<div id="content">
|
||
<div class="box-footer" style="text-align:right">
|
||
<input type="submit" class="btn btn-info" value="Submit"/>
|
||
<input type="reset" class="btn btn-info" value="Reset" />
|
||
</div>
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
</div>
|
||
|
||
</form>
|
||
|
||
<div class="col-md-4">
|
||
<?php
|
||
$this->load->helper('form');
|
||
$error = $this->session->flashdata('error');
|
||
if($error)
|
||
{
|
||
?>
|
||
<div class="alert alert-danger alert-dismissable">
|
||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||
<?php echo $this->session->flashdata('error'); ?>
|
||
</div>
|
||
<?php } ?>
|
||
<?php
|
||
$success = $this->session->flashdata('success');
|
||
if($success)
|
||
{
|
||
?>
|
||
<div class="alert alert-success alert-dismissable">
|
||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||
<?php echo $this->session->flashdata('success'); ?>
|
||
</div>
|
||
<?php } ?>
|
||
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<?php echo validation_errors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</section>
|
||
</div>
|
||
|
||
<script src="<?php echo base_url(); ?>assets/js/editUser.js" type="text/javascript"></script>
|