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

$branch=$_SESSION['branch'];
$WorkAssignListings = $m->query("SELECT sec.*, cls.* FROM edu_adm_section_detail as sec LEFT JOIN edu_class_config as cls ON sec.class_id = cls.class_id where cls.class_id!='' and cls.branch_id='$branch' and sec.branch_id='$branch' ORDER BY cls.class_id asc");
 
     ?>


<!DOCTYPE html>
<html lang="en">
  <head>
    
    <title>Award List | EduPortal</title>
    <?php include('RootMe/css_links.php');?>
   
  </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; font-size: 16px;">
          
        <a href="<?php echo $_SESSION['dashboard'];?>">Dashboard </a> &nbsp; <i style="" class="fa fa-angle-double-right"></i>  &nbsp; 
              
         <a href="academic_settings.php">Academic Settings </a> &nbsp; <i style="" class="fa fa-angle-double-right"></i>  &nbsp; 
              
          Award Lists (<?php echo count($WorkAssignListings);?> Total classes)

      <br>  <br>


  <section class="add_sub_agent" id="table_sub_agent">
  <div class="container">

<table  class="table table-striped table-bordered" style="width:100%">
        <thead>
            <tr>

                <th width="10%" style="text-align:center;"> S.No </th>
                <th width="25%"> Class </th>
            <!--     <th width="10%" style="text-align:center;"> Students </th> -->
                <th width="45%" style="text-align:center;">Action </th>
                
            </tr>
        </thead>
        <tbody>


   
     
     <?php 

   
     $count=1;
     $std=0;
      foreach($WorkAssignListings as $WorkAssignListVal)
      { 

        
      $cls=$WorkAssignListVal['class_id'];
      $section=$WorkAssignListVal['section_id'];
      
       // getting strength of students 
       
    /*  $m->where("section_id", $section);
      $m->where("class_id", $cls);
      $m->where("status", 0);
      $m->where("branch_id", $_SESSION['branch']);*/
      /*$m->where("session_id", $_SESSION['current_session']);*/
     /* $total=$m->get("edu_student_details");
      $std+=count($total);*/
      ?>

        <tr>


                  
                  <td style="text-align:center;"> <?php echo $count; $count++;?> </td>

                  <td> <?php echo  $WorkAssignListVal['Class_Name']." - ".$WorkAssignListVal['section_name'] ; ?> </td>

                  <!-- <td  style="text-align:center;"> <?php echo count($total);?> </td> -->
                  
                  <td style="text-align:center;"> 


                <a style="padding: 6px 8px; font-size:14px;" data-toggle="modal" data-target="#ModalOnePage<?php echo $WorkAssignListVal['class_id'];?>-<?php echo $WorkAssignListVal['section_id'];?>"  href="#" class="btn btn-success">
                  Print Single Subject One Page </a>
         

                 <a style="padding: 6px 8px; font-size:14px;" data-toggle="modal" data-target="#Modal<?php echo $WorkAssignListVal['class_id'];?>-<?php echo $WorkAssignListVal['section_id'];?>"  href="#" class="btn btn-success">
                  Print Single Subject Award List </a>



                 <a style="padding: 6px 8px; font-size:14px;" data-toggle="modal" data-target="#ModalAll<?php echo $WorkAssignListVal['class_id'];?>-<?php echo $WorkAssignListVal['section_id'];?>"  href="#" class="btn btn-success">
                   Print All Subjects Award List </a>

                   <a style="padding: 6px 8px; font-size:14px;" data-toggle="modal" data-target="#ModalExamSheet<?php echo $WorkAssignListVal['class_id'];?>-<?php echo $WorkAssignListVal['section_id'];?>"  href="#" class="btn btn-success">
                   Print Exam Attendance Sheet </a>



                   <!-- Modal exam sheet -->
            <div id="ModalExamSheet<?php echo $WorkAssignListVal['class_id'];?>-<?php echo $WorkAssignListVal['section_id'];?>" class="modal fade" role="dialog">
              <div class="modal-dialog">

                <!-- Modal content-->
                <div class="modal-content">

                   
               <form action="<?php echo DOMAIN.AgentDirectory;?>parent/InsertMe.php" method="post" enctype="multipart/form-data">

                  <input type="hidden" name="action" value="ExamAttendanceSheetParameter">
             
                  <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                    <h4 class="modal-title"> Choose The Parametters To Display in Print Report </h4>
                  </div>
                  <div class="modal-body">
                  <!-- <label class="container1">Check All<input  type="checkbox" class="checkAll"/><span class="checkmark"></span></label> -->
                         
                  <input type="hidden" name="class_id" value="<?php echo $WorkAssignListVal['class_id'];?>" />
                  <input type="hidden" name="section" value="<?php echo $WorkAssignListVal['section_id'];?>" />
                  <!-- <input type="hidden" name="session" value="<?php echo $_SESSION['current_session'];?>" /> -->


                     <div class="form-group">

                     <label style="text-align: left; float: left;"> <b>Session </b> </label>  

                    
  
                   </div>
                 
                   <div class="form-group">

                   <label style="text-align: left; float: left;"> <b>Select Order By:</b>     </label>  

                    <select name="orderBy" style="width: 562px;" id="orderBy" class="form-control" >
              
                       <option  value="alphabetic">Alphabetic</option>
                       <option  value="RollNoWise">Roll No Wise</option>
                       <option  value="AdmNoWise">Adm No Wise</option>
                       
                    </select>
  
                  </div>


                   <div class="form-group">

                     <label style="text-align: left; float: left;"> <b>Show </b>     </label>  

                      <select name="show" style="width: 562px;" id="orderBy" class="form-control" >
                
                         <option  value="roll">Roll No</option>
                         <option  value="adm">Admission No</option>
                         
                      </select>
  
                   </div>


                      <div class="form-group">

                     <label style="text-align: left; float: left;"> <b>Session </b> </label>  

                      <select name="session" class="form-control" >                             

                <?php

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

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


                        <?php
                } ?>

                 </select>
  
                   </div>
              


                  </div>
                  <div class="modal-footer" style="text-align: right;">
                    <input type="submit" class="btn btn-primary" checked value="Print" />
                  </div>


                   </form>
                </div>

              </div>
            </div>
            <!-- Modal -->





                  <!-- Modal All -->
            <div id="ModalAll<?php echo $WorkAssignListVal['class_id'];?>-<?php echo $WorkAssignListVal['section_id'];?>" class="modal fade" role="dialog">
              <div class="modal-dialog">

                <!-- Modal content-->
                <div class="modal-content">

                   
               <form action="<?php echo DOMAIN.AgentDirectory;?>parent/InsertMe.php" method="post" enctype="multipart/form-data">

                  <input type="hidden" name="action" value="AwardListAllParameter">
             
                  <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                    <h4 class="modal-title"> Choose The Parametters To Display in Print Report </h4>
                  </div>
                  <div class="modal-body">
                  <!-- <label class="container1">Check All<input  type="checkbox" class="checkAll"/><span class="checkmark"></span></label> -->
                         
                  <input type="hidden" name="class_id" value="<?php echo $WorkAssignListVal['class_id'];?>" />
                  <input type="hidden" name="section" value="<?php echo $WorkAssignListVal['section_id'];?>" />
                  <!-- <input type="hidden" name="session" value="<?php echo $_SESSION['current_session'];?>" /> -->


                    <!--  <div class="form-group">

                     <label style="text-align: left; float: left;"> <b>Session </b> </label>  

                    
  
                   </div> -->
                 
                   <div class="form-group">

                   <label style="text-align: left; float: left;"> <b>Select Order By:</b>     </label>  

                    <select name="orderBy" style="width: 562px;" id="orderBy" class="form-control" >
              
                       <option  value="alphabetic">Alphabetic</option>
                       <option  value="RollNoWise">Roll No Wise</option>
                       <option  value="AdmNoWise">Adm No Wise</option>
                       
                    </select>
  
                  </div>


                   <div class="form-group">

                     <label style="text-align: left; float: left;"> <b>Show </b>     </label>  

                      <select name="show" style="width: 562px;" id="orderBy" class="form-control" >
                
                         <option  value="roll">Roll No</option>
                         <option  value="adm">Admission No</option>
                         
                      </select>
  
                   </div>


                      <div class="form-group">

                     <label style="text-align: left; float: left;"> <b>Session </b> </label>  

                      <select name="session" class="form-control" >                             

	              <?php

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

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


	                      <?php
	              } ?>

          			 </select>
  
                   </div>


                  </div>
                  <div class="modal-footer" style="text-align: right;">
                    <input type="submit" class="btn btn-primary" checked value="Print" />
                  </div>


                   </form>
                </div>

              </div>
            </div>
            <!-- Modal -->





                  <!-- Modal -->
            <div id="Modal<?php echo $WorkAssignListVal['class_id'];?>-<?php echo $WorkAssignListVal['section_id'];?>" class="modal fade" role="dialog">
              <div class="modal-dialog">

                <!-- Modal content-->
                <div class="modal-content">

                   
               <form action="<?php echo DOMAIN.AgentDirectory;?>parent/InsertMe.php" method="post" enctype="multipart/form-data">

                  <input type="hidden" name="action" value="AwardListParameter">
             
                  <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                    <h4 class="modal-title"> Choose The Parametters To Display in Print Report </h4>
                  </div>
                  <div class="modal-body">
                

                  <input type="hidden" name="class_id" value="<?php echo $WorkAssignListVal['class_id'];?>" />
                  <input type="hidden" name="section" value="<?php echo $WorkAssignListVal['section_id'];?>" />
                  <!-- <input type="hidden" name="session" value="<?php echo $_SESSION['current_session'];?>" /> -->
                 
                       <div class="form-group">

                         <label style="text-align: left; float: left;"> <b>Select Order By:</b>     </label>  

                          <select name="orderBy" style="width: 562px;" id="orderBy" class="form-control" >
                    
                             <option  value="alphabetic">Alphabetic</option>
                             <option  value="RollNoWise">Roll No Wise</option>
                             <option  value="AdmNoWise">Adm No Wise</option>
                             
                          </select>
        
                        </div>




                   <div class="form-group">

                     <label style="text-align: left; float: left;"> <b>Show </b>     </label>  

                      <select name="show" style="width: 562px;" id="orderBy" class="form-control" >
                
                         <option  value="roll">Roll No</option>
                         <option  value="adm">Admission No</option>
                         
                      </select>
  
                   </div>


                   <div class="form-group">

                     <label style="text-align: left; float: left;"> <b>Session </b> </label>  

                      <select name="session" class="form-control" >                             

	              <?php

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

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


	                      <?php
	              } ?>

          			 </select>
  
                   </div>


                    <div class="form-group">

                     <label style="text-align: left; float: left;"> <b>Show No Of Test In Award List </b>     </label>  

                      <select name="show_no_of_test" style="width: 562px;" id="orderBy" class="form-control" >
                
                         <option  value="1">1</option>
                         <option  value="2">2</option>
                         
                      </select>
  
                   </div>


                   <div class="form-group">

                     <label style="text-align: left; float: left;"> <b>Add Blank Column </b>     </label>  

                      <select name="add_column" style="width: 562px;" id="orderBy" class="form-control" >
                
                         <option  value="NO">NO</option>
                         <option  value="YES">YES</option>
                         
                      </select>
  
                   </div>


                  </div>
                  <div class="modal-footer" style="text-align: right;">
                    <input type="submit" class="btn btn-primary" checked value="Print" />
                  </div>


                   </form>
                </div>

              </div>
            </div>
            <!-- Modal -->



            <!-- Modal One Page -->
            <div id="ModalOnePage<?php echo $WorkAssignListVal['class_id'];?>-<?php echo $WorkAssignListVal['section_id'];?>" class="modal fade" role="dialog">
              <div class="modal-dialog">

                <!-- Modal content-->
                <div class="modal-content">

                   
               <form action="<?php echo DOMAIN.AgentDirectory;?>parent/InsertMe.php" method="post" enctype="multipart/form-data">

                  <input type="hidden" name="action" value="AwardListParameterOnePage">
             
                  <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                    <h4 class="modal-title"> Choose The Parametters To Display in Print Report </h4>
                  </div>
                  <div class="modal-body">
                

                  <input type="hidden" name="class_id" value="<?php echo $WorkAssignListVal['class_id'];?>" />
                  <input type="hidden" name="section" value="<?php echo $WorkAssignListVal['section_id'];?>" />
                  <!-- <input type="hidden" name="session" value="<?php echo $_SESSION['current_session'];?>" /> -->
                 
                       <div class="form-group">

                         <label style="text-align: left; float: left;"> <b>Select Order By:</b>     </label>  

                          <select name="orderBy" style="width: 562px;" id="orderBy" class="form-control" >
                    
                             <option  value="alphabetic">Alphabetic</option>
                             <option  value="RollNoWise">Roll No Wise</option>
                             <option  value="AdmNoWise">Adm No Wise</option>
                             
                          </select>
        
                        </div>




                   <div class="form-group">

                     <label style="text-align: left; float: left;"> <b>Show </b>     </label>  

                      <select name="show" style="width: 562px;" id="orderBy" class="form-control" >
                
                         <option  value="roll">Roll No</option>
                         <option  value="adm">Admission No</option>
                         
                      </select>
  
                   </div>


                   <div class="form-group">

                     <label style="text-align: left; float: left;"> <b>Session </b> </label>  

                      <select name="session" class="form-control" >                             

                <?php

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

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


                        <?php
                } ?>

                 </select>
  
                   </div>


                    <div class="form-group">

                     <label style="text-align: left; float: left;"> <b>Show No Of Test In Award List </b>     </label>  

                      <select name="show_no_of_test" style="width: 562px;" id="orderBy" class="form-control" >
                
                         <option  value="1">1</option>
                         <option  value="2">2</option>
                         
                      </select>
  
                   </div>


                  </div>
                  <div class="modal-footer" style="text-align: right;">
                    <input type="submit" class="btn btn-primary" checked value="Print" />
                  </div>


                   </form>
                </div>

              </div>
            </div>
            <!-- Modal One Page -->


                  </td>

              

              </tr>





              <?php
      }   ?>

 
           
        </tbody>
        
    </table>

    <br><br>


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

           
          </div>
        </div>

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

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