<?php namespace Dompdf;
session_start();
include('session.php');
$con=mysqli_connect("sql310.epizy.com","epiz_24136231","XXXXXX","epiz_24136231_test");
//require_once('../config/conn.php');
require_once ('dompdf/autoload.inc.php');
ob_start();
error_reporting(0);
?>
<?php $html='
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=Generator content="Microsoft Word 14 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin-top:0in;
margin-right:0in;
margin-bottom:8.0pt;
margin-left:0in;
line-height:107%;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{font-family:"Calibri","sans-serif";}
.MsoPapDefault
{margin-bottom:8.0pt;
line-height:107%;}
@page WordSection1
{size:13.0in 8.5in;
margin:48.25pt .5in .5in .75in;}
div.WordSection1
{page:WordSection1;}
-->
.rTable {
display: block;
width: 110%;
text-align:center;
padding-left:180px;
}
.rTableHeading, .rTableBody, .rTableFoot, .rTableRow{
clear: both;
}
.rTableHead, .rTableFoot{
/*background-color: #DDD;*/
font-weight: bold;
width:50px;
}
.rTableCell, .rTableHead {
border: 1px solid #999999;
float: left;
height: 17px;
overflow: hidden;
padding: 1px 1.8%;
/*padding-left:1px;*/
width: 10%;
vertical-align:middle;
}
.rTable:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.t{
font-weight:bold;
font:bold;
}
.tab{
padding-right:20px;
padding-left:20px;
/*font-weight:bold;
font:bold;*/
}
</style>
</head>
<!--body lang=EN-US-->
<div class="container">
<div class="row-fluid">
<div class="block">
<div align="center">
<!--img width="40" height="60" id="Picture 1" src="print/wblogo.png"><br--><span class="t" style="text-indent:inherit; text-transform:uppercase; font-weight:bold;">Govt. of West Bengal</span><br><b style="font-weight:bold;">OFFICE OF THE SUB INSPECTOR OF SCHOOLS</b><br><b>NALHATI WEST CIRCLE, BIRBHUM</b></div><br>'?>
<?php //include('session.php');
//$session_id=$_SESSION['id']; //echo $session_id;
$query= mysqli_query($con,"select * from cust_details where id ='$session_id'");if($row = mysqli_fetch_array($query)){
$user = $row['teachername'];$pan = $row['pan'];//echo $user;
if($row['teachername'] == 'ABC XYZ'){ $user = 'BRATIN MITRA';$pan = $row['pan'];}
}
//$user = $_GET['id'];echo $user;
$student_query2 = mysqli_query($con,"select * from teacher where NAMEOFTHETEACHER = '". $user ."' and MONTH = '". $_GET['month'] ."' and YEAR = '". $_GET['year'] ."'");
if($row2 = mysqli_fetch_array($student_query2)){ $sch = $row2['NAMEOFTHESCHOOL'];}
$sc = mysqli_query($con,"select * from school where NAMEOFTHESCHOOL = '". $sch ."'");
if($rc = mysqli_fetch_array($sc)){ $ud = $rc['UDISECODE'];}
$monthNum = $_GET['month'];
$monthName = date("F", mktime(0, 0, 0, $monthNum, 10));
//echo $monthName;
?>
<div class="pull-center" align="center">
<b>PAY SLIP FOR THE MONTH OF <?php echo mb_strtoupper($monthName) . ','.$_GET['year'];?></b></p>
<p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal'><b><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'> </span></b></p>
<p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal'><b><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'> </span></b></p>
<p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal'><b><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'> </span></b></p>
<div class="rTable" align="left" style="border:0;width:730px;">
<div class="rTableRow">
<div class="rTableCell" align="left" style="width:auto; border:hidden; font-size:14px; font-weight:bold;"><b>EMPLOYEE NAME</b>: <?php echo $row2['NAMEOFTHETEACHER'];?></div>
<div class="rTableCell" align="right" style="width:auto; border:hidden; font-size:14px; padding-right:8px;"><b style="text-align:right; font-weight:bold;"> EMPLOYEE ID</b>: <?php echo $row['empid'];?></div>
<!--div class="rTableCell" align="left" style="border:hidden;"></div-->
</div>
<div class="rTableRow">
<div class="rTableCell" align="left" style="width:auto; border:hidden; font-size:13px;"><b>SCHOOL NAME</b>: <?php echo $row2['NAMEOFTHESCHOOL'];?>(<b Style="font-size:13px;">UDISE:<?php echo $ud;?></b>)</div>
<div class="rTableCell" align="right" style="width:auto; border:hidden; font-size:14px; padding-right:58px;"><b>DESIGNATION</b>: <?php echo $row2['DESIGNATION'];?></div>
<!--div class="rTableCell" align="left" style="border:hidden;;"></div-->
</div>
<?php $d = mysqli_query($con,"select * from teacher where NAMEOFTHETEACHER = '". $user ."' and MONTH = '". $_GET['month'] ."' and YEAR = '". $_GET['year'] ."'");
$r = mysqli_fetch_array($d);
if($row['category'] == 'A') { if($r['BASIC'] == 32100 || $r['BASIC'] == 33100|| $r['BASIC'] == 34100|| $r['BASIC'] == 35100|| $r['BASIC'] == 36200|| $r['BASIC'] == 37300|| $r['BASIC'] == 38400|| $r['BASIC'] == 39600|| $r['BASIC'] == 40800|| $r['BASIC'] == 42000|| $r['BASIC'] == 43300|| $r['BASIC'] == 44600|| $r['BASIC'] == 45900|| $r['BASIC'] == 47300|| $r['BASIC'] == 48700|| $r['BASIC'] == 50200|| $r['BASIC'] == 51700|| $r['BASIC'] == 53300|| $r['BASIC'] == 54900|| $r['BASIC'] == 56500|| $r['BASIC'] == 58200|| $r['BASIC'] == 59900|| $r['BASIC'] == 61700|| $r['BASIC'] == 63600|| $r['BASIC'] == 65500|| $r['BASIC'] == 67500|| $r['BASIC'] == 69500|| $r['BASIC'] == 71600|| $r['BASIC'] == 73700|| $r['BASIC'] == 75900|| $r['BASIC'] == 78200|| $r['BASIC'] == 80500|| $r['BASIC'] == 82900){$level = 'LEVEL-10';}else{$level = 'LEVEL-9';}}else{$level = 'LEVEL-7';}
if($row['category'] == 'B') {if($r['BASIC'] == 24700){$cell = 'CELL-1';} else if($r['BASIC'] == 25400){$cell = 'CELL-2';} else if($r['BASIC'] == 26200){$cell = 'CELL-3';} else if($r['BASIC'] == 27000){$cell = 'CELL-4';} else if($r['BASIC'] == 27800){$cell = 'CELL-5';} else if($r['BASIC'] == 29500){$cell = 'CELL-6';} else if($r['BASIC'] == 30400){$cell = 'CELL-7';} else if($r['BASIC'] == 31300){$cell = 'CELL-8';} else if($r['BASIC'] == 32200){$cell = 'CELL-9';} else if($r['BASIC'] == 33200){$cell = 'CELL-10';} else if($r['BASIC'] == 34200){$cell = 'CELL-11';} else if($r['BASIC'] == 35200){$cell = 'CELL-12';} else if($r['BASIC'] == 36300){$cell = 'CELL-13';} else if($r['BASIC'] == 37400){$cell = 'CELL-14';} else if($r['BASIC'] == 38500){$cell = 'CELL-15';} else if($r['BASIC'] == 39700){$cell = 'CELL-16';} else if($r['BASIC'] == 42100){$cell = 'CELL-19';}
}else if($level == 'LEVEL-10') {
if($r['BASIC'] == 32100){$cell = 'CELL-1';} else if($r['BASIC'] == 33100){$cell = 'CELL-2';} else if($r['BASIC'] == 34100){$cell = 'CELL-3';} else if($r['BASIC'] == 35100){$cell = 'CELL-4';} else if($r['BASIC'] == 36200){$cell = 'CELL-5';} else if($r['BASIC'] == 37300){$cell = 'CELL-6';} else if($r['BASIC'] == 38400){$cell = 'CELL-7';} else if($r['BASIC'] == 39600){$cell = 'CELL-8';} else if($r['BASIC'] == 40800){$cell = 'CELL-9';} else if($r['BASIC'] == 42000){$cell = 'CELL-10';} else if($r['BASIC'] == 43300){$cell = 'CELL-11';} else if($r['BASIC'] == 44600){$cell = 'CELL-12';} else if($r['BASIC'] == 45900){$cell = 'CELL-13';} else if($r['BASIC'] == 47300){$cell = 'CELL-14';} else if($r['BASIC'] == 48700){$cell = 'CELL-15';} else if($r['BASIC'] == 50200){$cell = 'CELL-16';} else if($r['BASIC'] == 51700){$cell = 'CELL-17';} else if($r['BASIC'] == 53300){$cell = 'CELL-18';} else if($r['BASIC'] == 54900){$cell = 'CELL-19';} else if($r['BASIC'] == 56500){$cell = 'CELL-20';} else if($r['BASIC'] == 58200){$cell = 'CELL-21';} else if($r['BASIC'] == 59900){$cell = 'CELL-22';} else if($r['BASIC'] == 61700){$cell = 'CELL-23';} else if($r['BASIC'] == 63600){$cell = 'CELL-24';} else if($r['BASIC'] == 65500){$cell = 'CELL-25';} else if($r['BASIC'] == 67500){$cell = 'CELL-26';}else if($r['BASIC'] == 69500){$cell = 'CELL-27';}else if($r['BASIC'] == 71600){$cell = 'CELL-28';}else if($r['BASIC'] == 73700){$cell = 'CELL-29';}else if($r['BASIC'] == 75900){$cell = 'CELL-30';}else if($r['BASIC'] == 78200){$cell = 'CELL-31';}else if($r['BASIC'] == 80500){$cell = 'CELL-32';}else if($r['BASIC'] == 82900){$cell = 'CELL-33';}
}else if($r['BASIC'] == 28900){$cell = 'CELL-1';} else if($r['BASIC'] == 29800){$cell = 'CELL-2';} else if($r['BASIC'] == 30700){$cell = 'CELL-3';} else if($r['BASIC'] == 31600){$cell = 'CELL-4';} else if($r['BASIC'] == 32500){$cell = 'CELL-5';} else if($r['BASIC'] == 33500){$cell = 'CELL-6';} else if($r['BASIC'] == 34500){$cell = 'CELL-7';} else if($r['BASIC'] == 35500){$cell = 'CELL-8';} else if($r['BASIC'] == 36600){$cell = 'CELL-9';} else if($r['BASIC'] == 37700){$cell = 'CELL-10';} else if($r['BASIC'] == 38800){$cell = 'CELL-11';} else if($r['BASIC'] == 40000){$cell = 'CELL-12';} else if($r['BASIC'] == 41200){$cell = 'CELL-13';} else if($r['BASIC'] == 42400){$cell = 'CELL-14';} else if($r['BASIC'] == 43700){$cell = 'CELL-15';} else if($r['BASIC'] == 45000){$cell = 'CELL-16';} else if($r['BASIC'] == 46400){$cell = 'CELL-17';} else if($r['BASIC'] == 47800){$cell = 'CELL-18';} else if($r['BASIC'] == 49200){$cell = 'CELL-19';} else if($r['BASIC'] == 50700){$cell = 'CELL-20';} else if($r['BASIC'] == 52200){$cell = 'CELL-21';} else if($r['BASIC'] == 53800){$cell = 'CELL-22';} else if($r['BASIC'] == 55400){$cell = 'CELL-23';} else if($r['BASIC'] == 57100){$cell = 'CELL-24';} else if($r['BASIC'] == 58800){$cell = 'CELL-25';}
?>
<div class="rTableRow">
<div class="rTableCell" align="left" style="width:auto; border:hidden; font-size:14px;"><b>LEVEL</b>:<?php echo $level;?> <b>CELL</b>:<?php echo $cell;?>
<div class="rTableCell" align="left" style="width:auto; border:hidden; font-size:14px; padding-right:22px;"><b style="text-align:right; font-weight:bold;">PAN</b>: <?php echo $row['pan'];?></div>
<div class="rTableCell" align="left" style="border:hidden;"></div>
</div>
<br><br>
<?php //echo $_GET['month'];
$student_query = mysqli_query($con,"select * from teacher where NAMEOFTHETEACHER = '". $user ."' and MONTH = '". $_GET['month'] ."' and YEAR = '". $_GET['year'] ."'");
while($row = mysqli_fetch_array($student_query)){
?>
<?php //$dt = date('d/m/Y'); if(isset($_POST['change'])){$dt = $_POST['fdate'];}
//$student_query1 = mysql_query("select * from teacher")or die(mysql_error());
//while($row1 = mysql_fetch_array($student_query1)){ $tamt = $tamt + $row1['Amount'];}
$number = $row['NETPAY'];
$no = round($number);
$point = round($number - $no, 2) * 100;
$hundred = null;
$digits_1 = strlen($no);
$i = 0;
$str = array();
$words = array('0' => '', '1' => 'One', '2' => 'Two',
'3' => 'Three', '4' => 'Four', '5' => 'Five', '6' => 'Six',
'7' => 'Seven', '8' => 'Eight', '9' => 'Nine',
'10' => 'Ten', '11' => 'Eleven', '12' => 'Twelve',
'13' => 'Thirteen', '14' => 'Fourteen',
'15' => 'Fifteen', '16' => 'Sixteen', '17' => 'Seventeen',
'18' => 'Eighteen', '19' =>'Nineteen', '20' => 'Twenty',
'30' => 'Thirty', '40' => 'Forty', '50' => 'Fifty',
'60' => 'Sixty', '70' => 'Seventy',
'80' => 'Eighty', '90' => 'Ninety');
$digits = array('', 'Hundred', 'Thousand', 'Lakh', 'Crore');
while ($i < $digits_1) {
$divider = ($i == 2) ? 10 : 100;
$number = floor($no % $divider);
$no = floor($no / $divider);
$i += ($divider == 10) ? 1 : 2;
if ($number) {
$plural = (($counter = count($str)) && $number > 9) ? 's' : null;
$hundred = ($counter == 1 && $str[0]) ? ' and ' : null;
$str [] = ($number < 21) ? $words[$number] .
" " . $digits[$counter] . $plural . " " . $hundred
:
$words[floor($number / 10) * 10]
. " " . $words[$number % 10] . " "
. $digits[$counter] . $plural . " " . $hundred;
} else $str[] = null;
}
$str = array_reverse($str);
$result = implode('', $str);
$points = ($point) ?
"." . $words[$point / 10] . " " .
$words[$point = $point % 10] : '';
//echo $result . "Rupees ";// . $points . " Paise";
//$date = new DateTime();
//echo $date->format('l, F jS, Y');Three Thousand and Four hundred only
//echo $_POST['school'];?>
<!--div class="Table">
<div class="Title">
<p>This is a Table</p>
</div>
<div class="Heading">
<div class="Cell">
<p>Heading 1</p>
</div>
<div class="Cell">
<p>Heading 2</p>
</div>
<div class="Cell">
<p>Heading 3</p>
</div>
</div>
<div class="Row">
<div class="Cell">
<p>Row 1 Column 1</p>
</div>
<div class="Cell">
<p>Row 1 Column 2</p>
</div>
<div class="Cell">
<p>Row 1 Column 3</p>
</div>
</div>
<div class="Row">
<div class="Cell">
<p>Row 2 Column 1</p>
</div>
<div class="Cell">
<p>Row 2 Column 2</p>
</div>
<div class="Cell">
<p>Row 2 Column 3</p>
</div>
</div>
</div-->
<div class="rTable" align="center" style="width:1270px;">
<div class="rTableRow" align="center">
<div class="rTableHead" align="center" style="height:37px;font-size:14px; vertical-align:middle;"><strong>EARNING(Rs)</strong></div>
<div class="rTableHead" style="font-weight: bold; height:37px;font-size:14px; vertical-align:middle;"><span style="font-weight: bold; height:37px;">DEDUCTION(Rs)</span></div>
<div class="rTableHead" style="height:37px;font-size:14px; vertical-align:middle;">RECOVERIES OF LOAN(Rs)</div>
<div class="rTableHead" style="height:37px;font-size:14px; vertical-align:middle;">OUT/ACCT.DED (Rs)</div>
</div>
<div class="rTableRow">
<div class="rTableCell" style="height:157px; line-height:20px;">
<table border="0" style="border-collapse:collapse; padding-left:-1px; text-align:left;" align="left" width="102">
<!--tr>
<th colspan="2">65</th>
<th colspan="2">40</th>
<th colspan="2">20</th>
</tr-->
<tr align="left" style="text-align:left;">
<td colspan="0" align="left" style="text-align:left; padding-left:-10px; font-weight:bold;font-size:14px;">BASIC</td><td colspan="0" style="padding-left:20px;" align="right"><?php echo $row['BASIC']; ?></td></tr>
<?php if ($row2['DESIGNATION'] == 'HT'){?>
<tr><td style="text-align:left; padding-left:-10px; font-weight:bold;font-size:14px;">ADDL.ALLOW</td><td align="right"><?php echo $row['ADDLALLOW']; ?></td></tr>
<?php }//else{ ?>
<!--tr align="left" style="text-align:left;">
<td colspan="0" align="left" style="text-align:left; padding-left:-10px; font-weight:bold;font-size:14px;">BASIC</td><td colspan="0" style="padding-left:25px;" align="right"><?php //echo $row['BASIC']; ?></td></tr-->
<?php //}?>
<tr><td style="text-align:left; padding-left:-10px; font-weight:bold;font-size:14px;">DA</td><td align="right"><?php echo $row['DA']; ?></td></tr>
<tr><td style="text-align:left; padding-left:-10px; font-weight:bold;font-size:14px;">HRA</td><td align="right"><?php echo $row['HRA']; ?></td></tr>
<tr><td style="text-align:left; padding-left:-10px; font-weight:bold;font-size:14px;">MA</td><td align="right"><?php echo $row['MA']; ?></td></tr>
<tr><td style="text-align:left; padding-left:-10px; font-weight:bold;font-size:14px;">CA</td><td align="right"><?php echo $row['CONVALLOW']; ?></td></tr>
<tr><td style="text-align:left; padding-left:-10px; font-weight:bold;font-size:14px;">CPF</td><td align="right"><?php echo $row['CPF']; ?></td></tr>
<?php //if($_GET['year'] == '2018'){?>
<tr><td style="text-align:left; padding-left:-10px; font-weight:bold;font-size:14px;">IR</td><td align="right"><?php echo $row['IR']; ?></td></tr>
<?php //}?>
</table>
<!--b>PAY</b> <?php echo $row['PAYINPAYBAND']; ?><br>
<b>GP</b> <?php echo $row['GRADEPAY']; ?><br>
<b>DA</b> <?php echo $row['DA']; ?><br>
<b>HRA</b> <?php echo $row['HRA']; ?><br>
<b>MA</b> <?php echo $row['MA']; ?><br>
<?php //if($_GET['year'] == '2018'){?>
<b>IR</b> <?php echo $row['IR']; ?>
<?php //}?>-->
</div>
<div class="rTableCell" style="height:157px; line-height:20px;">
<table border="0" style="border-collapse:collapse; padding-left:1px; text-align:left;" align="left" width="102">
<tr align="left" style="text-align:left;">
<td colspan="0" align="left" style="text-align:left; padding-left:-10px; font-weight:bold;font-size:14px;">GPF</td><td colspan="0" style="padding-left:20px;" align="right"><?php echo $row['GPF']; ?></td></tr>
<tr align="left" style="text-align:left;">
<td colspan="0" align="left" style="text-align:left; padding-left:-10px; font-weight:bold;font-size:14px;">PF LOAN</td><td colspan="0" style="padding-left:20px;" align="right"><?php echo $row['PFLOAN']; ?></td></tr>
<tr align="left" style="text-align:left;">
<td colspan="0" align="left" style="text-align:left; padding-left:-10px; font-weight:bold;font-size:14px;">CPF DEDUCT</td><td colspan="0" style="padding-left:20px;" align="right"><?php echo $row['CPFD']; ?></td></tr>
<tr><td style="text-align:left; padding-left:-10px; font-weight:bold;font-size:14px;">PT</td><td colspan="0" style="padding-left:20px;" align="right"><?php echo $row['PTAX']; ?></td></tr>
<tr><td style="text-align:left; padding-left:-10px; font-weight:bold;font-size:14px;">IT</td><td colspan="0" style="padding-left:20px;" align="right"><?php echo $row['ITAX']; ?></td></tr>
<?php /*if($_GET['year'] == '2019'){
if($row['GSLI'] != 0){*/?>
<tr><td style="text-align:left; padding-left:-10px; font-weight:bold;font-size:14px;">GSLI</td><td colspan="0" style="padding-left:20px;" align="right"><?php echo $row['GSLI']; ?></td></tr>
<tr><td style="text-align:left; padding-left:-10px; font-weight:bold;font-size:14px;">OVERDRAWN</td><td colspan="0" style="padding-left:20px;" align="right"><?php echo $row['OVERDRAWN']; ?></td></tr>
<?php //}}?>
</table>
</div>
<div class="rTableCell" style="height:157px; line-height:20px; background-image:"><br><!--img src="images/DRAFT_ICON.png" width="80" height="50" /-->
<!--img src="images/DRAFT_ICON.png" align="left" height="30" width="50" /--></div>
<div class="rTableCell" style="height:157px; line-height:20px;"></div>
<!--div class="rTableCell"><a href="tel:0123456785">0123 456 785</a></div>
<div class="rTableCell"><img src="images/check.gif" alt="checked" /></div>
</div-->
<div class="rTableRow">
<div class="rTableCell" align="left" style="width:651px;font-size:14px;"><b style="padding-left:-18px;font-size:14px;">Total:</b> <b><?php echo $row['GROSS'];?></b> <b><?php echo ($row['GPF'] + $row['PFLOAN'] + $row['CPFD'] + $row['ITAX'] + $row['PTAX'] + $row['GSLI'] + $row['OVERDRAWN']);?></b>
</div>
<!--div class="rTableCell"><a href="tel:9876532432">9876 532 432</a></div>
<div class="rTableCell"><img src="images/check.gif" alt="checked" /></div-->
</div>
<div class="rTableRow">
<div class="rTableCell" align="left" style="width:651px;font-size:14px;"><b style="padding-left:-18px;font-size:14px;">GROSS PAY: <?php echo $row['GROSS'];?></b>
<?php //echo ($row['GROSS'] + $row['PTAX']);?>
</div>
<!--div class="rTableCell"><a href="tel:9876532432">9876 532 432</a></div>
<div class="rTableCell"><img src="images/check.gif" alt="checked" /></div-->
</div>
<div class="rTableRow">
<div class="rTableCell" align="left" style="width:651px;font-size:14px; height:auto"><b style="padding-left:-18px;font-size:14px;">NET PAY: <?php echo $row['NETPAY'];?> (<?php echo $result;?> Only)</b><br><b style="padding-left:-18px;font-size:14px;">Transferred to <?php echo $row['BANK'];?> Account no <?php echo $row['ACCOUNTNO'];?> IFS Code <?php echo $row['IFSC'];}?></b></div>
<!--div class="rTableCell"><a href="tel:9876532432">9876 532 432</a></div>
<div class="rTableCell"><img src="images/draft-water.png" alt="checked" /></div-->
</div><br><br><br><br><br>
<div align="left" style="font-size:11px;">GP: Grade Pay, DA: Dearness Allowance, HRA: House Rent Allowance, MA: Medical Allowance, CA: Conveyance Allowance,<br><br>
CPF: Contributory Provident Fund, GPF: Govt. Provident Fund, PT: Professional Tax, IT: Income Tax,<br><br>
GSLI: Group Savings Linked Insurance, IR: Interim Relief.</div><br>
<br><br><br><br><br><br><br><br><br><br><br><br>
<div align="left"><b>Disclaimer:</b> This is a computer generated Pay Slip and hence does not require any signature.</div> <BR>
<div align="left">________________________________________________________________________________________</div>
<div class="rTable">
<div class="rTableRow">
<div class="rTableCell" style="border:0;" align="center"> </div>
<div class="rTableCell" style="border:0; padding-left:80px;" align="center">Page-1 </div>
<div class="rTableCell" style="border:0; width:auto; padding-left:100px; text-align:left;">Date of Generation:<?php echo date('d/m/Y');?></div>
</div>
</div>
</div>
</div>
</html>
<?php
$html = ob_get_clean();
$dompdf = new Dompdf();
$dompdf->setPaper('A4', 'portrait');
$dompdf->load_html($html);
//$dompdf->render();
$cpdf = $dompdf->getCanvas()->get_cpdf();
$cpdf->setEncryption($pan,$pan,'print','modify','copy','add');
$pdf = 'PAYSLIP FOR '.$row2['NAMEOFTHETEACHER'].' OF '.$row2['NAMEOFTHESCHOOL'].'.pdf';
#Output the generated PDF to Browser
//$infoB4 = $cpdf->objects[$cpdf->arc4_objnum]['info'];
//$dompdf->stream($cpdf);
$dompdf->stream($pdf);
//$cpdf->objects[$cpdf->arc4_objnum]['info'] = $infoB4;
$output = $dompdf->output();
//$html = ob_get_clean();
?>
<script type="text/javascript">window.close();</script>