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/bengaledu.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> Monthly Fee Payment Report</h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li><a href="#">Monthly Fee Payment Report</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>Payment 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">Mobile</th> <th scope="col">Fee Name</th> <th scope="col">Amount</th> <th scope="col">Payment Mode</th> <th scope="col">Payment Date</th> </tr> </thead> <tbody> <?php if(!empty($mobile)){ $from =$_GET['from']; $to =$_GET['to']; $dates=""; } if (!empty($from)){ $dates="where paymonthlyfee.created_at >='$from 00:00:00.000000'"; } if (!empty($to)){ $dates="where paymonthlyfee.created_at <='$to 00:00:00.000000'"; } if(!empty($to) && !empty($from)){ $dates="where paymonthlyfee.created_at >='$from 00:00:00.000000' AND paymonthlyfee.created_at <='$to 00:00:00.000000'"; } //26.10.1996 $Query=mysqli_query($con,"select paymonthlyfee.created_at,paymonthlyfee.student_id,admission_enquiry_form.name,admission_enquiry_form.mobileno, paymonthlyfee.payment_date,paymonthlyfee.payment_mode, miscfeemaster.feemaster, paymonthlyfee.payment_amount from paymonthlyfee left join admission_enquiry_form on admission_enquiry_form.student_id=paymonthlyfee.student_id left join setmonthlyfee on setmonthlyfee.id=paymonthlyfee.setmonthlyfee_id left join miscfeemaster on miscfeemaster.id=setmonthlyfee.miscfeemaster_id $dates"); $i = 1; $totalfee=0; while($Row=mysqli_fetch_array($Query)){ $totalfee+=$Row['payment_amount']; ?> <tr> <td><?=$i;?></td> <td><?=$Row['student_id'];?></td> <td><?=$Row['name'];?></td> <td><?=$Row['mobileno'];?></td> <td><?=$Row['feemaster'];?></td> <td><?=$Row['payment_amount'];?></td> <td><?=$Row['payment_mode'];?></td> <td><?=$Row['payment_date'];?></td> </tr> <?php $i++;} ?> </tbody> <td></td> <td></td> <td></td> <td></td> <td></td> <td><b>Total Fee:</b><br/><?=$totalfee;?></td> <td></td> <td></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>