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

<?php  include("sessioncheck.php"); ?>

<?php



$pageName=basename($_SERVER['PHP_SELF']);



$class=$_REQUEST['class_id'];

$branchId=$_SESSION['branch'];





$query="SELECT * FROM eduportal_subject_config as sub, eduportal_class_subjects as cls where cls.subject_id=sub.subject_id and cls.class_id='$class' and cls.section_id='$section' and cls.session_id='$sessionIDs' and cls.branch_id='$branchId' ";



$fee_heads = $m->query($query);



 

     ?>





<!DOCTYPE html>

<html lang="en">

  <head>

    

    <title> Manage Fee Heads | 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;">

    



   <a href="<?php echo $_SESSION['dashboard'];?>" style="margin-left: 33px;">Dashboard </a> 



   &nbsp; <i class="fa fa-angle-double-right"></i>  &nbsp;



   <a href="multi_fee_reports.php">Fee Reports </a> &nbsp; <i class="fa fa-angle-double-right"></i>  &nbsp;  



    <a href="update_fee_settings.php">Fee Settings </a> &nbsp; <i class="fa fa-angle-double-right"></i>  &nbsp;  



   Manage Fee Heads 





<br><br>



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

  <div class="container">



<div>



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





    <input type="hidden" name="action" value="Update_Fee_Heads">





    <table data-page-length='100' class="table table-striped table-bordered center" style="margin-left:5%;width:80%">

          

          <thead>

            <tr>

                <th width="5%">S.No</th>

                <th width="8%">Fee Head</th>

                <th width="15%">Customized Name</th>

                <th width="15%">Change Status </th>              

                <th width="10%">Status </th>              

                               

            </tr>

        </thead>

        <tbody>





 <?php 

 $count=3;

 $fee_types = $m->get("eduportal_fee_types");



 foreach ($fee_types as $type) {





  $m->where("branch_id", $_SESSION['branch']); 

  $m->where("fee_head_id", $type['feetype_id']); 

  $data=$m->get("eduportal_manage_fee_heads_details"); 



  //print_r($data);

?>

		 <tr>

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

    <td><?php echo $type['feetype_name'];?></td>

    <td>



      <input type="hidden" name="fee_head_Ids[]" value="<?php echo $type['feetype_id']; ?>" />



      <input type="text" name="fee_heads[]" value="<?php echo $data[0]['fee_head_title']; ?>" class="form-control" maxlength="15" />



     </td>

    <td> 

        <select name="heads_status[]" class="form-control">

          <option value="0" <?php  if($data[0]['status']=='0' || $data[0]['status']==0 ){echo "Selected";} ?> > 

          Enable</option>

          <option value="1" <?php  if ($data[0]['status']=='1' || $data[0]['status']==1 ){echo "Selected";} ?> > Disable</option>

        </select>



      </td>



      <td>



        <?php if($data[0]['status']=='0' || $data[0]['status']==0){ ?>    



          <a  style="padding: 0px 5px; font-size:14px;"  class="btn btn-success">

                  Enable

          </a> 

          

         <?php } else { ?>    



          <a  style="padding: 0px 5px; font-size:14px;"  class="btn btn-danger">

                  Disable 

          </a> 

           <?php }   ?>





      </td>        

  </tr>



  <?php    } ?>



        </tbody>

        

    </table>





        <input type="submit" name="submit" value="Update Changes" class="btn btn-success pull-right" style="margin-right:20%;" />



  </form>



</div>







  </div>

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

</section>            

    



           

          </div>

        </div>



            </div>

          </div>

        </div>

        <!-- /page content -->

  

   <!-- jQuery -->

    <script src="js/ajax_functions.js"></script>  

    

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





  </body>

</html>

