Auto commit: 2025-12-15T00:19:20.691Z
This commit is contained in:
parent
2fcda48736
commit
e771aaa95b
254
assets/css/custom.css
Normal file
254
assets/css/custom.css
Normal file
@ -0,0 +1,254 @@
|
|||||||
|
/*
|
||||||
|
-------------------------------------
|
||||||
|
| Modern App UI - Visual Overhaul
|
||||||
|
-------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* --- Fonts & Imports --- */
|
||||||
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
||||||
|
|
||||||
|
/* --- CSS Variables (New Design System) --- */
|
||||||
|
:root {
|
||||||
|
--primary-hue: 210;
|
||||||
|
--primary-saturation: 79%;
|
||||||
|
--primary-lightness: 45%;
|
||||||
|
|
||||||
|
--primary: hsl(var(--primary-hue), var(--primary-saturation), var(--primary-lightness)); /* #2c5282 */
|
||||||
|
--primary-light: hsl(var(--primary-hue), var(--primary-saturation), 65%);
|
||||||
|
--primary-dark: hsl(var(--primary-hue), var(--primary-saturation), 30%);
|
||||||
|
--primary-bg: hsl(var(--primary-hue), 80%, 97%);
|
||||||
|
|
||||||
|
--secondary-hue: 152;
|
||||||
|
--secondary-saturation: 51%;
|
||||||
|
--secondary-lightness: 35%;
|
||||||
|
--secondary: hsl(var(--secondary-hue), var(--secondary-saturation), var(--secondary-lightness)); /* #2f855a */
|
||||||
|
|
||||||
|
--bg-color: #f7fafc;
|
||||||
|
--sidebar-bg: #ffffff;
|
||||||
|
--card-bg: #ffffff;
|
||||||
|
--text-primary: #1a202c;
|
||||||
|
--text-secondary: #718096;
|
||||||
|
--border-color: #e2e8f0;
|
||||||
|
|
||||||
|
--shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
|
||||||
|
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
|
||||||
|
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
|
||||||
|
|
||||||
|
--border-radius-md: 0.5rem;
|
||||||
|
--border-radius-lg: 0.75rem;
|
||||||
|
|
||||||
|
--transition-speed: 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Base & Typography --- */
|
||||||
|
body {
|
||||||
|
background-color: var(--bg-color);
|
||||||
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||||
|
color: var(--text-primary);
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
color: var(--text-secondary);
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Layout --- */
|
||||||
|
#wrapper {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar-wrapper {
|
||||||
|
width: 260px;
|
||||||
|
background-color: var(--sidebar-bg);
|
||||||
|
border-right: 1px solid var(--border-color);
|
||||||
|
transition: margin var(--transition-speed) ease-in-out;
|
||||||
|
z-index: 1000;
|
||||||
|
box-shadow: var(--shadow-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
#page-content-wrapper {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
flex-grow: 1;
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* --- Sidebar --- */
|
||||||
|
.sidebar-heading {
|
||||||
|
padding: 1.5rem 1.5rem;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--primary);
|
||||||
|
border-bottom: 1px solid var(--border-color);
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-heading .logo-icon {
|
||||||
|
margin-right: 0.75rem;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-group-item {
|
||||||
|
background: transparent;
|
||||||
|
border: 0;
|
||||||
|
padding: 1rem 1.5rem;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
font-weight: 500;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
transition: all var(--transition-speed) ease;
|
||||||
|
border-left: 3px solid transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-group-item .bi {
|
||||||
|
margin-right: 1rem;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-group-item:hover {
|
||||||
|
color: var(--primary);
|
||||||
|
background-color: var(--primary-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-group-item.active {
|
||||||
|
background-color: var(--primary-bg);
|
||||||
|
color: var(--primary);
|
||||||
|
border-left-color: var(--primary);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Top Bar --- */
|
||||||
|
#topbar {
|
||||||
|
background-color: var(--sidebar-bg);
|
||||||
|
border-bottom: 1px solid var(--border-color);
|
||||||
|
box-shadow: var(--shadow-sm);
|
||||||
|
padding: 0.75rem 2rem;
|
||||||
|
}
|
||||||
|
#topbar .navbar-toggler {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
#topbar .nav-link {
|
||||||
|
color: var(--text-secondary);
|
||||||
|
}
|
||||||
|
#topbar .dropdown-toggle::after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
#topbar .profile-pic {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* --- Dashboard & Cards --- */
|
||||||
|
.card.dashboard-card {
|
||||||
|
border: none;
|
||||||
|
background-color: var(--card-bg);
|
||||||
|
border-radius: var(--border-radius-lg);
|
||||||
|
box-shadow: var(--shadow-md);
|
||||||
|
transition: all var(--transition-speed) ease-in-out;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card.dashboard-card:hover {
|
||||||
|
transform: translateY(-4px);
|
||||||
|
box-shadow: var(--shadow-lg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-body {
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-title-wrapper {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
margin-bottom: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-icon {
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border-radius: var(--border-radius-md);
|
||||||
|
font-size: 1.5rem;
|
||||||
|
margin-right: 1.5rem;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-icon.icon-customs {
|
||||||
|
background-color: hsl(var(--primary-hue), 80%, 97%);
|
||||||
|
color: var(--primary);
|
||||||
|
}
|
||||||
|
.card-icon.icon-insurance {
|
||||||
|
background-color: hsl(var(--secondary-hue), 80%, 96%);
|
||||||
|
color: var(--secondary);
|
||||||
|
}
|
||||||
|
.card-icon.icon-transport {
|
||||||
|
background-color: hsl(195, 70%, 96%);
|
||||||
|
color: hsl(195, 60%, 45%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-title {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-bottom: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-text {
|
||||||
|
font-size: 0.95rem;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary {
|
||||||
|
background-color: var(--primary);
|
||||||
|
border-color: var(--primary);
|
||||||
|
font-weight: 500;
|
||||||
|
transition: all var(--transition-speed) ease;
|
||||||
|
}
|
||||||
|
.btn-primary:hover {
|
||||||
|
background-color: var(--primary-dark);
|
||||||
|
border-color: var(--primary-dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Responsive --- */
|
||||||
|
@media (max-width: 767.98px) {
|
||||||
|
#sidebar-wrapper {
|
||||||
|
margin-left: -260px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wrapper.toggled #sidebar-wrapper {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#page-content-wrapper {
|
||||||
|
min-width: 100vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
#topbar{
|
||||||
|
padding: 0.75rem 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#wrapper.toggled #sidebar-wrapper {
|
||||||
|
margin-left: -260px;
|
||||||
|
}
|
||||||
34
assets/js/main.js
Normal file
34
assets/js/main.js
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
/*!
|
||||||
|
* Start Bootstrap - Simple Sidebar v6.0.5 (https://startbootstrap.com/template/simple-sidebar)
|
||||||
|
* Copyright 2013-2022 Start Bootstrap
|
||||||
|
* Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-simple-sidebar/blob/master/LICENSE)
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
// Scripts
|
||||||
|
//
|
||||||
|
|
||||||
|
window.addEventListener('DOMContentLoaded', event => {
|
||||||
|
|
||||||
|
// Toggle the side navigation
|
||||||
|
const sidebarToggle = document.body.querySelector('#menu-toggle');
|
||||||
|
if (sidebarToggle) {
|
||||||
|
// Un-comment below if you have another event listener attached to the window
|
||||||
|
// which might be closing your sidebar on click (e.g. if you are using a cross-sidebar layout)
|
||||||
|
// event.preventDefault();
|
||||||
|
sidebarToggle.addEventListener('click', event => {
|
||||||
|
event.preventDefault();
|
||||||
|
document.body.classList.toggle('sb-sidenav-toggled');
|
||||||
|
localStorage.setItem('sb|sidebar-toggle', document.body.classList.contains('sb-sidenav-toggled'));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Added for this project to handle the main wrapper toggle
|
||||||
|
const menuToggle = document.getElementById("menu-toggle");
|
||||||
|
const wrapper = document.getElementById("wrapper");
|
||||||
|
|
||||||
|
if (menuToggle && wrapper) {
|
||||||
|
menuToggle.addEventListener("click", function() {
|
||||||
|
wrapper.classList.toggle("toggled");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
BIN
assets/pasted-20251215-000226-be39ce79.png
Normal file
BIN
assets/pasted-20251215-000226-be39ce79.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 75 KiB |
BIN
assets/pasted-20251215-001013-c30a9dd7.png
Normal file
BIN
assets/pasted-20251215-001013-c30a9dd7.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 67 KiB |
22
customs.php
Normal file
22
customs.php
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<?php $title = 'Customs Broker'; ?>
|
||||||
|
|
||||||
|
<div class="container-fluid">
|
||||||
|
<h1 class="mt-4">Customs Broker</h1>
|
||||||
|
<p>This is the page for managing the Customs Broker company.</p>
|
||||||
|
<p>Here you will be able to upload Excel files to track sales, worker performance, and client performance.</p>
|
||||||
|
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-header">
|
||||||
|
Upload Sales Data
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<form>
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="customsFile" class="form-label">Select Excel File (.xlsx)</label>
|
||||||
|
<input class="form-control" type="file" id="customsFile" accept=".xlsx">
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="btn btn-primary">Upload and Process</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
62
dashboard.php
Normal file
62
dashboard.php
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
<?php $title = 'Dashboard'; ?>
|
||||||
|
|
||||||
|
<div class="container-fluid">
|
||||||
|
<h1 class="h2 mb-2">Dashboard</h1>
|
||||||
|
<p class="text-secondary mb-4">An overview of your business operations.</p>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<!-- Customs Card -->
|
||||||
|
<div class="col-lg-4 col-md-6 mb-4">
|
||||||
|
<div class="card dashboard-card h-100">
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="card-title-wrapper">
|
||||||
|
<div class="card-icon icon-customs">
|
||||||
|
<i class="bi bi-globe"></i>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h5 class="card-title">Customs Broker</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="card-text">Track sales, worker and client performance.</p>
|
||||||
|
<a href="?page=customs" class="btn btn-primary btn-sm">View Details <i class="bi bi-arrow-right-short"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Insurance Card -->
|
||||||
|
<div class="col-lg-4 col-md-6 mb-4">
|
||||||
|
<div class="card dashboard-card h-100">
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="card-title-wrapper">
|
||||||
|
<div class="card-icon icon-insurance">
|
||||||
|
<i class="bi bi-shield-check"></i>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h5 class="card-title">Insurance</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="card-text">Reconcile policy lists and find missing entries.</p>
|
||||||
|
<a href="?page=insurance" class="btn btn-primary btn-sm">View Details <i class="bi bi-arrow-right-short"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Transportation Card -->
|
||||||
|
<div class="col-lg-4 col-md-6 mb-4">
|
||||||
|
<div class="card dashboard-card h-100">
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="card-title-wrapper">
|
||||||
|
<div class="card-icon icon-transport">
|
||||||
|
<i class="bi bi-truck"></i>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h5 class="card-title">Transportation</h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="card-text">Compare partner statements with your own records.</p>
|
||||||
|
<a href="?page=transport" class="btn btn-primary btn-sm">View Details <i class="bi bi-arrow-right-short"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
185
index.php
185
index.php
@ -1,150 +1,43 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
@ini_set('display_errors', '1');
|
|
||||||
@error_reporting(E_ALL);
|
|
||||||
@date_default_timezone_set('UTC');
|
|
||||||
|
|
||||||
$phpVersion = PHP_VERSION;
|
// --- Simple Router ---
|
||||||
$now = date('Y-m-d H:i:s');
|
$page = $_GET['page'] ?? 'dashboard';
|
||||||
|
|
||||||
|
// Whitelist of allowed pages to prevent arbitrary file inclusion
|
||||||
|
$allowed_pages = ['dashboard', 'customs', 'insurance', 'transport'];
|
||||||
|
|
||||||
|
if (!in_array($page, $allowed_pages)) {
|
||||||
|
$page = 'dashboard'; // Default to dashboard if page is not allowed
|
||||||
|
}
|
||||||
|
|
||||||
|
$page_file = $page . '.php';
|
||||||
|
|
||||||
|
// --- Page Rendering ---
|
||||||
|
|
||||||
|
// The title for the header can be set in the included page files
|
||||||
|
// e.g. <?php $title = 'My Page'; ?>
|
||||||
|
include 'partials/header.php';
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
<!-- Sidebar -->
|
||||||
<head>
|
<?php include 'partials/sidebar.php'; ?>
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<!-- Page Content -->
|
||||||
<title>New Style</title>
|
<div id="page-content-wrapper" class="d-flex flex-column">
|
||||||
<?php
|
<?php include 'partials/topbar.php'; ?>
|
||||||
// Read project preview data from environment
|
<main class="flex-grow-1 p-4">
|
||||||
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
|
<?php
|
||||||
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
if (file_exists($page_file)) {
|
||||||
?>
|
include $page_file;
|
||||||
<?php if ($projectDescription): ?>
|
} else {
|
||||||
<!-- Meta description -->
|
// Fallback for 404
|
||||||
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
|
echo '<div class="container-fluid"><h1 class="mt-4">Page Not Found</h1><p>The requested page could not be found.</p></div>';
|
||||||
<!-- Open Graph meta tags -->
|
}
|
||||||
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
?>
|
||||||
<!-- Twitter meta tags -->
|
</main>
|
||||||
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php if ($projectImageUrl): ?>
|
|
||||||
<!-- Open Graph image -->
|
|
||||||
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
|
||||||
<!-- Twitter image -->
|
|
||||||
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
|
||||||
<?php endif; ?>
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
|
||||||
<style>
|
|
||||||
:root {
|
|
||||||
--bg-color-start: #6a11cb;
|
|
||||||
--bg-color-end: #2575fc;
|
|
||||||
--text-color: #ffffff;
|
|
||||||
--card-bg-color: rgba(255, 255, 255, 0.01);
|
|
||||||
--card-border-color: rgba(255, 255, 255, 0.1);
|
|
||||||
}
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
font-family: 'Inter', sans-serif;
|
|
||||||
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
|
||||||
color: var(--text-color);
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
min-height: 100vh;
|
|
||||||
text-align: center;
|
|
||||||
overflow: hidden;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
body::before {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M-10 10L110 10M10 -10L10 110" stroke-width="1" stroke="rgba(255,255,255,0.05)"/></svg>');
|
|
||||||
animation: bg-pan 20s linear infinite;
|
|
||||||
z-index: -1;
|
|
||||||
}
|
|
||||||
@keyframes bg-pan {
|
|
||||||
0% { background-position: 0% 0%; }
|
|
||||||
100% { background-position: 100% 100%; }
|
|
||||||
}
|
|
||||||
main {
|
|
||||||
padding: 2rem;
|
|
||||||
}
|
|
||||||
.card {
|
|
||||||
background: var(--card-bg-color);
|
|
||||||
border: 1px solid var(--card-border-color);
|
|
||||||
border-radius: 16px;
|
|
||||||
padding: 2rem;
|
|
||||||
backdrop-filter: blur(20px);
|
|
||||||
-webkit-backdrop-filter: blur(20px);
|
|
||||||
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
.loader {
|
|
||||||
margin: 1.25rem auto 1.25rem;
|
|
||||||
width: 48px;
|
|
||||||
height: 48px;
|
|
||||||
border: 3px solid rgba(255, 255, 255, 0.25);
|
|
||||||
border-top-color: #fff;
|
|
||||||
border-radius: 50%;
|
|
||||||
animation: spin 1s linear infinite;
|
|
||||||
}
|
|
||||||
@keyframes spin {
|
|
||||||
from { transform: rotate(0deg); }
|
|
||||||
to { transform: rotate(360deg); }
|
|
||||||
}
|
|
||||||
.hint {
|
|
||||||
opacity: 0.9;
|
|
||||||
}
|
|
||||||
.sr-only {
|
|
||||||
position: absolute;
|
|
||||||
width: 1px; height: 1px;
|
|
||||||
padding: 0; margin: -1px;
|
|
||||||
overflow: hidden;
|
|
||||||
clip: rect(0, 0, 0, 0);
|
|
||||||
white-space: nowrap; border: 0;
|
|
||||||
}
|
|
||||||
h1 {
|
|
||||||
font-size: 3rem;
|
|
||||||
font-weight: 700;
|
|
||||||
margin: 0 0 1rem;
|
|
||||||
letter-spacing: -1px;
|
|
||||||
}
|
|
||||||
p {
|
|
||||||
margin: 0.5rem 0;
|
|
||||||
font-size: 1.1rem;
|
|
||||||
}
|
|
||||||
code {
|
|
||||||
background: rgba(0,0,0,0.2);
|
|
||||||
padding: 2px 6px;
|
|
||||||
border-radius: 4px;
|
|
||||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
||||||
}
|
|
||||||
footer {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 1rem;
|
|
||||||
font-size: 0.8rem;
|
|
||||||
opacity: 0.7;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<main>
|
|
||||||
<div class="card">
|
|
||||||
<h1>Analyzing your requirements and generating your website…</h1>
|
|
||||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
|
||||||
<span class="sr-only">Loading…</span>
|
|
||||||
</div>
|
|
||||||
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
|
|
||||||
<p class="hint">This page will update automatically as the plan is implemented.</p>
|
|
||||||
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
|
|
||||||
</div>
|
</div>
|
||||||
</main>
|
|
||||||
<footer>
|
<?php
|
||||||
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
include 'partials/footer.php';
|
||||||
</footer>
|
?>
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
32
insurance.php
Normal file
32
insurance.php
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?php $title = 'Insurance'; ?>
|
||||||
|
|
||||||
|
<div class="container-fluid">
|
||||||
|
<h1 class="mt-4">Insurance</h1>
|
||||||
|
<p>This is the page for managing the Insurance company.</p>
|
||||||
|
<p>Here you will upload two Excel files to compare policy lists and identify missing policies.</p>
|
||||||
|
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-header">
|
||||||
|
Upload Policy Lists for Comparison
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<form>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="insuranceFile1" class="form-label">Policy List from Insurance Co.</label>
|
||||||
|
<input class="form-control" type="file" id="insuranceFile1" accept=".xlsx">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="insuranceFile2" class="form-label">Processed Policy List (Accounting)</label>
|
||||||
|
<input class="form-control" type="file" id="insuranceFile2" accept=".xlsx">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="btn btn-primary">Compare Files</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
5
partials/footer.php
Normal file
5
partials/footer.php
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
</div> <!-- /#wrapper -->
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
|
||||||
|
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
18
partials/header.php
Normal file
18
partials/header.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
$page_title = isset($title) ? htmlspecialchars($title) : 'Multi-Company Dashboard';
|
||||||
|
?>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title><?php echo $page_title; ?></title>
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
||||||
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="d-flex" id="wrapper">
|
||||||
23
partials/sidebar.php
Normal file
23
partials/sidebar.php
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
$current_page = basename($_GET['page'] ?? 'dashboard', '.php');
|
||||||
|
$menu_items = [
|
||||||
|
'dashboard' => ['icon' => 'bi-house-door', 'label' => 'Dashboard'],
|
||||||
|
'customs' => ['icon' => 'bi-globe', 'label' => 'Customs Broker'],
|
||||||
|
'insurance' => ['icon' => 'bi-shield-check', 'label' => 'Insurance'],
|
||||||
|
'transport' => ['icon' => 'bi-truck', 'label' => 'Transportation'],
|
||||||
|
];
|
||||||
|
?>
|
||||||
|
<div id="sidebar-wrapper">
|
||||||
|
<div class="sidebar-heading">
|
||||||
|
<i class="bi bi-hexagon-fill logo-icon"></i>
|
||||||
|
<span>AppManager</span>
|
||||||
|
</div>
|
||||||
|
<div class="list-group list-group-flush">
|
||||||
|
<?php foreach ($menu_items as $page => $item): ?>
|
||||||
|
<a href="?page=<?php echo $page; ?>" class="list-group-item <?php echo ($current_page == $page) ? 'active' : ''; ?>">
|
||||||
|
<i class="bi <?php echo $item['icon']; ?>"></i>
|
||||||
|
<?php echo $item['label']; ?>
|
||||||
|
</a>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
24
partials/topbar.php
Normal file
24
partials/topbar.php
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<nav class="navbar navbar-expand" id="topbar">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<button class="navbar-toggler" id="menu-toggle" type="button">
|
||||||
|
<i class="bi bi-list"></i>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div class="collapse navbar-collapse">
|
||||||
|
<ul class="navbar-nav ms-auto">
|
||||||
|
<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle d-flex align-items-center" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
|
<img src="https://i.pravatar.cc/40?u=superadmin" alt="User Profile" class="rounded-circle me-2 profile-pic">
|
||||||
|
<span class="d-none d-sm-inline-block">Super Admin</span>
|
||||||
|
</a>
|
||||||
|
<ul class="dropdown-menu dropdown-menu-end shadow-lg border-0" aria-labelledby="navbarDropdown">
|
||||||
|
<li><a class="dropdown-item" href="#">Profile</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">Settings</a></li>
|
||||||
|
<li><hr class="dropdown-divider"></li>
|
||||||
|
<li><a class="dropdown-item text-danger" href="#">Logout</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
32
transport.php
Normal file
32
transport.php
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?php $title = 'Transportation'; ?>
|
||||||
|
|
||||||
|
<div class="container-fluid">
|
||||||
|
<h1 class="mt-4">Transportation</h1>
|
||||||
|
<p>This is the page for managing the Transportation company.</p>
|
||||||
|
<p>Here you will compare statements from your partners with your own statements.</p>
|
||||||
|
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-header">
|
||||||
|
Upload Statements for Comparison
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<form>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="transportFile1" class="form-label">Partner Statement</label>
|
||||||
|
<input class="form-control" type="file" id="transportFile1" accept=".xlsx">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="transportFile2" class="form-label">Internal Statement</label>
|
||||||
|
<input class="form-control" type="file" id="transportFile2" accept=".xlsx">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="btn btn-primary">Compare Statements</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
Loading…
x
Reference in New Issue
Block a user