{if $action == ''}

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="./templates/{$global_template}/css/styles_pc.php" type="text/css">
    <title>{$parameter_titel}</title>
    <style type="text/css">
      {literal}
      .correct
      {
          color:#B3DF00;
      }
      .wrong
      {
          color:#FF0000;
      }
      {/literal}

    </style>
    {literal}
    <script src="validation/usercheck.js"></script>
    <script language='JavaScript' type='text/javascript'>
      <!--
       function start() {
      if (document.adm_anleg){
      document.adm_anleg.vorname.focus();
      } else{
      return false;
      }
      checkUser(document.adm_anleg.mail.value)
      }
      //-->
    </script>
    {/literal}
  </head>
  <!-- -->
  <body onload="{literal}start(); {/literal}">
    <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
      <tr>
        <td>
          <div align="center">
            <table cellspacing="0" cellpadding="0" width="1200" border="0">
              <tr>
                <td width="10" background="./templates/{$global_template}/images/box_e1.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="98%" background="./templates/{$global_template}/images/box_top.gif" valign="top">
                  <img height="10" src="./templates/{$global_template}/images/blank.gif" width="1"><br>
                  <font class="hd">{$parameter_titel}</font><br>
                  <img height="5" src="./templates/{$global_template}/images/blank.gif" width="1"></font></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e2.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td width="1%" background="./templates/{$global_template}/images/box_l.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td>
                  <form action=?action=save method="POST" name="adm_anleg">
                    <table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="100%" id="AutoNumber1" height="194">

                      {section name=table_data loop=$table_data}
                      <tr>
                        <td width="70%">
                          {$table_data[table_data].bezeichnung}*
                        </td>
                        <td width="30%">
                          <input align="right" type="number"  min="0.00" step="1" name="{$table_data[table_data].pid}" value="{$table_data[table_data].wert1}"> {$table_data[table_data].wert2}
                        </td>
                      </tr>
                      {/section}
                    </table>

                    <br><br>
                    <p align='center'>
                      <input type="submit" value="Weiter" name="B1">
                    </p>

                  </form>
                </td>
                <td width="1%" background="./templates/{$global_template}/images/box_r.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td nowrap="nowrap" align="left" width="1%" background="./templates/{$global_template}/images/box_e3.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="98%" background="./templates/{$global_template}/images/box_bottom.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="8"></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e4.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"> </td>
              </tr>
            </table>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>
{/if}


{if $action == 'save'}
{if $parameter_inserterr == '1'}
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="./templates/{$global_template}/css/styles_pc.php" type="text/css">
    <title>{$parameter_inserterr_titel}</title>
  </head>
  <body>
    <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
      <tr>
        <td>
          <div align="center">
            <table cellspacing="0" cellpadding="0" width="550" border="0">
              <tr>
                <td width="10" background="./templates/{$global_template}/images/box_e1.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="3%" background="./templates/{$global_template}/images/box_top.gif" valign="top"></td>
                <td width="95%" background="./templates/{$global_template}/images/box_top.gif">
                  <img height="10" src="./templates/{$global_template}/images/blank.gif" width="1"><br>
                  <span class="sh">{$parameter_inserterr_titel}</span><br>
                  <img height="5" src="./templates/{$global_template}/images/blank.gif" width="1"></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e2.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td width="1%" background="./templates/{$global_template}/images/box_l.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td colspan="2"><br>
                  <p align="left"><b>{$parameter_inserterr_text}</b>
                    <br><br>
                    {$parameter_reason}
                  </p>
                  <p align="center"><a href="?new=1">
                      <img border="0" src="./templates/{$global_template}/images/zurueck.gif" width="77" height="22"></a><br>
                  </p>
                  <p></p>
                  <p></p>
                  <p></p>
                  <p></p>
                  <p><br>
                  </p>
                </td>
                <td width="1%" background="./templates/{$global_template}/images/box_r.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td nowrap="nowrap" align="left" width="1%" background="./templates/{$global_template}/images/box_e3.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="98%" background="./templates/{$global_template}/images/box_bottom.gif" colspan="2">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="8"></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e4.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"> </td>
              </tr>
            </table>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>
{/if}

{if $parameter_inserterr == '2'}
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="./templates/{$global_template}/css/styles_pc.php" type="text/css">
    <title>{$parameter_returnmail_titel}</title>
  </head>
  <body>
    <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
      <tr>
        <td>
          <div align="center">
            <table cellspacing="0" cellpadding="0" width="550" border="0">
              <tr>
                <td width="10" background="./templates/{$global_template}/images/box_e1.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="3%" background="./templates/{$global_template}/images/box_top.gif" valign="top"></td>
                <td width="95%" background="./templates/{$global_template}/images/box_top.gif">
                  <img height="10" src="./templates/{$global_template}/images/blank.gif" width="1"><br>
                  <span class="sh">{$parameter_returnmail_titel}</span><br>
                  <img height="5" src="./templates/{$global_template}/images/blank.gif" width="1"></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e2.gif">
                  <img height="40" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td width="1%" background="./templates/{$global_template}/images/box_l.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td colspan="2"><br>
                  {$parameter_returnmal_text1}
                  <br><br>
                  {if $parameter_mailsuccess == '2'}
                  {$parameter_returnmal_text2}: {$parameter_returnmailadr}
                  {/if}

                  {if $parameter_mailsuccess == '1'}
                  {$parameter_returnmal_text3}
                  {/if}
                  </p>
                  <p align="center"><a href="?new=1">
                      <img border="0" src="./templates/{$global_template}/images/zurueck.gif" width="77" height="22"></a><br>
                  </p>
                  <p></p>
                  <p></p>
                  <p></p>
                  <p></p>
                  <p><br>
                  </p>
                </td>
                <td width="1%" background="./templates/{$global_template}/images/box_r.gif">
                  <img height="1" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
              </tr>
              <tr>
                <td nowrap="nowrap" align="left" width="1%" background="./templates/{$global_template}/images/box_e3.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"></td>
                <td nowrap="nowrap" align="left" width="98%" background="./templates/{$global_template}/images/box_bottom.gif" colspan="2">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="8"></td>
                <td nowrap="nowrap" align="right" width="1%" background="./templates/{$global_template}/images/box_e4.gif">
                  <img height="16" src="./templates/{$global_template}/images/blank.gif" width="22"> </td>
              </tr>
            </table>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>
{/if}
{/if}