mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
Fixed multiple issues in admin panel: 1. CSS path: modern-normalize.css → modern-normalize.min.css (File is actually named .min.css) 2. Icon path: assets/icon.svg → /assets/admin_favicon.svg (Was relative, now absolute; correct filename) 3. Navigation: /admin/list.php → /admin/ (list.php was renamed to index.php) 4. Short PHP tags: <? → <?php (Better compatibility, some servers don't enable short_open_tag) 5. Quirks mode warning was due to CSS not loading, not DOCTYPE (DOCTYPE was already present) Files modified: - public/admin/inc/head.php (main fixes) - public/admin/index.php (short tags) - public/admin/add.php (short tags) - public/admin/import.php (short tags) Need to redeploy for production: just deploy
22 lines
881 B
PHP
22 lines
881 B
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title><?php echo $pageTitle ?></title>
|
|
<link rel="stylesheet" href="/assets/modern-normalize.min.css">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
|
|
<link rel="stylesheet" href="/assets/admin.css">
|
|
<link rel="shortcut icon" href="/assets/admin_favicon.svg" type="image/svg+xml">
|
|
</head>
|
|
|
|
<body>
|
|
<header>
|
|
<h1><?php echo $pageTitle ?></h1>
|
|
<nav style="margin-top: 1rem;">
|
|
<a href="/admin/" style="font-size: 0.9em;"><button>📋 Liste des TFE</button></a>
|
|
<a href="/admin/import.php" style="font-size: 0.9em;"><button>📥 Importer CSV</button></a>
|
|
</nav>
|
|
</header>
|