34329-vm/index.php
Flatlogic Bot a7265cf7d7 0.1
2025-09-24 04:05:20 +00:00

187 lines
9.8 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard - SREC SmartQ Print Hub</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" 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">
</head>
<body>
<div class="sidebar d-flex flex-column p-3">
<a href="/" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-decoration-none">
<h1 class="logo">Smart<span class="q">Q</span></h1>
</a>
<hr>
<ul class="nav nav-pills flex-column mb-auto">
<li class="nav-item">
<a href="#" class="nav-link active" aria-current="page">
<i class="bi bi-cloud-arrow-up-fill me-2"></i>
Upload & Print
</a>
</li>
<li>
<a href="#" class="nav-link">
<i class="bi bi-clock-history me-2"></i>
Order History
</a>
</li>
<li>
<a href="#" class="nav-link">
<i class="bi bi-wallet2 me-2"></i>
Wallet
</a>
</li>
<li>
<a href="#" class="nav-link">
<i class="bi bi-tools me-2"></i>
Extra Tools
</a>
</li>
</ul>
<hr>
<div class="dropdown">
<a href="#" class="d-flex align-items-center text-decoration-none dropdown-toggle" id="dropdownUser1" data-bs-toggle="dropdown" aria-expanded="false">
<img src="https://picsum.photos/seed/avatar/100/100" alt="User avatar" width="32" height="32" class="rounded-circle me-2">
<strong>Student User</strong>
</a>
<ul class="dropdown-menu dropdown-menu-dark text-small shadow" aria-labelledby="dropdownUser1">
<li><a class="dropdown-item" href="#">Profile</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="login.php">Sign out</a></li>
</ul>
</div>
</div>
<main class="main-content">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2">Upload & Print</h1>
<div class="btn-toolbar mb-2 mb-md-0">
<div class="btn-group me-2">
<button type="button" class="btn btn-sm btn-outline-secondary">EN</button>
<button type="button" class="btn btn-sm btn-outline-secondary">TA</button>
</div>
</div>
</div>
<form id="uploadForm" action="upload.php" method="post" enctype="multipart/form-data">
<div class="card shadow-sm" style="border-radius: 12px;">
<div class="card-body p-5 text-center">
<i class="bi bi-cloud-arrow-up display-1 text-primary-custom"></i>
<h5 class="card-title mt-3">Select a file to print</h5>
<p class="card-text text-muted">Supports PDF, Word, and Images.</p>
<label for="fileUpload" class="btn btn-primary-custom btn-lg">
<i class="bi bi-upload me-2"></i>
Browse File
</label>
<input type="file" name="fileUpload" id="fileUpload" class="d-none">
</div>
</div>
<!-- Print Options Modal -->
<div class="modal fade" id="printOptionsModal" tabindex="-1" aria-labelledby="printOptionsModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="printOptionsModalLabel">Print Options for <span id="fileName" class="fw-bold"></span></h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-6 text-center">
<h6>Print Preview</h6>
<div id="filePreview" class="border rounded p-2" style="height: 300px; display: flex; align-items: center; justify-content: center;">
<p class="text-muted">Preview will appear here</p>
</div>
</div>
<div class="col-md-6">
<h6>Configuration</h6>
<div class="mb-3">
<label class="form-label">Printing Location</label>
<select class="form-select" name="location" required>
<option value="library">Library</option>
<option value="food_court">Food Court</option>
</select>
</div>
<div class="mb-3">
<label class="form-label">Color</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="color" id="colorBW" value="bw" checked>
<label class="form-check-label" for="colorBW">Black & White</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="color" id="colorColor" value="color">
<label class="form-check-label" for="colorColor">Color</label>
</div>
</div>
<div class="mb-3">
<label class="form-label">Sides</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="sides" id="sidesSingle" value="single" checked>
<label class="form-check-label" for="sidesSingle">Single-Sided</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="sides" id="sidesDouble" value="double">
<label class="form-check-label" for="sidesDouble">Double-Sided</label>
</div>
</div>
<div class="mb-3">
<label for="paperSize" class="form-label">Paper Size</label>
<select class="form-select" id="paperSize" name="paperSize">
<option value="A4">A4</option>
<option value="Letter">Letter</option>
<option value="Legal">Legal</option>
</select>
</div>
<div class="mb-3">
<label class="form-label">Orientation</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="orientation" id="orientationPortrait" value="portrait" checked>
<label class="form-check-label" for="orientationPortrait">Portrait</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="orientation" id="orientationLandscape" value="landscape">
<label class="form-check-label" for="orientationLandscape">Landscape</label>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="submit" class="btn btn-primary-custom" id="confirmPrintBtn">Confirm & Proceed to Pay</button>
</div>
</div>
</div>
</div>
</form>
<footer class="pt-4 my-md-5 pt-md-5 border-top">
<div class="row">
<div class="col-12 col-md">
<small class="d-block mb-3 text-muted">&copy; 2025 SREC SmartQ Print Hub</small>
</div>
<div class="col-6 col-md">
<h5>Navigation</h5>
<ul class="list-unstyled text-small">
<li><a class="link-secondary" href="#">Upload</a></li>
<li><a class="link-secondary" href="#">History</a></li>
</ul>
</div>
<div class="col-6 col-md">
<h5>Legal</h5>
<ul class="list-unstyled text-small">
<li><a class="link-secondary" href="#">Privacy Policy</a></li>
<li><a class="link-secondary" href="#">Terms of Service</a></li>
</ul>
</div>
</div>
</footer>
</main>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>