From 26c5f06f98f201aba93875a18b41e3d143694e48 Mon Sep 17 00:00:00 2001 From: jfgiraud Date: Sun, 5 Jul 2026 13:52:19 +0000 Subject: [PATCH] WIP : sauvegarde avant de continuer ordreGF fctionne mais pas les btn --- .vscode/settings.json | 9 +++ css/ordreGF.css | 157 +++++++++++++++++++++++++++++++++++++ js/ordreGF.js | 0 php/header.php | 4 +- php/menu.php | 2 +- php/ordreGF.php | 177 ++++++++++++++++++++++++++++++++++++++++++ structure.txt | 25 +++++- 7 files changed, 369 insertions(+), 5 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 css/ordreGF.css create mode 100644 js/ordreGF.js create mode 100644 php/ordreGF.php diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..05162d7 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,9 @@ +{ + "yaml.schemas": { + "file:///home/jfgiraud/.vscode-server/extensions/continue.continue-2.0.0-linux-x64/config-yaml-schema.json": [ + ".continue/**/*.yaml", + "file:///home/jfgiraud/.continue/config.yaml" + ] + }, + "json.schemas": [] +} diff --git a/css/ordreGF.css b/css/ordreGF.css new file mode 100644 index 0000000..53680a6 --- /dev/null +++ b/css/ordreGF.css @@ -0,0 +1,157 @@ +:root { + --ordregf-bg: #13161f; + --ordregf-card: #1c2030; + --ordregf-border: rgba(255, 255, 255, 0.08); + --ordregf-text: #f0f2fc; +} + +/* Force le plein écran */ +.ordregf-page { + background-color: var(--ordregf-bg); + margin: 0; + padding: 0; +} + +.ordregf-shell { + width: 100%; + max-width: none; + margin: 0; + padding: 20px; + box-sizing: border-box; +} + +.ordregf-card { + background: var(--ordregf-card); + border-radius: 12px; + padding: 20px; + width: 100%; + box-sizing: border-box; +} + +/* Tables en pleine largeur */ +.ordregf-table, +.ordregf-detail-table { + width: 100% !important; + border-collapse: collapse; + table-layout: auto; +} + +/* Alignements entêtes */ +.ordregf-table th, +.ordregf-detail-table th { + background: rgba(255, 255, 255, 0.05); + padding: 12px; + text-align: left; + color: #fff; +} + +.ordregf-detail-table th { + text-align: center !important; + vertical-align: middle; +} + +.ordregf-detail-table td { + padding: 8px; + border-bottom: 1px solid var(--ordregf-border); +} + +/* Styles boutons */ +.ordregf-edit-button { + padding: 4px 12px; + cursor: pointer; +} + +/* Boutons principaux (Créer et Retour) */ +.ordregf-btn-menu, +.ordregf-btn-creer { + padding: 10px 24px !important; + border-radius: 50px !important; + border: none !important; + cursor: pointer !important; + font-size: 14px !important; + font-weight: 600 !important; + text-decoration: none !important; + display: inline-flex !important; + align-items: center !important; + justify-content: center !important; + transition: background 0.3s ease !important; + color: #ffffff !important; +} + +/* Bouton Menu (Bleu) */ +.ordregf-btn-menu { + background-color: #1a237e !important; +} +.ordregf-btn-menu:hover { + background-color: #283593 !important; +} + +/* Bouton Créer (Vert) */ +.ordregf-btn-creer { + background-color: #28a745 !important; +} +.ordregf-btn-creer:hover { + background-color: #218838 !important; +} + +/* Styles lignes */ +.ordregf-header-style { + background: rgba(255, 255, 255, 0.05) !important; +} + +.ordregf-header-style td { + color: #fff !important; + font-weight: 600 !important; + padding: 12px !important; + border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important; +} + +.ordregf-detail-row td { + padding: 10px 5px !important; + border-bottom: 1px solid var(--ordregf-border); + color: #e0e0e0; + font-family: monospace; +} + +.ordregf-detail-row:hover { + background-color: rgba(255, 255, 255, 0.03); +} + +/* Alignement colonnes numériques */ +.ordregf-detail-table .text-right { + text-align: right !important; + padding-right: 15px !important; +} + +/* Classe commune : force la taille et l'alignement */ +.ordregf-btn-petit { + width: 90px; /* Largeur fixe pour tous les petits boutons */ + height: 30px; /* Hauteur fixe pour un alignement vertical parfait */ + padding: 0 10px; /* Padding horizontal */ + font-size: 0.8em; + font-weight: 600; + cursor: pointer; + border: none; + border-radius: 4px; + display: inline-flex; /* Utilise Flexbox pour centrer le texte */ + align-items: center; /* Centre verticalement */ + justify-content: center; /* Centre horizontalement */ + box-sizing: border-box; /* Important : inclut padding/border dans la largeur */ +} + +/* Couleurs spécifiques */ +.ordregf-btn-creer-petit { + background-color: #28a745; + color: white; +} +.ordregf-btn-creer-petit:hover { + background-color: #218838; +} + +.ordregf-btn-modifier-petit { + background-color: #1a237e; + color: white; +} +.ordregf-btn-modifier-petit:hover { + background-color: #283593; +} diff --git a/js/ordreGF.js b/js/ordreGF.js new file mode 100644 index 0000000..e69de29 diff --git a/php/header.php b/php/header.php index 86c82c2..5f66a3d 100755 --- a/php/header.php +++ b/php/header.php @@ -1,9 +1,10 @@ + - Bourse - Page d'Accueil + Bourse @@ -12,6 +13,7 @@ +
diff --git a/php/menu.php b/php/menu.php index 9d679af..9159fc6 100755 --- a/php/menu.php +++ b/php/menu.php @@ -28,7 +28,7 @@ require_once __DIR__ . '/header.php';