Skip to content

Commit

Permalink
affichage total presence
Browse files Browse the repository at this point in the history
  • Loading branch information
machine62 committed Dec 4, 2018
1 parent d00c702 commit 9bcc91c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
9 changes: 9 additions & 0 deletions css/jscss.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ table.oversight td.tdtotal {
border-color: Black;
background-color: lightsteelblue;
}
table.oversight td.tdtotal1 {
border-style: solid;
border-bottom: 1px;
border-color: Black;
background-color: green;
color:green;
}


table.oversight td.tdinfo {
text-align: center;
border-bottom: 1px solid black;
Expand Down
18 changes: 8 additions & 10 deletions functions/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ function getAnalyseHTMLTable( $tmstampToday, $tCoord, $tInsert)
$tmstampTodaystr = strftime("%A %d %B", $tmstampToday);
$step = 15 * 60;
$totalcdr='';
$totalpresence='';
?>


Expand Down Expand Up @@ -172,13 +173,10 @@ function getAnalyseHTMLTable( $tmstampToday, $tCoord, $tInsert)
</td>
<?php endforeach; ?>
<td>
Total P
Présence
</td>
<td>
Total L
</td>
<td>
Total CDR
CDR
</td>
</tr>

Expand All @@ -187,6 +185,7 @@ function getAnalyseHTMLTable( $tmstampToday, $tCoord, $tInsert)
<?php for ($i = $tmstampToday; $i <= $tmstampTomorrow - 1; $i = $i + $step) : ?>
<?php if (isset($tInsert[$i])) : ?>
<?php $totalcdr='';?>
<?php $totalpresence='';?>
<tr>
<td>
<?php echo $tmstampTodaystr ?>
Expand All @@ -201,11 +200,13 @@ function getAnalyseHTMLTable( $tmstampToday, $tCoord, $tInsert)
<td class="tdinfo value<?php echo $tInsert[$i][$coord]["P"]; ?>">

<?php echo $tInsert[$i][$coord]["P"]; ?>
<?php $totalpresence = ($tInsert[$i][$coord]["P"] == 1) ? 1 : $totalpresence;;?>

</td>
<td class="tdinfo value<?php echo $tInsert[$i][$coord]["M"]; ?>">

<?php echo $tInsert[$i][$coord]["M"]; ?>
<?php $totalpresence = ($tInsert[$i][$coord]["M"] == 1) ? 1 : $totalpresence;;?>

</td>
<td class="tdinfo tdcdr tdcdr_<?php echo $tInsert[$i][$coord]["cdr"]; ?>">
Expand All @@ -215,11 +216,8 @@ function getAnalyseHTMLTable( $tmstampToday, $tCoord, $tInsert)
<?php endif ; ?>
</td>
<?php endforeach; ?>
<td class="tdtotal">
Total 1
</td>
<td class="tdtotal">
Total 2
<td class="tdtotal<?php echo $totalpresence ; ?>">
<?php echo $totalpresence ; ?>
</td>
<td class="tdtotal">
<?php echo $totalcdr ; ?>
Expand Down
2 changes: 2 additions & 0 deletions view/stat.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
todo <br />
liste joueur suivi + nb <br />
liste joueur suivant + nb <br />
vision analyse pour toutes l'alliance <br />
compte entrée orpheline + suppression <br /> <br />

------------- <br />
admin <br />
suppression au bout de x nb ou au bout de d date <br />
Expand Down

0 comments on commit 9bcc91c

Please sign in to comment.