{if $action == ''}

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


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

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

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

           </td>
           <td>
             <input {if $sitzung_terminieren_tag_ico == '1'}class="errorField"{/if} type="text" name="tag" id="tag" value="{$sitzung_terminieren_tag}" size=1>.<input {if $sitzung_terminieren_mon_ico == '1'}class="errorField"{/if} type="text" name="mon" id="mon" value="{$sitzung_terminieren_mon}" size=1>.<input {if $sitzung_terminieren_jahr_ico == '1'}class="errorField"{/if} type="text" name="jahr" id="jahr" value="{$sitzung_terminieren_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_terminieren_uhr_ico == '1'}<img src="templates/{$global_template}/images/pflichtfelder/achtung_klein.gif">{/if}
             {if $sitzung_terminieren_uhr_ico == '1'}<font color="#FF0000">{/if}
               <strong>{$sitzung_terminieren_field_uhr}</strong>
             {if $sitzung_terminieren_uhr_ico == '1'}</font>{/if}

           </td>
           <td>
             <input {if $sitzung_terminieren_std_ico == '1'}class="errorField"{/if} type="text" name="std" id="std" value="{$sitzung_terminieren_std}" size=1>:<input {if $sitzung_terminieren_min_ico == '1'}class="errorField"{/if} type="text" name="min" id="min" value="{$sitzung_terminieren_min}" size=1>
           </td>
         </tr>

         <tr>
           <td>

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

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


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


         <tr>
           <td>
             <strong>{$sitzung_terminieren_field_bemerkung}</strong>
           </td>
           <td>
             <textarea name='bemerkung' style='width:100%' rows='20' cols='5'>{$sitzung_terminieren_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_terminieren_titel}</div>
     </div>
  </div>
  <form action="?action=step3" method='post' name='ldap'>
  <div class="pat_list_box">


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

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

           <td>
               <strong>{$sitzung_terminieren_field_status}</strong>
           </td>
           <td align="center">
               <strong>{$sitzung_terminieren_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">

                 <input type="checkbox" id={$table_data1[table_data1].vid} name="auswahl[]" value="{$table_data1[table_data1].vid}">
              <!-- Checkbox immer aktiv. Telefonat Egeler am 25.11.2013-->
              <!-- {if $table_data1[table_data1].stat == '0'} -->
              <!-- {/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_terminieren_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_terminieren_titel_success_text}</p>
     <br />
     <br />
     <br />
     <br />

  </div>

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