Payslip Production changes
This commit is contained in:
parent
b1730c5f32
commit
e6c116b6eb
@ -1,3 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
$Empcnt = '';
|
||||||
|
|
||||||
|
if(!empty($EmpCount))
|
||||||
|
{
|
||||||
|
foreach ($EmpCount as $Emp)
|
||||||
|
{
|
||||||
|
$Empcnt = $Emp->EmpCount;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
<div class="content-wrapper">
|
<div class="content-wrapper">
|
||||||
<section class="content">
|
<section class="content">
|
||||||
<!-- Dashboard for Account department-->
|
<!-- Dashboard for Account department-->
|
||||||
@ -22,18 +33,17 @@
|
|||||||
<span class="info-box-icon bg-yellow"><i class="ion ion-ios-people-outline"></i></span>
|
<span class="info-box-icon bg-yellow"><i class="ion ion-ios-people-outline"></i></span>
|
||||||
<div class="info-box-content">
|
<div class="info-box-content">
|
||||||
<span class="info-box-text">Employees</span>
|
<span class="info-box-text">Employees</span>
|
||||||
<span class="info-box-number">33</span>
|
<span class="info-box-number"><?php echo $Empcnt ?></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</center>
|
</center>
|
||||||
<div>
|
<div>
|
||||||
<center>
|
<marquee direction="up" scrollamount="2" height="150px;"> <font color="Brown"> <h1><b>Guidelines:</b></h1><h3> # PaySlip menu in header has two sub menu ( 1.Upload Salary , 2.PaySlip Generator)<br/><br/>
|
||||||
<h1><b>Guidiness:</b></h1><h3> # PaySlip menu in header has two sub menu ( 1.Upload Salary , 2.PaySlip Generator)<br/>
|
# Upload salary menu is used to upload the Salary Excel file into the database<br/><br/>
|
||||||
# Upload salary menu is to upload the salary excel file in database<br/>
|
# Payslip generator menu is to generate the salary slip for individual Employess or All Employees</h3>
|
||||||
# Payslip generator menu is to generate the salary details for indivigual or all employee</h3>
|
</center> </font></marquee>
|
||||||
</center>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
@ -37,6 +39,7 @@ $(function() {
|
|||||||
success:function(result) {
|
success:function(result) {
|
||||||
if(result)
|
if(result)
|
||||||
{
|
{
|
||||||
|
$("#Employee").empty();
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
$("#Employee").append(result);
|
$("#Employee").append(result);
|
||||||
|
|
||||||
@ -59,56 +62,64 @@ $(function() {
|
|||||||
<div class="content-wrapper">
|
<div class="content-wrapper">
|
||||||
<!-- Content Header (Page header) -->
|
<!-- Content Header (Page header) -->
|
||||||
<section class="content-header">
|
<section class="content-header">
|
||||||
<h1><center>Siddharth Industries - PaySlip Generator</center> </h1>
|
<h1>
|
||||||
|
<center>Siddharth Industries - PaySlip Generator</center>
|
||||||
|
|
||||||
|
</h1>
|
||||||
</section>
|
</section>
|
||||||
<section class="content">
|
<section class="content">
|
||||||
<div class="row" style="border:2px dotted; padding:5%">
|
<div class="row" style="border:2px dotted; padding:5%">
|
||||||
<form id="PayslipGenerator" action="<?php echo base_url() ?>PrintPdf" method="post" role="form" >
|
<form id="PayslipGenerator" action="<?php echo base_url() ?>PrintPdf" method="post" role="form" >
|
||||||
<div class="row" >
|
<div class="row" >
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<span for="selectmonth">Select Month</span>
|
|
||||||
<select id="PayOn" name="PayOn" class="form-control select2" style="width: 100%;">
|
<span for="selectmonth">Select Month</span>
|
||||||
<option value="-1">Select Payon Month</option>
|
<select id="PayOn" name="PayOn" class="form-control select2" style="width: 100%;">
|
||||||
<?php
|
<option value="-1">Select Payon Month</option>
|
||||||
if(!empty($Payon))
|
<?php
|
||||||
{
|
if(!empty($Payon))
|
||||||
foreach ($Payon as $rl)
|
{
|
||||||
|
foreach ($Payon as $rl)
|
||||||
|
{
|
||||||
|
$Pay =$rl->PayOn;
|
||||||
|
|
||||||
|
if ($_POST['PayOn'] == $Pay)
|
||||||
{
|
{
|
||||||
$Pay =$rl->PayOn;
|
|
||||||
|
|
||||||
if ($_POST['PayOn'] == $Pay)
|
|
||||||
{
|
|
||||||
|
|
||||||
echo "<option value=\"".$Pay."\" selected=\"selected\">".$Pay."</option>";
|
echo "<option value=\"".$Pay."\" selected=\"selected\">".$Pay."</option>";
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
echo "<option value=\"".$Pay."\">".$Pay."</option>";
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
else
|
||||||
?>
|
{
|
||||||
|
echo "<option value=\"".$Pay."\">".$Pay."</option>";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div id="content"></div>
|
<div id="content"></div>
|
||||||
<div class="col-md-4 col-md-offset-2">
|
<div class="col-md-4 col-md-offset-2">
|
||||||
<div class="row">
|
|
||||||
|
|
||||||
<span>Employee</span>
|
<span>Employee</span>
|
||||||
<select id="Employee" name="Employee" class="form-control select2" type="text" class="form-control">
|
<select id="Employee" name="Employee" class="form-control select2" type="text" class="form-control">
|
||||||
<option value="-1">Select Employee</option>
|
<option value="-1">Select Employee</option>
|
||||||
</select>
|
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
|
||||||
<input type="checkbox" name="All" id="All" > Select All<br>
|
<input type="checkbox" name="All" id="All" > Select All<br>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="row" >
|
||||||
|
|
||||||
<div class="col-md-4 col-md-offset-6" align = "right">
|
<div class="col-md-4 col-md-offset-6" align = "right">
|
||||||
<input type="submit" class="btn btn-info" value="Generate" />
|
<input type="submit" class="btn btn-info" value="Generate" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<?php
|
<?php
|
||||||
$this->load->helper('form');
|
$this->load->helper('form');
|
||||||
$error = $this->session->flashdata('error');
|
$error = $this->session->flashdata('error');
|
||||||
@ -137,9 +148,9 @@ $(function() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user