diff --git a/application/addAnimal.php b/application/addAnimal.php index 81bbaae9255e2d924936954f768c94866a2ccbe8..fb359aff1e50e771aef99ac088b864a63e10de0a 100644 --- a/application/addAnimal.php +++ b/application/addAnimal.php @@ -5,16 +5,12 @@ prepare($vSql); $vSt->execute(); - header('Location: http://tuxa.sme.utc/~bdd0p042/application/animal.php'); + header('Location: http://tuxa.sme.utc/~bdd0p042/application/animaux.php'); }else echo "Il faut donner une espece"; }else diff --git a/application/affichage.php b/application/affichage.php index 61b033b63cc7fc0436cf6a325ba065c23274520d..b8e6851e66b630b68fb31924b80b0dda4515b5a7 100644 --- a/application/affichage.php +++ b/application/affichage.php @@ -1,3 +1,30 @@ -

Test

+

+if ($_POST['affiche'] == "all"){ + include("clients.php"); + include("veterinaires.php"); + include("assistants.php"); + include("classes.php"); + include("especes.php"); + include("animaux.php"); + include("medicaments.php"); + include("traitements.php"); +} elseif ($_POST['affiche'] == "clients") { + include("clients.php"); +} elseif ($_POST['affiche'] == "veterinaires") { + include("veterinaires.php"); +} elseif ($_POST['affiche'] == "assistants") { + include("assistants.php"); +} elseif ($_POST['affiche'] == "classes") { + include("classes.php"); +} elseif ($_POST['affiche'] == "especes") { + include("especes.php"); +} elseif ($_POST['affiche'] == "animaux") { + include("animaux.php"); +} elseif ($_POST['affiche'] == "medicaments") { + include("medicaments.php"); +} elseif ($_POST['affiche'] == "traitements") { + include("traitements.php"); +} + +?> diff --git a/application/ajout.php b/application/ajout.php index 27ad12ffc8728044009a5818e29d3dbde30ef15b..545ee0ee8664004fad21ac297534cd07d3acdbd1 100644 --- a/application/ajout.php +++ b/application/ajout.php @@ -1,10 +1,10 @@ - - Exercice - - - - -

Information des animaux

- -
-
-

Nom de l'animal:

-

Poids:

-

Taille:

-

Date de naissance:

-

Client: - -

-

Espece: - -

-

-
-
- - diff --git a/application/animal.php b/application/animaux.php similarity index 84% rename from application/animal.php rename to application/animaux.php index 695a778985fcd2061f4c2eda70c59ff2def08f2e..36fb4d29dc5e37ee2ff61e271be6fb4a754c14d4 100644 --- a/application/animal.php +++ b/application/animaux.php @@ -20,24 +20,15 @@ prepare($vSql); $vSt->execute(); diff --git a/application/assistants.php b/application/assistants.php new file mode 100644 index 0000000000000000000000000000000000000000..36fb4d29dc5e37ee2ff61e271be6fb4a754c14d4 --- /dev/null +++ b/application/assistants.php @@ -0,0 +1,58 @@ + + + Exercice + + + + +

Information des animaux

+ + + + + + + + + + + + + prepare($vSql); + $vSt->execute(); + + + while ($vResult = $vSt->fetch(PDO::FETCH_BOTH)) { + echo ''; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ''; + } + + } catch(PDOException $e){ + echo "Erreur de requete '$e'"; + } + ?> + +
idAnimalNomPoidsTailleNaissanceidClientEspeceStatistiquesSupprimer
$vResult[0]$vResult[1]$vResult[2]$vResult[3]$vResult[4]$vResult[5]$vResult[6]
+ + diff --git a/application/classes.php b/application/classes.php new file mode 100644 index 0000000000000000000000000000000000000000..36fb4d29dc5e37ee2ff61e271be6fb4a754c14d4 --- /dev/null +++ b/application/classes.php @@ -0,0 +1,58 @@ + + + Exercice + + + + +

Information des animaux

+ + + + + + + + + + + + + prepare($vSql); + $vSt->execute(); + + + while ($vResult = $vSt->fetch(PDO::FETCH_BOTH)) { + echo ''; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ''; + } + + } catch(PDOException $e){ + echo "Erreur de requete '$e'"; + } + ?> + +
idAnimalNomPoidsTailleNaissanceidClientEspeceStatistiquesSupprimer
$vResult[0]$vResult[1]$vResult[2]$vResult[3]$vResult[4]$vResult[5]$vResult[6]
+ + diff --git a/application/error.php b/application/error.php index e903e38fda63c3ae71edfb27ef69503055cada00..33db22b80f4ebd6e34ef8911c35917af257c7488 100644 --- a/application/error.php +++ b/application/error.php @@ -1 +1,2 @@

