Title Changes: - App title: "L'Oréal OMG Assistant Global" - Tab 1: "Master Global Asset Submission" - Upload button: "Approve & Upload to OMG" Preview Enhancements: - Dropdown selector to preview all 16 CSV files individually - Shows filename with ISO code (e.g., "en-GB - OMG1601654_...") - Switch between files to view complete data for each - Show ALL rows (not just first 20) Download Features: - "Download Current File" - Download the currently previewed CSV - "Download All Files (ZIP)" - Download all 16 CSVs as a ZIP archive - get-csv-preview.php: Endpoint to fetch any file for preview - download-all-csv.php: Creates ZIP with all CSVs UX Improvements: - File selector styled with brand colors - Clear labeling of which file is being previewed - Easy navigation between all regional CSVs - Test before upload with full data visibility 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
1.2 KiB
PHP
34 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* Shared Header and Navigation
|
|
*/
|
|
|
|
// Get current page
|
|
$currentPage = basename($_SERVER['PHP_SELF'], '.php');
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title><?php echo $pageTitle ?? 'L\'Oréal Box Asset Submission'; ?></title>
|
|
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="css/styles.css">
|
|
</head>
|
|
<body>
|
|
<div class="page-header">
|
|
<div class="header-content">
|
|
<h1>L'Oréal OMG Assistant Global</h1>
|
|
<div class="user-info">
|
|
<span><?php echo htmlspecialchars($user['email']); ?></span>
|
|
</div>
|
|
</div>
|
|
<nav class="tab-navigation">
|
|
<a href="index.php" class="tab <?php echo $currentPage === 'index' ? 'active' : ''; ?>">
|
|
Master Global Asset Submission
|
|
</a>
|
|
<a href="global-to-local.php" class="tab <?php echo $currentPage === 'global-to-local' ? 'active' : ''; ?>">
|
|
Global to Local
|
|
</a>
|
|
</nav>
|
|
</div>
|