|
Revision 1340, 1.4 kB
(checked in by anonymous, 4 years ago)
|
Initial revision
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
require_once("../class/config.php"); |
|---|
| 4 |
require_once("stat_functions.php"); |
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
include("head.php"); |
|---|
| 9 |
|
|---|
| 10 |
echo "<h1>Moteur de statistiques de consommation de bande passante</h1>"; |
|---|
| 11 |
|
|---|
| 12 |
if ($error) echo "<div class=\"error\">$error</div>"; |
|---|
| 13 |
?> |
|---|
| 14 |
<p> |
|---|
| 15 |
<a href="stat_list.php">Nouveau tableau / graphique / rapport de bande passante ...</a> |
|---|
| 16 |
</p> |
|---|
| 17 |
<p> |
|---|
| 18 |
Si vous avez sauvé des requêtes préprogrammées, vous pouvez y accéder ci-dessous. <br /> |
|---|
| 19 |
Pour cela, cliquez sur "Modifier" pour voir les paramètres d'une requête, ou "Executer" pour obtenir le résultat |
|---|
| 20 |
tout de suite (document pdf, excel, calcul de resultat...) |
|---|
| 21 |
</p> |
|---|
| 22 |
|
|---|
| 23 |
<?php |
|---|
| 24 |
|
|---|
| 25 |
$r=$db->query("SELECT * FROM bw_stats WHERE uid='$cuid' ORDER BY ts DESC"); |
|---|
| 26 |
|
|---|
| 27 |
if (!$db->next_record()) { |
|---|
| 28 |
echo "<h2>Vous n'avez enregistré aucune requête</h2>"; |
|---|
| 29 |
} else { |
|---|
| 30 |
?> |
|---|
| 31 |
<table cellspacing="0" cellpadding="4"> |
|---|
| 32 |
<tr><th colspan="3">Action</th><th>Nom</th><th>Date</th></tr> |
|---|
| 33 |
<?php |
|---|
| 34 |
$col=1; |
|---|
| 35 |
do { |
|---|
| 36 |
$c=$db->Record; |
|---|
| 37 |
$col=3-$col; |
|---|
| 38 |
echo "<tr class=\"lst$col\">"; |
|---|
| 39 |
echo "<td><a href=\"stat_load.php?id=$c[id]\">Modifier</a></td>"; |
|---|
| 40 |
echo "<td><a href=\"stat_exec.php?id=$c[id]\">Executer</a></td>"; |
|---|
| 41 |
echo "<td><a href=\"stat_del.php?id=$c[id]\">Effacer</a></td>"; |
|---|
| 42 |
echo "<td>$c[name]</td><td>".date_ts2fr($c[ts])."</td>"; |
|---|
| 43 |
echo "</tr>"; |
|---|
| 44 |
} while ($db->next_record()); |
|---|
| 45 |
?> |
|---|
| 46 |
</table> |
|---|
| 47 |
|
|---|
| 48 |
<?php |
|---|
| 49 |
|
|---|
| 50 |
} |
|---|
| 51 |
|
|---|
| 52 |
?> |
|---|
| 53 |
</body> |
|---|
| 54 |
</html> |
|---|
| 55 |
|
|---|