{if $action == ''}
<html>
  <head>
    <link type="text/css" rel="stylesheet" href="templates/{$global_template}/css/styles_refill.css">
    <link rel="stylesheet" href="jquery/jquery-ui.css">
    <script src="jquery/jquery-1.12.4.js"></script>
    <script src="jquery/jquery-ui.js"></script>
    <script type="text/javascript">
      $(function() {
          $(".datepicker").datepicker({
          prevText: '&#x3c; zur&uuml;ck', prevStatus: '',
          prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '',
          changeMonth: true,
          changeYear: true,
          nextText: 'Vor &#x3e;', nextStatus: '',
          nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '',
          currentText: 'Heute', currentStatus: '',
          todayText: 'Heute', todayStatus: '',
          clearText: '-', clearStatus: '',
          closeText: 'schlie&szlig;en', closeStatus: '',
          monthNames: ['Januar','Februar','M&auml;rz','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'],
          monthNamesShort: ['Jan','Feb','M&auml;r','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'],
          dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
          dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
          dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
          weekHeader: 'Wo',
          weekStatus: 'Woche des Monats',
          showMonthAfterYear: false,
          showOn: 'focus',
          firstDay: 1,
          numberOfMonths : 1,
          showButtonPanel : true,
          altField : "#datepicker_input",
          dateFormat : "dd.mm.yy",
          showWeek: true
          });
          $.datepicker._gotoToday = function(id) {
		  $(id).datepicker('setDate', new Date()).datepicker('hide').blur();
          }

      });
    </script>
        <script src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'></script>
    <style>
      .StandardTable thead th{
      background: lightgray;
      border: 1px solid #656565;
      font-size:12px;
      font-family:Arial;
      padding-top:5px;
      padding-bottom:5px;
      padding-left:5px;
      padding-right:5px;
      }
      textarea{
      border: 1px solid #888;
      height: 6.7em;
      width: 48.5em;
      }
      select{
      width:630px;
      }
    </style>
  </head>
    <body>
    <form action="?action=save" method='post' name='erfassen'>

        {if $tz_error == '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>
              {$tz_error_text}
            </td>
          </tr>
        </table>
        <br />
        <br />
        {/if}

        <fieldset>
          <legend>
            <b>Teilzeit erfassen</b>
          </legend>
          <br />
          <br />
          <table cellspacing="0" cellpadding="0" width="100%" border="0" class="StandardTable">
            <tr>
              <td>
                Prozent
              </td>
              <td valign="top">
                         <select size="1" id='umfang' name='umfang'>
                           <option value="1.00" {if $tz_value_umfang == "1.00"} selected {/if}>100&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.95" {if $tz_value_umfang == "0.95"} selected {/if}>95&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.90" {if $tz_value_umfang == "0.90"} selected {/if}>90&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.85" {if $tz_value_umfang == "0.85"} selected {/if}>85&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.80" {if $tz_value_umfang == "0.80"} selected {/if}>80&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.75" {if $tz_value_umfang == "0.75"} selected {/if}>75&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.70" {if $tz_value_umfang == "0.70"} selected {/if}>70&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.65" {if $tz_value_umfang == "0.65"} selected {/if}>65&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.60" {if $tz_value_umfang == "0.60"} selected {/if}>60&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.55" {if $tz_value_umfang == "0.55"} selected {/if}>55&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.50" {if $tz_value_umfang == "0.50"} selected {/if}>50&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.45" {if $tz_value_umfang == "0.45"} selected {/if}>45&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.40" {if $tz_value_umfang == "0.40"} selected {/if}>40&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.35" {if $tz_value_umfang == "0.35"} selected {/if}>35&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.30" {if $tz_value_umfang == "0.30"} selected {/if}>30&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.25" {if $tz_value_umfang == "0.25"} selected {/if}>25&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.20" {if $tz_value_umfang == "0.20"} selected {/if}>20&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.15" {if $tz_value_umfang == "0.15"} selected {/if}>15&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.10" {if $tz_value_umfang == "0.10"} selected {/if}>10&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.05" {if $tz_value_umfang == "0.05"} selected {/if}>5&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.00" {if $tz_value_umfang == "0.00"} selected {/if}>0&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                         </select>
              </td>
            </tr>
            <tr>
              <td>&nbsp;
              </td>
              <td>&nbsp;
              </td>
            </tr>
            <tr>
              <td>
               Beginn der Teilzeit
              </td>
              <td>
                <input type="text" class="datepicker" name="beginn_teilzeit" id="beginn_teilzeit" value="{$tz_value_beginn}" onchange='calc_erm_78();'>
              </td>
            </tr>
            <tr>
              <td>&nbsp;
              </td>
              <td>&nbsp;
              </td>
            <tr>
              <tr id="erm_freist_hinweis">
                <td width="30%">
                  &nbsp;
                </td>
                <td valign="top">
                  <table width="70%" class="errorTable">
                    <tr>
                      <td>
                        <b>Hinweis</b><br>
                        <ul>
                          <li>Eine ältere Teilzeit endet dann, wenn eine neue Teilzeit erfasst wird.</li>
                          <li>Es wird immer der Monatserste als Beginntag festgelegt!</li>
                          <li>Betrachtet werden Zeiträume des Studienjahres: 01.09 - 31.08</li>
                        </ul>
                      </td>
                    </tr>
                  </table>
                  <br>
                </td>
              </tr>
          </table>
          <br />
          <p align='center'>
            <input type='submit' name='senden' value="Speichern">
          </p>
          <br />
        </fieldset>
    </form>
    <br />
    <br />
    <fieldset>
    <legend>
    <b>Erfasste Teilzeit</b>
    </legend>
    <br>
    <b>Basiswert der Lehrveranstaltungsstunden in diesem Studienjahr: {$tz_baselvs}</b>
    <br>
    <table cellspacing="0" cellpadding="2" width="100%" border="1">
    <tr>
    <td>
    <b>lfd.Nr.</b>
    </td>
    <td>
    <b>Beginn</b>
    </td>
    <td align="right">
    <b>Prozent</b>
    </td>
    <td align="center">
    <b>Edit</b>
    </td>
    <tr>
    {section name=table_data2 loop=$table_data2}
    {if $smarty.section.table_data2.rownum != ''}
    <tr>
    <td>
    {$smarty.section.table_data2.rownum}
    </td>
    <td>
    {$table_data2[table_data2].beginn_form}
    </td>
    <td align="right">
    {$table_data2[table_data2].prozent} %
    </td>
    <td align="center">
    <a href=?edit={$table_data2[table_data2].deid}><img title = "Teilzeit bearbeiten" border="0" height=10 src="templates/{$global_template}/images/edit.png"></a>
    &nbsp;
    <a href="?action=del&deid={$table_data2[table_data2].deid}"><img title = 'Teilzeit l&ouml;schen' border="0" height=10 src="templates/{$global_template}/images/drop.png"></a>
    </td>
    </tr>
    {/if}
    {/section}
    <!--
    <tr>
    <td colspan="2">&nbsp;</td>
    <td align="right">EVTL FALSCH. Reihenfolge für Abzüge berücksichtigen. Haug 25.7.19<b>Lehrveranstaltungsstunden: {$tz_value_lvs}</b></td>
    <td>&nbsp;</td>
    </tr>
    -->
    </table>
    </fieldset>

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