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

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







// code start script for Staff dashboard access



// it will be check tab access against user



$usrID=$_SESSION['user_id'];

$b=$_SESSION['branch'];



$chekUserAccess1="SELECT acc.page_id,acc.module_id,acc.user_id,acc.branch_id,acc.page_tab_id FROM eduportal_page_tab_access as acc WHERE acc.branch_id='$b' and acc.user_id = '$usrID' and acc.page_id='24'"; 



$UserAccess1=$m->query($chekUserAccess1);



// it will be check allow access this page (admin dashboard) against user

$UserPrivilege1="SELECT * FROM users_privilege_detail WHERE branch_id='$b' and user_id = '$usrID' and page_id='24'"; 



$UserPriv=$m->query($UserPrivilege1);



if (count($UserAccess1) == 0 && count($UserPriv) > 0 ) {

    

    $lin="SELECT *  FROM eduportal_page_tabe_links WHERE page_id='24'";   

    $links1 = $m->query($lin);



    foreach ($links1 as $link1) {



        $data = array(



        'page_id' => $link1['page_id'],



        'module_id' => $link1['module_id'],



        'user_id' => $usrID,



        'branch_id' => $_SESSION['branch'],     



        'page_tab_id' => $link1['page_tab_id']);



       // echo "<pre>"; print_r($data); echo "</pre>";





        $m->insert ('eduportal_page_tab_access', $data);

       

    }





}





// code End script for Staff dashboard access



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





 $m->where("page_name", $pageName);

 $video = $m->get("eduportal_modules_pages_detail");





$default;

    

    if($_GET["month"]!=NULL ){

      $default= $_GET["month"];

    }

    else{

      $default= date("m");

    }





$usrID=$_SESSION['user_id'];

$chekUserAccess="SELECT acc.page_id,acc.module_id,acc.user_id,acc.branch_id,acc.page_tab_id, link.page_id,link.module_id,link.tab_title,link.tab_link FROM eduportal_page_tab_access as acc, eduportal_page_tabe_links as link WHERE acc.page_tab_id=link.page_tab_id and acc.branch_id='$b' and acc.user_id = '$usrID' and acc.page_id='24'"; 

 

   $UserAccess=$m->query($chekUserAccess);



?>

<style type="text/css">







.btn-fixed {

  min-width: 330px;

  min-height: 60px;

  border-radius:8px;

  background-color: #3974b9; 

  border: none;

  color: white;

  padding: 16px 32px;

  text-align: center;

  text-decoration: none;

  display: inline-block;

  font-size: 16px;

  margin: 4px 2px;

  transition-duration: 0.4s;

  cursor: pointer;



}

.btn-fixed:hover {

  background-color: white;

  color: black;

  border: 1px solid lightgray;

}





.btn1-fixed {

  min-width: 330px;

  min-height: 60px;

  border-radius:8px;

  background-color: #042954; 

  border: none;

  color: white;

  padding: 16px 32px;

  text-align: center;

  text-decoration: none;

  display: inline-block;

  font-size: 16px;

  margin: 4px 2px;

  transition-duration: 0.4s;

  cursor: pointer;



}

.btn1-fixed:hover {

  background-color: white;

  color: black;

  border: 1px solid lightgray;

}







</style> 

<!DOCTYPE html>

<html lang="en">

  <head>

    <title> Multi Fee Reportings | EduPortal </title>

    <!-- bootstrap-progressbar -->

   

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

    

  <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="">



            <a href="<?php echo $_SESSION['dashboard'];?>">Dashboard </a> &nbsp; <i style="" class="fa fa-angle-double-right"></i>  &nbsp; Fee Reports

            

      <br><br>



     <?php if ($video[0]['video_url']!=NULL) { ?>

  

  <a href="watch_video.php?videourl=<?php echo $video[0]['video_url'];?>" target="_blank" class="btn btn-success" style="padding: 10px 10px; font-size:14px;color:white;float: right;"><i class="fa fa-play"></i>&nbsp;&nbsp;Watch Demo</a>



<?php } ?>



