Viewing file: admin_receipt.php (9.37 KB) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<style>
body{
font-family:Verdana, sans-serif ;
font-size::12px;
}
.wrapper{
width:980px;
margin:0 auto;
}
table{
}
tr{
padding:5px
}
td{
padding:5px;
}
input{
padding:5px;
}
</style>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Srishti Innovative Education Services Pvt Ltd</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css"
integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
</head>
<body style="margin:0;padding:0;font-family: system-ui;">
<?php
require 'connection.php';
$id=$_GET['id'];
$result = $con->query("SELECT * FROM tb_paymet WHERE id='" . $id . "'");
$row = $result->fetch_assoc();
$user_id=$row['user_id'];
$result1 = $con->query("SELECT * FROM user_details WHERE user_id='" . $user_id . "'");
$row1 = $result1->fetch_assoc();
$name = $row1['name'];
?>
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;background:#ffffff;">
<tr>
<td align="center" style="padding:20px;">
<table role="presentation" style="width:950px;border-collapse:collapse;border:1px solid #cccccc;border-spacing:0;text-align:left; margin: : 20px">
<tr>
<td align="center" style="padding:20px;background:#fff; border-bottom: 31px solid #ccc;">
<div>
<div style="display: flex; justify-content: space-between; align-items: center;" >
<img style=" width: 220px;height: 100%;" src="https://srishticampus.com/images/sicsfullogo.png">
<div class="">
<!-- <h1 style=" margin: 0; padding:0; text-align:right; color: #ccc; margin-right: 17px;" >INVOICE</h1>-->
<!-- <span style=" color: #104eb1; font-weight: 500;margin-right: 0px 17px !important; padding:0; text-align:right;" ><i style="color: #104eb1; margin: 5px; font-size: 19px;" class="fas fa-mobile-alt"></i>9846011044</span>-->
<!-- <p style=" margin: 0; padding:0; text-align:right;" >1C 1st floor Carnival building Technopark Trivandrum</p>-->
</div>
</div>
</div>
</td>
</tr>
<tr>
<td style=" padding: 20px; display: flex;">
<table style="width: 100%;padding-right: 30px;" >
<tr style=" height: 40px;" >
<td style="font-weight:bold; color: #424242;" >Recepit.No</td>
<td style="text-align: right; padding-right:20px;" >SICS000<?php echo $id;?></td>
</tr>
<tr style=" height: 40px;" >
<td style="font-weight:bold; color: #424242;" >Date</td>
<td style="text-align: right; padding-right:20px;" ><?php echo $row['txn_date'];?> </td>
</tr>
<tr style=" height: 40px;" >
<td style="font-weight:bold; color: #424242;" >Name of Student</td>
<td style="text-align: right; padding-right:20px;" ><?php echo $row1['name'];?></td>
</tr>
<tr style=" height: 40px;" >
<td style="font-weight:bold; color: #424242;" >Phone</td>
<td style="text-align: right; padding-right:20px;" ><?php echo $row['phone'];?></td>
</tr>
</table>
<table style="width: 100%;" >
<tr style=" height: 40px;" >
<td style="font-weight:bold; color: #424242;" >Payment Mode</td>
<td style="text-align: right; padding-right:20px;" ><?php echo $row['txn_type'];?></td>
</tr>
<!-- <tr style=" height: 40px;" >
<td style="font-weight:bold; color: #424242;" >Payment Gate Way Transaction Reference no</td>
<td style="text-align: right; padding-right:20px;" ></td>
</tr> -->
<tr style=" height: 40px;" >
<td style="font-weight:bold; color: #424242;" >Transaction Amount</td><?php $amount;?>
<td style="text-align: right; padding-right:20px;" ><?php echo $row['txn_amount'];?>.00</td>
</tr>
<tr style=" height: 40px;" >
<td style="font-weight:bold; color: #424242;" >Status of Transaction</td>
<td style="text-align: right; padding-right:20px;" >Success</td>
</tr>
<tr style=" height: 40px;" >
<td style="font-weight:bold; color: #424242;" >Purpose of Payment</td>
<td style="text-align: right; padding-right:20px;" >Payment for <?php echo $row['course'];?></td>
</tr>
<!-- <tr style=" height: 40px;" >
<td style="font-weight:bold;color: #424242; " >Status description</td>
<td style="text-align: right; padding-right:20px;" > </td>
</tr> -->
</table>
</td>
</tr>
<tr>
<td style="padding:10px 30px;">
<hr>
</td>
</tr>
<tr>
<td style="padding:10px 30px;">
<table style="width: 100%;">
<thead>
<tr style="background: #464343;color: #fff;border-bottom: 0px !important; height: 40px;">
<th style="padding-left: 10px;" scope="col">Item No</th>
<th style="padding-left: 10px;" scope="col">Description</th>
<th style="padding-left: 10px;" scope="col">Amount</th>
</tr>
</thead>
<tbody>
<tr style="height: 50px;" >
<!-- <th scope="row">1</th>-->
<td style="padding-left: 10px;" >1</td>
<td style="padding-left: 10px;" >Payment for <?php echo $row['course'];?></td>
<?php
$amout= $row['txn_amount'];
$lessamount=$amout/1.18;
?>
<td style="padding-left: 10px; text-align: center;" ><?php echo round($lessamount,2);?></td>
</tr>
<tr style="height: 50px;" >
<!-- <th scope="row">1</th>-->
<td style="padding-left: 10px;" ></td>
<td style="padding-left: 10px;" >CGST@9%</td>
<?php
$cgst=$lessamount*0.09;
?>
<td style="padding-left: 10px; text-align: center;" ><?php echo round($cgst,2);?></td>
</tr>
<tr style="height: 50px;" >
<!-- <th scope="row">1</th>-->
<td style="padding-left: 10px;" ></td>
<td style="padding-left: 10px;" >GST@9%</td>
<?php
$gst=$lessamount*0.09;
?>
<td style="padding-left: 10px; text-align: center;" ><?php echo round($gst,2);?></td>
</tr>
<tr style="height: 50px;">
<!-- <th scope="row">2</th>-->
<td></td>
<td style="padding-left: 10px;" ><b>TOTAL</b></td>
<td style="padding-left: 10px; background: #ccc; text-align: center; color: #104eb1;" ><b><?php echo $row['txn_amount'];?>.00</b></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="height: 200px;">
<div style="display: flex; justify-content: flex-end;padding: 30px; align-items: center;margin-top: 55px;" >
<div style="display: flex;flex-direction: column; align-items: center;" >
<img src="https://srishticampus.com/images/seal.png" style=" width: 160px; margin-right: 20px;" >
<h5 style="font-size: 22px;font-weight: 500;margin: 3px 8px;" >Authorized Signatory</h5>
</div>
</div>
</td>
</tr>
<tr>
<td style="padding:15px;background:#104eb1; color: #fff; justify-content: space-between;display: flex;">
<span>Srishti Innovative Education Services Pvt Ltd</span>
<!-- <span>1C 1st floor Carnival building Technopark Trivandrum </span>-->
</td>
</tr>
</table>
</td>
</tr>
</table>
<div class="col-12">
<button onClick="window.print();return false;" style="float: right;margin-right: 104px;margin-top: 25px;margin-bottom: 20px;">Print</button>
</div>
</body>
</html>
|