Skip to content

Commit

Permalink
AlmostReady
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit-CBS committed Apr 21, 2019
2 parents 1624112 + 5055583 commit 978f981
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 65 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ExamFormReceipt
this is a dynamic web page which takes data from the consumer and gives the dynamic pdf on verification
this is developed by sharad jain and amit kr
80 changes: 39 additions & 41 deletions Receipt.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<?php
include "connection.php";
$roll_no=$_REQUEST["rollno"];
session_start();
$_SESSION['rollno'] = $roll_no;
$fetch=mysqli_query($connection,"select * from std_detail where std_rollno='$roll_no' ");
include "connection.php";
$roll_no=$_REQUEST["rollno"];
session_start();
$_SESSION['rollno'] = $roll_no;
$fetch=mysqli_query($connection,"select * from std_detail where std_rollno='$roll_no' ");

while($res=mysqli_fetch_assoc($fetch)){
// session_start();
$_SESSION['roll'] = $res['std_rollno'];
?>
?>
<!DOCTYPE html>
<html lang="en">
<head>
Expand Down Expand Up @@ -37,7 +38,7 @@
<li><a href="Search.php"><h3 style="display: inline;" class="fas fa-search"></h3></a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="AdminLogin.php">Admin Login Page <i class="fas fa-user"></i></a></li>
<li><a href="AdminLogin.php">Login Page <i class="fas fa-user"></i></a></li>
</ul>
</div>
</div>
Expand Down Expand Up @@ -149,33 +150,31 @@
</center>
</div>
<fieldset>
<div class="row">
<div class="atLeastOne">
<div class="col-sm-6">
<label for="cb1" class="thumbnail col-xs-7 control-label">MAKAUT Development Fees:</label>
<div class="col-xs-5">
<input type="text" name="cb1" id="cb1" value="" placeholder="0"><br>
</div>
<label for="cb2" class="thumbnail col-xs-7 control-label">MAKAUT Registration Fees:</label>
<div class="col-xs-5">
<input type="text" name="cb2" id="cb2" value="" placeholder="0"><br>
</div>
<label for="cb3" class="thumbnail col-xs-7 control-label">MAKAUT Exam Fees:</label>
<div class="col-xs-5">
<input type="text" name="cb3" id="cb3" value="" placeholder="0"><br>
</div>
<label for="cb4" class="thumbnail col-xs-7 control-label">MAKAUT PPR/PPS:</label>
<div class="col-xs-5">
<input type="text" name="cb4" id="cb4" value="" placeholder="0"><br>
</div>
<label for="cb5" class="thumbnail col-xs-7 control-label">MAKAUT Back Log:</label>
<div class="col-xs-5">
<input type="text" name="cb5" id="cb5" value="" placeholder="0"><br>
</div>
<label for="cb6" class="thumbnail col-xs-7 control-label">Other:</label>
<div class="col-xs-5">
<input type="text" name="cb6" id="cb6" value="" placeholder="0"><br>
</div>
<div class="row atLeastOne">
<div class="col-sm-6">
<label for="cb1" class="thumbnail col-xs-7 control-label">MAKAUT Development Fees:</label>
<div class="col-xs-5">
<input type="text" name="cb1" id="cb1" value="" placeholder="0"><br>
</div>
<label for="cb2" class="thumbnail col-xs-7 control-label">MAKAUT Registration Fees:</label>
<div class="col-xs-5">
<input type="text" name="cb2" id="cb2" value="" placeholder="0"><br>
</div>
<label for="cb3" class="thumbnail col-xs-7 control-label">MAKAUT Exam Fees:</label>
<div class="col-xs-5">
<input type="text" name="cb3" id="cb3" value="" placeholder="0"><br>
</div>
<label for="cb4" class="thumbnail col-xs-7 control-label">MAKAUT PPR/PPS:</label>
<div class="col-xs-5">
<input type="text" name="cb4" id="cb4" value="" placeholder="0"><br>
</div>
<label for="cb5" class="thumbnail col-xs-7 control-label">MAKAUT Back Log:</label>
<div class="col-xs-5">
<input type="text" name="cb5" id="cb5" value="" placeholder="0"><br>
</div>
<label for="cb6" class="thumbnail col-xs-7 control-label">Other:</label>
<div class="col-xs-5">
<input type="text" name="cb6" id="cb6" value="" placeholder="0"><br>
</div>
</div>

Expand All @@ -194,19 +193,19 @@
<fieldset id="chkdd" class="col-xs-12">
<label class="thumbnail col-xs-5 control-label" for="num">Cheque/DD number:</label>
<div class="col-xs-7">
<input required="" name="num" type="text" id="num"><br>
<input required="" name="num" value=" " type="text" id="num"><br>
</div>
<label class="thumbnail col-xs-5 control-label" for="bank">Issuing bank:</label>
<div class="col-xs-7">
<input required="" name="bank" type="text" id="bank" onkeypress="return RUPEES(event,this);"><br>
<input required="" name="bank" value=" " type="text" id="bank" onkeypress="return RUPEES(event,this);"><br>
</div>
<label class="thumbnail col-xs-5 control-label" for="branch">Bank branch:</label>
<div class="col-xs-7">
<input required="" type="text" name="branch" id="branch" onkeypress="return RUPEES(event,this);"><br>
<input required="" type="text" value=" " name="branch" id="branch" onkeypress="return RUPEES(event,this);"><br>
</div>
<label class="thumbnail col-xs-5 control-label" for="date">Cheque/DD date:</label>
<div class="col-xs-7">
<input required="" name="date" type="date" id="date">
<input required="" name="date" value=" " type="date" id="date">
</div>
</fieldset>
</div>
Expand All @@ -225,6 +224,7 @@
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>

function formcheck(){
var total=0;
var fields = $(".atLeastOne")
Expand Down Expand Up @@ -293,6 +293,4 @@ function RUPEES(e, t) {
</script>
</body>
</html>
<?php
}
?>
<?php } ?>
3 changes: 3 additions & 0 deletions VerifyReceipt.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
<?php
$payvia = $res1['payvia'];
if($payvia=="chkdd"){ ?>
<<<<<<< HEAD
<!--
<div class="col-sm-6">
<label for="payvia" class="thumbnail col-xs-4 control-label" for="payvia">Select payment method-</label>
Expand All @@ -167,6 +168,8 @@
</select>
</div>
</div> -->
=======
>>>>>>> 5055583ab802be7f4a2e67da61a8decb31d5c9a7

<fieldset id="chkdd" class="col-xs-12">
<label class="thumbnail col-xs-5 control-label" for="num">Cheque/DD number:</label>
Expand Down
137 changes: 113 additions & 24 deletions document.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<<<<<<< HEAD
ob_start ();
include "connection.php";
session_start();
Expand Down Expand Up @@ -43,35 +44,109 @@
$pdf->Cell(0,5,'MONEY RECEIPT',0,1,'C');
$pdf->Cell(0,5,'Receipt No. : ',0,1,'L');
$pdf->Cell(170,-6,'Date:' ,0,1,'R');
=======
ob_start ();
include "connection.php";
session_start();
$rollno = $_SESSION['roll'];
$fetch=mysqli_query($connection,"select * from std_detail where std_rollno='$rollno' ");
while($res=mysqli_fetch_assoc($fetch)){
$name=$res['std_name'];
$email=$res['std_email'];
$phone=$res['std_number'];
$studentID=$res['std_id'];
$regno=$res['std_regno'];}
$fetch=mysqli_query($connection,"select * from receipt where std_rollno='$rollno' ");
while($eas=mysqli_fetch_assoc($fetch)){
$stream=$eas['stream'];
$year=$eas['year'];
$semester=$eas['semester'];
$rupees=$eas['sumofrupee'];
$cb1=$eas['dfees'];
$cb2=$eas['rfees'];
$cb3=$eas['efees'];
$cb4=$eas['ppfee'];
$cb5=$eas['backlog'];
$cb6=$eas['other'];
$payvia=$eas['payvia'];
if($payvia =="chkdd"){
$num=$eas['checkno'];
$bank=$eas['bank'];
$branch=$eas['branch'];
$date=$eas['dateofissue'];}
$comments=$eas['comments'];}
require('fpdf/fpdf.php');
$pdf = new FPDF('P','mm','A4');
$pdf->AddPage();
$pdf->SetFont('Arial','B',13);
$pdf->Cell(200,5,'STUDENTS COPY',0,1,'C');
$pdf->Cell(0,5,'xxxxxxxxxxxxxx ENGINEERING COLLEGE',0,1,'C');
$pdf->SetFont('Arial','B',10);
$pdf->Cell(0,5,'TECHNOCITY,PANCHPOTA,GARIA,KOLKATA-700152,PHONE:xxxxxxxxxxxxxx',2,1,'C');
$pdf->SetFont('Arial','B',13);
$pdf->Cell(0,5,'MONEY RECEIPT',0,1,'C');
$pdf->Cell(0,5,'Receipt No. : ',0,1,'L');
$pdf->Cell(170,-6,'Date:' ,0,1,'R');
$pdf->ln(8);
$pdf->SetFont('Arial','B',13);
$pdf->Cell(0,8,"Student's Name :- {$name}",0,1,'L');
$pdf->Cell(0,8,"Phone No. :- {$phone} ",0,1,'L');
$pdf->Cell(180,-9," Student's ID :- {$studentID}",0,1,'R');
$pdf->ln(6);
$pdf->SetFont('Arial','B',13);
$pdf->Cell(0,8,"MAKAUT Registration No. :- {$regno} ",0,1,'L');
$pdf->Cell(180,-8,"MAKAUT Roll No :- {$rollno}",0,1,'R');
$pdf->ln(6);
$pdf->Cell(0,8,"Stream : {$stream} ",0,1,'L');
$pdf->Cell(180,-6,"Year : {$year}",0,1,'R');
$pdf->ln(4);
$pdf->Cell(0,6,"Semester : {$semester}",0,1,'L');
$pdf->Cell(0,6,"Email : {$email}",0,1,'L');
$pdf->Cell(0,6,"Received a sum of: {$rupees}",0,1,'L');
$pdf->ln(4);
$pdf->Cell(0,10,"Fees Details ",1,1,'L');
$pdf->Cell(0,-10,"Amount(Rs) ",1,1,'C');
$pdf->Cell(0,10,"",1,1,'R');
$pdf->Cell(0,10,"MAKAUT Development Fees ",1,1,'L');
$pdf->Cell(0,-10,"{$cb1} ",0,1,'C');
$pdf->Cell(0,10,"",1,1,'R');
$pdf->Cell(0,10,"MAKAUT Registration fees ",1,1,'L');
$pdf->Cell(0,-10,"{$cb2} ",0,1,'C');
$pdf->Cell(0,10,"",1,1,'R');
$pdf->Cell(0,10,"MAKAUT Exam Fees ",1,1,'L');
$pdf->Cell(0,-10,"{$cb3} ",0,1,'C');
$pdf->Cell(0,10,"",1,1,'R');
$pdf->Cell(0,10,"MAKAUT PPR/PPS ",1,1,'L');
$pdf->Cell(0,-10,"{$cb4} ",0,1,'C');
$pdf->Cell(0,10,"",1,1,'R');
$pdf->Cell(0,10,"MAKAUT Back Log ",1,1,'L');
$pdf->Cell(0,-10,"{$cb5} ",0,1,'C');
$pdf->Cell(0,10,"",1,1,'R');
$pdf->Cell(0,10,"Other ",1,1,'L');
$pdf->Cell(0,-10,"{$cb6} ",0,1,'C');
$pdf->Cell(0,10,"",1,1,'R');
$pdf->Cell(0,10,"Total ",1,1,'L');
$total=$cb1+$cb2+$cb3+$cb4+$cb5+$cb6 ;
$pdf->Cell(0,-10,"{$total} ",0,1,'C');
$pdf->Cell(0,10,"",1,1,'R');
if($payvia =="chkdd")
{
>>>>>>> 5055583ab802be7f4a2e67da61a8decb31d5c9a7
$pdf->ln(8);
$pdf->SetFont('Arial','B',13);
$pdf->Cell(0,8,"Student's Name :- {$name}",0,1,'L');
$pdf->Cell(0,8,"Phone No. :- {$phone} ",0,1,'L');
$pdf->Cell(180,-9," Student's ID :- {$studentID}",0,1,'R');
$pdf->ln(6);
$pdf->SetFont('Arial','B',13);
$pdf->Cell(0,8,"MAKAUT Registration No. :- {$regno} ",0,1,'L');
$pdf->Cell(180,-8,"MAKAUT Roll No :- {$rollno}",0,1,'R');
$pdf->ln(6);
$pdf->Cell(0,8,"Stream : {$stream} ",0,1,'L');
$pdf->Cell(180,-6,"Year : {$year}",0,1,'R');
$pdf->ln(4);
$pdf->Cell(0,6,"Semester : {$semester}",0,1,'L');
$pdf->Cell(0,6,"Email : {$email}",0,1,'L');
$pdf->Cell(0,6,"Received a sum of: {$rupees}",0,1,'L');
$pdf->ln(4);
$pdf->Cell(0,10,"Fees Details ",1,1,'L');
$pdf->Cell(0,-10,"Amount(Rs) ",1,1,'C');
$pdf->Line(80,173,80,212);
$pdf->Cell(0,10,"Cheque/DD no ",1,1,'L');
$pdf->Cell(0,-10,"{$num} ",0,1,'C');
$pdf->Cell(0,10,"",1,1,'R');
$pdf->Cell(0,10,"MAKAUT Development Fees ",1,1,'L');
$pdf->Cell(0,-10,"{$cb1} ",0,1,'C');
$pdf->Cell(0,10,"Issuing Bank",1,1,'L');
$pdf->Cell(0,-10,"{$bank} ",0,1,'C');
$pdf->Cell(0,10,"",1,1,'R');
$pdf->Cell(0,10,"MAKAUT Registration fees ",1,1,'L');
$pdf->Cell(0,-10,"{$cb2} ",0,1,'C');
$pdf->Cell(0,10,"Bank Branch",1,1,'L');
$pdf->Cell(0,-10,"{$branch} ",0,1,'C');
$pdf->Cell(0,10,"",1,1,'R');
$pdf->Cell(0,10,"MAKAUT Exam Fees ",1,1,'L');
$pdf->Cell(0,-10,"{$cb3} ",0,1,'C');
$pdf->Cell(0,10,"Date ",1,1,'L');
$pdf->Cell(0,-10,"{$date} ",0,1,'C');
$pdf->Cell(0,10,"",1,1,'R');
<<<<<<< HEAD
$pdf->Cell(0,10,"MAKAUT PPR/PPS ",1,1,'L');
$pdf->Cell(0,-10,"{$cb4} ",0,1,'C');
$pdf->Cell(0,10,"",1,1,'R');
Expand Down Expand Up @@ -113,4 +188,18 @@
$pdf->Cell(0,5,"iii)Fees once paid would not be refunded at any cost",0,1,'L');
$pdf->output();
ob_end_flush();
=======
$pdf->Cell(0,-50,"",0,1,'C');
}
$pdf->Line(80,85,80,165);
$pdf->Cell(0,90,"{$comments}",0,1,'L');
$pdf->Line(10,250,200,250);
$pdf->SetFont('Arial','B',10);
$pdf->Cell(0,5,"Note: i) The receipt is for the encashment of DD/cheque ",0,1,'L');
$pdf->Cell(0,5,"ii)The amount Due must be paid within the DUE DATE to avoid suspension of his/her name from Rolls ",0,1,'L');
$pdf->Cell(0,5,"and incidental loss of percentage and other complication ",0,1,'L');
$pdf->Cell(0,5,"iii)Fees once paid would not be refunded at any cost",0,1,'L');
$pdf->output();
ob_end_flush();
>>>>>>> 5055583ab802be7f4a2e67da61a8decb31d5c9a7
?>

0 comments on commit 978f981

Please sign in to comment.