limit height of online user list

This commit is contained in:
Jan-Philipp Litza 2012-12-29 14:05:57 +01:00
parent 7c7b2d3b54
commit 6432401d9c
2 changed files with 6 additions and 1 deletions

View File

@ -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);

View File

@ -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;
} }