code qr vehicule

This commit is contained in:
2026-05-28 11:26:29 -04:00
parent 3ed9f8e1fc
commit ef8304c617
2 changed files with 33 additions and 11 deletions

View File

@ -120,20 +120,40 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Key chain HTTP</title>
<style>
body { font-family: system-ui, sans-serif; max-width: 520px; margin: 2rem auto; padding: 0 1rem; }
h1 { font-size: 1.1rem; }
label { display: block; margin-top: 1rem; font-weight: 600; }
input[type="text"], input[type="number"] { width: 100%; box-sizing: border-box; padding: 0.5rem; font-size: 1rem; }
.hint { color: #666; font-size: 0.85rem; margin-top: 0.25rem; }
.msg { margin: 1rem 0; padding: 0.75rem; border-radius: 4px; }
body { font-family: system-ui, sans-serif; max-width: 560px; margin: 2rem auto; padding: 0 1rem; color: #222; }
h1 { font-size: 1.35rem; margin-bottom: 0.75rem; }
label { display: block; margin-top: 1.25rem; font-weight: 600; font-size: 1.05rem; }
input[type="text"], input[type="number"] { width: 100%; box-sizing: border-box; padding: 0.6rem; font-size: 1.05rem; }
.credits {
background: #f0f4f8;
border: 1px solid #c5d0dc;
border-radius: 6px;
padding: 1rem 1.15rem;
margin: 0 0 1.25rem;
font-size: 1rem;
line-height: 1.5;
}
.credits strong { display: block; margin-bottom: 0.5rem; font-size: 1.05rem; }
.credits ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.credits li { margin: 0.35rem 0; }
.hint { color: #555; font-size: 0.95rem; margin-top: 0.4rem; }
.msg { margin: 1rem 0; padding: 0.85rem; border-radius: 4px; font-size: 1rem; }
.msg.ok { background: #e8f5e9; color: #1b5e20; }
.msg.err { background: #ffebee; color: #b71c1c; }
.pk-badge { font-family: monospace; background: #f5f5f5; padding: 0.2rem 0.4rem; }
.pk-badge { font-family: monospace; background: #e8e8e8; padding: 0.15rem 0.45rem; border-radius: 3px; font-size: 1.05em; }
.pk-line { font-size: 1.05rem; margin: 0.5rem 0 1rem; }
</style>
</head>
<body>
<h1>Key chain — URL de destination</h1>
<p class="hint">Numéro saisi + <?php echo (int) KEYCHAIN_HTTP_EDIT_SHIFT; ?> = pk en base (ex. 8 → <span class="pk-badge">108</span>).</p>
<div class="credits">
<strong>Indications</strong>
<ul>
<li>Numéro affiché <strong>+ <?php echo (int) KEYCHAIN_HTTP_EDIT_SHIFT; ?></strong> = <code>pk_key_chain</code> en base (ex.&nbsp;: vous tapez <span class="pk-badge">8</span> → enregistrement sur <span class="pk-badge">108</span>).</li>
<li><strong>Entrée</strong> : charger lURL actuelle, puis enregistrer la nouvelle.</li>
<li>Seule la colonne <code>key_chain_http</code> est modifiée (outil temporaire MS1).</li>
</ul>
</div>
<?php if ($strMessage !== '') { ?>
<div class="msg <?php echo htmlspecialchars($strMessageClass, ENT_QUOTES, 'UTF-8'); ?>"><?php
@ -150,7 +170,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
<p class="hint">Entrée pour charger lURL actuelle.</p>
</form>
<?php } else { ?>
<p>pk_key_chain : <span class="pk-badge"><?php echo (int) $intPk; ?></span></p>
<p class="pk-line">pk_key_chain en base : <span class="pk-badge"><?php echo (int) $intPk; ?></span></p>
<form method="post" action="<?php echo $strBaseUrl; ?>" id="frm_save">
<input type="hidden" name="csrf" value="<?php echo htmlspecialchars($strCsrf, ENT_QUOTES, 'UTF-8'); ?>">
<input type="hidden" name="action" value="save">