aboutsummaryrefslogtreecommitdiff
path: root/app/views/siteinfo/markup/adminList.php
blob: 68b514d5e6b87176dc663b9386c8e32857bccb93 (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
<?
# Lifter010: TODO
?>
<? if (!empty($error)) : ?>
    <em><?= _("keine. Na sowas. Das kann ja eigentlich gar nicht sein...") ?></em>
<? else : ?>
    <? $current_head = "" ?>
    <? $switch_column = count($admins)/2 ?>
    <? $i = 1 ?>
    <table width="100%">
        <tr>
            <td style="vertical-align: top">
        <? foreach($admins as $admin) : ?>
            <? if ($current_head != $admin['institute']) :?>
                <? $current_head = $admin['institute'] ?>
                <? if ($i>$switch_column) : ?>
                    </td>
                    <td style="vertical-align: top">
                    <? $i = 0 ?>
                <? endif ?>
                <h4><?= htmlReady($current_head) ?></h4>
            <? endif ?>
            <a href="<?= URLHelper::getLink('dispatch.php/profile',
                                             ['username' => $admin['username']])
                      ?>"><?= htmlReady($admin['fullname'])?></a>, E-Mail:<?= formatLinks($admin['Email']) ?><br>
            <? $i++ ?>
        <? endforeach ?>
            </td>
        </tr>
    </table>
<? endif ?>