Implemented filtering

This commit is contained in:
Latif Khalifa
2013-10-07 09:47:59 +02:00
parent cd5484d3f4
commit 73c10e7e3b
4 changed files with 189 additions and 7 deletions

View File

@@ -4,9 +4,12 @@ define("SITE_ROOT", realpath(dirname(__file__)));
require_once SITE_ROOT . "/lib/init.php";
$S->requireUser();
$total = CrashReport::getTotal();
$reports = CrashReport::getReports();
$filter = new SearchFilter();
$total = CrashReport::getTotal($filter);
$reports = CrashReport::getReports($filter);
Layout::header();
$filter->render();
?>
<p>Reports <strong><?php echo $total ?></strong></p>