[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: settings.php
<?php include("../admin/includes/functions/functions.php");?> <?php include("../admin/db/db.php");?> <?php if(!isset($_SESSION['username_Xw211qAAsq4'])) { header('Location: ../auth/'); exit(); } else{ $pageTitle1 = 'Add New Stock'; $shopname = $_SESSION['business_name_Xw211qAAsq4']; $message = ""; } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title> <?php echo $shopname;?> - <?php echo $pageTitle1;?></title> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <link href="plugins/datatables/dataTables.bootstrap4.css" rel="stylesheet" type="text/css" /> <link href="plugins/datatables/responsive.bootstrap4.css" rel="stylesheet" type="text/css" /> <link href="plugins/datatables/buttons.bootstrap4.css" rel="stylesheet" type="text/css" /> <link href="plugins/datatables/select.bootstrap4.css" rel="stylesheet" type="text/css" /> <script src="https://code.jquery.com/jquery-3.6.4.min.js" integrity="sha256-oP6HI9z1XaZNBrJURtCoUT5SUnxFr8s3BzRl+cbzUq8=" crossorigin="anonymous"></script> <link rel="shortcut icon" href="../assets/icon.png" type="image/x-icon"> <link rel="icon" href="../assets/icon.png" type="image/x-icon"> <!-- App css --> <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/icons.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/theme.min.css" rel="stylesheet" type="text/css" /> <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script> <style> .container { display: flex; max-width: 1200px; margin: 20px auto; background-color: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); border-radius: 8px; overflow: hidden; } .sidebar { width: 250px; background-color: #2c3e50; color: #fff; padding: 20px; } .sidebar h2 { font-size: 24px; margin-bottom: 20px; color: #ecf0f1; } .settings-menu h3 { font-size: 18px; margin-bottom: 15px; color: #bdc3c7; } .settings-menu ul { list-style: none; padding: 0; } .settings-menu li { padding: 10px 15px; margin-bottom: 5px; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; display: flex; align-items: center; } .settings-menu li:hover { background-color: #34495e; } .icon { margin-right: 10px; } .content { flex: 1; padding: 20px; } .form-container { display: none; background-color: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .form-container.active { display: block; } .form-group { margin-bottom: 15px; } .form-group label { display: block; color: #2c3e50; margin-bottom: 5px; } .form-group input, .form-group select { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; } .form-group button { padding: 10px 20px; background-color: #2c3e50; color: #fff; border: none; border-radius: 4px; cursor: pointer; } .form-group button:hover { background-color: #34495e; } /* Responsive Design */ @media (max-width: 768px) { .container { flex-direction: column; margin: 10px; } .sidebar { width: 100%; padding: 15px; } .settings-menu li { justify-content: center; } .content { padding: 15px; } .form-container { margin-top: 15px; } } </style> </head> <body> <div id="preloader"> <div id="loader"></div> </div> <!-- Begin page --> <div id="layout-wrapper"> <div class="header-border"></div> <?php include("includes/template/head.php");?> <?php include("includes/template/side.php");?> <div class="main-content"> <div class="page-content"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <div class="container"> <aside class="sidebar"> <h2>Settings</h2> <nav class="settings-menu"> <ul> <li data-section="plans"><span class="icon">📊</span> Plans & Billing</li> <li data-section="login"><span class="icon">🔒</span> Login Details</li> <li data-section="sms"><span class="icon">📱</span> SMS Recharge</li> <li data-section="whatsapp"><span class="icon">💬</span> WhatsApp Recharge</li> <li data-section="download"><span class="icon">📥</span> Download Center</li> </ul> </nav> </aside> <main class="content"> <div id="form-container" class="form-container"></div> </main> </div> </div> <!-- end card--> </div> <!-- end col --> </div> <!--end row--> </div> <!-- container-fluid --> </div> <!-- End Page-content --> <?php include("includes/template/newfooter.php");?> </div> <!-- end main content--> </div> <!-- END layout-wrapper --> <!-- Overlay--> <div class="menu-overlay"></div> <?php //include("includes/modals/StockModal.php");?> <div class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-body"> <div class="modal-body" style="width: 100%"> <form class="row" id="add_category_bttn" method="POST"> <div class="col-md-6 col-lg-6"> <div class="form-group row"> <label for="company_name" class="col-sm-5 col-form-label">Product name</label> <div class="col-sm-10"> <?php $stmt = $con->prepare("SELECT * FROM products,supplier WHERE products.supplier = supplier.supplier_id AND products.business_name = ?"); $stmt->execute(array($shopname)); $rows_categories = $stmt->fetchAll(); ?> <select class="form-control" name="pro_id" style="height : 45px;" autocomplete="off"> <option value="">Select Supplier</option> <?php foreach($rows_categories as $category) { echo "<option value = '".$category['pro_id']."'>"; echo $category['product_name'].' -- '.'<br>'.$category['supplier_name']; echo "</option>"; } ?> </select> </div> </div> </div> <div class="col-md-6 col-lg-6"> <div class="form-group row"> <label for="start_date" class="col-sm-5 col-form-label">Item Qty </label> <div class="col-sm-10"><input type="number" name="qty" class="form-control" style="height : 45px;" autocomplete="off"> </div> </div> </div> <br /> <div class="col-md-6 col-lg-6"> <div class="form-group row"> <label for="start_date" class="col-sm-5 col-form-label"> Date</label> <div class="col-sm-10"> <input type="date" name="date" class="form-control" style="height : 45px;"> </div> </div> </div> <div class="form-group col-md-4"> <br/><br/> <button type="submit" name="add" class="btn btn-success form-control">Send</button> </div> </div> </form> </div> </div> </div> </div> </div> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/bootstrap.bundle.min.js"></script> <script src="assets/js/metismenu.min.js"></script> <script src="assets/js/waves.js"></script> <script src="assets/js/simplebar.min.js"></script> <script src="plugins/raphael/raphael.min.js"></script> <script src="assets/pages/dashboard-demo.js"></script> <script src="assets/js/theme.js"></script> <script src="assets/pages/datatables-demo.js"></script> <script type="text/javascript"> document.addEventListener('DOMContentLoaded', () => { const menuItems = document.querySelectorAll('.settings-menu li'); const formContainer = document.getElementById('form-container'); menuItems.forEach(item => { item.addEventListener('click', () => { const section = item.getAttribute('data-section'); let formHtml = ''; switch (section) { case 'plans': formHtml = ` <h4>Plans & Billing</h4> <form id="plans-form" class="settings-form" method="POST" action="submit.php"> <input type="hidden" name="section" value="plans"> <div class="form-group"> <label for="plan">Select Plan</label> <select id="plan" name="plan"> <option value="basic">Basic</option> <option value="pro">Pro</option> <option value="enterprise">Enterprise</option> </select> </div> <div class="form-group"> <label for="staff-size">Staff Size</label> <input type="number" id="staff-size" name="staff-size" placeholder="Enter staff size"> </div> <div class="form-group"> <button type="submit">Save Changes</button> </div> </form> `; break; case 'login': formHtml = ` <h4>Login Details</h4> <form id="login-form" class="settings-form" method="POST" action="submit.php"> <input type="hidden" name="section" value="login"> <div class="form-group"> <label for="email">Email</label> <input type="email" id="email" name="email" placeholder="Enter email"> </div> <div class="form-group"> <label for="password">Password</label> <input type="password" id="password" name="password" placeholder="Enter password"> </div> <div class="form-group"> <button type="submit">Update Login</button> </div> </form> `; break; case 'sms': formHtml = ` <h4>SMS Recharge</h4> <form id="sms-form" class="settings-form" method="POST" action="submit.php"> <input type="hidden" name="section" value="sms"> <div class="form-group"> <label for="sms-pack">SMS Pack</label> <select id="sms-pack" name="sms-pack"> <option value="100">100 SMS</option> <option value="500">500 SMS</option> <option value="1000">1000 SMS</option> </select> </div> <div class="form-group"> <button type="submit">Purchase</button> </div> </form> `; break; case 'whatsapp': formHtml = ` <h4>WhatsApp Recharge</h4> <form id="whatsapp-form" class="settings-form" method="POST" action="submit.php"> <input type="hidden" name="section" value="whatsapp"> <div class="form-group"> <label for="whatsapp-pack">WhatsApp Pack</label> <select id="whatsapp-pack" name="whatsapp-pack"> <option value="50">50 Messages</option> <option value="200">200 Messages</option> <option value="500">500 Messages</option> </select> </div> <div class="form-group"> <button type="submit">Purchase</button> </div> </form> `; break; case 'download': formHtml = ` <h4>Download Center</h4> <form id="download-form" class="settings-form" method="POST" action="submit.php"> <input type="hidden" name="section" value="download"> <div class="form-group"> <label for="data-type">Data Type</label> <select id="data-type" name="data-type"> <option value="customer">Customer Data</option> <option value="services">Services</option> <option value="packages">Packages</option> </select> </div> <div class="form-group"> <button type="submit">Download</button> </div> </form> `; break; } formContainer.innerHTML = formHtml; formContainer.classList.add('active'); }); }); document.addEventListener('click', (e) => { const formContainer = document.getElementById('form-container'); if (!formContainer.contains(e.target) && !e.target.closest('.settings-menu li')) { formContainer.classList.remove('active'); } }); }); </script> <!-- jQuery --> </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.81 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