ok

Mini Shell

Direktori : /home/ngwcolle/www/ICICI_MS_LIVE/
Upload File :
Current File : /home/ngwcolle/www/ICICI_MS_LIVE/thanku.php

<?php
error_reporting(1);
error_reporting(E_ALL);
include_once('dbconfig.php');
include_once('amountinword.php');
$user = $_REQUEST['user'];
// = $_POST["user"]; //to get the value
?>
<!doctype html>
<html lang="en">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">

    <title>Hello, world!</title>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Maven+Pro&display=swap');

        body {
            font-family: 'Maven Pro', sans-serif;
            background-color: #f12369
        }

        hr {
            color: #0000004f;
            margin-top: 5px;
            margin-bottom: 5px
        }

        .add td {
            color: #c5c4c4;
            text-transform: uppercase;
            font-size: 12px
        }

        .content {
            font-size: 14px
        }
    </style>

</head>

<body>
    <div class="container mt-5 mb-3">
        <div class="row d-flex justify-content-center">
            <div class="col-md-8">
                <div class="card">
                    <div id="printableArea">
                        <?php
                        $query = "SELECT tbl_payment_history.*,tbl_student.* FROM tbl_payment_history inner join tbl_student on tbl_payment_history.rollno=tbl_student.rollno where tbl_payment_history.id='$user'";
                        $result = $con->query($query);
                        if ($result->num_rows > 0) {

                            $row = $result->fetch_assoc();
                        ?>
                            <div class="d-flex flex-row p-2"> <img src="logo.jpg" width="50%">
                                <div class="d-flex flex-column p-2"> <span class="font-weight-bold">
                                        <h4>PAYMENT RECEIPT</h4>
                                    </span> <small>Orderid:<?php echo $row['orderid']; ?></small> </div>
                            </div>
                            <hr>
                            <div class="table-responsive p-2">

                                <table class="table table-borderless">
                                    <tbody>
                                        <tr class="add">
                                            <td>Paid To</td>
                                            <td>Paid By</td>
                                        </tr>
                                        <tr class="content">
                                            <td class="font-weight-bold">PRINCIPAL <br>Niranjan Govt. Womens College <br>Aska</td>
                                            <td class="font-weight-bold"><?php echo $row['studentfirstname'] . " " . $row['studentmiddlename'] . " " . $row['studentlastname']; ?> <br> <?php echo $row['rollno']; ?></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <hr>
                            <div class="products p-2">
                                <table class="table table-borderless">
                                    <tbody>
                                        <tr class="add">
                                            <td>Description</td>
                                            <td>Amount Due</td>
                                            <td>Amount Paid</td>
                                            <td class="text-center">Outstanding</td>
                                        </tr>
                                        <tr class="content">
                                            <td><?php echo $row['remark']; ?></td>
                                            <td><?php echo $row['amountpaid']; ?></td>
                                            <td><?php echo $row['amountpaid']; ?></td>
                                            <td class="text-center">0</td>
                                        </tr>

                                    </tbody>
                                </table>
                            </div>
                            <hr>
                            <div class="products p-2">
                                <table class="table table-borderless">
                                    <tbody>
                                        <tr class="add">
                                            <td></td>
                                            <td>Total Paid</td>
                                            <td>Charges</td>
                                            <td class="text-center">Oustanding</td>
                                        </tr>
                                        <tr class="content">
                                            <td></td>
                                            <td><?php echo $row['amountpaid']; ?></td>
                                            <td>0</td>
                                            <td class="text-center">0</td>
                                        </tr>
                                        <tr class="content">
                                            <td colspan='3'>Amount in Words: (<?php echo getConvertNumberToWord($row['amountpaid']); ?>)</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <hr>
                            <div class="address p-2">
                                <table class="table table-borderless">
                                    <tbody>
                                        <tr class="add">
                                            <td>Transaction Details</td>
                                        </tr>
                                        <tr class="content">
                                            <td> Tx Reference No : <?php echo $row['TxnRefNo']; ?> <br> Paid Date : <?php echo date('d-m-Y h:i:s A', strtotime($row['txdatetime'])); ?> <br> College Ref.No. : <?php echo $row['mertxrefno']; ?> <br> Transaction Remark : <?php echo $row['pmtmessage']; ?> <br> </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>

                    </div>
                    <div class="address p-2">
                        <a href="https://ngwcollege.in/ICICI_MS_LIVE/" class="btn btn-primary btn-outline mr-2 float-right">Back to Home</a>
                        <!-- <button></button> -->
                        <button class="btn btn-success mr-2 float-right" onclick="printDiv('printableArea');">Print Receipt</button>
                    </div>
                </div>

            </div>
        </div>
    </div>
<?php } ?>
<!-- Optional JavaScript; choose one of the two! -->

<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<script>
    function printDiv(divName) {
        var printContents = document.getElementById(divName).innerHTML;
        var originalContents = document.body.innerHTML;

        document.body.innerHTML = printContents;

        window.print();

        document.body.innerHTML = originalContents;
    }
</script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
    -->
</body>

</html>

Zerion Mini Shell 1.0