PDF generater added
This commit is contained in:
parent
a65b5f80d7
commit
671171a72f
@ -22,9 +22,10 @@ $(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
/
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
<div class="content-wrapper">
|
<div class="content-wrapper">
|
||||||
<!-- Content Header (Page header) -->
|
<!-- Content Header (Page header) -->
|
||||||
@ -38,36 +39,6 @@ $(function() {
|
|||||||
<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 col-md-offset-2">
|
|
||||||
|
|
||||||
|
|
||||||
<span>Employee</span>
|
|
||||||
<select id="Employee" name="Employee" class="form-control select2" type="text" class="form-control">
|
|
||||||
<option value="-1">Select Employee</option>
|
|
||||||
<?php
|
|
||||||
if(!empty($Emplist))
|
|
||||||
{
|
|
||||||
foreach ($Emplist as $rl)
|
|
||||||
{
|
|
||||||
$Emp = $rl->EmpId;
|
|
||||||
|
|
||||||
if ($_POST['Employee'] == $Emp)
|
|
||||||
{
|
|
||||||
|
|
||||||
echo "<option value=\"".$Emp."\" selected=\"selected\">".$Emp.' - '. $rl->Fname ."</option>";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
echo "<option value=\"".$Emp."\">".$Emp.' - '. $rl->Fname ."</option>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<input type="checkbox" name="All" id="All" > Select All<br>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<span for="selectmonth">Select Month</span>
|
<span for="selectmonth">Select Month</span>
|
||||||
<select id="PayOn" name="PayOn" class="form-control select2" style="width: 100%;">
|
<select id="PayOn" name="PayOn" class="form-control select2" style="width: 100%;">
|
||||||
@ -94,6 +65,37 @@ $(function() {
|
|||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-4 col-md-offset-2">
|
||||||
|
|
||||||
|
|
||||||
|
<span>Employee</span>
|
||||||
|
<select id="Employee" name="Employee" class="form-control select2" type="text" class="form-control">
|
||||||
|
<option value="-1">Select Employee</option>
|
||||||
|
<?php
|
||||||
|
if(!empty($Emplist))
|
||||||
|
{
|
||||||
|
foreach ($Emplist as $rl)
|
||||||
|
{
|
||||||
|
$Emp = $rl->EmpId;
|
||||||
|
|
||||||
|
if ($_POST['Employee'] == $Emp)
|
||||||
|
{
|
||||||
|
|
||||||
|
echo "<option value=\"".$Emp."\" selected=\"selected\">".$Emp.' - '. $rl->Fname ."</option>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo "<option value=\"".$Emp."\">".$Emp.' - '. $rl->Fname ."</option>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<input type="checkbox" name="All" id="All" > Select All<br>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row" >
|
<div class="row" >
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$PayOn = '';
|
$PayOn = '';
|
||||||
@ -38,7 +37,14 @@
|
|||||||
$LessAdvance = '';
|
$LessAdvance = '';
|
||||||
$DeptName = '';
|
$DeptName = '';
|
||||||
$LossofPay = '0.00';
|
$LossofPay = '0.00';
|
||||||
|
$RecCount = '';
|
||||||
|
|
||||||
|
if(!empty($Count))
|
||||||
|
{
|
||||||
|
$RecCount = $Count;
|
||||||
|
}
|
||||||
|
|
||||||
|
//echo $RecCount;
|
||||||
if(!empty($PayDetails))
|
if(!empty($PayDetails))
|
||||||
{
|
{
|
||||||
foreach ($PayDetails as $Pay)
|
foreach ($PayDetails as $Pay)
|
||||||
@ -50,8 +56,15 @@ if(!empty($PayDetails))
|
|||||||
$EmpID = $Pay->EmpID;
|
$EmpID = $Pay->EmpID;
|
||||||
$FirstName = $Pay->FName;
|
$FirstName = $Pay->FName;
|
||||||
$LastName = $Pay->Lname;
|
$LastName = $Pay->Lname;
|
||||||
$DateofBirth = $Pay->Dob;
|
|
||||||
$DateofJoining = $Pay->DOJ;
|
$DoB = $Pay->Dob;
|
||||||
|
$DoJ = $Pay->DOJ;
|
||||||
|
|
||||||
|
$from = new DateTime($DoB);
|
||||||
|
$dt = new DateTime($DoJ);
|
||||||
|
$DateofBirth = $from ->format('d-m-y');
|
||||||
|
$DateofJoining = $dt ->format('d-m-y');
|
||||||
|
|
||||||
$Designation = $Pay->Designation;
|
$Designation = $Pay->Designation;
|
||||||
$PANNo =$Pay->Pan;
|
$PANNo =$Pay->Pan;
|
||||||
$BankAccountNo = $Pay->BankAccountNumber;
|
$BankAccountNo = $Pay->BankAccountNumber;
|
||||||
@ -141,8 +154,15 @@ if(!empty($PayDetails))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($RecCount > 0)
|
||||||
|
{
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<div style= "page-break-before:always;"></div >
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<div style="border:1px solid">
|
<div style="border:1px solid">
|
||||||
<p> <center><h3>Siddharth Industries</h3>
|
<p> <center><h3>Siddharth Industries</h3>
|
||||||
Survey No: 168/1C3,
|
Survey No: 168/1C3,
|
||||||
@ -225,7 +245,7 @@ Pin code : 602026.
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td width="100px;">
|
<td width="100px;">
|
||||||
Bank Advance :
|
Balance Advance :
|
||||||
</td>
|
</td>
|
||||||
<td width="300px;">
|
<td width="300px;">
|
||||||
<?php echo $BalanceAdvance ?>
|
<?php echo $BalanceAdvance ?>
|
||||||
|
|||||||
@ -41,10 +41,7 @@
|
|||||||
<div class="box-header">
|
<div class="box-header">
|
||||||
<input type="file" id="userfile" name="userfile"/>
|
<input type="file" id="userfile" name="userfile"/>
|
||||||
<label for="photo">Select Excel File to upload<br/>(only .xls)</label>
|
<label for="photo">Select Excel File to upload<br/>(only .xls)</label>
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width:40%">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row" align="right">
|
<div class="row" align="right">
|
||||||
<input type="submit" class="btn btn-info" value="upload" />
|
<input type="submit" class="btn btn-info" value="upload" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user