{if $action == ''}
<html>
<head>
<link type="text/css" rel="stylesheet" href="templates/{$global_template}/css/styles_refill.css">
  <link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.4.css" media="screen" />
  <script type="text/javascript" src="./fancybox/jquery-1.5.1.min.js"></script>
  <!-- DATEI GIBTS NICHT   <script>!window.jQuery && document.write('<script src="jquery-1.4.3.min.js"><\/script>');</script>-->
  <script type="text/javascript" src="./fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
  <script type="text/javascript" src="./fancybox/jquery.fancybox-1.3.4.pack.js"></script>

  <script type="text/javascript">
    $(document).ready(function() {
        $(".box").fancybox({
            'width'                : '100%',
            'height'               : '100%',
            'autoScale'            : true,
            'transitionIn'         : 'elastic',
            'transitionOut'        : 'elastic',
            'type'                 : 'iframe',
            onCleanup   : function() {
                return window.location.reload();
            }

        });
    });
  </script>


</head>

<body>
<br />
<br />
<form action="?action=step1" method='post' name='ldap'>
  <div class="header">
     <div>
        <div>{$sitzung_verwalten_titel}</div>
     </div>
  </div>

  <div class="pat_list_box">
    {if $sitzung_verwalten_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_verwalten_error_text}
   	      </td>
   	    </tr>
   	  </table><br>
   	{/if}
     <table cellspacing="1" cellpadding="1" width="90%" border="0">
         <tr>
           <td width="10%" valign="top">
               <strong>{$sitzung_verwalten_field_datum1}</strong>
           </td>
           <td width="10%" valign="top">
               <strong>{$sitzung_verwalten_field_zeit1}</strong>
           </td>
           <td width="10%" valign="top">
               <strong>{$sitzung_verwalten_field_raum1}</strong>
           </td>
           <td valign="top">
               <strong>{$sitzung_verwalten_field_beschreibung1}</strong>
           </td>
           <td valign="top">
               <strong>{$sitzung_verwalten_field_status1}</strong>
           </td>
           <td width="10%" valign="top" align="center">
               <strong>{$sitzung_verwalten_field_vorlage1}</strong>
           </td>
           <td width="10%" valign="top" align="center">
               <strong>{$sitzung_verwalten_field_auswahl1}</strong>
           </td>
         </tr>

         {section name=outer_loop loop=$outer_loop}
         {if $smarty.section.outer_loop.rownum != ''}

         <tr>
           <td width="10%" valign="top">
               {$outer_loop[outer_loop].datum_form}
           </td>
           <td width="10%" valign="top">
               {$outer_loop[outer_loop].zeit_form}
           </td>
           <td width="10%" valign="top">
               {$outer_loop[outer_loop].raum}
           </td>
           <td valign="top">
               {$outer_loop[outer_loop].beschreibung}
           </td>
           <td valign="top">
             <table>
             {section name=inner loop=$outer_loop[outer_loop].inner}
             {if $smarty.section.inner.rownum != ''}
             <tr>
               <td>
                 {$outer_loop[outer_loop].inner[inner].vorname}&nbsp;{$outer_loop[outer_loop].inner[inner].nachname}:
               </td>
               <td>
                 {$outer_loop[outer_loop].inner[inner].zustimmung}
               </td>
             </tr>
             {/if}
             {/section}
             </table>
           </td>
           <td width="10%" valign="top" align="center">
               <a href="prints/sitzung_pdf.php?isid={$outer_loop[outer_loop].isid}&output=D"><img src="templates/{$global_template}/images/ico_pdf.gif" border="0"></a>
           </td>
           <td width="10%" valign="top" align="center">
             {if $outer_loop[outer_loop].status > '0'}
               <input type="radio" name="auswahl" value="{$outer_loop[outer_loop].isid}">
             {/if}
           </td>
         </tr>
         {/if}
         {/section}

         <tr>
           <td colspan="5" align="center">
             &nbsp;
           </td>
         </tr>

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

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

  </div>

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

{if $action == 'step1'}

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

