[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: offline_payment.php
<?php include("functions.php"); if(!isset($_SESSION['username_Xw21erAAsqg4'])){ header("Location: index"); exit(); } else { $phone = $_SESSION['phone']; $username = $_SESSION['username_Xw21erAAsqg4']; $gettype = mysqli_query($new,"SELECT * FROM admin WHERE username = '$username'"); $type1 = mysqli_fetch_array($gettype); $mytype = $type1['type']; } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Boxicons --> <link href='https://unpkg.com/boxicons@2.0.9/css/boxicons.min.css' rel='stylesheet'> <!-- My CSS --> <link rel="stylesheet" href="style.css"> <title>Offline Ticketing : <?php echo $username;?></title> <script src="https://cdn.tailwindcss.com"></script> <script src="https://js.paystack.co/v1/inline.js"></script> <!-- Paystack JS library --> </head> <body> <!-- SIDEBAR --> <?php if($mytype == 'user'){?> <section id="sidebar"> <a href="dashboard" class="brand"> <i class='bx bxs-smile'></i> <span class="text"><?php echo $username;?></span> </a> <ul class="side-menu top"> <li class="active"> <a href="dashboard"> <i class='bx bxs-dashboard' ></i> <span class="text">Dashboard</span> </a> </li> <li> <a href="offline_ticket"> <i class='bx bxs-shopping-bag-alt' ></i> <span class="text">Offline Ticket(Cash)</span> </a> </li> <li> <a href="verify_ticket"> <i class='bx bxs-doughnut-chart' ></i> <span class="text">Verify Ticket</span> </a> </li> </ul> <ul class="side-menu"> <!-- <li> <a href="#"> <i class='bx bxs-cog' ></i> <span class="text">Settings</span> </a> </li> --> <li> <a href="logout" class="logout"> <i class='bx bxs-log-out-circle' ></i> <span class="text">Logout</span> </a> </li> </ul> </section> <?php } else{?> <section id="sidebar"> <a href="dashboard" class="brand"> <i class='bx bxs-smile'></i> <span class="text"><?php echo $username;?></span> </a> <ul class="side-menu top"> <li class="active"> <a href="dashboard"> <i class='bx bxs-dashboard' ></i> <span class="text">Dashboard</span> </a> </li> <li> <a href="verify_ticket"> <i class='bx bxs-doughnut-chart' ></i> <span class="text">Verify Ticket</span> </a> </li> <li> <a href="offline_ticket"> <i class='bx bxs-shopping-bag-alt' ></i> <span class="text">Offline Ticket(Cash)</span> </a> </li> <li> <a href="all-tickets"> <i class='bx bxs-shopping-bag-alt' ></i> <span class="text">All Tickets</span> </a> </li> <li> <a href="verified"> <i class='bx bxs-doughnut-chart' ></i> <span class="text">All verified Tickets</span> </a> </li> <li> <a href="unverified"> <i class='bx bxs-message-dots' ></i> <span class="text">Unverified Tickets</span> </a> </li> <li> <a href="users"> <i class='bx bxs-group' ></i> <span class="text">Team</span> </a> </li> <li> <a href="finance"> <i class='bx bxs-group' ></i> <span class="text">Finance</span> </a> </li> </ul> <ul class="side-menu"> <li> <a href="#"> <i class='bx bxs-cog' ></i> <span class="text">Settings</span> </a> </li> <li> <a href="logout" class="logout"> <i class='bx bxs-log-out-circle' ></i> <span class="text">Logout</span> </a> </li> </ul> </section> <?php }?> <!-- SIDEBAR --> <!-- CONTENT --> <section id="content"> <!-- NAVBAR --> <nav> <i class='bx bx-menu' ></i> <a href="#" class="nav-link">Offline Ticket</a> <form action="#"> <div class="form-input"> <input type="search" placeholder="Search..."> <button type="submit" class="search-btn"><i class='bx bx-search' ></i></button> </div> </form> <input type="checkbox" id="switch-mode" hidden> <label for="switch-mode" class="switch-mode"></label> </nav> <!-- NAVBAR --> <!-- MAIN --> <main> <?php if(!isset($_SESSION['phone'])){ header("Location: offline_ticket"); exit(); } else { ?> <div class="table-data"> <div class="order"> <div class="bg-white rounded-2xl shadow-lg p-6 w-full max-w-md mx-auto"> <h2 class="text-xl sm:text-2xl font-bold mb-6 text-center">Choose Amount to Pay</h2> <form id="paymentForm" action="offlinepay.php" method="POST" class="space-y-4"> <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4"> <div class="amount-card border border-gray-300 rounded-xl p-4 text-center cursor-pointer hover:bg-blue-100" data-amount="20"> <span class="text-base sm:text-lg font-semibold">1 Ticket - GHS 20</span> </div> <div class="amount-card border border-gray-300 rounded-xl p-4 text-center cursor-pointer hover:bg-blue-100" data-amount="50"> <span class="text-base sm:text-lg font-semibold">3 Tickets - GHS 50</span> </div> <div class="amount-card border border-gray-300 rounded-xl p-4 text-center cursor-pointer hover:bg-blue-100" data-amount="80"> <span class="text-base sm:text-lg font-semibold">5 Tickets - GHS 80</span> </div> <div class="amount-card border border-gray-300 rounded-xl p-4 text-center cursor-pointer hover:bg-blue-100" data-amount="150"> <span class="text-base sm:text-lg font-semibold">10 Tickets - GHS 150</span> </div> </div> <!-- ✅ Only one hidden input --> <input type="hidden" name="amount" id="selectedAmount" value="" /> <button type="submit" name="submit" class="w-full bg-blue-600 text-white py-3 rounded-xl text-lg font-semibold hover:bg-blue-700 transition duration-300"> Pay Now </button> <p id="confirmationMessage" class="text-green-600 text-center font-medium hidden"></p> </form> </div> </div> </div> <?php }?> <script> const cards = document.querySelectorAll('.amount-card'); const selectedAmount = document.getElementById('selectedAmount'); const confirmationMessage = document.getElementById('confirmationMessage'); cards.forEach(card => { card.addEventListener('click', () => { cards.forEach(c => c.classList.remove('bg-blue-200', 'border-blue-600')); card.classList.add('bg-blue-200', 'border-blue-600'); selectedAmount.value = card.dataset.amount; confirmationMessage.classList.add('hidden'); }); }); </script> </main> <!-- MAIN --> </section> <!-- CONTENT --> <script src="script.js"></script> </body> </html>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.69 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002