{if $action == ''}
<html>
<head>
<title>{$ausschuss_edit_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="./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'
        });
    });
  </script>
</head>

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




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

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

    <table valign="top" border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0" width="100%" max-height="90%">
        <tr>
            <td width="50%">
              <strong>{$ausschuss_edit_field_id}</strong>
            </td>
            <td>
              {$ausschuss_edit_id}
            </td>
        </tr>

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

        <tr>
            <td width="50%">
                 <strong>{$ausschuss_edit_field_betreff}</strong>
            </td>
            <td>
              {$ausschuss_edit_betreff}
            </td>
        </tr>

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

        <tr>
            <td width="50%">
                <strong>{$ausschuss_edit_field_beschreibung}</strong>
            </td>
            <td>
              {$ausschuss_edit_beschreibung}
            </td>
        </tr>

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

        <tr>
            <td width="50%">
                <strong>{$ausschuss_edit_field_vorschlag}</strong>
            </td>
            <td>
              {$ausschuss_edit_vorschlag}
            </td>
        </tr>

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

        <tr>
            <td width="50%">
                <strong>{$ausschuss_edit_field_nutzen}</strong>
            </td>
            <td>
              {$ausschuss_edit_nutzen}
            </td>
        </tr>


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

        <tr>
            <td width="50%">
              <strong>{$ausschuss_edit_field_hinweiseigen}</strong>
            </td>
            <td>
              {$ausschuss_edit_hinweis_eigen}
            </td>
        </tr>


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

        <tr>
            <td width="50%">
              <strong>{$ausschuss_edit_field_category}</strong>
            </td>
            <td>
              {$ausschuss_edit_kat}
            </td>
        </tr>



	</table>
	<br />
	<br />
      <fieldset>
      <legend><b>Bestellte Gutachter</b></legend>

	      <table valign="top" border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0" width="90%">
	        <tr>
	          <td>
	            <strong>{$ausschuss_edit_field_name}</strong>
	          </td>
	          <td>
	            <strong>{$ausschuss_edit_field_auswahl}</strong>
	          </td>
	          <td>
	            <strong>{$ausschuss_edit_field_hinweis}</strong>
	          </td>
	          <td>
	            <strong>{$ausschuss_edit_field_frist}</strong>
	          </td>
            </tr>


            {section name=table_data2 loop=$table_data2}
            <tr height='30px'>
	          <td style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
	            {$table_data2[table_data2].vorname}&nbsp;{$table_data2[table_data2].nachname}
	          </td>
	          <td style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
	            <select name="{$table_data2[table_data2].imtuid}" {if $table_data2[table_data2].disabled == '1'} disabled{/if}>
				    <option value="Y" {if $table_data2[table_data2].ergebnis == 'Y'} selected {/if}>Annehmen</option>
				    <option value="N" {if $table_data2[table_data2].ergebnis == 'N'} selected {/if}>Ablehnen</option>
				    <option value="">keine Entscheidung</option>
				</select>
	          </td>
	          <td style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">

	            {if $table_data2[table_data2].bemerkung != ''}
	              {$table_data2[table_data2].bemerkung}
	            {else}
	              <!-- Sonst wird die Rahmenlinie nicht dargestellt -->
	              &nbsp;
	            {/if}

	          </td>
	          <td style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
	            {$table_data2[table_data2].frist_dat_form}
	          </td>
            </tr>
            {/section}

          </table>
      </fieldset>
   <p align='center'><input type="submit" name="senden" value="Speichern"></p>


	<br />
	<br />
      <fieldset>
      <legend><b>Statusdetails</b></legend>

	      <table valign="top" border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0" width="90%">
	        <tr>
	          <td width="50%">
	            <strong>{$ausschuss_edit_field_datum}</strong>
	          </td>
	          <td>
	            <strong>{$ausschuss_edit_field_status}</strong>
	          </td>
            </tr>


            {section name=table_data3 loop=$table_data3}
            {if $table_data3[table_data3].status != ''}
            <tr>
	          <td width="50%">
	            {$table_data3[table_data3].datum1}
	          </td>
	          <td>
	            {$table_data3[table_data3].status} {if $table_data3[table_data3].info == '1'}<a class="box" href="info_entscheid.php?vid={$table_data3[table_data3].ausschuss_edit_id}"><img src="templates/{$global_template}/images/i.jpg" title="Informationen zur Entscheidung" border="0"></a>{/if}
	          </td>
            </tr>
            {/if}
            {/section}

          </table>
      </fieldset>

    </form>


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


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

      <table border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0" width="100%" height="90%">
          <tr>
              <td align="center">
                      <h3>{$ausschuss_edit_abgeschlossen_text1}</h3>
                      <br />
                      <br />
                      {$ausschuss_edit_abgeschlossen_text2} <strong>{$ausschuss_edit_id}</strong>
              </td>
          </tr>
      </table>


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