
<?php ob_start(); ?> 
<!DOCTYPE html>
<html lang="en"> 

<head>
<?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-card-checklist"></i> Students Attendance Report - <i class="bi bi-calendar"></i> Single</h1>
      
    </div> 

<section class="section">
      <div class="row">
	  
        <div class="col-lg-6">

          <div class="card">
            <div class="card-body p-5">
				
				<form class="form-horizontal" action="php_action/atendance-by-date-single.php" method="post" id="getOrderReportForm">
				
				<div class="row mb-3 mt-5">
                  <label for="CustId" class="col-sm-3 control-label">Students Name</label>
                  <div class="col-sm-9">
                  <select style="width:100%;" class="form-control chosen-select" Id="StuId" name="StuId" required>
		<option value="" required>Select Student</option>
				      	<?php 
				      	$sql = "SELECT customer_id, customer_name FROM customer where status=1 and member_id='".$_SESSION['id']."'
						";
								$result = $con->query($sql);

								while($row = $result->fetch_array()) {
									echo "<option value='".$row[0]."'>".$row[1]."</option>";
								} // while
								
				      	?>
		</select> 
				  </div>
                </div> 
				
				<div class="row mb-3">
                  <label for="startDate" class="col-sm-3 col-form-label">Start Date</label>
                  <div class="col-sm-9">
                    <input type="text" class="form-control" id="startDate" name="startDate" placeholder="Start Date" />
                  </div>
                </div>
				
				 <div class="row mb-3">
                  <label for="endDate" class="col-sm-3 col-form-label">End Date</label>
                  <div class="col-sm-9">
                   <input type="text" class="form-control" id="endDate" name="endDate" placeholder="End Date" />
                  </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>
    </section>
	
	
	  </main>
	
<?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>
 