{if $action == ''}
<html>
<head>
<title>{$erfassen_eingabe_titel}</title>
<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="js/ajaxtabs.js">
    /***********************************************
    * Ajax Tabs Content script v2.2- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at https://www.dynamicdrive.com/ for full source code
    ***********************************************/
  </script>

  <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">
  {literal}
    $(document).ready(function() {
        $(".box").fancybox({
            'width'                : '75%',
            'height'               : '75%',
            'autoScale'            : true,
            'transitionIn'         : 'elastic',
            'transitionOut'        : 'elastic',
            'type'                 : 'iframe'
        });
    });
    {/literal}
  </script>


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

  <script type="text/javascript">
   {literal}
   function senden_aktiv(){
      if ( document.erfassen.versicherung.checked == true ){
         document.erfassen.senden.disabled = false;
      }else{
          document.erfassen.senden.disabled = true;
      }
    }
    {/literal}
  </script>

</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">

<div class="header">
   <div>
      <div>{$erfassen_eingabe_titel}</div>
   </div>
</div>

<div class="pat_list_box">
	<p>
	<form action="?action=save" method='post' name='erfassen'>

    {if $erfassen_eingabe_pflichtfelder == '1'}
      <table width="90%" class="errorTable">
        <tr>
          <td>
            <img src="templates/{$global_template}/images/pflichtfelder/achtung_gross.gif">
          </td>
          <td><b>Achtung!</b><br>
               {$erfassen_eingabe_mandatory_text}
          </td>
        </tr>
      </table><br>
    {/if}

    <table valign="top" border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0" width="90%" height="90%">
        <tr>
            <td width="30%">
              <strong>{$erfassen_eingabe_field_ersteller}</strong>
            </td>
            <td>
              {$erfassen_eingabe_vorname} {$erfassen_eingabe_nachname}
            </td>
        </tr>

        <tr>
            <td width="30%">
              <strong>{$erfassen_eingabe_field_mailadresse}</strong>
            </td>
            <td>
              {$erfassen_eingabe_mail}
            </td>
        </tr>

        <tr>
            <td width="30%">
              <strong>{$erfassen_eingabe_field_gruppe}</strong>
            </td>
            <td>
              {$erfassen_eingabe_beziehung}
            </td>
        </tr>

        <tr>
            <td width="30%">
              &nbsp;
            </td>
            <td>
              &nbsp;
            </td>
        </tr>

        <tr>
            <td width="30%">
              <strong>{$erfassen_eingabe_field_gruppenmitglieder}</strong>
            </td>
            <td>
              <table width="150">
                <tr>
                  <td>
                    <div class="buttonwrapper">
			          <a class="squarebutton_blue box" title="Gruppenmitglieder erfassen" href="gruppenmitglieder.php"><span>erfassen</span></a>
			        </div>
			      </td>
			    </tr>
			  </table>
            </td>
        </tr>

        <tr>
            <td width="30%">
              &nbsp;
            </td>
            <td>
              &nbsp;
            </td>
        </tr>

        <tr>
            <td width="30%">
               {if $erfassen_eingabe_betreff_ico == '1'}<img src="templates/{$global_template}/images/pflichtfelder/achtung_klein.gif">{/if}
               {if $erfassen_eingabe_betreff_ico == '1'}<font color="#FF0000">{/if}
                 <strong>{$erfassen_eingabe_field_betreff}</strong>
               {if $erfassen_eingabe_betreff_ico == '1'}</font>{/if}
            </td>
            <td>
              <input {if $erfassen_eingabe_betreff_ico == '1'}class="errorField"{/if} type="text" name="betreff" size="60" value="{$erfassen_eingabe_betreff}">
            </td>
        </tr>

        <tr>
            <td width="30%">
              &nbsp;
            </td>
            <td>
              &nbsp;
            </td>
        </tr>

        <tr>
            <td width="30%">
              {if $erfassen_eingabe_beschreibung_ico == '1'}<img src="templates/{$global_template}/images/pflichtfelder/achtung_klein.gif">{/if}
              {if $erfassen_eingabe_beschreibung_ico == '1'}<font color="#FF0000">{/if}
                <strong>{$erfassen_eingabe_field_beschreibung}</strong>
              {if $erfassen_eingabe_beschreibung_ico == '1'}</font>{/if}
            </td>
            <td>
              <textarea name='beschreibung' style='width:100%' rows='13' cols='10'>{$erfassen_eingabe_beschreibung}</textarea>
            </td>
        </tr>

        <tr>
            <td width="30%">
              &nbsp;
            </td>
            <td>
              &nbsp;
            </td>
        </tr>

        <tr>
            <td width="30%">
              {if $erfassen_eingabe_vorschlag_ico == '1'}<img src="templates/{$global_template}/images/pflichtfelder/achtung_klein.gif">{/if}
              {if $erfassen_eingabe_vorschlag_ico == '1'}<font color="#FF0000">{/if}
                <strong>{$erfassen_eingabe_field_vorschlag}</strong>
              {if $erfassen_eingabe_vorschlag_ico == '1'}</font>{/if}
            </td>
            <td>
              <textarea name='vorschlag' style='width:100%' rows='13' cols='10'>{$erfassen_eingabe_vorschlag}</textarea>
            </td>
        </tr>

        <tr>
            <td width="30%">
              &nbsp;
            </td>
            <td>
              &nbsp;
            </td>
        </tr>

        <tr>
            <td width="30%">
              {if $erfassen_eingabe_nutzen_ico == '1'}<img src="templates/{$global_template}/images/pflichtfelder/achtung_klein.gif">{/if}
              {if $erfassen_eingabe_nutzen_ico == '1'}<font color="#FF0000">{/if}
                <strong>{$erfassen_eingabe_field_nutzen}</strong>
              {if $erfassen_eingabe_nutzen_ico == '1'}</font>{/if}
            </td>
            <td>
              <textarea name='nutzen' style='width:100%' rows='13' cols='10'>{$erfassen_eingabe_nutzen}</textarea>
            </td>
        </tr>

        <tr>
            <td width="30%">
              &nbsp;
            </td>
            <td>
              &nbsp;
            </td>
        </tr>

        <tr>
            <td width="30%">
              &nbsp;
            </td>
            <td>
              &nbsp;
            </td>
        </tr>

        <tr>
            <td width="30%">
              &nbsp;
            </td>
            <td>
              <table width="100%">
                <tr>
                  <td valign="top">
                      <input type="checkbox" name="einwilligung_public" id="r1" value="Y"  {if $erfassen_eingabe_einwilligung_public == 'Y'} checked {/if}>
                  </td>
                  <td>
                    <label for="r1">{$erfassen_eingabe_checkbox_public}</label>
                  </td>
                 </tr>

                <tr>
                  <td valign="top">
                      <input type="checkbox" name="versicherung" onclick="senden_aktiv();" id="r2">
                  </td>
                  <td style="text-align: justify;">
                    <label for="r2">{$erfassen_eingabe_checkbox_ldsg}</label>
                  </td>
                 </tr>
               </table>
               <br />
	  		   <input type="submit" name="senden" disabled>

            </td>
        </tr>



    </table>

    </form>
</div>

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


{if $action == 'save1'}


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

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">

<div class="header">
   <div>
      <div>{$erfassen_eingabe_abgeschlossen_titel}</div>
   </div>
</div>

<div class="pat_list_box">
	<p>
    <table border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0" width="100%" height="90%">
        <tr>
            <td align="center">

              <table class="vvsuccess" width="40%" height="200" border="0">
                <tr>
                  <td align="center">
                    <h3>{$erfassen_eingabe_abgeschlossen_text1}</h3>
                    <br />
                    <br />
                    {$erfassen_eingabe_abgeschlossen_text2} <strong>{$erfassen_eingabe_id}</strong>
                  </td>
                </tr>
              </table>
            </td>
        </tr>
    </table>
</div>

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