{if $action == ''}

<html>
<head>
<link type="text/css" rel="stylesheet" href="templates/{$global_template}/css/styles_refill.css">
  <script type="text/javascript">
     function show(id) {
      if(document.getElementById) {
          var mydiv = document.getElementById(id);

          // Umschaltung
		  if (mydiv.style.display === "none"){
		  	mydiv.style.display = "block"
		  }else {
		  	mydiv.style.display = "none"
		  }
      }
     }
  </script>


</head>

<body>
<br />
<br />

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



   <fieldset>
    <legend>
      <b>Ausschussmitglieder bestellen (Nur registrierte Benutzer)</b>
    </legend>
    <br />
    <br />
     <table cellspacing="1" cellpadding="1" width="100%" border="0">
         <tr>
           <td width=20%>
             <strong>{$edit_ausschuss_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 >
             <strong>{$edit_ausschuss_mitgl_vertreter}</strong>
           </td>
           <td>
             <input type="checkbox" name="vertreter" value="Y" onclick="javascript:show('divvertr');" >
 	       </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_ausschuss_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>Bestellte Ausschussmitglieder</b>
    </legend>
     <table cellspacing="1" cellpadding="1" width="100%" border="0">
         <tr>
           <td width=80%>
             <b>Mitglied</b>
           </td>
           <td width=20%>
              <b>L&ouml;schen</b>
 	       </td>
 	     <tr>
         {section name=table_data2b loop=$table_data2b}
         {if $smarty.section.table_data2b.rownum != ''}
         <tr>
           <td width=80%>
             {$table_data2b[table_data2b].vorname} {$table_data2b[table_data2b].nachname}
           </td>
           <td width=20%>
              <a href="?action=step3&rolle=4&imtuid={$table_data2b[table_data2b].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 />
   <fieldset>
    <legend>
      <b>Vertreter der Ausschussmitglieder</b>
    </legend>
     <table cellspacing="1" cellpadding="1" width="100%" border="0">
         <tr>
           <td width=40%>
             <b>Vertreter</b>
           </td>
           <td width=40%>
              <b>Vertritt Ausschussmitglied</b>
 	       </td>
           <td width=20%>
              <b>L&ouml;schen</b>
 	       </td>
 	     <tr>

         {section name=table_data3 loop=$table_data3}
         {if $smarty.section.table_data3.rownum != ''}
         <tr>
           <td width=40%>
             {$table_data3[table_data3].vorname} {$table_data3[table_data3].nachname}
           </td>
           <td width=40%>
             {$table_data3[table_data3].ver_von_vorname} {$table_data3[table_data3].ver_von_nachname}
           </td>
           <td>
              <a href="?action=step3&rolle=5&imtuid={$table_data3[table_data3].imtuid}"><img title = 'Vertreter 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}