<?php 
	session_start();
	
 
	
	
	include('../pertial_page/pertial_function.php');
	
	include('../config/database_connection.php');
 							  
	$connecttion = getSQlConection();

    $query = "  SELECT * FROM dbo.tblLeaveApplication WHERE AppId = $_REQUEST[element_id] ";
     
	$result  = mssql_query($query);
	closeSQLConnection($connecttion);
	
 
	$row = mssql_fetch_array($result);
	
	 
 
  
	$display = "<div  class='pageBreakHide' id='pageBreakTag0' ></div>";
	$display .= "<div class='show' id='page0' align='left'> ";
	$display .= "<div   class='page_body' align='left'> ";
	$display .= "<table style='width: 100%;font-family: Calibri; font-size:15px;' >";
 
	
        	$display .= "
			<tr>
				<td style='width:.5in;' >&nbsp;</td>
				<td style='height:.3in;' >&nbsp;</td>
				<td style='width:.5in;' >&nbsp;</td>
			</tr>
			
			<tr>
				<td>&nbsp;</td>
				<td align='center'> 
				<div style='font-family: Calibri; font-size:22px;' >Cross World Group</div>
				<div style='font-family: Calibri; font-size:22px;'  >HR & OD Department</div>
				<div style='font-family: Calibri; font-size:18px;'  >LEAVE APPLICATION FORM</div>
				
				</td>
				<td>&nbsp;</td>
			</tr>	
			
				<tr>
				<td>&nbsp;</td>
				<td align='left'> 
					<br /><br /> 
				
				 		<table style='width: 70%;font-family: Calibri; font-size:12px;font-weight:bold;' align='left' >
							<tr>
								<td style='width: 38%;' align='left'>
								&nbsp;
								</td>
								<td style='width: 2%;' align='left'>
								&nbsp;
								</td>
								<td style='width: 60%;' align='left'>
								&nbsp;
								</td>
							</tr>
							<tr>
								<td>
									Pin
								</td>
								<td>
									:
								</td>
								<td>
									$_SESSION[Emp_Id]
								</td>
							</tr>
							<tr>
								<td>
									Name
								</td>
								<td>
									:
								</td>
								<td>
									$_SESSION[user_name]
								</td>
							</tr>
							
							<tr>
								<td>
									Department
								</td>
								<td>
									:
								</td>
								<td>
									$_SESSION[Dept_Name]
								</td>
							</tr>
							
							<tr>
								<td>
									Designation
								</td>
								<td>
									:
								</td>
								<td>
									$_SESSION[Desig_Name]
								</td>
							</tr>
							<tr>
								<td>
									Joining Date
								</td>
								<td>
									:
								</td>
								<td>
									$_SESSION[Join_Date]
								</td>
							</tr>
							<tr>
								<td>
									Company
								</td>
								<td>
									:
								</td>
								<td>
									$_SESSION[Comp_Name]
								</td>
							</tr>
							
							
				
							 
							
						</table>
				</td>
				<td>&nbsp;</td>
			</tr>
			
			
			<tr>
					<td >
					&nbsp;
					</td>
					<td>
					<br />
						<table style='width: 70%;font-family: Calibri; font-size:12px;font-weight:bold' align='left' >
							<tr>
								<td style='width:10%;'>
									Leave&nbsp;&nbsp; 
								</td>
								<td style='width:5%; border:1px solid #000;width:30px;'>
									 &nbsp;CL 
								</td>
								<td style='width:20%;' align='center'>
								For&nbsp;&nbsp; 
								</td>
								<td style='width:35%;'>
								Days From/On :&nbsp;&nbsp;
								</td>
								<td style='width:30%;'>
									To :&nbsp;&nbsp;
								</td>
							</tr>
							<tr>
								<td colspan='5'>
									 &nbsp;&nbsp; 
								</td>
						 
							</tr>
							<tr>
								<td colspan='5'>
									Reasons : &nbsp;&nbsp; 
								</td>
						 
							</tr>
							<tr>
								<td colspan='5'>
									 &nbsp;&nbsp; 
								</td>
						 
							</tr>
						</table>
					</td>
					<td >
					&nbsp;
					</td>
				</tr>
			
			
			
			<tr>
				<td>&nbsp;</td>
				<td align='left'> 
 					<table style='width:100%; font-family: Calibri; font-size:12px;font-weight:bold;border:1px solid #000;' align='left' cellspacing='0' cellpadding='0' border='0' >
						<tr>
							<td style='width:17%;' align='center'><br />
								&nbsp;Addres While on leave 
							</td>
							<td style='width:18%; border-bottom:1px solid #000;'>
								&nbsp;
							</td>
							<td style='width:15%; border-bottom:1px solid #000;'>
								&nbsp;
							</td>
							<td style='width:25%; border-bottom:1px solid #000;'>
								&nbsp;
							</td>
							<td style='width:25%; border-left:1px solid #000;'>
								&nbsp;
							</td>
						</tr>
						<tr>
							<td  style='border-bottom:1px solid #000;'>
								&nbsp;
							</td>
							<td  style='border-bottom:1px solid #000;'>
								&nbsp;
							</td>
							<td align='center' > <br />
								&nbsp;Contact Phone No
							</td>
							<td style='border-bottom:1px solid #000;'>
								&nbsp;
							</td>
							<td  style='width:25%;border-left:1px solid #000; border-bottom:1px solid #000;'>
								&nbsp;
							</td>
						</tr>
						<tr>
							<td>
								&nbsp;
							</td>
							<td>
								&nbsp;
							</td>
							<td>
								&nbsp;
							</td>
							<td>
								&nbsp;
							</td>
							<td  style='width:25%;border-left:1px solid #000;'>
								&nbsp;
							</td>
						</tr>
						<tr>
							<td>
								&nbsp;
							</td>
							<td>
								&nbsp;
							</td>
							<td>
								&nbsp;
							</td>
							<td>
								&nbsp;
							</td>
							<td  style='width:25%;border-left:1px solid #000;' align='center'>
								Applicant Signature <br /> With Date
							</td>
						</tr>
					</table>
				
				</td>
				<td>&nbsp;</td>
			</tr>	
			
	
	
	
			<tr>
				<td>&nbsp;</td>
				<td align='left'> 
 
					&nbsp;
				</td>
				<td>&nbsp;</td>
			</tr>	
			
			
			
			<tr>
				<td>&nbsp;</td>
				<td align='left'> 
 					
 
		
		
	
					 <table  style='width:100%; font-family: Calibri; font-size:12px;font-weight:bold;border:1px solid #000;' align='left' cellspacing='0' cellpadding='0' border='0'>
            <tr>
                <td rowspan='4' style='border-right:1px solid #000; width:20%;' align='center' >
                    &nbsp; Leave position <br />(To be filled by HR <br /> Department</td>
                <td style='border-right:1px solid #000; border-bottom:1px solid #000; width:15%;' >
                    &nbsp;</td>
                <td style='border-right:1px solid #000; border-bottom:1px solid #000; width:15%;'  align='center' >
                    &nbsp;<br /> CL (days) as On</td>
                <td style='border-right:1px solid #000; border-bottom:1px solid #000; width:15%;'  align='center'  >
                    &nbsp;<br /> SL (days) as On</td>
                <td style='border-bottom:1px solid #000; width:15%;'  align='center' >
                    &nbsp;<br /> AL (days) as On</td>
                <td rowspan='2'  style='border-left:1px solid #000;  border-bottom:1px solid #000; width:20%;'>
                    &nbsp;</td>
            </tr>
            <tr>
                <td style='border-right:1px solid #000; border-bottom:1px solid #000;'  align='left'  >
                    &nbsp;<br /> &nbsp;At Credit </td>
                <td style='border-right:1px solid #000; border-bottom:1px solid #000;'>
                    &nbsp;</td>
                <td style='border-right:1px solid #000; border-bottom:1px solid #000;'>
                    &nbsp;</td>
                <td style='border-bottom:1px solid #000;'>
                    &nbsp;</td>
            </tr>
            <tr>
                <td style='border-right:1px solid #000; border-bottom:1px solid #000;' align='left' >
                    &nbsp;<br /> &nbsp;Leave Apply For</td>
                <td style='border-right:1px solid #000; border-bottom:1px solid #000;' >
                    &nbsp;</td>
                <td style='border-right:1px solid #000; border-bottom:1px solid #000;'>
                    &nbsp;</td>
                <td style=' border-bottom:1px solid #000;'>
                    &nbsp;</td>
                <td rowspan='2' style='border-left:1px solid #000;' align='center' >
                    &nbsp; Authorised <br /> Signature</td>
            </tr>
            <tr>
                <td style='border-right:1px solid #000; ' align='left' >
                    &nbsp;<br />&nbsp;Balance</td>
                <td style='border-right:1px solid #000; ' >
                    &nbsp;</td>
                <td style='border-right:1px solid #000; ' >
                    &nbsp;</td>
                <td   >
                    &nbsp;</td>
            </tr>
        </table>
					
					
				
				</td>
				<td>&nbsp;</td>
			</tr>	
			


			
			<tr>
				<td>&nbsp;</td>
				<td align='left'> 
 
				
				</td>
				<td>&nbsp;</td>
			</tr>
			
			
			
			<tr>
				<td>&nbsp;</td>
				<td align='left'> 
 
 					<table  style='width:100%; font-family: Calibri; font-size:12px;font-weight:bold;border:1px solid #000;' align='left' cellspacing='0' cellpadding='0' border='0'>
            <tr>
                <td style='width:20%;' >
                    &nbsp;Special Remarks : <br /><br /><br /><br /></td>
                <td	>
                    &nbsp;</td>
 					</tr>
					</table>
				
				</td>
				<td>&nbsp;</td>
			</tr>
			
			
			<tr>
				<td>&nbsp;</td>
				<td align='left'> 
 					<br /><br /><br /><br />
				
				</td>
				<td>&nbsp;</td>
			</tr>
			
			
			<tr>
				<td>&nbsp;</td>
				<td align='left'> 
 					<table  style='width:100%; font-family: Calibri; font-size:12px;font-weight:bold;' align='left' cellspacing='0' cellpadding='0' border='0'>
            	<tr>
                	<td style='width:30%;' align='left' >
						Recommended/Not Recommended
                     </td>
                	<td	style='width:40%;'>
                    &nbsp;</td>
					   <td	 style='width:30%;' align='right'>
					   Approved/Not Approved
                    &nbsp;</td>
					
 					</tr>
					
					<tr>
					<td align='left' >
				 
                     </td>
                	<td	 >
                    <br /><br /><br /><br /><br /><br /><br /> <br /><br /></td>
					   <td	  align='right'>
			 
                    &nbsp;</td>
					
 					</tr>

					<tr>
					<td align='center' >
				 	---------------------------
					<br />
					Signature
					<br />
					Functional Head
                     </td>
                	<td	 >
                    &nbsp;</td>
					   <td align='center'>
			 				---------------------------
					<br />
					Signature
					<br />
					Department Head
                    &nbsp;</td>
					
 					</tr>
					
					
				</table>
				
				</td>
				<td>&nbsp;</td>
			</tr>
			
			
			
			
			<tr>
				<td>&nbsp;</td>
				<td align='left' style='border-bottom:1px solid #000;' > 
 					<br /><br /><br /> 
				
				</td>
				<td>&nbsp;</td>
			</tr>
			
			
			<tr>
				<td>&nbsp;</td>
				<td align='left'> 
 					Print date : 
				
				</td>
				<td>&nbsp;</td>
			</tr>
	
 </table>
		 
	</div>";
		
	$display .= "</div><input type='hidden' value='page0' id='current_page' />";
	$display .= "<input type='hidden' value='1' id='page_counter' />";
	
	
	echo $display;
?>

 



 
 
 

 



 
 
 

 