This commit is contained in:
2024-05-06 10:20:57 +02:00
parent a8e398f198
commit ad0030c065
22 changed files with 340 additions and 0 deletions

24
TP/TP2/ex5/conjuguer.php Normal file
View File

@@ -0,0 +1,24 @@
<?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");
if (isset($_POST['verbe'])) $verbe = $_POST['verbe'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" href="http://www.iut-fbleau.fr/css/tacit.css">
<link rel="stylesheet" href="./css/style.css">
<title></title>
</head>
<body container>
</body>
</html>

4
TP/TP2/ex5/css/style.css Normal file
View File

@@ -0,0 +1,4 @@
input[type="text"]{
width:auto;
}

24
TP/TP2/ex5/ex5.html Normal file
View File

@@ -0,0 +1,24 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" href="http://www.iut-fbleau.fr/css/tacit.css">
<link rel="stylesheet" href="./css/style.css">
</head>
<body container>
<h3>Conjugaison</h3>
<form method="post" action="conjuguer.php" class="form-horizontal">
<fieldset>
<label class="control-label">Verbe du premier groupe</label>
<input type=text name="verbe" >
<label>Temps</label>
<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>
<button type="submit" name="accepter">Envoyer</button>
</fieldset>
</form>
</body>
</html>