{if $action == ''}

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

</head>

<body>
  <div class="header">
     <div>
        <div>{$sitzung_vertretung_titel}</div>
     </div>
  </div>
  <div class="pat_list_box">

    {if $sitzung_vertretung_pflichtfelder == '1'}
   	  <table width="70%" class="errorTable" align="center">
   	    <tr>
   	      <td>
   	        <img src="templates/{$global_template}/images/pflichtfelder/achtung_gross.gif">
   	      </td>
   	      <td><b>Achtung!</b><br>
   	           {$sitzung_vertretung_error_text}
   	      </td>
   	    </tr>
   	  </table><br>
   	{/if}

     <table  cellspacing="1" cellpadding="1" width="100%" height="90%" border="0">
     <tr>
       <td valign='top'>
         <form action="?action=step1" method='post' name='ldap'>
         <table cellspacing="1" cellpadding="1" width="100%" border="0">
         <tr>
           <td width="90%" valign="top">
              <strong>{$sitzung_vertretung_field_name}</strong>
           </td>
           <td align="center" width="10%" valign="top">
              <strong>{$sitzung_vertretung_field_auswahl}</strong>
           </td>
         </tr>

         {section name=table_data1 loop=$table_data1}
         {if $smarty.section.table_data1.rownum != ''}
         <tr>

           <td width="90%" valign="top">
              {$table_data1[table_data1].nachname}, {$table_data1[table_data1].vorname}
           </td>
           <td align="center" width="10%" valign="top">
              <input type="radio" name="auswahl" value="{$table_data1[table_data1].imtuid}">
           </td>
         </tr>
         {/if}
         {/section}
         <tr>
           <td colspan="2" align="center">
             &nbsp;
           </td>
         </tr>

         <tr>
           <td colspan="2" align="center">
             <input type="submit" name="senden" value="Abschicken">
           </td>
         </tr>

         <tr>
           <td colspan="2" align="center">
             &nbsp;
           </td>
         </tr>
        </table>
        </form>
       </td>
     </tr>
     </table>


  </div>

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

{if $action == 'step1'}
<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>{$sitzung_vertretung_titel_success_titel}</div>
     </div>
  </div>
  <form action="?action=step3" method='post' name='ldap'>
  <div class="pat_list_box">
     <br />
     <br />
     <br />
     <br />
     <p align="center">{$sitzung_vertretung_titel_success_text}</p>
     <br />
     <br />
     <br />
     <br />

  </div>

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