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

    $branch=$_SESSION['branch'];
    $sql = "SELECT * FROM  eduportal_performance_school_grades  WHERE branch_id='$branch' order by remarks asc ";
    $WorkAssignListings = $m->query($sql);
//print_r($sql);
    if(count($WorkAssignListings)<=0){
      
      $WorkAssignListings = $m->get("eduportal_performance_grades");
    }
 
     ?>


<!DOCTYPE html>
<html lang="en">
  <head>
    
    <title>Performance Criteria | 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="row" 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="academic_settings.php">Academic Settings </a> &nbsp; <i style="" class="fa fa-angle-double-right"></i>  &nbsp; 
              
          Academic Performance Criteria



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

 <div class="" style="margin-top:10px;">
      <form class="" action="monthly_challan.php" enctype="multipart/form-data" method="get">
      
         

          <input type="hidden" value="<?php echo session_id().session_id().session_id().session_id().session_id(); ?>" name="session" />



          <div class="clearfix"></div>
          <div class="panel-body">
          
         
            <div class="clearfix"></div>
          </div>
        </div>
      </form>
      <div class="clearfix"></div>
    </div>
    <br>






<div class="col-md-2 "> </div>

<div style="float:left;" class="col-md-8 ">

     
          
          <?php  if(isset($_SESSION['grades'])){?>


            <div class="alert alert-success" id="msg">
             <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
              <strong>Success!</strong> Data is updated successfully...
            </div>


          <?php  unset($_SESSION['grades']); }?>

  
    
          <?php  if(isset($_SESSION['error_msg'])){?>

          <div class="col-md-10">

             <div id="error"  class="alert alert-warning alert-dismissible">
                      <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
                       <strong>Warning !</strong> You have already saved the challan of this month !!!
              </div>

           </div>

         <?php  unset($_SESSION['error_msg']); }?>

        

<h3> Academic Performance Criteria  </h3>

<form class="form-style-7" style="font-size: 14px;" action="<?php echo DOMAIN.AgentDirectory;?>parent/InsertMe.php" method="post" enctype="multipart/form-data">
    
    <input type="hidden" name="action" value="UpdateOtherPerformance" />

    <table style="width:100%">
     
          
         <tr>
          <td style="width:50%"> <label> Remarks  </label>  </td>
          <td style="width:50%"> <label> Marks  </label>  </td>
          
        </tr>
   
     
     
     
<?php

  foreach($WorkAssignListings as $WorkAssignValue){
 ?>     
          
  <tr>

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

                  <input type="text" style="width:100%;"  name="remarks[]" value="<?php echo $WorkAssignValue['remarks']; ?>" autofocus="autofocus" required>
              
              </div>
       </td>

 

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

                  <input type="number" style="width:100%;margin-left: 6px;"  name="marks[]" value="<?php echo $WorkAssignValue['marks']; ?>" autofocus="autofocus" required>
              </div>
      </td>

                    
                
    </tr>



<?php

  }
 ?> 


     <tr>


         <td colspan="3" >
           <input type="submit" value="Save Criteria" class="btn btn-primary" >
         </td>

     </tr>
          
    </table>

</form>

<br><br>
</div>

<div class="col-md-2 "> </div>



    


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

           
          </div>
        </div>

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

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