<!-- Kalender Beginn // -->
	<link rel='stylesheet' href='dyncalendar/dynCalendar.css' type='text/css' media='screen'>
	<script src='dyncalendar/browserSniffer.js' type='text/javascript' language='javascript'></script>
	<script src='dyncalendar/dynCalendar.js' type='text/javascript' language='javascript'></script>
	<script type='text/javascript'>
	{literal}
	<!--
		// Calendar callback. When a date is clicked on the calendar
		// this function is called so you can do as you want with it
		function calendarCallback(date, month, year)
		{
		    if(date<10){date='0'+date;}
		    if(month<10){month='0'+month;}
			date_tag = date;
			date_mon = month;
			date_jahr = year;
			document.getElementById('tag').value = date_tag;
			document.getElementById('mon').value = date_mon;
			document.getElementById('jahr').value = date_jahr;
		}
	// -->
	{/literal}
	</script>
<!-- Kalender Ende // -->

  <script language='javascript' type='text/javascript' src='tinymce/jscripts/tiny_mce/tiny_mce.js'></script>
  <script type='text/javascript'>
  {literal}
          function myCustomInitInstance(inst) {
             if(inst.editorId != 'mce_fullscreen')
               inst.execCommand('mceFullScreen');
          }
  tinyMCE.init({
          // General options
          language: 'de',
          mode : 'textareas',
          theme : 'advanced',
          plugins : 'save,autosave,safari,style,table,advhr,advimage,advlink,iespell,insertdatetime,preview,searchreplace,contextmenu,paste,fullscreen,visualchars,nonbreaking,xhtmlxtras,template',
          remove_linebreaks : true,
          force_br_newlines : true,
          force_p_newlines : false,
          forced_root_block : '',
          apply_source_formatting : true,
          convert_newlines_to_brs : true,
          // init_instance_callback : 'myCustomInitInstance',

          // Theme options
          theme_advanced_buttons1 : 'undo,redo,|,bold,italic,underline,strikethrough,|,forecolor,|,justifyleft,justifycenter,justifyright,justifyfull,|,cut,copy,paste,pastetext,pasteword,|,bullist,numlist,preview,|,link,unlink,anchor',
          theme_advanced_buttons2 : 'tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,|,fullscreen',
          theme_advanced_buttons3 : '',
          theme_advanced_toolbar_location : 'top',
          theme_advanced_toolbar_align : 'left',
          theme_advanced_statusbar_location : 'bottom',
          theme_advanced_resizing : true,


          // Example content CSS (should be your site CSS)
          content_css : 'css/example.css',

          // Drop lists for link/image/media/template dialogs
          template_external_list_url : 'js/template_list.js',
          external_link_list_url : 'js/link_list.js',
          external_image_list_url : 'js/image_list.js',
          media_external_list_url : 'js/media_list.js',


          autosave_ask_before_unload : false
  });
  {/literal}
  </script>
</head>

