order more

This commit is contained in:
Shish 2020-03-19 15:10:50 +00:00
parent 5c1925bc2d
commit f633f4abec

View file

@ -22,10 +22,13 @@ class ETServer extends Extension
elseif ($user->can(Permissions::VIEW_REGISTRATIONS)) {
$page->set_title("Registrations");
$page->set_heading("Registrations");
$n = 0;
foreach($database->get_all("SELECT responded, data FROM registration ORDER BY responded DESC") as $row) {
$page->add_block(new Block(
$row["responded"],
(string)PRE(["style"=>"text-align: left; overflow: scroll;"], $row["data"])
(string)PRE(["style"=>"text-align: left; overflow: scroll;"], $row["data"]),
"main",
$n++
));
}
}