Choix non supporté, veuillez retourner à l'index

+ diff --git a/application/especes.php b/application/especes.php new file mode 100644 index 0000000000000000000000000000000000000000..36fb4d29dc5e37ee2ff61e271be6fb4a754c14d4 --- /dev/null +++ b/application/especes.php @@ -0,0 +1,58 @@ + + + Exercice + + + + +

Information des animaux

+ + + + + + + + + + + + + prepare($vSql); + $vSt->execute(); + + + while ($vResult = $vSt->fetch(PDO::FETCH_BOTH)) { + echo ''; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ''; + } + + } catch(PDOException $e){ + echo "Erreur de requete '$e'"; + } + ?> + +
idAnimalNomPoidsTailleNaissanceidClientEspeceStatistiquesSupprimer
$vResult[0]$vResult[1]$vResult[2]$vResult[3]$vResult[4]$vResult[5]$vResult[6]
+ + diff --git a/application/formulaireAnimal.php b/application/formulaireAnimal.php index 0978cd37d7f6668b45ce8a3c52fa6cc75fe06875..5ddf4d16b13bf5bb5d1441433d65681e3d57efe0 100644 --- a/application/formulaireAnimal.php +++ b/application/formulaireAnimal.php @@ -8,11 +8,7 @@

Information des animaux

diff --git a/application/medicaments.php b/application/medicaments.php new file mode 100644 index 0000000000000000000000000000000000000000..36fb4d29dc5e37ee2ff61e271be6fb4a754c14d4 --- /dev/null +++ b/application/medicaments.php @@ -0,0 +1,58 @@ + + + Exercice + + + + +

Information des animaux

+ + + + + + + + + + + + + prepare($vSql); + $vSt->execute(); + + + while ($vResult = $vSt->fetch(PDO::FETCH_BOTH)) { + echo ''; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ''; + } + + } catch(PDOException $e){ + echo "Erreur de requete '$e'"; + } + ?> + +
idAnimalNomPoidsTailleNaissanceidClientEspeceStatistiquesSupprimer
$vResult[0]$vResult[1]$vResult[2]$vResult[3]$vResult[4]$vResult[5]$vResult[6]
+ + diff --git a/application/remAnimal.php b/application/remAnimal.php index bdfdbcc57ce0f3a921eb6f6f91d01c0549468a72..309dfa16c2f5acd3be18c8dfac2f04bf652d9950 100644 --- a/application/remAnimal.php +++ b/application/remAnimal.php @@ -5,11 +5,6 @@ diff --git a/application/traitements.php b/application/traitements.php new file mode 100644 index 0000000000000000000000000000000000000000..36fb4d29dc5e37ee2ff61e271be6fb4a754c14d4 --- /dev/null +++ b/application/traitements.php @@ -0,0 +1,58 @@ + + + Exercice + + + + +

Information des animaux

+ + + + + + + + + + + + + prepare($vSql); + $vSt->execute(); + + + while ($vResult = $vSt->fetch(PDO::FETCH_BOTH)) { + echo ''; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ''; + } + + } catch(PDOException $e){ + echo "Erreur de requete '$e'"; + } + ?> + +
idAnimalNomPoidsTailleNaissanceidClientEspeceStatistiquesSupprimer
$vResult[0]$vResult[1]$vResult[2]$vResult[3]$vResult[4]$vResult[5]$vResult[6]
+ + diff --git a/application/veterinaires.php b/application/veterinaires.php new file mode 100644 index 0000000000000000000000000000000000000000..36fb4d29dc5e37ee2ff61e271be6fb4a754c14d4 --- /dev/null +++ b/application/veterinaires.php @@ -0,0 +1,58 @@ + + + Exercice + + + + +

Information des animaux

+ + + + + + + + + + + + + prepare($vSql); + $vSt->execute(); + + + while ($vResult = $vSt->fetch(PDO::FETCH_BOTH)) { + echo ''; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ''; + } + + } catch(PDOException $e){ + echo "Erreur de requete '$e'"; + } + ?> + +
idAnimalNomPoidsTailleNaissanceidClientEspeceStatistiquesSupprimer
$vResult[0]$vResult[1]$vResult[2]$vResult[3]$vResult[4]$vResult[5]$vResult[6]
+ +