<?php 
	$url 		= (isset($_REQUEST['url'])) ? $_REQUEST['url'] : "";
	$base_url 	= (isset($_REQUEST['base_url'])) ? $_REQUEST['base_url'] : "";
	$output 	= (isset($_REQUEST['output'])) ? $_REQUEST['output'] : "I";
	
	//if($url && $base_url ){
		require_once('generate_pdf.php');
		$name = "EVS-Salary-Slip"; 
		$imagePath = $base_url."/EVS_files/";
		$imagePath = "/";
		//$html = file_get_contents($url);
		$html = '				<h5 style="text-align:center">Pay Slip For Month January-2017</h5>
				<table width="600" align="center" colspan="1" rowspan="1" border="1" style="font-size:14px;">
					  <thead border="none">
						<tr height="120">
						  <th width="260" colspan="2" align="left">klsjdf</th>
						  <th width="400" colspan="3" > Goofy Info System Pvt Ltd.<br> First Floor,  <br>E-32, Sector - 8<br> Noida - 201301 (UP)</th>
						</tr>
						<tr height="120">
						  <th colspan="5" style="text-align:center;">Pay Slip for January-2017<br> <span style="font-size:12px;">Dharmendra Kumar  </span></th>
						</tr>
					  </thead >
				
					  <tbody style="margin-top:10px" rowspan="10px" >
						<tr>
						  <td style="width:150px;"><b>EMployee Code</b></td>
						  <td>EVS-628951</td>
						  
						  <td style="width:150px;"><b>Bank Name</b></td>
						  <td colspan="2">Kotak Mahindra Bank</td>
						</tr>
						<tr>
						  <td style="width:150px;"><b>Department</b></td>
						  <td>Web</td>
						  
						  <td style="width:150px;"><b>A/C No.</b></td>
						  <td colspan="2">8111701564</td>
						</tr>
						<tr>
						  <td style="width:150px;"><b>Designation</b></td>
						  <td>Sr.PHP Developer</td>
						  
						  <td><b>IFSC COde</b></td>
						  <td colspan="2">KKBK0004590</td>
						</tr>
						
						<tr>
						  <td style="width:150px;"><b>Date Of Joining</b></td>
						  <td>2015-11-17</td>
						  
						  <td><b>PAN No</b></td>
						  <td colspan="2">CBUPK6341P</td>
						</tr>
						<tr>
						  <td colspan="5"></td>
						</tr>
						  <tr>
							 <th style="width:150px;"> Attendance Details</th>
							 <th colspan="2"> Value</th>
							 <td style="width:100px;" colspan="2" rowspan="3" style="position: relative; text-align: center; top: 30px !important;">
								STANDARD DAYS-31</td>
						  </tr>
						  <tr>
							  <td style="width:150px;"><b>Leave Without Pay</b></td>
							  <td colspan="2">
								0 Days (-1 A + 0 LM + 1 HD + 0 WED)
							  </td>
						  </tr>
						  <tr>
							  <td style="width:150px;"><b>Paid Days</b></td>
							  <td colspan="2">
								31 Days (21 P + 9 WEP+ 1 LA)
								</td>
						  </tr>
						  
						  <tr>
								<td colspan="5"> </td>
							</tr>
						
						<tr >
						  <th style="width:120px;">OverTime</th>
						  <th style="width:120px;">Amount</th>
						  <th style="width:120px;">Earnings</th>
						  <th style="width:150px;">Amount</th>
						  <th style="width:150px;">Gross Salary</th>
						</tr>
						
						
						<tr>
						  <td rowspan="4"></td>
						  <td rowspan="4">
							  						  </td>
						  <td>Basic Salary</td>
						  <td>19550						  </td>
						  <td>19550						  </td>
						</tr>
						<tr>
						  <td>House Rent Allowance</td>
						  <td>9775						  </td>
						  <td>9775						  </td>
						</tr>
						
						<tr>
						  <td>Conveyance Allowance</td>
						  <td>1600</td>
						  <td>1600</td>
						</tr>
						<tr>
						  <td>Additional Allowance</td>
						  <td>9775						  </td>
						  <td>9775						  </td>
						</tr>
						<tr>
						  <th>Total Over Time</th>
						  <th></th>
						  <th>Total Earnings</th>
						  <th>40700</th>
						  <th>40700</th>
						</tr>
						
						<tr>
						  <th colspan="5"></th>
						</tr>
						
						<tr>
						  <th colspan="3">Total Over Time</th>
						  <th>0.00</th>
						  <th></th>
						</tr>
						
												
												
															
						<tr>
						  <th colspan="2"></th>
						  <th>Net Amount</th>
						  <th>40700</th>
						  <th>40700</th>
						</tr>
                        <tr>
						  <th>Net Amount in Word</th>
						  <th colspan="3">fourty thousand, seven hundred</th>
						</tr>
                        <!--<tr>
						  <th colspan="5" style="text-align: center;"><a href="/employers/pdfdownload/146">Download PDF</a></th>
						</tr>-->
						<tr>
						  <th colspan="5" style="color: brown">A=Absent, P=Present, LM=Late Mark, HD=Half Day, WEP=Weekend Payment, WED=Weekend Deduct, LA=Leave Adjustment</th>
						</tr>
					  </tbody>
					</table>
					
				  
            
            
            
            
            
            
            
     
          
';
		//$html = str_replace('./EVS_files/',$imagePath,$html);
		outputPdf($html,$output,$name); 	
	//}
	
	exit; 	
?>