Server IP : 103.191.208.50 / Your IP : 216.73.216.53 Web Server : LiteSpeed System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : celkcksm ( 1031) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, popen, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home/celkcksm/websites/miereducation.e-campus.co.in/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include ("include/makeSession.php"); $installment_id=mysqli_query($con,"select * from admin where id='".$_SESSION["ecomid"]."'"); $installment_id=mysqli_fetch_array($installment_id); $installment_id=$installment_id['menuper']; $menuper=explode(',',$installment_id); if(in_array('Manage Accounts',$menuper)){ }else{ header("location:index.php"); } $_SESSION['page_name']="Fee"; include('include/function.php'); include("include/header.php"); include("include/sidebar.php"); ?> <script src="plugins/jQuery/jQuery-2.1.4.min.js" type="text/javascript"></script> <div class="content-wrapper"> <section class="content-header"> <h1> Installment Due Report</h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li><a href="#">Due Installment Fee</a></li> </ol> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-xs-12"> <div class="box"> <div class="box-header"> </div><!-- /.box-header --> <div class="box-body" style="overflow-x: scroll;"> <form action="" method="GET" style="margin-bottom:50px;" > <div class="col-md-12"> <div class="col-md-6"> <input type="date" name="from" placeholder="dd/mm/yyyy" value="<?php if(!empty($_GET['from'])){ echo $_GET['from']; }else{ } ?>" class="form-control col-md-3" style="width:210px;float:right;margin-right:103px;" /> <b>Due Report From :</b> </div> <div class="col-md-6"> <b>To:</b> <input type="date" name="to" placeholder="dd/mm/yyyy" value="<?php if(!empty($_GET['to'])){ echo $_GET['to']; }else{ } ?>" class="form-control col-md-3" style="width:210px;float:right;margin-right:203px;" /> </div> </div> <input type="submit" name="s" value="Search" class="btn btn-success"/> <button type="reset" value="Reset" class="btn btn-primary">Reset</button> </form> <?php $mobile=$_GET['s']; ?> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th>Sr No</th> <th>Student ID</th> <th scope="col">Name</th> <th scope="col">Installment Date</th> <th scope="col">Amount</th> </tr> </thead> <tbody> <?php if(!empty($mobile)){ $from =$_GET['from']; $to =$_GET['to']; $dates=""; } if (!empty($from)){ $dates="where setinstallment.installmentdate >='$from'"; } if (!empty($to)){ $dates="where setinstallment.installmentdate <='$to'"; } if(!empty($to) && !empty($from)){ $dates="where setinstallment.installmentdate >='$from' AND setinstallment.installmentdate <='$to'"; } //26.10.1996 $Query=mysqli_query($con,"select setinstallment.id, setinstallment.studentid as student_id,admission_enquiry_form.name,setinstallment.installmentdate, setinstallment.amount from setinstallment left join admission_enquiry_form on setinstallment.studentid=admission_enquiry_form.student_id $dates"); $i = 1; $totalfee=0; while($Row=mysqli_fetch_array($Query)){ $N=mysqli_num_rows(mysqli_query($con,"select id from payinstallment where installment_id=".$Row['id'])); if($N>0){}else{ $totalfee+=$Row['amount']; ?> <tr> <td><?=$i;?></td> <td><?=$Row['student_id'];?></td> <td><?=$Row['name'];?></td> <td><?=$Row['installmentdate'];?></td> <td><?=$Row['amount'];?></td> </tr> <?php $i++;}} ?> </tbody> <td></td> <td></td> <td></td> <td></td> <td><b>Total Fee:</b><br/><?=$totalfee;?></td> </table> </div><!-- /.box-body --> </div><!-- /.box --> </div><!-- /.col --> </div><!-- /.row --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <!-- footer start --> <?php include('include/footer.php'); ?> <!-- footer end --> <!-- DataTables --> <script src="plugins/datatables/jquery.dataTables.min.js" type="text/javascript"></script> <script src="plugins/datatables/dataTables.bootstrap.min.js" type="text/javascript"></script> <script src="bootstrap/js/dataTables.buttons.min.js" type="text/javascript"></script> <script src="bootstrap/js/jszip.min.js" type="text/javascript"></script> <script src="bootstrap/js/pdfmake.min.js" type="text/javascript"></script> <script src="bootstrap/js/vfs_fonts.js" type="text/javascript"></script> <script src="bootstrap/js/buttons.html5.min.js" type="text/javascript"></script> <script src="bootstrap/js/buttons.print.min.js" type="text/javascript"></script> <script src="bootstrap/js/buttons.colVis.min.js" type="text/javascript"></script> <script src="bootstrap/js/buttons.flash.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $('#example1').DataTable( { dom: 'Bfrtip', columnDefs: [ { targets: 1, className: 'noVis' } ], buttons: [ { extend: 'colvis', columns: ':not(.noVis)' } ], buttons: [ { extend: 'colvis', text: 'COLOUMNS' }, { extend: 'csv', text: 'Export to CSV' }, { extend: 'excel', text: 'Export to Excel' }, { extend: 'pdfHtml5', text: 'Create PDF', orientation: 'landscape', exportOptions: { columns: ':visible' } }, { extend: 'print', text: 'Print', exportOptions:{columns: ':visible',autoPrint: true}} ], } ); $('#example2').DataTable( { dom: 'Bfrtip', columnDefs: [ { targets: 1, className: 'noVis' } ], buttons: [ { extend: 'colvis', columns: ':not(.noVis)' } ], buttons: [ { extend: 'colvis', text: 'COLOUMNS' }, { extend: 'csv', text: 'Export to CSV' }, { extend: 'excel', text: 'Export to Excel' }, { extend: 'pdfHtml5', text: 'Create PDF', orientation: 'landscape', exportOptions: { columns: ':visible' } }, { extend: 'print', text: 'Print', exportOptions:{columns: ':visible',autoPrint: true}} ], } ); } ); //$(function () { //$("#example1").DataTable(); //}); </script>