<body onload="if(document.ldap)document.ldap.suchstring.focus();return false;">
<br />
<br />

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


    {if $sitzung_verwalten_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_verwalten_error_text}
   	      </td>
   	    </tr>
   	  </table><br>
   	{/if}

     <table cellspacing="1" cellpadding="1" width="100%" border="0">
         <tr>
           <td>

             {if $sitzung_verwalten_datum_ico == '1'}<img src="templates/{$global_template}/images/pflichtfelder/achtung_klein.gif">{/if}
             {if $sitzung_verwalten_datum_ico == '1'}<font color="#FF0000">{/if}
               <strong>{$sitzung_verwalten_field_datum}</strong>
             {if $sitzung_verwalten_datum_ico == '1'}</font>{/if}

           </td>
           <td>
             <input {if $sitzung_verwalten_tag_ico == '1'}class="errorField"{/if} type="text" name="tag" id="tag" value="{$sitzung_verwalten_tag}" size=1>.<input {if $sitzung_verwalten_mon_ico == '1'}class="errorField"{/if} type="text" name="mon" id="mon" value="{$sitzung_verwalten_mon}" size=1>.<input {if $sitzung_verwalten_jahr_ico == '1'}class="errorField"{/if} type="text" name="jahr" id="jahr" value="{$sitzung_verwalten_jahr}" size=3>

			<script language='JavaScript' type='text/javascript'>
				        <!--
				        	frist_cal = new dynCalendar('frist_cal', 'calendarCallback', 'dyncalendar/images/', '');
	        //-->
	        </script>
           </td>
         </tr>

         <tr>
           <td>

             {if $sitzung_verwalten_uhr_ico == '1'}<img src="templates/{$global_template}/images/pflichtfelder/achtung_klein.gif">{/if}
             {if $sitzung_verwalten_uhr_ico == '1'}<font color="#FF0000">{/if}
               <strong>{$sitzung_verwalten_field_uhr}</strong>
             {if $sitzung_verwalten_uhr_ico == '1'}</font>{/if}

           </td>
           <td>
             <input {if $sitzung_verwalten_std_ico == '1'}class="errorField"{/if} type="text" name="std" id="std" value="{$sitzung_verwalten_std}" size=1>:<input {if $sitzung_verwalten_min_ico == '1'}class="errorField"{/if} type="text" name="min" id="min" value="{$sitzung_verwalten_min}" size=1>
           </td>
         </tr>

         <tr>
           <td>

             {if $sitzung_verwalten_raum_ico == '1'}<img src="templates/{$global_template}/images/pflichtfelder/achtung_klein.gif">{/if}
             {if $sitzung_verwalten_raum_ico == '1'}<font color="#FF0000">{/if}
               <strong>{$sitzung_verwalten_field_raum}</strong>
             {if $sitzung_verwalten_raum_ico == '1'}</font>{/if}

           </td>
           <td>
             <input {if $sitzung_verwalten_raum_ico == '1'}class="errorField"{/if} type="text" name="raum" id="raum" value="{$sitzung_verwalten_raum}" size=18>
           </td>
         </tr>


         <tr>
           <td>
             &nbsp;
           </td>
           <td>
             &nbsp;
           </td>
         </tr>


         <tr>
           <td>
             <strong>{$sitzung_verwalten_field_bemerkung}</strong>
           </td>
           <td>
             <textarea name='bemerkung' style='width:100%' rows='20' cols='5'>{$sitzung_verwalten_bemerkung}</textarea>
           </td>
         </tr>



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

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

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

    </form>

  </div>

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


{if $action == 'step2'}
<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_verwalten_titel}</div>
     </div>
  </div>
  <form action="?action=step3" method='post' name='ldap'>
  <div class="pat_list_box">


    {if $sitzung_verwalten_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_verwalten_error_text}
   	      </td>
   	    </tr>
   	  </table><br>
   	{/if}

     <table cellspacing="1" cellpadding="1" width="100%" border="0">
         <tr>
           <td height='20pt'>
               <strong>{$sitzung_verwalten_field_id}</strong>
           </td>
           <td>
               <strong>{$sitzung_verwalten_field_betreff}</strong>
           </td>

           <td>
               <strong>{$sitzung_verwalten_field_status}</strong>
           </td>
           <td align="center">
               <strong>{$sitzung_verwalten_field_auswahl}</strong>
           </td>
         </tr>

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

           <td height='25pt'>
               <label for={$table_data1[table_data1].vid}>{$table_data1[table_data1].vid}</label>
           </td>
           <td>
               <label for={$table_data1[table_data1].vid}>{$table_data1[table_data1].betreff}</label>
           </td>

           <td>
               <label for={$table_data1[table_data1].vid}>{$table_data1[table_data1].status}</label>
           </td>
           <td align="center">
               {if $table_data1[table_data1].stat == '0'}
                 <input type="checkbox" id={$table_data1[table_data1].vid} name="auswahl[]" value="{$table_data1[table_data1].vid}" {if $table_data1[table_data1].check == '1'} checked {/if}>
               {/if}
           </td>
         </tr>
         {/if}
         {/section}

         <tr>
           <td colspan="4" align="center">
             &nbsp;
           </td>
         </tr>
         <tr>
           <td colspan="4" align="center">
             <input type="submit" name="senden" value="Weiter zu Schritt 3">
           </td>
         </tr>
         <tr>
           <td colspan="4" align="center">
             &nbsp;
           </td>
         </tr>
     </table>

    </form>

  </div>

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


{if $action == 'step3'}
<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_verwalten_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_verwalten_titel_success_text}</p>
     <br />
     <br />
     <br />
     <br />

  </div>

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