<br><br><br>



<?php

foreach ($UserAccess as $key) { 







if ($key['tab_link'] == 'fee_reporting.php') { ?>



 <!-- <a href="fee_reporting.php" class="btn-fixed ">Fee Receiveable Reports</a> -->



 <?php } elseif ($key['tab_link'] == 'monthly_fee_summary.php') { ?>

 

 <!-- <a  href="monthly_fee_summary.php" class="btn-fixed ">Head Wise Report</a> -->



 <?php } elseif ($key['tab_link'] == 'datewise_fee_collection_report.php') { ?>



 <!-- <a  href="datewise_fee_collection_report.php" class="btn1-fixed ">Fee Collection Reports</a>  -->



 <?php } elseif ($key['tab_link'] == 'fee_records.php') { ?>



<!--  <a  href="fee_records.php" class="btn-fixed ">Annual Fee Report</a>  -->



 <?php } elseif ($key['tab_link'] == 'fee_discount_report.php') { ?>



 <!-- <a  href="fee_discount_report.php" class="btn-fixed ">Monthly Discount Report</a>  -->



  <?php } elseif ($key['tab_link'] == 'print_report_zerofee.php') { ?> 



 <!-- <a  href="print_report_zerofee.php?fee=0" class="btn1-fixed ">Free Students Reports</a>  -->



 <?php } elseif ($key['tab_link'] == 'students_fee.php') { ?>



 <!-- <a  href="students_fee.php" class="btn1-fixed ">Search Students With Fee</a>  -->



 <?php } elseif ($key['tab_link'] == 'multi_months_fee_reports.php') { ?>



 <!-- <a  href="multi_months_fee_reports.php" class="btn1-fixed ">Multi Months Fee Reports</a>  -->



 <?php } elseif ($key['tab_link'] == 'update_fee_settings.php') { ?>





<a  href="update_fee_settings.php" class="btn1-fixed ">Fee Settings</a> 



<?php } elseif ($key['tab_link'] == 'fee_settings.php') { ?>



<a  href="fee_settings.php" class="btn1-fixed ">Class Wise Update Fee</a>



<?php } elseif ($key['tab_title'] == 'Monthly Advance Fee') { ?>



<!-- <a href="#" class="btn1-fixed" data-toggle="modal" data-target="#AdvancePayMonth">

Monthly Advance Fee</a> 
 -->






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

<button style="font-size: 16px;" data-toggle="dropdown" class="btn1-fixed dropdown-toggle btn-sm" type="button" aria-expanded="true">Blank Vouchers <span class="caret"></span>

</button>

<ul role="menu" class="dropdown-menu" style="width: 100%;"> 

       

            



  <li><a href="print_blank_double_voucher.php?a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156" target="_blank"  style="font-size:14px;">Double Voucher</a></li>



  <a href="print_blank_voucher.php?a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156a61oe8lqc1oclfi4llgnioo156>" style="font-size:14px;margin-left: 20px;" target="_blank">Triple Voucher</a>



 

  </ul>

  </div>
 -->


<?php } elseif ($key['tab_link'] == 'arrear_reports.php') { ?>



   <!--  <a  href="arrear_reports.php" class="btn1-fixed">Arrears Fee Report</a>  -->



    <?php }



} ?>

   <!--  <a  href="view_installment.php" class="btn1-fixed">View Student Installment</a>  -->

