Example #1
0
echo "</table>";
if ($bookinginfo['bkDatePaymentConfirmed'] != '0000-00-00') {
    echo "<p>Your booking is recorded as paid.</p>";
}
if ($bookinginfo['bkInQueue'] == 1) {
    echo "<p>Your booking has been placed in a queue. You will be able to pay once it is removed from the queue by an admin.</p>";
    echo "<p>If you would like to cancel your queued booking and rebook a different ticket type then <a href='bookingconfirmdelete.php?BookingID=" . $bookingid . "'>click here</a>.";
} else {
    if ($bookinginfo['bkAmountExpected'] > $bookinginfo['bkAmountPaid']) {
        $remaining = number_format($bookinginfo['bkAmountExpected'] - $bookinginfo['bkAmountPaid'], 2);
        if (USE_PAY_PAL) {
            echo "<table class='payment'><tr><td>Pay balance of &pound;{$remaining} via Paypal:</td><td>";
            generatePaypalButton("Event booking - " . $bookinginfo['evEventName'] . " (" . PID_PREFIX . sprintf('%03s', $bookinginfo['bkPlayerID']) . ")", $bookinginfo['bkPlayerID'], $remaining, $bookinginfo['bkID']);
            echo "</td></tr>";
            echo "<tr><td>Pay another amount:</td><td><input type='text' value='" . $remaining . "' onChange='updatePaypalButton()' id='txtAnotherAmount' class='paypalamount'/>";
            generatePaypalButton("Event booking - " . $bookinginfo['evEventName'] . " (" . PID_PREFIX . sprintf('%03s', $bookinginfo['bkPlayerID']) . ") - Partial Payment", $bookinginfo['bkPlayerID'], $remaining, $bookinginfo['bkID'], 'anotheramount');
            echo "</td></tr>";
        }
        if ($paymentrequest == 0) {
            echo "<tr><td>Request payment by another user:</td><td>";
            echo "<form action='start.php' method='post'><input type=hidden name='hBooking' value='" . $bookinginfo['bkID'] . "' /><input type=text name='txtEmail' /><input type='submit' name='btnSubmit' value='Send Email' /></form>";
            echo "</td></tr>";
            echo "<tr><td>Cancel booking:</td><td><a href='bookingconfirmdelete.php?BookingID=" . $bookingid . "'>Cancel</a></td>";
        }
        echo "</table>";
    }
}
if ($bookinginfo["bkBunkAllocated"]) {
    echo "<p>A bunk has been allocated to you</p>";
}
?>
Example #2
0
        if ($BookingCount > $spaces) {
            $bookinginfo['bkInQueue'] = 1;
            $queuereason = "there are no spaces remaining of your booking type.";
        }
    }
}
if ($bookinginfo['bkInQueue'] == 0) {
    if ($bookingtotal > 0) {
        echo "<table class='payment'>";
        echo "<tr><td>Pay Later</td><td><a href='start.php'>Pay later</a></td></tr>";
        if (USE_PAY_PAL) {
            echo "<tr><td>Pay balance of &pound;{$bookingtotal} via Paypal:</td><td>";
            generatePaypalButton("Event booking - " . $bookinginfo['evEventName'] . " (" . PID_PREFIX . sprintf('%03s', $PLAYER_ID) . ")", $PLAYER_ID, $bookingtotal, $bookinginfo['bkID']);
            echo "</td></tr>";
            echo "<tr><td>Pay another amount:</td><td><input type='text' value='" . $bookingtotal . "' onChange='updatePaypalButton()' id='txtAnotherAmount' class='paypalamount'/>";
            generatePaypalButton("Event booking - " . $bookinginfo['evEventName'] . " (" . PID_PREFIX . sprintf('%03s', $PLAYER_ID) . ") - Partial Payment", $PLAYER_ID, $bookingtotal, $bookinginfo['bkID'], 'anotheramount');
            echo "</td></tr>";
        }
        echo "<tr><td>Request payment by another user:</td><td>";
        echo "<form action='start.php' method='post'><input type=hidden name='hBooking' value='" . $bookinginfo['bkID'] . "' /><input type=text name='txtEmail'/><input type='submit' name='btnSubmit' value='Send Email' /></form>";
        echo "</td></tr>";
        echo "</table>";
    } else {
        echo "<p>Your booking is now complete, as it does not require any payment</p>";
        $bookinginfo['bkDatePaymentConfirmed'] = $today;
    }
} else {
    echo "<p>Your booking has been placed in a queue because {$queuereason}</p>";
    echo "<p>You will be able to pay once it is removed from the queue by an admin.</p>";
    fnMailer("Event booking - " . $eventinfo['evEventName'] . " (" . PID_PREFIX . sprintf('%03s', $PLAYER_ID) . ")\nA booking has been placed in the queue", false);
}