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



   $session;

   if($_REQUEST['session']!=NULL){

      $session=$_REQUEST['session'];
      
    }else {
      
      $session=$_SESSION['current_session'];
    }

    $pageName=basename($_SERVER['PHP_SELF']);
    
     $m->where("page_name", $pageName);
     $video = $m->get("eduportal_modules_pages_detail");
    
 //echo $video[0]['video_url'];


$branch=$_SESSION['branch'];
$WorkAssignListings = $m->query("SELECT * FROM edu_class_config where class_id!='' and branch_id='$branch' ORDER BY class_id asc");

?>

<!DOCTYPE html>
<html lang="en">
  <head>
  
    <title> Students Reports | 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">

              <a href="<?php echo $_SESSION['dashboard'];?>">Dashboard </a> &nbsp; <i style="" class="fa fa-angle-double-right"></i>  &nbsp; 
                Create Classwise Parent's ID's
          <br><br>
          
            <div class="row">
        <h3 style="float: left;margin-left:8px;">Create Class Wise Parents Login IDs </h3>

   
  <table  class="table table-striped table-bordered" style="width:100%;background-color:#FFFFFF;">
        <thead>
            <tr>

                <th width="5%" style="text-align:center;"> S.No </th>
                <th width="60%"> Class </th>                              
                <th width="25%" 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'];
      
      

      $std+=count($total);
//echo $std;
      ?>

        <tr>


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

                  <td> <?php echo  $WorkAssignListVal['Class_Name']; ?> </td>

                                    
                  <td style="text-align:center;">                     


                  <a style="padding: 6px 8px; font-size:14px;" href="parents_access.php?<?php echo session_id().session_id().session_id().session_id().session_id();?>&class_id=<?php echo $cls;?>" style="cursor:pointer;" target="_blank"  class="btn btn-success"> Create Parents IDs </a>


           

                  </td>

              </tr>

              <?php
      }   ?>

  
           
        </tbody>
        
    </table>

        </div> 
        </div>

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

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