{if $action == ''}

<html>
<head>
<link type="text/css" rel="stylesheet" href="templates/{$global_template}/css/styles_refill.css">
</head>

<body>
<br />
<br />

  <div class="header">
     <div>
        <div>{$edit_admin_titel}</div>
     </div>
  </div>
  <form action="?action=step2" method='post' name='erfassen'>
  <div class="pat_list_box">



   <fieldset>
    <legend>
      <b>Administrator bestellen (Nur registrierte Benutzer)</b>
    </legend>
    <br />
    <br />
     <table cellspacing="1" cellpadding="1" width="100%" border="0">
         <tr>
           <td width=20%>
             <strong>{$edit_admin_mitgl_ausw}</strong>
           </td>
           <td>
              <select name="mitglied">
 	           <option value="">Bitte ausw&auml;hlen</option>
 	           {section name=table_data1 loop=$table_data1}
                  <option value="{$table_data1[table_data1].imtuid}">{$table_data1[table_data1].vorname} {$table_data1[table_data1].nachname}</option>
 	           {/section}
 	         </select>
 	       </td>
 	     </tr>
         <tr>
           <td colspan="2" align="center">
             &nbsp;
           </td>
         </tr>
       </table>

        <div style="display: none" id="divvertr">
        <table cellspacing="1" cellpadding="1" width="100%" border="0">
         <tr>
           <td width=20%>
             <strong>{$edit_admin_mitgl_vertreter_text}</strong>
           </td>
           <td>
              <select name="vertreten_von">
 	           {section name=table_data2a loop=$table_data2a}
                  <option value="{$table_data2a[table_data2a].imtuid}">{$table_data2a[table_data2a].vorname} {$table_data2a[table_data2a].nachname}</option>
 	           {/section}
 	         </select>
 	       </td>
 	     </tr>
 	     </table>
        </div>

        <br />
        <br />

        <input type="submit" name="senden" value="Mitglied hinzuf&uuml;gen">
    </fieldset>
    </form>
    <br />
    <br />
   <fieldset>
    <legend>
      <b>Administratoren im System</b>
    </legend>
     <table cellspacing="1" cellpadding="1" width="100%" border="0">
         <tr>
           <td width=80%>
             <b>Name</b>
           </td>
           <td width=20%>
              <b>L&ouml;schen</b>
 	       </td>
 	     <tr>
         {section name=table_data2 loop=$table_data2}
         {if $smarty.section.table_data2.rownum != ''}
         <tr>
           <td width=80%>
             {$table_data2[table_data2].vorname} {$table_data2[table_data2].nachname}
           </td>
           <td width=20%>
              <a href=?action=step3&rolle=1&imtuid={$table_data2[table_data2].imtuid}><img title = 'Mitglied l&ouml;schen' border="0" height=10 src="templates/{$global_template}/images/drop.png"></a>
 	       </td>
 	     </tr>
 	     {/if}
 	     {/section}
 	  </table>
   </fieldset>
    <br />
    <br />
  </div>

</body>
</html>
{/if}