blob: ff7e700391758127dfffb269321f43a4d1f45ccb (
plain)
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
33
34
35
36
37
38
39
40
41
|
<?
$tooltip = function ($size) {
if (!$size) {
$tip = _('Keine Einträge');
} else {
$template = ngettext(
'%d Eintrag',
'%d Einträge',
$size
);
$tip = sprintf($template, $size);
}
return tooltip($tip, false);
}
?>
<table class="contact-header" width="70%">
<colgroup>
<col width="9%">
<? for ($i = 0; $i < 26; $i++): ?>
<col width="3.5%">
<? endfor; ?>
</colgroup>
<tbody>
<tr>
<td nobreak class="<? if (($filter ?: 'all') == 'all') echo 'active'; ?>"
<?= $tooltip($size_of_book) ?>
>
<a href="<?= URLHelper::getLink('?filter=all') ?>">a-z</a>
</td>
<? for ($i = 0, $chr = 'a'; $i++ < 26; $chr++): ?>
<td nobreak align="center" class="<? if ($filter == $chr) echo 'active'; ?><? if (!$sizes[$chr]) echo ' empty'; ?>"
<?= $tooltip($sizes[$chr]) ?>
>
<a href="<?= URLHelper::getLink('', ['view' => $view, 'filter' => $chr]) ?>">
<?= $chr ?>
</a>
</td>
<? endfor; ?>
</tr>
</tbody>
</table>
|