tp2
This commit is contained in:
24
TP/TP2/ex5/conjuguer.php
Normal file
24
TP/TP2/ex5/conjuguer.php
Normal 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
4
TP/TP2/ex5/css/style.css
Normal file
@@ -0,0 +1,4 @@
|
||||
input[type="text"]{
|
||||
width:auto;
|
||||
|
||||
}
|
24
TP/TP2/ex5/ex5.html
Normal file
24
TP/TP2/ex5/ex5.html
Normal 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>
|
Reference in New Issue
Block a user