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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/celkcksm/websites/miereducation.e-campus.co.in/receipt_monthly_sub.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"); 
 
?>
<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>Receipt Design <small></small> </h1>
    <ol class="breadcrumb">
      <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
      <li><a href="#">Receipt 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"> Receipt 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">
			
              
				 
				<?php 
				
			
				$mobile=$_REQUEST['upid'];
				if(!empty($mobile)){ 
				
				$upuserresult1=mysqli_query($con,"select miscfeemaster.amount as totalfee,paymonthlyfee.id,paymonthlyfee.setmonthlyfee_id,
				paymonthlyfee.payment_mode,
				course.c_name,admission_enquiry_form.mobileno,commenacademicyear.academictitle,miscfeemaster.feemaster,
				setmonthlyfee.miscfeemaster_id,admission_enquiry_form.name,paymonthlyfee.student_id,paymonthlyfee.payment_date,
				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
				left join commenacademicyear on commenacademicyear.id=admission_enquiry_form.academicyear
				left join course on course.id=admission_enquiry_form.course where paymonthlyfee.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:1700px;margin-top:15px' id='printarea' > 
			<div class='row'>
				
			
					<div  style=' height:200px;' width="100%" >  
						<div style="width:200px;float:left;"> 
		<img src="images/uploads/<?php echo $collage['logo']; ?>" height="100" width="100"/>
					</div>
						<div style="width:1000px;text-align:center"> 
					<h1>Kadambani women's college HOSTEL and CANTEEN</h1>
					
					<h3  style='margin-top:-5px;'><?php echo $collage['collageaddr']; ?> 
			<br><?php echo $collage['collagephone']; ?><br>
				<?php echo $collage['collageemail']; ?><br>
					<b style='margin-top:13px;text-decoration: underline;margin-left:200px;' >Installment <?=$_REQUEST['num'];?> 
					</b></h3>
						</div>
					</div>
					
					
						<div   style="width:1100px;"> 
						<div style="width:350px;float:left;"> 
            			<b>Student Name :</b>	<?php echo $upuserarr1['name']; ?>  <br>
            			<b>Student Code :</b>	<?php echo $upuserarr1['student_id']; ?>  <br>
            			<b>Fee Head :</b>	<?php echo $upuserarr1['feemaster']; ?>  <br>
					</div>
						<div style="width:350px;float:left;"> 
			    	<b>Session :</b>	<?php echo $upuserarr1['academictitle']; ?>  <br>
			        <b>Mobile :</b>	<?php echo $upuserarr1['mobileno']; ?>  <br>
					
						</div>
							<div style="width:350px;float:left;"> 
			    	<b>Date :</b>	 <?php echo date('d/m/Y', strtotime($upuserarr1['payment_date'])); ?>  <br>
			        <b>Course :</b>	<?php echo $upuserarr1['c_name']; ?>  <br>
			        <b>Receipt No :</b>	<?php echo $upuserarr1['id']; ?>  <br>
					
					
						</div>
					</div>
					
					<table style="width:100%" style='margin-top:220px;' class='pull-right' border='1'>
						  <tr>
							<th><b>Particulars</b></th> 
							<th><b>Amount</b></th>
						  </tr>
						  <tr>
							<td>Total Fee</td>
							<td><?php echo $upuserarr1['totalfee'].'.00'; ?></td>
						  </tr> 
						  <tr>
							<td><b>Payment amount</b></td>
							<td><b><?php echo $upuserarr1['payment_amount'].'.00'; ?></b></td>
							 </tr>
						     <tr>
							<td>Payment Mode</td>
							<td><?php echo $upuserarr1['payment_mode']; ?></td>
							
						  </tr>
						    <?php
          				        $getfeepaidQ=mysqli_query($con,"select payment_amount
          				        from paymonthlyfee where student_id='".$upuserarr1['student_id']."' AND setmonthlyfee_id=".$upuserarr1['setmonthlyfee_id']."
          				        order by setmonthlyfee_id asc");
          				        $i=0;
          				        $paid=0;
          				        while($getfeepaidR=mysqli_fetch_array($getfeepaidQ)){$i++;
          				            if($i<=$_REQUEST['num']){
            		                    $paid+=$getfeepaidR['payment_amount'];
          				            }
          				        }
          				        $remaining=$upuserarr1['totalfee']-$paid;
						    ?>
							  <tr>
							<td><i>Total Due Amount </i></td>
							<td><i><?php echo '&#8377;'.$remaining.'.00'; ?></i></td>
							
						
						  </tr>
						</table>
						<div width="100%"><br>
						<h3 style='margin-left:100px; '><b></b>&nbsp;&nbsp;&nbsp;&nbsp;<?php 
						$number = $upuserarr1['payment_amount'].'.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) ? '' : 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 "<b>Rupees ".$result . "Only."."<b>";
						?></h3><br><br>
						<h4 style='margin-top:10px;float
						:left; '><b>Monthly fee is NON REFUNDABLE at any Circumstances</b></h4><br><br><br>
						
						</div> 
						<div width="100%">
							 <h3 class='pull-left'>Student/Guardian's Signature
							 <br><br><br>
							 ---------------------------------------------------
							 </h3>
						<br><br><br><br><br><br>
						<h3 style='float
						:right; '>Authorised Signatory With Stamp </h3>
						
					
						</div> 
						
					<div  style=' height:200px; margin-top:200px;' width="100%" >  
						<div style="width:200px;float:left;"> 
		<img src="images/uploads/<?php echo $collage['logo']; ?>" height="100" width="100"/>
					</div>
						<div style="width:1000px;text-align:center"> 
					<h1>Kadambani women's college HOSTEL and CANTEEN</h1>
					
					<h3  style='margin-top:-5px;'><?php echo $collage['collageaddr']; ?> 
			<br><?php echo $collage['collagephone']; ?><br>
				<?php echo $collage['collageemail']; ?><br>
					<b style='margin-top:13px;text-decoration: underline;margin-left:200px;' >Installment <?=$_REQUEST['num'];?>
					</b></h3>
						</div>
					</div>
					
					
						<div   style="width:1100px;"> 
						<div style="width:350px;float:left;"> 
            			<b>Student Name :</b>	<?php echo $upuserarr1['name']; ?>  <br>
            			<b>Student Code :</b>	<?php echo $upuserarr1['student_id']; ?>  <br>
            			<b>Fee Head :</b>	<?php echo $upuserarr1['feemaster']; ?>  <br>
					</div>
						<div style="width:350px;float:left;"> 
			    	<b>Session :</b><?php echo $upuserarr1['academictitle']; ?>  <br>
			        <b>Mobile :</b><?php echo $upuserarr1['mobileno']; ?>  <br>
			
					
					
						</div>
							<div style="width:350px;float:left;"> 
			    	<b>Date :</b>	 <?php echo date('d/m/Y', strtotime($upuserarr1['payment_date'])); ?>  <br>
			        <b>Course :</b>	<?php echo $upuserarr1['c_name']; ?>  <br>
			        <b>Receipt No :</b>	<?php echo $upuserarr1['id']; ?>  <br>
					
					
						</div>
					</div>
					
					<table style="width:100%" style='margin-top:220px;' class='pull-right' border='1'>
						  <tr>
							<th><b>Particulars</b></th> 
							<th><b>Amount</b></th>
						  </tr>
						  <tr>
							<td>Total Fee</td>
							<td><?php echo $upuserarr1['totalfee'].'.00'; ?></td>
						  </tr> 
						  <tr>
							<td><b>Payment amount</b></td>
							<td><b><?php echo $upuserarr1['payment_amount'].'.00'; ?></b></td>
							 </tr>
						     <tr>
							<td>Payment Mode</td>
							<td><?php echo $upuserarr1['payment_mode']; ?></td>
							
						  </tr>
						    <?php
          				        $getfeepaidQ=mysqli_query($con,"select payment_amount
          				        from paymonthlyfee where student_id='".$upuserarr1['student_id']."' AND setmonthlyfee_id=".$upuserarr1['setmonthlyfee_id']."
          				        order by setmonthlyfee_id asc");
          				        $i=0;
          				        $paid=0;
          				        while($getfeepaidR=mysqli_fetch_array($getfeepaidQ)){$i++;
          				            if($i<=$_REQUEST['num']){
            		                    $paid+=$getfeepaidR['payment_amount'];
          				            }
          				        }
          				        $remaining=$upuserarr1['totalfee']-$paid;
						    ?>
							  <tr>
							<td><i>Total Due Amount </i></td>
							<td><i><?php echo '&#8377;'.$remaining.'.00'; ?></i></td>
							
						
						  </tr>
						</table>
						<div width="100%"><br>
						<h3 style='margin-left:100px; '><b></b>&nbsp;&nbsp;&nbsp;&nbsp;<?php 
						$number = $upuserarr1['payment_amount'].'.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) ? '' : 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 "<b>Rupees ".$result . "Only."."<b>";
						?></h3><br><br>
						<h4 style='margin-top:10px;float
						:left; '><b>Monthly fee is NON REFUNDABLE at any Circumstances</b></h4><br><br><br>
						
						</div> 
						<div width="100%">
							 <h3 class='pull-left'>Student/Guardian's Signature
							 <br><br><br>
							 ---------------------------------------------------
							 </h3>
						<br><br><br><br><br><br>
						<h3 style='float
						:right; '>Authorised Signatory With Stamp </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