<div class="module">Bearbeiter L&ouml;schen</div>
<br/>
<?php
  if ($state == 'enter' && $userId)
  {
      $tmpadmin = new admin('',$userId);
      $tmpadmin->delete();
?>
     <p>Der Benutzer <?=$login?> wurde erfolgreich gel&ouml;scht.</p>
<?php
  }

  if ($state == '')
  {
      $myAdmin = new admin('',$userId);
      $name= $myAdmin->name; 
      $email= $myAdmin->email; 
      $login= $myAdmin->login; 
      $rolle= $myAdmin->role; 
?>
      <form name="newadmin" action="<?=$_SERVER['PHP_SELF']?>" method = "POST">
        <input type="hidden" name="state" value="enter" />
        <input type="hidden" name="module" value="<?=$module?>" />
        <input type="hidden" name="action" value="<?=$action?>" />
        <input type="hidden" name="userId" value="<?=$userId?>" />
        <table>
          <tr>
            <td>Name</td>
            <td><?=$name?></td>
          </tr>
          <tr>
            <td>E-Mail</td>
            <td><?=$email?></td>
          </tr>
          <tr>
            <td>Login</td>
            <td><?=$login?></td>
          </tr>
          <tr>
            <td>Rolle</td>
            <td><?=$rolle?></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td><input type="submit" style="border: solid 1px silver; background: #ffffff" value="L&ouml;schen" /></td>
          </tr>
        </table>
      </form>
<?php
  }
