Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
revealability
/
js
/
PHPMailer
:
receipt.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php include 'panel/assets/constant/config.php'; if (!isset($_GET['payment_id'])) { echo "Invalid request. No ID provided."; exit; } $stmt4 = $conn->prepare("SELECT * FROM `join_member` WHERE payment_id = :payment_id"); $stmt4->bindParam(':payment_id', $_GET['payment_id']); $stmt4->execute(); $record = $stmt4->fetch(); if (!$record) { echo "No record found for the provided ID."; exit; } $st = $conn->prepare("SELECT * FROM `manage_web` "); $st->execute(); $rec = $st->fetch(); ?> <!doctype html> <html lang="en"> <head> </head> <style> body { width: 60%; margin: 0 auto; padding: 50px; margin-top: 20px; } table { border: 1px solid black; width: 100%; line-height: inherit; text-align: left; border-collapse: collapse; padding: 20px; } table, td, th { padding: 20px; } </style> <body> <div style="padding:20px;"> <table> <tbody> <tr> <td> <h2>Payment Receipt</h2> </td> <td></td> </tr> <tr> <td> <img src="panel/assets/images/<?php echo $rec['photo1'];?>" width="100"> <p style="margin:0px"><?php echo $rec['title'];?></p></td> <td colspan="6" > <p style="text-align: end;"><b>Payment Date:</b> <?php echo $formattedDate = date('M d, Y', strtotime($record['date'])); ?></p> <p style="text-align: end;"><b>Donation amount:</b> <?php echo htmlspecialchars($record['amount']); ?></p> </td> </tr> <tr> <td><b>Name:</b> <?php echo htmlspecialchars($record['name']); ?></td> <td><b>Email:</b> <?php echo htmlspecialchars($record['email']); ?></td> <td><b>Phone:</b> <?php echo htmlspecialchars($record['phone']); ?></td> </tr> <tr> <td style="padding-top:30px; padding-bottom:30px;"><b>Received By:</b> Bharatiya Open Volunteer Association (OVA)</td> </tr> </tbody> </table> </div> <button onclick="window.print()">Print this page</button> </body> </html>