sadiq
This commit is contained in:
parent
4a91088287
commit
8827fc7e11
@ -41,12 +41,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
<title>Add New Car - AFG CARS</title>
|
<title>Add New Car - AFG CARS</title>
|
||||||
<link href="<?php echo APP_URL; ?>assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
<link href="<?php echo APP_URL; ?>assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="<?php echo APP_URL; ?>assets/bootstrap/css/bootstrap-icons.css">
|
<link rel="stylesheet" href="<?php echo APP_URL; ?>assets/bootstrap/css/bootstrap-icons.css">
|
||||||
<style>
|
<link rel="stylesheet" href="<?php echo APP_URL; ?>assets/css/custom.css?v=<?php echo time(); ?>">
|
||||||
body { background: #f8fafc; padding: 40px; }
|
|
||||||
.form-card { background: white; border-radius: 16px; padding: 30px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); max-width: 800px; margin: 0 auto; }
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body class="py-5">
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
|
|||||||
@ -64,23 +64,16 @@ $recent_purchases = $pdo->query("SELECT p.*, u.name, c.title FROM purchases p JO
|
|||||||
<title>Admin Panel - AFG CARS</title>
|
<title>Admin Panel - AFG CARS</title>
|
||||||
<link href="<?php echo APP_URL; ?>assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
<link href="<?php echo APP_URL; ?>assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="<?php echo APP_URL; ?>assets/bootstrap/css/bootstrap-icons.css">
|
<link rel="stylesheet" href="<?php echo APP_URL; ?>assets/bootstrap/css/bootstrap-icons.css">
|
||||||
<style>
|
<link rel="stylesheet" href="<?php echo APP_URL; ?>assets/css/custom.css?v=<?php echo time(); ?>">
|
||||||
:root { --sidebar-width: 260px; --primary: #2563eb; }
|
|
||||||
body { background: #f8fafc; font-family: sans-serif; }
|
|
||||||
.sidebar { width: var(--sidebar-width); background: #0f172a; min-height: 100vh; position: fixed; left: 0; top: 0; padding: 20px; color: white; z-index: 1000; }
|
|
||||||
.main-content { margin-left: var(--sidebar-width); padding: 40px; }
|
|
||||||
.nav-link { color: #94a3b8; border-radius: 8px; margin-bottom: 5px; padding: 12px 15px; transition: all 0.3s; border: none; background: none; width: 100%; text-align: left; text-decoration: none; display: block; }
|
|
||||||
.nav-link:hover, .nav-link.active { background: #1e293b; color: white; }
|
|
||||||
.nav-link.active { background: var(--primary); color: white; }
|
|
||||||
.stat-card { background: white; border: none; border-radius: 16px; padding: 25px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
|
|
||||||
.table-card { background: white; border: none; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
<h4 class="fw-bold mb-5 text-white">AFG CARS</h4>
|
<h4 class="fw-bold mb-5 text-white">AFG CARS</h4>
|
||||||
<nav class="nav flex-column">
|
<nav class="nav flex-column">
|
||||||
|
<a class="nav-link mb-3 text-white border-bottom border-secondary pb-3" href="<?php echo APP_URL; ?>index.php">
|
||||||
|
<i class="bi bi-arrow-left me-2"></i> Back to Home
|
||||||
|
</a>
|
||||||
<a class="nav-link <?php echo $tab === 'overview' ? 'active' : ''; ?>" href="?tab=overview">Overview</a>
|
<a class="nav-link <?php echo $tab === 'overview' ? 'active' : ''; ?>" href="?tab=overview">Overview</a>
|
||||||
<a class="nav-link <?php echo $tab === 'approvals' ? 'active' : ''; ?>" href="?tab=approvals">
|
<a class="nav-link <?php echo $tab === 'approvals' ? 'active' : ''; ?>" href="?tab=approvals">
|
||||||
Approvals <?php if ($stats['pending_cars'] > 0): ?>(<?php echo $stats['pending_cars']; ?>)<?php endif; ?>
|
Approvals <?php if ($stats['pending_cars'] > 0): ?>(<?php echo $stats['pending_cars']; ?>)<?php endif; ?>
|
||||||
|
|||||||
@ -1,11 +1,12 @@
|
|||||||
:root {
|
:root {
|
||||||
--primary-color: #1e293b;
|
--primary-color: #0f172a;
|
||||||
--accent-color: #3b82f6;
|
--accent-color: #2563eb;
|
||||||
--bg-color: #f8fafc;
|
--bg-color: #f8fafc;
|
||||||
--surface-color: #ffffff;
|
--surface-color: #ffffff;
|
||||||
--text-main: #0f172a;
|
--text-main: #1e293b;
|
||||||
--text-muted: #64748b;
|
--text-muted: #64748b;
|
||||||
--border-radius: 0.375rem;
|
--border-radius: 12px;
|
||||||
|
--sidebar-width: 260px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@ -14,17 +15,26 @@ body {
|
|||||||
color: var(--text-main);
|
color: var(--text-main);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Navbar */
|
||||||
.navbar {
|
.navbar {
|
||||||
background-color: var(--surface-color);
|
background: rgba(255, 255, 255, 0.8);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
border-bottom: 1px solid #e2e8f0;
|
border-bottom: 1px solid #e2e8f0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav-link {
|
||||||
|
font-weight: 500;
|
||||||
|
color: var(--text-main);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hero Section */
|
||||||
.hero-section {
|
.hero-section {
|
||||||
padding: 100px 0;
|
padding: 100px 0;
|
||||||
background: linear-gradient(rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.8)), url('https://images.pexels.com/photos/116675/pexels-photo-116675.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover;
|
background: linear-gradient(rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.8)), url('https://images.pexels.com/photos/116675/pexels-photo-116675.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Search Container */
|
||||||
.search-container {
|
.search-container {
|
||||||
background: var(--surface-color);
|
background: var(--surface-color);
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
@ -33,44 +43,133 @@ body {
|
|||||||
margin-top: -50px;
|
margin-top: -50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Car Cards */
|
||||||
.car-card {
|
.car-card {
|
||||||
background: var(--surface-color);
|
border: none;
|
||||||
border: 1px solid #e2e8f0;
|
border-radius: 16px;
|
||||||
border-radius: var(--border-radius);
|
|
||||||
transition: transform 0.2s;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
|
||||||
|
background: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.car-card:hover {
|
.car-card:hover {
|
||||||
transform: translateY(-5px);
|
transform: translateY(-8px);
|
||||||
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
|
box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.car-card img {
|
.car-card img, .card-img-top {
|
||||||
height: 200px;
|
height: 220px;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.car-price {
|
.car-price, .price-tag {
|
||||||
font-size: 1.25rem;
|
|
||||||
font-weight: 700;
|
|
||||||
color: var(--accent-color);
|
color: var(--accent-color);
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 1.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.badge-year {
|
||||||
|
background: #f1f5f9;
|
||||||
|
color: #475569;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 4px 8px;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Buttons */
|
||||||
.btn-primary {
|
.btn-primary {
|
||||||
|
border-radius: 8px;
|
||||||
|
font-weight: 600;
|
||||||
background-color: var(--accent-color);
|
background-color: var(--accent-color);
|
||||||
border-color: var(--accent-color);
|
border-color: var(--accent-color);
|
||||||
border-radius: var(--border-radius);
|
|
||||||
padding: 0.5rem 1.5rem;
|
padding: 0.5rem 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-primary:hover {
|
.btn-primary:hover {
|
||||||
background-color: #2563eb;
|
background-color: #1d4ed8;
|
||||||
border-color: #2563eb;
|
border-color: #1d4ed8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Admin Sidebar */
|
||||||
|
.sidebar {
|
||||||
|
width: var(--sidebar-width);
|
||||||
|
background: #0f172a;
|
||||||
|
min-height: 100vh;
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
padding: 20px;
|
||||||
|
color: white;
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-content {
|
||||||
|
margin-left: var(--sidebar-width);
|
||||||
|
padding: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar .nav-link {
|
||||||
|
color: #94a3b8;
|
||||||
|
border-radius: 8px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
padding: 12px 15px;
|
||||||
|
transition: all 0.3s;
|
||||||
|
border: none;
|
||||||
|
background: none;
|
||||||
|
width: 100%;
|
||||||
|
text-align: left;
|
||||||
|
text-decoration: none;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar .nav-link:hover, .sidebar .nav-link.active {
|
||||||
|
background: #1e293b;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar .nav-link.active {
|
||||||
|
background: var(--accent-color);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Dashboard Cards */
|
||||||
|
.stat-card {
|
||||||
|
background: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 16px;
|
||||||
|
padding: 25px;
|
||||||
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-card {
|
||||||
|
background: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 16px;
|
||||||
|
overflow: hidden;
|
||||||
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Form Cards */
|
||||||
|
.form-card {
|
||||||
|
background: white;
|
||||||
|
border-radius: 16px;
|
||||||
|
padding: 30px;
|
||||||
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
||||||
|
max-width: 800px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Badges */
|
||||||
|
.bg-soft-primary { background-color: #e0e7ff; }
|
||||||
|
.bg-soft-success { background-color: #dcfce7; }
|
||||||
|
.bg-soft-warning { background-color: #fef9c3; }
|
||||||
|
.w-fit-content { width: fit-content; }
|
||||||
|
|
||||||
|
/* Footer */
|
||||||
.footer {
|
.footer {
|
||||||
background-color: var(--primary-color);
|
background-color: #0f172a;
|
||||||
color: #94a3b8;
|
color: #94a3b8;
|
||||||
padding: 60px 0 30px;
|
padding: 60px 0 30px;
|
||||||
}
|
}
|
||||||
@ -46,11 +46,4 @@ include 'includes/header.php';
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<?php include 'includes/footer.php'; ?>
|
||||||
.bg-soft-primary { background-color: #e0e7ff; }
|
|
||||||
.bg-soft-success { background-color: #dcfce7; }
|
|
||||||
.bg-soft-warning { background-color: #fef9c3; }
|
|
||||||
.w-fit-content { width: fit-content; }
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<?php include 'includes/footer.php'; ?>
|
|
||||||
@ -17,26 +17,6 @@ $is_admin = isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
|
|||||||
|
|
||||||
<!-- Custom CSS -->
|
<!-- Custom CSS -->
|
||||||
<link rel="stylesheet" href="<?php echo APP_URL; ?>assets/css/custom.css?v=<?php echo time(); ?>">
|
<link rel="stylesheet" href="<?php echo APP_URL; ?>assets/css/custom.css?v=<?php echo time(); ?>">
|
||||||
<style>
|
|
||||||
:root {
|
|
||||||
--primary-color: #0f172a;
|
|
||||||
--accent-color: #2563eb;
|
|
||||||
--bg-color: #f8fafc;
|
|
||||||
--surface-color: #ffffff;
|
|
||||||
--text-main: #1e293b;
|
|
||||||
--text-muted: #64748b;
|
|
||||||
--border-radius: 12px;
|
|
||||||
}
|
|
||||||
body { font-family: sans-serif; background-color: var(--bg-color); color: var(--text-main); }
|
|
||||||
.navbar { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid #e2e8f0; }
|
|
||||||
.nav-link { font-weight: 500; color: var(--text-main); }
|
|
||||||
.btn-primary { border-radius: 8px; font-weight: 600; background-color: var(--accent-color); border-color: var(--accent-color); }
|
|
||||||
.car-card { border: none; border-radius: 16px; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); background: white; }
|
|
||||||
.car-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
|
|
||||||
.card-img-top { height: 220px; object-fit: cover; }
|
|
||||||
.badge-year { background: #f1f5f9; color: #475569; border-radius: 6px; padding: 4px 8px; font-size: 0.8rem; font-weight: 600; }
|
|
||||||
.price-tag { color: var(--accent-color); font-weight: 700; font-size: 1.25rem; }
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|||||||
@ -24,6 +24,11 @@ $cars = $my_cars->fetchAll();
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="container py-5">
|
<div class="container py-5">
|
||||||
|
<div class="mb-4">
|
||||||
|
<a href="<?php echo APP_URL; ?>index.php" class="btn btn-link text-decoration-none p-0 text-muted">
|
||||||
|
<i class="bi bi-arrow-left me-1"></i> Back to Home
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
<div class="row g-5">
|
<div class="row g-5">
|
||||||
<!-- Sidebar -->
|
<!-- Sidebar -->
|
||||||
<div class="col-lg-3">
|
<div class="col-lg-3">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user