{if $action == ''}
<html>
<head>
<title>{$bewertungsvorschlag_text}</title>
<link type="text/css" rel="stylesheet" href="templates/{$global_template}/css/styles_refill.css">
  <style type='text/css'>
    select { width:267px;}
  </style>
  <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">
    {literal}
    $(document).ready(function() {
        $(".box").fancybox({
            'width'                : '100%',
            'height'               : '100%',
            '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">
    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()' bgcolor="white" text="black" link="blue" vlink="purple" alink="red">

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

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

    <table align="center" valign="top" border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0" width="90%">
        <tr>
            <td width="100%" colspan="2">
             {$bewertungsvorschlag_text}
            </td>

        </tr>


        <tr>
            <td width="50%" valign="top">
              &nbsp;
            </td>
            <td width="50%" valign="top">
             &nbsp;
            </td>
        </tr>

        <tr>
            <td width="50%" valign="top">
               {if $bewertungsvorschlag_ziel_ico == '1'}<img src="templates/{$global_template}/images/pflichtfelder/achtung_klein.gif">{/if}
               {if $bewertungsvorschlag_ziel_ico == '1'}<font color="#FF0000">{/if}
                 <strong>{$bewertungsvorschlag_field_ziel}</strong>
               {if $bewertungsvorschlag_ziel_ico == '1'}</font>{/if}


            </td>
            <td width="50%" valign="top">
              <table>
              <tr><td><input type="checkbox" name="chk1" value="1" onclick="senden_aktiv();" id="r1" {if $bewertungsvorschlag_chk1 == 'Y'} checked {/if}></td><td><label for="r1">{$bewertungsvorschlag_chk_1}</label></td></tr>
              <tr><td><input type="checkbox" name="chk2" value="2" onclick="senden_aktiv();" id="r2" {if $bewertungsvorschlag_chk2 == 'Y'} checked {/if}></td><td><label for="r2">{$bewertungsvorschlag_chk_2}</label></td></tr>
              <tr><td><input type="checkbox" name="chk3" value="3" onclick="senden_aktiv();" id="r3" {if $bewertungsvorschlag_chk3 == 'Y'} checked {/if}></td><td><label for="r3">{$bewertungsvorschlag_chk_3}</label></td></tr>
              <tr><td><input type="checkbox" name="chk4" value="4" onclick="senden_aktiv();" id="r4" {if $bewertungsvorschlag_chk4 == 'Y'} checked {/if}></td><td><label for="r4">{$bewertungsvorschlag_chk_4}</label></td></tr>
              <tr><td><input type="checkbox" name="chk5" value="5" onclick="senden_aktiv();" id="r5" {if $bewertungsvorschlag_chk5 == 'Y'} checked {/if}></td><td><label for="r5">{$bewertungsvorschlag_chk_5}</label></td></tr>
              </table>
            </td>
        </tr>
        <tr>
            <td width="50%">
              &nbsp;
            </td>
            <td width="50%">
              &nbsp;
            </td>
        </tr>
        <tr>
            <td width="50%" valign="top">
              <strong>{$bewertungsvorschlag_field_annahme}</strong>
            </td>
            <td width="50%" valign="top">
              <label><input type="radio" name="bewertungsvorschlag_annahme" id=1 value="J" {if $bewertungsvorschlag_annahme == 'J'} checked{/if}> ja</label> <br />
              <label><input type="radio" name="bewertungsvorschlag_annahme" id=1 value="N" {if $bewertungsvorschlag_annahme == 'N'} checked{/if}> Nein</label> <br />
            </td>
        </tr>
        <tr>
            <td width="50%">
              &nbsp;
            </td>
            <td width="50%">
              &nbsp;
            </td>
        </tr>

        <tr>
            <td width="50%" valign="top">
              <strong>{$bewertungsvorschlag_field_begruendung}</strong>
            </td>
            <td width="50%" valign="top">
              <textarea name='bewertungsvorschlag_begruendung' style='width:100%' rows='8' cols='5'>{$bewertungsvorschlag_begruendung}</textarea>
            </td>
        </tr>


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

        <tr>
            <td width="50%" valign="top">
              <strong>{$bewertungsvorschlag_field_umsetzung}</strong>
            </td>
            <td width="50%" valign="top">
              <textarea name='bewertungsvorschlag_umsetzung' style='width:100%' rows='8' cols='5'>{$bewertungsvorschlag_umsetzung}</textarea>
            </td>
        </tr>

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

        <tr>
            <td width="50%" valign="top">
              <strong>{$bewertungsvorschlag_field_paemierung}</strong>
            </td>
            <td width="50%" valign="top">
              <textarea name='bewertungsvorschlag_praemierung' style='width:100%' rows='8' cols='5'>{$bewertungsvorschlag_praemierung}</textarea>
            </td>
        </tr>

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

        <tr>
            <td width="100%" align="center" colspan="2">
	  		   <input type="submit" name="senden" value="Speichern">
	  		</td>
	   </tr>

	</table>
    </form>


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

{if $action == 'save'}
<html>
<head>
<title>{$edit_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">

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

    <table align="center" valign="top" border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0" height="90%" width="90%">

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

        <tr>
            <td width="100%" align="center">
              {if $bewertungsvorschlag_save <> '0'}{$bewertungsvorschlag_success}{/if}
            </td>
        </tr>


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

	</table>
    </form>


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