Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
clivi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NF17 - CAMP - P14
clivi
Commits
b61d96f5
Commit
b61d96f5
authored
10 years ago
by
cortylal
Browse files
Options
Downloads
Patches
Plain Diff
stats
parent
275791f5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
class/stats.php
+2
-0
2 additions, 0 deletions
class/stats.php
view/stats.php
+1
-1
1 addition, 1 deletion
view/stats.php
with
3 additions
and
1 deletion
class/stats.php
+
2
−
0
View file @
b61d96f5
...
...
@@ -174,6 +174,7 @@ class Stats
FROM animal a, race r
WHERE a.race = r.id
GROUP BY r.nom, r.id
ORDER BY count DESC
LIMIT 10"
);
// on prépare notre requête
$requete_prepare
->
execute
();
...
...
@@ -192,6 +193,7 @@ class Stats
WHERE a.race = r.id
AND e.id = r.espece
GROUP BY e.nom, e.id
ORDER BY count DESC
LIMIT 10"
);
// on prépare notre requête
$requete_prepare
->
execute
();
...
...
This diff is collapsed.
Click to expand it.
view/stats.php
+
1
−
1
View file @
b61d96f5
...
...
@@ -143,7 +143,7 @@
<th>
Nombre d'individu
</th>
</thead>
<tbody>
<?php
foreach
(
$stats
->
top10Race
)
as
$ligne
)
:
?>
<?php
foreach
(
$stats
->
top10Race
as
$ligne
)
:
?>
<tr>
<td>
<?php
echo
$ligne
[
"nom"
];
?>
</td>
<td>
<?php
echo
$ligne
[
"count"
];
?>
</td>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment