From 64acfdd65db2180e921b3727370a16ce4461a184 Mon Sep 17 00:00:00 2001 From: Cabillot Julien Date: Thu, 27 Nov 2014 13:15:49 +0100 Subject: [PATCH] infos sur les dl a faire/fait --- controller/status.php | 11 ++++++ templates/status.php | 78 ++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 85 insertions(+), 4 deletions(-) diff --git a/controller/status.php b/controller/status.php index 69878fe..875ce91 100644 --- a/controller/status.php +++ b/controller/status.php @@ -2,6 +2,17 @@ function getStatus() { + $db = DbMongo::get(); + $coll = $db->download; + $listAdded = $coll->find( + ['cstate' => 'added'] + ); + $listDownloading = $coll->find( + ['cstate' => 'downloading'] + ); + $listDownloaded = $coll->find( + ['cstate' => 'downloaded'] + ); $infos = PremiumizeMe::getStatus(); include dirname(__FILE__).'/../templates/status.php'; } diff --git a/templates/status.php b/templates/status.php index e40425f..a4d3cfb 100644 --- a/templates/status.php +++ b/templates/status.php @@ -6,9 +6,79 @@ - Expiration : format('H:i d.m.Y') ?>
- Traffic Restant : Go (%)
-
- + Expiration : format('H:i d.m.Y') ?>
+ Traffic Restant : Go (%)
+
+
+ Liste des fichiers a traiter :
+ + + + + + + + + + + + + + +
Date + Filename + IP +
+ Liste des fichiers en cours :
+ + + + + + + + + + + + + + +
Date + Filename + IP +
+ Liste des fichiers terminés :
+ + + + + + + + + + + + + + +
Date + Filename + IP +
+