zibo-dashboard/public/userarea/warehouse_dashboard.php

191 lines
5.7 KiB
PHP

<?php include('include/headscript.php'); ?>
<!doctype html>
<html lang="it">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="assets/images/favicon-32x32.png" type="image/png" />
<?php include('cssinclude.php'); ?>
<title>Dashboard Magazzino - <?= htmlspecialchars($titlewebsite, ENT_QUOTES, 'UTF-8'); ?></title>
<!-- Bootstrap + jQuery -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<style>
body {
background: linear-gradient(135deg, #f3f6f8, #e8eef3);
font-family: 'Segoe UI', sans-serif;
color: #2b3e50;
}
.page-content {
padding: 2rem 1rem;
display: flex;
flex-direction: column;
align-items: center;
}
h3.dashboard-title {
text-align: center;
font-weight: 700;
color: #2b3e50;
margin-bottom: 1.5rem;
letter-spacing: 0.3px;
}
.section-title {
width: 100%;
max-width: 900px;
margin-top: 20px;
margin-bottom: 10px;
font-weight: 700;
color: #2b3e50;
font-size: 1.1rem;
}
.dashboard-grid {
display: grid;
grid-template-columns: repeat(3, minmax(200px, 1fr));
gap: 18px 30px;
width: 100%;
max-width: 900px;
justify-items: center;
margin-bottom: 10px;
}
.dash-btn {
width: 100%;
max-width: 280px;
border: none;
border-radius: 16px;
padding: 18px 10px;
color: #2b3e50;
font-size: 1.15rem;
font-weight: 600;
background: #fff;
transition: all 0.2s ease;
box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 110px;
}
.dash-btn:hover {
transform: translateY(-3px);
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
cursor: pointer;
}
.dash-icon {
font-size: 2.8rem;
margin-bottom: 8px;
line-height: 1;
}
/* Colori */
.btn-mescole {
background: linear-gradient(135deg, #ffc853ff, #fdd98bff);
}
.btn-imballaggi {
background: linear-gradient(135deg, #b9e3ffff, #d7f1ffff);
}
.btn-materieprime {
background: linear-gradient(135deg, #82f09eff, #aaecaaff);
}
.btn-tools {
background: linear-gradient(135deg, #9f7aea, #b794f4);
}
.back-dashboard {
background-color: #cfe3ff !important;
color: #1f2d3d !important;
border: 1px solid #bcd4f4 !important;
border-radius: 10px;
font-weight: 600;
font-size: 1rem;
padding: 10px 18px;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
transition: all 0.2s ease-in-out;
margin-bottom: 10px;
}
.back-dashboard:hover {
background-color: #b9d3ff !important;
transform: translateY(-2px);
}
@media (max-width: 768px) {
.dashboard-grid {
grid-template-columns: 1fr;
gap: 15px;
}
.dash-btn {
font-size: 1.1rem;
min-height: 95px;
}
.dash-icon {
font-size: 2.4rem;
}
}
</style>
</head>
<body>
<div class="wrapper toggled">
<?php include('include/navbar.php'); ?>
<?php include('include/topbar.php'); ?>
<div class="page-wrapper">
<div class="page-content">
<h3 class="dashboard-title">Magazzino</h3>
<button type="button" class="btn back-dashboard" onclick="location.href='production_dashboard.php'">
↩️ Torna alla Dashboard Produzione
</button>
<!-- ===== SEZIONE: MATERIALI ===== -->
<div class="section-title">Materiali</div>
<div class="dashboard-grid">
<button class="dash-btn btn-mescole" onclick="location.href='warehouse_mescole.php'">
<div class="dash-icon">⚗️</div>
<div>Mescole</div>
</button>
<button class="dash-btn btn-materieprime" onclick="location.href='warehouse_materieprime.php'">
<div class="dash-icon">🧪</div>
<div>Materie Prime</div>
</button>
<button class="dash-btn btn-imballaggi" onclick="location.href='warehouse_imballaggi.php'">
<div class="dash-icon">📦</div>
<div>Imballaggi</div>
</button>
</div>
<!-- ===== SEZIONE: SETUP (FUTURO) ===== -->
<div class="section-title">Setup (in espansione)</div>
<div class="dashboard-grid">
<button class="dash-btn btn-tools" onclick="location.href='warehouse_settings.php'">
<div class="dash-icon">🛠️</div>
<div>Impostazioni</div>
</button>
</div>
</div>
</div>
<?php include('jsinclude.php'); ?>
<?php include('include/footer.php'); ?>
</div>
</body>
</html>