<!DOCTYPE html>
<html lang="en"> 

<head>
<?php ob_start(); ?>
<?php   require_once 'head_link.php'; ?>

</head>

<body>
 
<?php   require_once 'header1.php'; ?> 

<?php  require_once 'sidebar.php'; ?>


  <main id="main" class="main">

    <div class="pagetitle bg-light rounded p-2">
      <h1><i class="bi bi-file-earmark-minus-fill"></i> Employee Salary Report - Single <i class="bi bi-text-file-fill"></i> </h1>
      
    </div> 
  
	
  <section class="section">
      <div class="row">
	  
        <div class="col-lg-6 m-auto mt-3"> 

          <div class="card">
            <div class="card-body p-3">
				
				<form class="form-horizontal" action="php_action/EmpSalSingleReport.php" method="post" id="getOrderReportForm">
				
				<div class="row mb-3 mt-3">
                  <label for="CustId" class="col-sm-3 control-label">Employee Name</label>
                  <div class="col-sm-9">
                  <select style="width:100%;" class="form-control chosen-select" Id="EmpId" name="EmpId" required>
	<option value="#">Select Employee</option>
				      	<?php 
				      	$sql = "SELECT  id,emp_name FROM employees where user_id='".$_SESSION['id']."' and  status=1 ";
								$result = $con->query($sql);

								while($row = $result->fetch_array()) {
									echo "<option value='".$row[0]."'>".$row[0]." - ".$row[1]."</option>";
								} 
				      	?>
		</select> 
				  </div>
                </div>
				
				 
				
			 
                <div class="text-center">
				  <button type="submit" class="btn btn-primary" id="generateReportBtn"> <i class="bi bi-file-earmark-text"></i> Open Report</button>
                </div>
				  
				
				 
				</form>

		
			</div>
          </div>

        </div>
		
		 <div class="col-lg-12">
			<?php  require_once 'more-fals/hr-acc-report.php'; ?>
		 </div>
      </div>
    </section>

    <?php  require_once 'footer1.php'; ?>
	
	
<script src = "js/chosen.js"></script>
<script type = "text/javascript">
	$('.chosen-select').chosen({width: "100%"});
</script>

<script src="custom/js/report.js"></script>