
<div class="module">Bearbeiter anlegen</div>
<br/>
<? if (isset($error) && $error != '') {
          echo "<strong>Fehler: $error</strong><br />\n";
}
if (isset($message) && $message != '') { ?>
     <p>Der Benutzer <?=$adminlogin?> wurde erfolgreich angelegt.</p>
<? } ?>
      <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?>" />
        <fieldset class="fieldset"><legend>Bearbeiter anlegen</legend>
        <table>
          <tr>
            <td>Name*</td>
            <td><input type="text" class="inputgen" name="adminname" value="<?=$adminname?>" /></td>
          </tr>
          <tr>
            <td>E-Mail</td>
            <td><input type="text" class="inputgen" name="email" value="<?=$email?>" /></td>
          </tr>
          <tr>
            <td>Login*</td>
            <td><input type="text" class="inputgen" name="adminlogin" value="<?=$adminlogin?>" /></td>
          </tr>
          <tr>
            <td>Windows-Login*</td>
            <td><input type="text" class="inputgen" name="windowslogin" value="<?=$windowslogin?>" /></td>
          </tr>

          <tr>
            <td>Passwort*</td>
            <td><input type="text" class="inputgen" name="adminpassword" value="<?=$adminpassword?>" /></td>
          </tr>
          <tr>
            <td>Passwort*</td>
            <td><input type="text" class="inputgen" name="adminpassword2" value="<?=$adminpassword2?>" /></td>
          </tr>
          <tr>
            <td>Rolle</td>
            <td><input type="radio" class="inputradio" name="role" value="bearbeiter" />Dateneingabe
              <input type="radio" class="inputradio" name="role" value="superuser" />Superuser
            </td>
          </tr>
          <tr>
            <td>IP-Check</td>
            <td><input type="radio" class="inputradio" name="ipcheck" value="0" />Nein
              <input type="radio" class="inputradio" name="ipcheck" value="1" checked="checked"/>Ja
            </td>
          </tr>

          <tr>
            <td>&nbsp;</td>
            <td><input type="submit" style="border: solid 1px silver; background: #ffffff" value="Eintragen" /></td>
          </tr>
        </table>
        </fieldset>
      </form>
    <script language="JavaScript">
<? if (!isset($focus)) $focus='name'; ?>
      document.forms.newadmin.<?=$focus?>.focus();
    </script>
