Skip to content
Snippets Groups Projects
Commit 4a1b15a9 authored by NF17 Etudiant's avatar NF17 Etudiant
Browse files

Merge branch 'master' of gitlab.utc.fr:nf17-camp-p14/clivi

parents cdf9a958 f3793c07
No related branches found
No related tags found
No related merge requests found
......@@ -27,10 +27,12 @@ class Animal extends Objet
"i" => 6
),
"date_naissance" => array(
"i" => 8
"i" => 8,
"label" => "Date de naissance"
),
"date_deces" => array(
"i" => 9
"i" => 9,
"label" => "Date de deces"
),
"sterile" => array(
"t" => "BoolField",
......
......@@ -8,7 +8,19 @@ class Race extends Objet
protected $prix_intervention;
public $_specialFields = array(
"espece" => array(
"t" => "ForeignField"
"t" => "ForeignField",
"i" => 3
)
"nom" => array(
"t" => "ForeignField",
"i" => 2
)
"id" => array(
"i" => 1
)
"prix_intervention" => array(
"label" => "Prix de l'intervetion",
"i" => 4
));
public function id()
......
......@@ -29,6 +29,7 @@ switch($action) {
break;
case "listeEspece":
$list = Espece::getList("Liste des Especes");
include 'view/list.php';
break;
case "addEspece":
$espece = new Espece();
......
......@@ -19,21 +19,8 @@
<table class="table">
<caption> <th> Top 3 des plus gros client : </th> </caption>
<tr>
<th>Nom</th>
<th>Prenom</th>
<th>Total des dépenses</th>
</tr>
<tr>
<td>Carmen</td>
<td>33 ans</td>
<td>Espagne</td>
</tr>
<tr>
<td>Michelle</td>
<td>26 ans</td>
<td>États-Unis</td>
</tr>
<thead>
<th><?php print_r($stats->top3Client()); ?></th>
</thead>
</table>
</div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment