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

<body>
<br />
<br />


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

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

  <div class="pat_list_box">
     <table cellspacing="1" cellpadding="1" width="90%" border="0">
         <tr>
           <td width="10%" valign="top">
               <strong>{$abschluss_field_id}</strong>
           </td>
           <td width="30%" valign="top">
               <strong>{$abschluss_field_betreff}</strong>
           </td>
           <td width="20%" valign="top">
               <strong>{$abschluss_field_eingangsdatum}</strong>
           </td>
           <td valign="top">
               <strong>{$abschluss_field_einreicher}</strong>
           </td>
           <td valign="top" align='center'>
               <strong>{$abschluss_field_bearbeiten}</strong>
           </td>
         </tr>

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

         <tr>
           <td width="10%" valign="top">
               {$table_data1[table_data1].vid}
           </td>
           <td width="10%" valign="top">
               {$table_data1[table_data1].betreff}
           </td>
           <td width="10%" valign="top">
               {$table_data1[table_data1].datum}
           </td>
           <td valign="top">
               {$table_data1[table_data1].vorname} {$table_data1[table_data1].nachname}
           </td>
           <td valign="top" align='center'>
               <input type="radio" name="auswahl" id="{$table_data1[table_data1].vid}" value="{$table_data1[table_data1].vid}">
           </td>
         {/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 == 'step2'}
<html>
<head>
<link type="text/css" rel="stylesheet" href="templates/{$global_template}/css/styles_refill.css">
</head>

<body>


<br />
<br />


  <form action="?action=step3" method='post' name='ldap'>
  <div class="header">
     <div>
        <div>{$abschluss_titel}</div>
     </div>
  </div>

  <div class="pat_list_box">

    {if $abschluss_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>
   	           {$abschluss_error_text}
   	      </td>
   	    </tr>
   	  </table><br>
   	{/if}
    <br />
    <br />
    <p align='center'><strong>{$abschluss_field_annahme}</strong></p>
    <br />
    <br />

     <table cellspacing="1" cellpadding="1" width="90%" border="0">
         <tr>
           <td width='47%' valign="top">
             &nbsp;
           </td>

           <td width='53%' valign="top">
               <label id=1><input type="radio" name="annahme" id=1 value="J" {if $abschluss_annahme == 'J'} checked{/if}> ja</label> <br />
               <label id=2><input type="radio" name="annahme" id=2 value="N" {if $abschluss_annahme == 'N'} checked{/if}> nein</label> <br />
               <label id=3><input type="radio" name="annahme" id=3 value="Z" {if $abschluss_annahme == 'Z'} checked{/if}> Zur&uuml;ckgestellt</label>
           </td
         </tr>

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

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

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

  </div>

</body>
</html>

{/if}

{if $action == 'step3'}

  <html>
	<head>
	<link type="text/css" rel="stylesheet" href="templates/{$global_template}/css/styles_refill.css">
    <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>
	<br />
	<br />

      <form action="?action=step3a" method='post' name='ldap'>
	  <div class="header">
	     <div>
	        <div>{$abschluss_titel}</div>
	     </div>
	  </div>

	  <div class="pat_list_box">

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

	   	     <p align='center'><strong>{$abschluss_field_begruendung}</strong></p>
	   	     <br>
	   	     <textarea name='abschluss_bemerkung' style='width:90%' rows='20' cols='5'>{$abschluss_bemerkung}</textarea>

	         <p align="center">
                 <input type="button" value="Zur&uuml;ck" onclick="window.location.href='?action=step2'">
                  &nbsp;
	             <input type="submit" name="senden" value="Weiter">
	         </p>


	  </div>

	</body>
    </html>

{/if}






{if $action == 'step3a'}

  <html>
	<head>
	<link type="text/css" rel="stylesheet" href="templates/{$global_template}/css/styles_refill.css">
  <script type="text/javascript">
    function senden_aktiv(){

      if ( document.erfassen.chk5.checked == true){
       document.erfassen.chk1.disabled = true;
       document.erfassen.chk2.disabled = true;
       document.erfassen.chk3.disabled = true;
       document.erfassen.chk4.disabled = true;
      }else{
       document.erfassen.chk1.disabled = false;
       document.erfassen.chk2.disabled = false;
       document.erfassen.chk3.disabled = false;
       document.erfassen.chk4.disabled = false;
      }


      if (document.erfassen.chk1.checked == true || document.erfassen.chk2.checked == true || document.erfassen.chk3.checked == true || document.erfassen.chk4.checked == true){
       document.erfassen.chk5.disabled = true;
      }else{
       document.erfassen.chk5.disabled = false;
      }

    }
  </script>
	</head>

	<body onload='senden_aktiv()'>
	<br />
	<br />

      <form action="?action=step4" method='post' name='erfassen'>
	  <div class="header">
	     <div>
	        <div>{$abschluss_titel}</div>
	     </div>
	  </div>

	  <div class="pat_list_box">

    <br />
    <br />
    <p align='center'><strong>{$abschluss_field_ziel}</strong></p>
    <br />
    <br />
	    {if $abschluss_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>
	   	           {$abschluss_error_text}
	   	      </td>
	   	    </tr>
	   	  </table><br>
	   	{/if}
     <table cellspacing="1" cellpadding="1" width="90%" border="0">
         <tr>
           <td width='27%' valign="top">
             &nbsp;
           </td>

           <td width='73%' valign="top">
              <table>
              <tr><td><input type="checkbox" name="chk1" value="1" onclick="senden_aktiv();" id="r1" {if $abschluss_chk1 == '1'} checked {/if}></td><td><label for="r1">{$abschluss_chk_1}</label></td></tr>
              <tr><td><input type="checkbox" name="chk2" value="2" onclick="senden_aktiv();" id="r2" {if $abschluss_chk2 == '2'} checked {/if}></td><td><label for="r2">{$abschluss_chk_2}</label></td></tr>
              <tr><td><input type="checkbox" name="chk3" value="3" onclick="senden_aktiv();" id="r3" {if $abschluss_chk3 == '3'} checked {/if}></td><td><label for="r3">{$abschluss_chk_3}</label></td></tr>
              <tr><td><input type="checkbox" name="chk4" value="4" onclick="senden_aktiv();" id="r4" {if $abschluss_chk4 == '4'} checked {/if}></td><td><label for="r4">{$abschluss_chk_4}</label></td></tr>
              <tr><td><input type="checkbox" name="chk5" value="5" onclick="senden_aktiv();" id="r5" {if $abschluss_chk5 == '5'} checked {/if}></td><td><label for="r5">{$abschluss_chk_5}</label></td></tr>
              </table>
           </td
         </tr>

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

         <tr>
           <td colspan="2" align="center">
               <input type="button" value="Zur&uuml;ck" onclick="window.location.href='?action=step3'">
               &nbsp;
             <input type="submit" name="senden" value="Weiter">
           </td>
         </tr>

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


	  </div>

	</body>
    </html>

{/if}






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

  <body>

  <br />
  <br />

    <form action="?action=step5" method='post' name='ldap'>
    <div class="header">
       <div>
          <div>{$abschluss_titel}</div>
       </div>
    </div>

    <div class="pat_list_box">
      <br />
      <br />
      <p align='center'><strong>{$abschluss_field_paraemie}</strong></p>
      <br />
      <br />

       <table cellspacing="1" cellpadding="1" width="90%" border="0">
           <tr>
             <td width='47%' valign="top">
               &nbsp;
             </td>

             <td width='53%' valign="top">
                 <label id=1><input type="radio" name="praemie" id=1 value="J" {if $abschluss_praemie == 'J'} checked{/if}> ja</label> <br />
                 <label id=2><input type="radio" name="praemie" id=2 value="N" {if $abschluss_praemie == 'N'} checked{/if}> nein</label>
             </td
           </tr>

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

           <tr>
             <td colspan="2" align="center">
               <input type="button" value="Zur&uuml;ck" onclick="window.location.href='?action=step3a'">
               &nbsp;
               <input type="submit" name="senden" value="Weiter">
             </td>
           </tr>

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

    </div>

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


{if $action == 'step5'}
  {if $abschluss_praemie == 'J'}
      <html>
	  <head>
	  <link type="text/css" rel="stylesheet" href="templates/{$global_template}/css/styles_refill.css">
      <script type="text/javascript">
        function checkBez(wahl){

          if(wahl == "2"){
            document.getElementById('2_3').checked = true;
            document.getElementById('2_2').disabled = true;
          }

          if(wahl == "3"){
            document.getElementById('2_2').disabled = false;
          }

        }
      </script>
	  </head>
	  <body onload="checkBez({$abschluss_praemie1});">
	  <br />
	  <br />

	    <form action="?action=step6" method='post' name='ldap'>
	    <div class="header">
	       <div>
	          <div>{$abschluss_titel}</div>
	       </div>
	    </div>

	    <div class="pat_list_box">
        <!-- Eingeschränkter Katalog bei Vorschlagannahme=N, Prämie dient nur zur Motivation -->
        {if $abschluss_annahme == 'N'}
          <strong>{$abschluss_field_ausmass_leistung}</strong><br />
          <table border="1" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0" cellpadding="3" width="95%">
          <tr>
            <td width="20%">
              <strong>{$abschluss_field_teilkriterium}</strong>
            </td>
            <td width="70%">
              <strong>{$abschluss_field_abstufung}</strong>
            </td>
            <td width="10%">
              <strong>{$abschluss_field_auswahl}</strong>
            </td>
          </tr>
          <tr>
            <th rowspan="2" align="left">{$abschluss_field_gehalt}</th>

            <td>
              {$abschluss_field_1_2}
            </td>
            <td>
              <label><input type="radio" name="praemie_1" id="1_2" value="2" {if $abschluss_praemie1 == '2'} checked{/if} onclick="checkBez(this.value)"> {$abschluss_field_punkt2}</label>
            </td>
          </tr>
          <tr>
            <td>
              {$abschluss_field_1_3}
            </td>
            <td>
              <label><input type="radio" name="praemie_1" id="1_3" value="3" {if $abschluss_praemie1 == '3'} checked{/if} onclick="checkBez(this.value)"> {$abschluss_field_punkt3}</label>
            </td>
          </tr>

          <tr>
            <th rowspan="2" align="left">{$abschluss_field_qualitaet}</th>

            <td>
              {$abschluss_field_2_2}
            </td>
            <td>
              <label><input type="radio" name="praemie_2" id="2_2" value="2" {if $abschluss_praemie2 == '2'} checked{/if}> {$abschluss_field_punkt2}</label>
            </td>
          </tr>
          <tr>
            <td>
              {$abschluss_field_2_3}
            </td>
            <td>
              <label><input type="radio" name="praemie_2" id="2_3" value="3" {if $abschluss_praemie2 == '3'} checked{/if}> {$abschluss_field_punkt3}</label>
            </td>
          </tr>

          </table>
        {/if}







        {if $abschluss_annahme == 'J'}
          <strong>{$abschluss_field_ausmass_leistung}</strong><br />
          <table border="1" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0" cellpadding="3" width="95%">
          <tr>
            <td width="20%">
              <strong>{$abschluss_field_teilkriterium}</strong>
            </td>
            <td width="70%">
              <strong>{$abschluss_field_abstufung}</strong>
            </td>
            <td width="10%">
              <strong>{$abschluss_field_auswahl}</strong>
            </td>
          </tr>
          <tr>
            <th rowspan="3" align="left">{$abschluss_field_gehalt}</th>

            <td>
              {$abschluss_field_1_1}
            </td>
            <td>
              <label id=1_1><input type="radio" name="praemie_1" id=1_1 value="1" {if $abschluss_praemie1 == '1'} checked{/if}> {$abschluss_field_punkt1}</label>
            </td>
          </tr>
          <tr>
            <td>
              {$abschluss_field_1_2}
            </td>
            <td>
              <label id=1_2><input type="radio" name="praemie_1" id=1_2 value="2" {if $abschluss_praemie1 == '2'} checked{/if}> {$abschluss_field_punkt2}</label>
            </td>
          </tr>
          <tr>
            <td>
              {$abschluss_field_1_3}
            </td>
            <td>
              <label id=1_3><input type="radio" name="praemie_1" id=1_3 value="3" {if $abschluss_praemie1 == '3'} checked{/if}> {$abschluss_field_punkt3}</label>
            </td>
          </tr>

          <tr>
            <th rowspan="3" align="left">{$abschluss_field_qualitaet}</th>

            <td>
              {$abschluss_field_2_1}
            </td>
            <td>
              <label id=2_1><input type="radio" name="praemie_2" id=2_1 value="1" {if $abschluss_praemie2 == '1'} checked{/if}> {$abschluss_field_punkt1}</label>
            </td>
          </tr>
          <tr>
            <td>
              {$abschluss_field_2_2}
            </td>
            <td>
              <label id=2_2><input type="radio" name="praemie_2" id=2_2 value="2" {if $abschluss_praemie2 == '2'} checked{/if}> {$abschluss_field_punkt2}</label>
            </td>
          </tr>
          <tr>
            <td>
              {$abschluss_field_2_3}
            </td>
            <td>
              <label id=2_3><input type="radio" name="praemie_2" id=2_3 value="3" {if $abschluss_praemie2 == '3'} checked{/if}> {$abschluss_field_punkt3}</label>
            </td>
          </tr>

          </table>

           <br />
          <br />

          <strong>{$abschluss_field_ausmass_hs}</strong><br />
          <table border="1" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0" cellpadding="3" width="95%">
          <tr>
            <td width="20%">
              <strong>{$abschluss_field_teilkriterium}</strong>
            </td>
            <td width="70%">
              <strong>{$abschluss_field_abstufung}</strong>
            </td>
            <td width="10%">
              <strong>{$abschluss_field_auswahl}</strong>
            </td>
          </tr>
          <tr>
            <th rowspan="3" align="left">{$abschluss_field_breite}</th>

            <td>
              {$abschluss_field_3_1}
            </td>
            <td>
              <label id=3_1><input type="radio" name="praemie_3" id=3_1 value="1" {if $abschluss_praemie3 == '1'} checked{/if}> {$abschluss_field_punkt1}</label>
            </td>
          </tr>
          <tr>
            <td>
              {$abschluss_field_3_2}
            </td>
            <td>
              <label id=3_2><input type="radio" name="praemie_3" id=3_2 value="2" {if $abschluss_praemie3 == '2'} checked{/if}> {$abschluss_field_punkt2}</label>
            </td>
          </tr>
          <tr>
            <td>
              {$abschluss_field_3_3}
            </td>
            <td>
              <label id=3_3><input type="radio" name="praemie_3" id=3_3 value="3" {if $abschluss_praemie3 == '3'} checked{/if}> {$abschluss_field_punkt3}</label>
            </td>
          </tr>

          <tr>
            <th rowspan="3" align="left">{$abschluss_field_verbesserung}</th>

            <td>
              {$abschluss_field_4_1}
            </td>
            <td>
              <label id=4_1><input type="radio" name="praemie_4" id=4_1 value="1" {if $abschluss_praemie4 == '1'} checked{/if}> {$abschluss_field_punkt1}</label>
            </td>
          </tr>
          <tr>
            <td>
              {$abschluss_field_4_2}
            </td>
            <td>
              <label id=4_2><input type="radio" name="praemie_4" id=4_2 value="2" {if $abschluss_praemie4 == '2'} checked{/if}> {$abschluss_field_punkt2}</label>
            </td>
          </tr>
          <tr>
            <td>
              {$abschluss_field_4_3}
            </td>
            <td>
              <label id=4_3><input type="radio" name="praemie_4" id=4_3 value="3" {if $abschluss_praemie4 == '3'} checked{/if}> {$abschluss_field_punkt3}</label>
            </td>
          </tr>
        </table>
        {/if}
	         <p align="center">
                 <input type="button" value="Zur&uuml;ck" onclick="window.location.href='?action=step4&back=1'">
                 &nbsp;
	             <input type="submit" name="senden" value="Weiter">
	         </p>
	    </div>

	  </body>
      </html>

    {/if}
{/if}


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

	  <body>

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

	    <div class="pat_list_box">
	      <table border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0" cellpadding="3" width="90%">
	        <tr>
	          <td width="50%">
	            <strong>{$abschluss_field_praemienpunkte}</strong>
	          </td>
	          <td>
	            {$abschluss_praemiepunkte}
	          </td>
	        </tr>
	        <tr>
	          <td width="50%">
	            &nbsp;
	          </td>
	          <td>
	            &nbsp;
	          </td>
	        </tr>
	        <tr>
	          <td width="50%">
	            <strong>{$abschluss_field_gutschein}</strong>
	          </td>
	          <td>
	          <label>
	            {if $abschluss_dienstbefreiung != '0'}
	              <input type="radio" name="abschluss_gutschein_or_befreiung" {if $abschluss_gutschein_or_befreiung == 'gutschein'} checked{/if} value="gutschein">
	            {/if}
	            {if $abschluss_praemie_textfeld == '1'}
	              <input type="text" name="abschluss_praemie_gutschein" size="5" value="{$abschluss_guschein}"> &euro;
	            {else}
	              {$abschluss_guschein} &euro;
	            {/if}
	          </label>
	          </td>
	        </tr>

	        {if $abschluss_dienstbefreiung != '0'}
	        <tr>
	          <td width="50%">
	            <strong>{$abschluss_field_dienstbefreiung}</strong>
	          </td>
	          <td>
	          <label>
	            <input type="radio" name="abschluss_gutschein_or_befreiung" {if $abschluss_gutschein_or_befreiung == 'befreiung'} checked{/if} value="befreiung">
	            {$abschluss_dienstbefreiung} Tag(e)
	          </label>
	          </td>
	        </tr>
	        {/if}

	        <tr>
	          <td width="50%">
	            &nbsp;
	          </td>
	          <td>
	            &nbsp;
	          </td>
	        </tr>
	        <tr>
	          <td width="50%">
	            <strong>{$abschluss_field_klassierung}</strong>
	          </td>
	          <td>
	            Pr&auml;mienklasse {$abschluss_klassierung}
	          </td>
	        </tr>
	        <tr>
	          <td width="50%">
	            <strong>{$abschluss_field_public}</strong>
	          </td>
	          <td>
	            {$abschluss_public_text}
	          </td>
	        </tr>
	      </table>

	         <p align="center">
                 <input type="button" value="Zur&uuml;ck" onclick="window.location.href='?action=step5'">
                 &nbsp;
	             <input type="submit" name="senden" value="Weiter">
	         </p>
	    </div>
	  </body>
      </html>

{/if}


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

    <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>

	  <br />
	  <br />

	    <form action="?action=step8" method='post' name='ldap'>
	    <div class="header">
	       <div>
	          <div>{$abschluss_titel}</div>
	       </div>
	    </div>

	    <div class="pat_list_box">

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

	      <strong>{$abschluss_field_info_umsetzung}</strong>
	      <textarea name='abschluss_information_massnahme' style='width:90%' rows='10' cols='5'>{$abschluss_information_massnahme}</textarea>
	      <br />
	      <br />
	      <strong>{$abschluss_field_stand_umsetzung}</strong>
	      <textarea name='abschluss_information_sachstand' style='width:90%' rows='10' cols='5'>{$abschluss_information_sachstand}</textarea>
	      <br />
	      <br />
	         <p align="center">
                 <input type="button" value="Zur&uuml;ck" onclick="window.location.href='?action={$abschluss_backlink}'">
                 &nbsp;
	             <input type="submit" name="senden" value="Weiter">
	         </p>
	    </div>
	  </body>
      </html>

{/if}

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

	  <body>

	  <br />
	  <br />

	    <form action="?action=step9" method='post' name='ldap'>
	    <div class="header">
	       <div>
	          <div>{$abschluss_titel}</div>
	       </div>
	    </div>

	    <div class="pat_list_box">
        <table border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0" cellpadding="10" cellspacing="10" width="90%">

        {if $abschluss_vid != ''}
          <tr>
            <td width="49%">
              <strong>{$abschluss_field_id8}</strong>
            </td>
            <td width="51%">
              {$abschluss_vid}
            </td>
          </tr>
        {/if}

        {if $abschluss_annahme != ''}
          <tr>
            <td width="49%">
              <strong>{$abschluss_field_annahme8}</strong>
            </td>
            <td width="51%">
              {$abschluss_annahme}
            </td>
          </tr>
        {/if}

        {if $abschluss_bemerkung != ''}
          <tr>
            <td width="49%">
              <strong>{$abschluss_field_begruendung8}</strong>
            </td>
            <td width="51%">
              {$abschluss_bemerkung}
            </td>
          </tr>
        {/if}

          <tr>
            <td width="49%" valign="top">
              <strong>{$abschluss_field_ziel}</strong>
            </td>
            <td width="51%">
              {if $abschluss_chk1_txt == '1'}
                {$abschluss_chk_1}<br />
              {/if}
              {if $abschluss_chk2_txt == '2'}
                {$abschluss_chk_2}<br />
              {/if}
              {if $abschluss_chk3_txt == '3'}
                {$abschluss_chk_3}<br />
              {/if}
              {if $abschluss_chk4_txt == '4'}
                {$abschluss_chk_4}<br />
              {/if}
              {if $abschluss_chk5_txt == '5'}
                {$abschluss_chk_5}<br />
              {/if}
            </td>
          </tr>


        {if $abschluss_public != ''}
          <tr>
            <td width="49%">
              <strong>{$abschluss_field_public8}</strong>
            </td>
            <td width="51%">
              {$abschluss_public}
            </td>
          </tr>
        {/if}

        {if $abschluss_information_massnahme != ''}
          <tr>
            <td width="49%">
              <strong>{$abschluss_field_info_umsetzung8}</strong>
            </td>
            <td width="51%">
              {$abschluss_information_massnahme}
            </td>
          </tr>
        {/if}

        {if $abschluss_information_sachstand != ''}
          <tr>
            <td width="49%">
              <strong>{$abschluss_field_stand_umsetzung8}</strong>
            </td>
            <td width="51%">
              {$abschluss_information_sachstand}
            </td>
          </tr>
        {/if}

        {if $abschluss_praemiepunkte != ''}
          <tr>
            <td width="49%">
              <strong>{$abschluss_field_praemienpunkte8}</strong>
            </td>
            <td width="51%">
              {$abschluss_praemiepunkte}
            </td>
          </tr>
        {/if}

        {if $abschluss_guschein != ''}
        {if $abschluss_gutschein_or_befreiung == 'gutschein'}
          <tr>
            <td width="49%">
              <strong>{$abschluss_field_gutschein8}</strong>
            </td>
            <td width="51%">
              {$abschluss_guschein} &euro;
            </td>
          </tr>
        {/if}
        {/if}

        {if $abschluss_dienstbefreiung != '0'}
        {if $abschluss_gutschein_or_befreiung == 'befreiung'}
          <tr>
            <td width="49%">
              <strong>{$abschluss_field_dienstbefreiung8}</strong>
            </td>
            <td width="51%">
              {$abschluss_dienstbefreiung} Tag(e)
            </td>
          </tr>
        {/if}
        {/if}

        {if $abschluss_klassierung != ''}
          <tr>
            <td width="49%">
              <strong>{$abschluss_field_klassierung8}</strong>
            </td>
            <td width="51%">
              Pr&auml;mienklasse  {$abschluss_klassierung}
            </td>
          </tr>
        {/if}
        </table>

        <p align='center'>
           <input type="button" value="Zur&uuml;ck" onclick="window.location.href='?action={$abschluss_backlink}'">
           &nbsp;
          <input type="submit" value="Speichern" name="B1">
        </p>
	    </div>
	  </body>
      </html>

{/if}

{if $action == 'step9'}
  <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>{$abschluss_titel}</div>
       </div>
    </div>

    <div class="pat_list_box">
      <br />
      <br />
      <p align='center'><strong>Vielen Dank. Der Vorgang ist abgeschlossen!</strong></p>
      <br />
      <br />


    </div>

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


{if $action == 'zuruckstell'}
  <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>{$abschluss_titel}</div>
       </div>
    </div>

    <div class="pat_list_box">
      <br />
      <br />
      <p align='center'><strong>{$abschluss_field_zuruckstell_text1}</strong></p>
      <br />
      <br />
		<table width="50%" align="center" border=1 cellpadding=0 cellspacing=0>
		  <tr>
		    <td height="20">
		      <strong>ID</strong>
		    </td>
		    <td height="20">
		      <strong>Betreff</strong>
		    </td>
		  </tr>
		  <tr>
		    <td height="20">
		      {$abschluss_zuruckstell_vid}
		    </td>
		    <td height="20">
		      {$abschluss_zuruckstell_betreff}
		    </td>
		  </tr>
		</table>
      <br />
      <br />
      <p align="center">
      <a href=?action=zuruckstell2>
        <img title = "Abbrechen"border="0" src="templates/{$global_template}/images/nein.gif"></a>
      &nbsp;
      <a href=?action=zuruckstell1>
        <img title = "Vorschlag zur&uuml;ckstellen"border="0" src="templates/{$global_template}/images/ja.gif"></a>
      </p>
      <br />
      <br />
      <br />
      <br />
    </div>

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

{if $action == 'zuruckstell1'}
  <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>{$abschluss_titel}</div>
       </div>
    </div>

    <div class="pat_list_box">
      <br />
      <br />
      <p align='center'><strong>{$abschluss_field_zuruckstell_text2}</strong></p>
      <br />
      <br />
    </div>

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