<style>
  td { font-size: 10px; }
</style>
    <script language="JavaScript">
      function checkDelete()
      {
          return confirm('Soll dieser Account tatsaechlich deaktiviert werden?');
      }
    </script>
<div class="module">Admins</div>
<br/>
    <table>
      <tr bgcolor="#aaaaaa">
        <td> Name </td>
        <td> E-Mail </td>
        <td> Login </td>
        <td> Windows-Login </td>
        <td> Rolle </td>
        <td> Erstellungsdatum </td>
        <td>&nbsp;</td>
      </tr>
<?      foreach ($admins as $admin) { ?>
     <tr>
       <td><?=$admin->name?></td>
       <td><?=$admin->email?></td>
       <td><?=$admin->login?></td>
       <td><?=$admin->windowslogin?></td>
       <td><?=$admin->role?></td>
       <td><?=date('d.m.Y',$admin->erstellungsdatum)?></td>
       <td>
             <table>
               <tr>
                 <td> <a href="<?=$_SERVER['PHP_SELF']. "?module=$module&action=log&adminlogin=$admin->login"?>">Log</a></td>
                 <td>|</td>
                 <td>
             <a href="<?=$_SERVER['SELF_PHP']?>?module=admins&action=edit&userid=<?=$admin->userId?>"><img src="/grafik/button_edit.png" border="0" alt="Editieren" /></a> 
                 </td>
                 <td>|</td>
                 <td>
<?php if ($admin->disabled) { ?>
                     Deaktiviert
<?php } else { ?>
                             <a href="<?=$_SERVER['SELF_PHP']."?module=$module&action=deactivate&userId=$admin->userId"?>" onclick="return(checkDelete())">Deaktivieren</a>
<?php } ?>
                 </td>
                 <td>|</td>
                 <td>
             <a href="<?=$_SERVER['SELF_PHP']."?module=$module&action=delete&userId=$admin->userId"?>"><img src="/grafik/button_drop.png" border="0" alt="Benutzer loeschen" /></a>
                 </td>
               <tr>
             </table>
       </td>
     </tr>
<?      } ?>
    </table>
