File "receipt-20260112030902.php"

Full Path: /home/ovanhxso/public_html/PHPMailer/css/receipt-20260112030902.php
File size: 2.56 KB
MIME-type: text/x-php
Charset: utf-8

<?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> &nbsp; <?php echo $formattedDate = date('M d, Y', strtotime($record['date'])); ?></p>
                      
                        <p style="text-align: end;"><b>Donation amount:</b> &nbsp; <?php echo htmlspecialchars($record['amount']); ?></p>
                    </td>
                </tr>
                <tr>
                    <td><b>Name:</b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <?php echo htmlspecialchars($record['name']); ?></td>
                    <td><b>Email:</b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <?php echo htmlspecialchars($record['email']); ?></td>
                    <td><b>Phone:</b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <?php echo htmlspecialchars($record['phone']); ?></td>
                </tr>
                <tr>
                    <td style="padding-top:30px; padding-bottom:30px;"><b>Received By:</b>&nbsp; &nbsp; Bharatiya Open Volunteer Association (OVA)</td>
                </tr>
            </tbody>
        </table>
    </div>
    <button onclick="window.print()">Print this page</button>
</body>
</html>