This commit is contained in:
2026-04-01 08:25:18 +02:00
parent 19afef54e6
commit d13f66226b
26 changed files with 426 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
include 'include/controller.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css"
/>
<link rel="stylesheet" href="./css/style.css">
<title></title>
</head>
<body>
<main>
</main>
</body>
</html>
+4
View File
@@ -0,0 +1,4 @@
input[type="text"]{
width:auto;
}
+31
View File
@@ -0,0 +1,31 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css"
/>
</head>
<body>
<main>
<h3>Conjugaison</h3>
<form method="post" action="conjuguer.php">
<fieldset>
<label>Verbe du premier groupe<br>
<input type=text name="verbe" required>
</label>
Temps
<label class="checkbox"><input type=checkbox name="temps[]" value="present"> Présent </label>
<label class="checkbox"><input type=checkbox name="temps[]" value="futur"> Futur </label>
<label class="checkbox"><input type=checkbox name="temps[]" value="imparfait"> Imparfait </label>
</fieldset>
<button type="submit" name="accepter">Envoyer</button>
</form>
</main>
</body>
</html>
+12
View File
@@ -0,0 +1,12 @@
<?php
$terminaisons = array(
"present"=>array("e","es","e","ons","ez","ent"),
"futur"=>array("erai","eras","era","erons","erez","eront"),
"imparfait"=>array("ais","ais","ait","ions","iez","aient")
);
$pronoms=array("je","tu","il","nous","vous","ils");
$verbe = filter_input(INPUT_POST,"verbe",FILTER_SANITIZE_STRING);
$radical = substr($verbe,0,strlen($verbe)-2);