<!--     <a  href="user_wise_profitloss_report.php" class="btn1-fixed">User Wise Profit & Loss Report</a>  -->

    <!-- <a  href="fee_heads_reports.php" class="btn1-fixed">Head Wise fee Received</a>  -->


    <a target="_blank"  href="settlement_reports.php?session=d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7&class_id=All&from=<?php echo date("Y-m-01");?>&to=<?php echo date("Y-m-t");?>&fee_heads=All&orderBy=SettlWise&settledBy=All" class="btn1-fixed">Detailed Fee Settlement</a>

    <a target="_blank"  href="fee_receipt_report.php?session=d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7&class_id=All&searchBy=dateWise&from=<?php echo date("Y-m-01");?>&to=<?php echo date("Y-m-t");?>&PiadBy=All&orderBy=RecptWise&userPaid=All" class="btn-fixed">Fee Receipt Report</a>

    <a target="_blank"  href="outstanding_fee.php?session=d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7&class_id=All&section=All&month=<?php echo date("Y-m");?>&std_status=All&fee_status=All&due_date=All&orderBy=GradeWise" class="btn-fixed">Outstanding Fee</a>

    <a target="_blank"  href="missing_invoice_students.php?session=d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7&class_id=All&section=All&month=<?php echo date("Y-m");?>" class="btn-fixed">Missing Invoice Students</a>

    <a target="_blank"  href="student_receivable.php?session=d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7&class_id=All&section=All&month=<?php echo date("Y-m");?>&std_status=All&due_date=All" class="btn1-fixed">Student Receivable</a>

    <a target="_blank"  href="fee_invoice_summary.php?session=d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7&class_id=All&section=All&from=<?php echo date("Y-m-01");?>&to=<?php echo date("Y-m-t");?>&std_status=All&orderBy=RollNoWise" class="btn1-fixed">Fee Invoice Summary</a>

    <a target="_blank"  href="fee_collection_report.php?session=d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7&class_id=All&section=All&from=<?php echo date("Y-m-01");?>&to=<?php echo date("Y-m-t");?>" class="btn1-fixed">Fee Collection Report</a>

    <a target="_blank"  href="fee_invoice_report.php?session=d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7&class_id=All&section=All&month=<?php echo date("Y-m");?>&orderBy=GradeWise" class="btn-fixed">Fee Invoice Report</a>

    <a target="_blank"  href="invoice_receipt_summary.php?session=d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7d702958bebc5b126fcc2ecba847749b7&class_id=All&section=All&from=<?php echo date("Y-m-01");?>&to=<?php echo date("Y-m-t");?>&std_status=All&orderBy=GradeWise&fine=All" class="btn-fixed">Invoice & Receipt Summary</a>

    </div>

    </div>



     <!-- Student Result popup start -->





      <div id="AdvancePayMonth" class="modal fade" role="dialog">

        <div class="modal-dialog">



          <!-- Modal content-->

          <div class="modal-content">

            <div class="modal-header" style="border-bottom:none;">

              <button type="button" class="close" data-dismiss="modal">&times;</button>

              <h4 class="modal-title" style="text-align:center;">  </h4>

            </div>



            <div class="modal-body">



</form>





<form  action="print_pay_advance_fee_students.php" method="get">



 

                     

                   


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

                      <div class="form-group ">

                        <label class="required">Year</label>

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

                          <option value="All">All</option>

                          <?php

                          $match;

                          if(!isset($_REQUEST['year'])){

                            $match=date("Y");

                          }else { $match=$_REQUEST['year']; }

                          for($i=2018;$i<2031;$i++){ ?> 

                            <option <?php if($match==$i){echo 'selected';}?> value="<?php echo $i; ?>"><?php echo $i; ?></option>

                          <?php } ?>  

                        </select>
                      </div>

                    </div>            




                  <div class="col-md-12" style="padding:8px;"  id="">



                       <div class="form-group ">



                          <label class="required"> Month</label>

                               <select style="height:40px;" name="month" id="month" class="form-control"  required>



                                                     



                        <?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="modal-footer">



            <button type="submit" class="btn btn-primary" name="submit" >Submit </button>

              





            </div>







                 </form>



          </div>



          </div>



        </div>

      </div>



      <!-- Student result popup ending -->

          

            </div>

          </div>

        </div>

        <!-- /page content -->

  



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



   



  </body>

</html>

