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/vtti.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 Consultant',$menuper)){ }else{ header("location:index.php"); } $_SESSION['page_name']="Consultant"; include('include/function.php'); include("include/header.php"); include("include/sidebar.php"); if(isset($_REQUEST['did']) && $_REQUEST['did']!=''){ $dovalue=""; $doid=$_REQUEST['did']; $check=mysqli_query($con,"delete from student_enqury_form where id='$doid'"); if($check){ $_SESSION['msg']='Record Deleted Successfully'; } echo '<META HTTP-EQUIV="Refresh" Content="0; URL=StudentEnquiryReport.php">'; exit; } ?> <div class="content-wrapper"> <section class="content-header"> <h1> Student Enquiry</h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li><a href="#">Student Enquiry</a></li> </ol> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-xs-12"> <div class="box"> <div class="box-header"> <h3 class="box-title">Student Enquiry Report :</h3> </div><!-- /.box-header --> <div class="box-body"> <div class='col-md-12 pull-right' style='margin-bottom:14px;'> <input type="text" id="min-date" class="date-range-filter form-control col-md-3 pull-right" placeholder="From: yyyy-mm-dd" style='width:200px;'> <input type="text" id="max-date" class="date-range-filter form-control col-md-3 pull-right" placeholder="To: yyyy-mm-dd" style='width:200px;'> </div> <table id="example1" class="table table-bordered table-striped"> <?php if(!empty($_SESSION['msg'])){ $msg=$_SESSION["msg"]; echo '<div class="col-md-8"> <div class="alert alert-success alert-dismissible"> <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a> '.$msg.' </div>'; $_SESSION["msg"]='';} ?> <thead> <tr> <th>#ID</th> <th scope="col">Student Id</th> <th scope="col">Student Name</th> <th scope="col">Consultant Name</th> <th scope="col">Consultant Phone </th> <th scope="col">Payment</th> <th scope="col">Due</th> <th scope="col">Paid</th> <th scope="col">Entry Name</th> <th scope="col">Created At</th> <th scope="col">Pay</th> <?php if(!empty($_SESSION["ecomid"]) && $_SESSION["ecomid"]==1 ){ ?> <!-- <th scope="col">Action</th> --> <?php } ?> </tr> </thead> <tbody> <?php $Query=mysqli_query($con,"select *,consultants_payments.id as sid, consultants.name as con_name,consultants.email as con_email, consultants.phone as con_phone,consultants_payments.due as feedue, consultants_payments.totalamount as total_amount,admin.username as uname, admission_enquiry_form.name as stu_name, consultants_payments.created_at as crete from consultants_payments left JOIN consultants ON consultants_payments.consultants_id=consultants.id left JOIN admission_enquiry_form ON consultants_payments.student_id=admission_enquiry_form.student_id left JOIN admin ON consultants_payments.user_id=admin.id order by sid desc "); $i = 1; while($Row=mysqli_fetch_array($Query)){ // echo "<pre>"; // print_r($Row); // echo "</pre>"; ?> <tr> <td><span id="ContentPlaceHolder1_GridViewEnquiry_LabelStudentFirstName_0"><?=$i;?></span></td> <td><span id="ContentPlaceHolder1_GridViewEnquiry_LabelStudentFirstName_0"><?=$Row['student_id'];?></span></td> <td><span id="ContentPlaceHolder1_GridViewEnquiry_LabelStudentFirstName_0"><?=$Row['stu_name'];?></span></td> <td><span id="ContentPlaceHolder1_GridViewEnquiry_LabelMobile_0"><?=$Row['con_name'];?></span></td> <td><span id="ContentPlaceHolder1_GridViewEnquiry_LabelMobile_0"><?=$Row['con_phone'];?></span></td> <td><span id="ContentPlaceHolder1_GridViewEnquiry_LabelLastQualification_0"><?=$Row['total_amount'];?></span></td> <td><span id="ContentPlaceHolder1_GridViewEnquiry_LabelApplicationTypeName_0"><?=$Row['feedue'];?></span></td> <td><span id="ContentPlaceHolder1_GridViewEnquiry_LabelApplicationTypeName_0"><?=$Row['paid'];?></span></td> <td><span id="ContentPlaceHolder1_GridViewEnquiry_LabelCastName_0"><?=$Row['uname'];?></span></td> <td><span id="ContentPlaceHolder1_GridViewEnquiry_LabelCastName_0"><?=$Row['crete'];?></span></td> <td> <?php if($Row['total_amount']>$Row['paid']){ ?> <a href="./consultant_installment_pay.php?upid=<?php echo $Row["sid"]; ?> "><i class="fa fa-paypal text-red"></i></a> <?php }else if($Row['total_amount']==$Row['paid']){ ?> <a href="#"><i class="fa fa-paypal text-green"></i></a> || <a href="consultantpaymentreciept.php?upid=<?php echo $Row["sid"]; ?>"><i class="fa fa-eye text-blue"></i></a> <?php }?> </td> </tr> <?php $i++;} ?> </tbody> </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 src="dist/js/moment.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { var tables= $('#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}} ], } ); $.fn.dataTable.ext.search.push( function( settings, data, dataIndex ) { var min = $('#min-date').val(); var max = $('#max-date').val(); var createdAt = data[9] || 0; // Our date column in the table console.log(createdAt); if ( ( min == "" || max == "" ) || ( moment(createdAt).isSameOrAfter(min) && moment(createdAt).isSameOrBefore(max) ) ) { return true; } return false; } ); $('.date-range-filter').change( function() { tables.draw(); } ); } ); </script>