limit height of online user list

main
Jan-Philipp Litza 12 years ago
parent 7c7b2d3b54
commit 6432401d9c

@ -78,7 +78,7 @@ function make_menu() {
function make_onlineusers() { function make_onlineusers() {
global $privileges, $user; global $privileges, $user;
$html = '<nav class="container"><h4>Helfer online</h4>'; $html = '<nav class="container online"><h4>Helfer online</h4>';
$query = "SELECT UID, Nick, lastLogIn " . "FROM User " . "WHERE (`lastLogIn` > '" . (time() - 60 * 60) . "') " . "ORDER BY lastLogIn DESC"; $query = "SELECT UID, Nick, lastLogIn " . "FROM User " . "WHERE (`lastLogIn` > '" . (time() - 60 * 60) . "') " . "ORDER BY lastLogIn DESC";
$users = sql_select($query); $users = sql_select($query);

@ -52,6 +52,11 @@ footer p {
margin-left: 200px; margin-left: 200px;
} }
.container.online .content {
max-height: 15em;
overflow: auto;
}
a { a {
color: #000; color: #000;
} }

Loading…
Cancel
Save