Commit 553ef95c authored by Gaetan Carabetta's avatar Gaetan Carabetta

update affichage

parent 088a7427
<html>
<head>
<title>Exercice</title>
<title>Clinique Vétérinaire</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
......@@ -29,6 +29,7 @@
}
// Affichage du tableau de données
$vSql = "select * from animal";
try{
$vSt = $vConn->prepare($vSql);
$vSt->execute();
......
<html>
<head>
<title>Exercice</title>
<title>Clinique Vétérinaire</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
</head>
<body>
<h1>Information des animaux</h1>
<h1>Information des assitants</h1>
<table border="1">
<tr>
<th>idAnimal</th>
<th>idAssistant</th>
<th>Nom</th>
<th>Poids</th>
<th>Taille</th>
<th>Naissance</th>
<th>idClient</th>
<th>Espece</th>
<th>Statistiques</th>
<th>Supprimer</th>
<th>Prenom</th>
<th>Date de naissance</th>
<th>Adresse</th>
<th>Numéro</th>
<th>Spécialité</th>
</tr>
<?php
// Connexion à la base de données
......@@ -29,6 +27,7 @@
}
// Affichage du tableau de données
$vSql = "select * from assistant";
try{
$vSt = $vConn->prepare($vSql);
$vSt->execute();
......@@ -43,8 +42,6 @@
echo "<td>$vResult[4]</td>";
echo "<td>$vResult[5]</td>";
echo "<td>$vResult[6]</td>";
echo "<td><form action='statAnimal.php' method='post'> <input type='text' name='idAnimal' value=$vResult[0] hidden/> <input type='submit' value='Statistiques'> </form></td>";
echo "<td><form action='remAnimal.php' method='post'> <input type='text' name='idAnimal' value=$vResult[0] hidden/> <input id='btnRemove' type='submit' value='X'> </form></td>";
echo '</tr>';
}
......
<html>
<head>
<title>Exercice</title>
<title>Clinique Vétérinaire</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Information des animaux</h1>
<h1>Information des classes</h1>
<table border="1">
<tr>
<th>idAnimal</th>
<th>Nom</th>
<th>Poids</th>
<th>Taille</th>
<th>Naissance</th>
<th>idClient</th>
<th>Espece</th>
<th>Statistiques</th>
<th>Supprimer</th>
<th>Nom Classe</th>
</tr>
<?php
// Connexion à la base de données
......@@ -29,6 +21,7 @@
}
// Affichage du tableau de données
$vSql = "select * from ClasseEspece";
try{
$vSt = $vConn->prepare($vSql);
$vSt->execute();
......@@ -37,14 +30,6 @@
while ($vResult = $vSt->fetch(PDO::FETCH_BOTH)) {
echo '<tr>';
echo "<td>$vResult[0]</td>";
echo "<td>$vResult[1]</td>";
echo "<td>$vResult[2]</td>";
echo "<td>$vResult[3]</td>";
echo "<td>$vResult[4]</td>";
echo "<td>$vResult[5]</td>";
echo "<td>$vResult[6]</td>";
echo "<td><form action='statAnimal.php' method='post'> <input type='text' name='idAnimal' value=$vResult[0] hidden/> <input type='submit' value='Statistiques'> </form></td>";
echo "<td><form action='remAnimal.php' method='post'> <input type='text' name='idAnimal' value=$vResult[0] hidden/> <input id='btnRemove' type='submit' value='X'> </form></td>";
echo '</tr>';
}
......
<html>
<head>
<title>Exercice</title>
<title>Clinique Vétérinaire</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Information des animaux</h1>
<h1>Information des especes</h1>
<table border="1">
<tr>
<th>idAnimal</th>
<th>Nom</th>
<th>Poids</th>
<th>Taille</th>
<th>Naissance</th>
<th>idClient</th>
<th>Classe</th>
<th>Espece</th>
<th>Statistiques</th>
<th>Supprimer</th>
</tr>
<?php
// Connexion à la base de données
......@@ -29,6 +22,7 @@
}
// Affichage du tableau de données
$vSql = "select * from espece";
try{
$vSt = $vConn->prepare($vSql);
$vSt->execute();
......@@ -38,13 +32,6 @@
echo '<tr>';
echo "<td>$vResult[0]</td>";
echo "<td>$vResult[1]</td>";
echo "<td>$vResult[2]</td>";
echo "<td>$vResult[3]</td>";
echo "<td>$vResult[4]</td>";
echo "<td>$vResult[5]</td>";
echo "<td>$vResult[6]</td>";
echo "<td><form action='statAnimal.php' method='post'> <input type='text' name='idAnimal' value=$vResult[0] hidden/> <input type='submit' value='Statistiques'> </form></td>";
echo "<td><form action='remAnimal.php' method='post'> <input type='text' name='idAnimal' value=$vResult[0] hidden/> <input id='btnRemove' type='submit' value='X'> </form></td>";
echo '</tr>';
}
......
<html>
<head>
<title>Clinique Veterinaire</title>
<title>Clinique Vétérinaire</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
......
<html>
<head>
<title>Exercice</title>
<title>Clinique Vétérinaire</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Information des animaux</h1>
<h1>Information des médicaments</h1>
<table border="1">
<tr>
<th>idAnimal</th>
<th>Nom</th>
<th>Poids</th>
<th>Taille</th>
<th>Naissance</th>
<th>idClient</th>
<th>Espece</th>
<th>Statistiques</th>
<th>Supprimer</th>
<th>Nom médicament</th>
<th>Description</th>
</tr>
<?php
// Connexion à la base de données
......@@ -29,6 +22,7 @@
}
// Affichage du tableau de données
$vSql = "select * from medicament";
try{
$vSt = $vConn->prepare($vSql);
$vSt->execute();
......@@ -38,13 +32,6 @@
echo '<tr>';
echo "<td>$vResult[0]</td>";
echo "<td>$vResult[1]</td>";
echo "<td>$vResult[2]</td>";
echo "<td>$vResult[3]</td>";
echo "<td>$vResult[4]</td>";
echo "<td>$vResult[5]</td>";
echo "<td>$vResult[6]</td>";
echo "<td><form action='statAnimal.php' method='post'> <input type='text' name='idAnimal' value=$vResult[0] hidden/> <input type='submit' value='Statistiques'> </form></td>";
echo "<td><form action='remAnimal.php' method='post'> <input type='text' name='idAnimal' value=$vResult[0] hidden/> <input id='btnRemove' type='submit' value='X'> </form></td>";
echo '</tr>';
}
......
<html>
<head>
<title>Exercice</title>
<title>Clinique Vétérinaire</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Information des animaux</h1>
<h1>Information des traitements</h1>
<table border="1">
<tr>
<th>idTraitement</th>
<th>idAnimal</th>
<th>Nom</th>
<th>Poids</th>
<th>Taille</th>
<th>Naissance</th>
<th>idClient</th>
<th>Espece</th>
<th>Statistiques</th>
<th>Supprimer</th>
<th>idVeterinaire</th>
</tr>
<?php
// Connexion à la base de données
......@@ -29,6 +23,7 @@
}
// Affichage du tableau de données
$vSql = "select * from traitement";
try{
$vSt = $vConn->prepare($vSql);
$vSt->execute();
......@@ -39,12 +34,6 @@
echo "<td>$vResult[0]</td>";
echo "<td>$vResult[1]</td>";
echo "<td>$vResult[2]</td>";
echo "<td>$vResult[3]</td>";
echo "<td>$vResult[4]</td>";
echo "<td>$vResult[5]</td>";
echo "<td>$vResult[6]</td>";
echo "<td><form action='statAnimal.php' method='post'> <input type='text' name='idAnimal' value=$vResult[0] hidden/> <input type='submit' value='Statistiques'> </form></td>";
echo "<td><form action='remAnimal.php' method='post'> <input type='text' name='idAnimal' value=$vResult[0] hidden/> <input id='btnRemove' type='submit' value='X'> </form></td>";
echo '</tr>';
}
......
<html>
<head>
<title>Exercice</title>
<title>Clinique Vétérinaire</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Information des animaux</h1>
<h1>Information des vétérinaires</h1>
<table border="1">
<tr>
<th>idAnimal</th>
<th>idVeterinaire</th>
<th>Nom</th>
<th>Poids</th>
<th>Taille</th>
<th>Naissance</th>
<th>idClient</th>
<th>Espece</th>
<th>Statistiques</th>
<th>Supprimer</th>
<th>Prenom</th>
<th>Date de naissance</th>
<th>Adresse</th>
<th>Numéro</th>
<th>Spécialité</th>
</tr>
<?php
// Connexion à la base de données
......@@ -29,6 +27,7 @@
}
// Affichage du tableau de données
$vSql = "select * from veterinaire";
try{
$vSt = $vConn->prepare($vSql);
$vSt->execute();
......@@ -43,8 +42,6 @@
echo "<td>$vResult[4]</td>";
echo "<td>$vResult[5]</td>";
echo "<td>$vResult[6]</td>";
echo "<td><form action='statAnimal.php' method='post'> <input type='text' name='idAnimal' value=$vResult[0] hidden/> <input type='submit' value='Statistiques'> </form></td>";
echo "<td><form action='remAnimal.php' method='post'> <input type='text' name='idAnimal' value=$vResult[0] hidden/> <input id='btnRemove' type='submit' value='X'> </form></td>";
echo '</tr>';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment