<?php include("parent/callMe.php"); ?>
<?php  include("sessioncheck.php"); ?>
<?php

$branch=$_SESSION['branch'];

 
  // settings month details

    $default;
    
    if($_GET["month"]!=NULL ){
      $default= $_GET["month"];
    }
    else{
      $default= date("m");
    }
  
 ?>


<!DOCTYPE html>
<html lang="en">
  <head>
    
    <title>Institute Attendance Summary | EduPortal</title>
   <?php include('RootMe/css_links.php');?>
   <style type="text/css">
    
    tr th{padding:1%;color:black;}

   </style>
  

  </head>

  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
     
            <?php include('RootMe/sidebar.php');?>

              <?php include('RootMe/header.php');?>
     
        <!-- page content -->
          <div class="right_col" role="main">
          <div class="" style="background-color: white;">
           
              <a href="<?php echo $_SESSION['dashboard'];?>">Dashboard </a> &nbsp; <i style="" class="fa fa-angle-double-right"></i>  &nbsp; 

     <a href="mark_attendanceReport_list.php">Attendance Reports </a> &nbsp; <i style="" class="fa fa-angle-double-right"></i>  &nbsp; 
          
     Institute Attendance Summary

          <br><br>

  <section class="">
  <div class="container">
  <div class="inner_banner_bg">
        
    <div class="clearfix"></div>
    </div>
  </div>
</section>
<br>
<section class="add_sub_agent" id="table_sub_agent">
  <div class="container">
   <div class="box_visa_form">
    <div class="table-responsive" style="min-height:320px;padding:3%;">



 <form class="form-style-7" action="print_classwise_attendance_history.php" method="Get"  enctype="multipart/form-data">

      
              
              <div class="col-md-2 col-sm-12 col-xs-12" style="padding: 8px;">
                <div class="form-group ">
                  <label class="required">Session</label>
                    <select name="session" class="form-control"  style="height:40px;">

                              
                        <?php

                       $match;
                        if(!isset($_REQUEST['session'])){
                          $match=$_SESSION['current_session'];
                        }else { $match=$_REQUEST['session']; }
                       
                                 
                        $WorkAssignList = $m->get("edu_session_config");
                        foreach($WorkAssignList as $WorkAssignListVal)
                        { ?>

                           <option <?php if($match==$WorkAssignListVal['session_id']){echo 'selected';}?> value="<?php echo $WorkAssignListVal['session_id']; ?>"><?php echo $WorkAssignListVal['session_year']; ?></option>


                                <?php
                        } ?>

                    </select>
                </div>
              </div>

              <div class="col-md-3 col-xs-12" style="padding: 8px;">
                <div class="form-group ">
                  <label class="required"> Attendance Type</label>
            
                    <select name="attendance" id="attendance" class="form-control" style="height:40px;" >
              
                       <option <?php if($_REQUEST['attendance']=='P'){echo "Selected";}?> value="P">Present</option>

                       <option <?php if($_REQUEST['attendance']=='A'){echo "Selected";}?> value="A">Absent</option>

                       <option <?php if($_REQUEST['attendance']=="L"){echo "Selected";}?>  value="L">Leave</option>

                       <option <?php if($_REQUEST['attendance']=="LA"){echo "Selected";}?> value="LA">Late</option>

                       <option <?php if($_REQUEST['attendance']=="SL"){echo "Selected";}?> value="SL">Short Leave</option>
                       
                     </select>
                  
                </div>
              </div>
              


              <div class="col-md-2 col-sm-12 col-xs-12" style="padding: 8px;">
                <div class="form-group ">
                <label class="required">Month</label>
                <select style="height:40px;" name="month" id="month" class="form-control"  required>

                              <option value="">Select Month</option>
                        

                        <?php
                        $WorkAssignList = $m->get("eduportal_month_config");
                        foreach($WorkAssignList as $WorkAssignListVal)
                        { ?>

                           <option <?php if($default==$WorkAssignListVal['Month_Id']){echo 'selected';}?> value="<?php echo $WorkAssignListVal['Month_Id']; ?>"><?php echo $WorkAssignListVal['Month_Name']; ?></option>


                                <?php
                        } ?>

                    </select>
              </div>
            </div>
             
 

              <div class="col-md-2 " style="padding:2px;">

                
    
           
                <div class="form-group ">
                   
                <button type="submit" formtarget="_blank" class="btn btn-primary" style="margin-top: 34px;">Search Attendance</button>
                </div>        

              </div>

              

  <a href="mark_attendanceReport_list.php?<?php echo session_id().session_id().session_id().session_id().session_id(); ?>" class="btn btn-info" style=" float: right;margin-top: 34px;"> Attendance Reports</a>




  
</form>



    </div>





     </div>
  </div>
  <div class="clearfix"></div>
</section>


           
          </div>
        </div>

            </div>
          </div>
        </div>
        <!-- /page content -->
  

 
<?php include('RootMe/js_linksscript.php');?>

  </body>
</html>
