projets:lcd_status:start

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
projets:lcd_status:start [2025/11/21 07:01]
enseignant
projets:lcd_status:start [2025/11/21 07:24] (Version actuelle)
enseignant
Ligne 12: Ligne 12:
  
 {{projets:lcd_status:start:comfyui_00131_.png?800|LCD status}} {{projets:lcd_status:start:comfyui_00131_.png?800|LCD status}}
-==== Références et liens ==== +
-  * Notez ici les références artistiques et techniques, ou autres influences +
-  *  +
-  * +
  
 ===== Notes techniques et matériaux ===== ===== Notes techniques et matériaux =====
-Liste de matériel et composants nécessaires (documents avec photo si possible...)+Code pour l'esp :
  
 <code c+> <code c+>
Ligne 183: Ligne 180:
  
  
 +</code>
 +
 +===== Coté FTP-php =====
 +<code html>
 +<!DOCTYPE html>
 +<html lang="fr">
 +<head>
 +    <meta charset="UTF-8">
 +    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 +    <title>Formulaire de mise à jour</title>
 +    <style>
 +        body {
 +            background-color: black;
 +            color: white;
 +            font-family: Arial, sans-serif;
 +            font-size: 18px;
 +            margin: 0;
 +            padding: 20px;
 +        }
 +        h1 {
 +            color: lightgray;
 +        }
 +
 + h5 {
 +            color: #666;
 + font-size: 11px;
 +        }
 +        form {
 +            background-color: #222;
 +            padding: 20px;
 + width: 60%;
 +            border-radius: 5px;
 +            margin-top: 20px;
 +        }
 +        label {
 +            display: block;
 +            margin-bottom: 10px;
 +        }
 +        input[type="text"] {
 +            width: 80%;
 +            padding: 10px;
 +            font-size: 16px;
 +            margin-bottom: 20px;
 +            border: 1px solid gray;
 +            border-radius: 4px;
 +            background-color: #333;
 +            color: white;
 +        }
 +        input[type="submit"] {
 +            background-color: gray;
 +            color: white;
 + font-size: 20px;
 +            padding: 10px 15px;
 +            border: none;
 +            border-radius: 4px;
 +            cursor: pointer;
 +        }
 +        input[type="submit"]:hover {
 +            background-color: tomato;
 + color:black;
 +        }
 +    </style>
 +</head>
 +<body>
 +    <h1>&#9851; Status </h1>
 +    <form action="" method="post">
 +        <label for="texte">Entrez votre texte (max 60 caractères) :</label>
 +        <input type="text" id="texte" name="texte" maxlength="60" required>
 +        <input type="submit" value="Envoyer">
 +    </form>
 +
 +    <?php
 +    if ($_SERVER["REQUEST_METHOD"] == "POST") {
 +        $texte = htmlspecialchars($_POST['texte']);
 +
 +        // Effacer le contenu du fichier et y écrire le nouveau texte
 +        file_put_contents('fichier.txt', $texte);
 +
 +        echo "<h5> :) Le fichier a été mis à jour avec succès.</h5>";
 +    }
 +    ?>
 +</body>
 +</html>
 </code> </code>
 ===== Photos et médias===== ===== Photos et médias=====
  • projets/lcd_status/start.1763704918.txt.gz
  • Dernière modification: 2025/11/21 07:01
  • de enseignant