-
Notifications
You must be signed in to change notification settings - Fork 0
/
navbar.php
32 lines (28 loc) · 931 Bytes
/
navbar.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
class Navbar
{
const USERIMAGESIZE = 45;
public static function getHeight()
{
return 56;
}
public static function printNavbar($title, $auth)
{
?>
<table class="main" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td class="indexname" id="indexmenuleft" align="left" valign="top"><?= $title ?></td>
<td id="indexmenuright" align="right">
<a onkeydownset="0" href="login.php"><?php
if ($auth->IsAuthenticated()) {
foreach ($auth->userIDs as $userID) {
?><img src="<?=getImageURL($userID, new ImageParams(self::USERIMAGESIZE, self::USERIMAGESIZE), null, 'Users') ?>" width="<?= self::USERIMAGESIZE ?>" height="<?= self::USERIMAGESIZE ?>" /><?php
}
}
?></a>
</td>
</tr>
</table>
<?php
}
}