{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>{$prof_bearbeiten_headtitel}</title>
  </head>
  <body>
    <div id="overDiv" style="position: absolute; visibility: hidden; z-index: 1000; left: 10px; top: 0px; background-image: none;"></div>
    <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="80%" 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">{$prof_bearbeiten_headtitel}</font><br>
                  <font class="sh">{$prof_bearbeiten_auswahl}</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>
                  <br>
                  <form action=?action=auswahl 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">
                        <tr>
                          <td width="40%">
                            &nbsp;
                          </td>
                          <td width="60%">
                            <select size="5" id='prof' name='prof'>
                              {section name=table_data3 loop=$table_data3}
                                <option value="{$table_data3[table_data3].did}">{$table_data3[table_data3].doz_name}, {$table_data3[table_data3].doz_vorname}&nbsp;&nbsp;&nbsp;&nbsp;</option>
                              {/section}
                            </select>
                          </td>
                        <tr>

                        <tr>
                          <td width="40%">
                            &nbsp;
                          </td>
                          <td width="60%">
                            &nbsp;
                          </td>
                        </tr>
                      </table>
                    </fieldset>
                    <p align='center'>
                      <input type="submit" value="Auswählen" 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 == 'auswahl'}
<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>{$prof_bearbeiten_titel}</title>
    <style type="text/css">
      .correct
      {
          color:#B3DF00;
      }
      .wrong
      {
          color:#FF0000;
      }
    </style>
    <!-- Kalender Beginn // -->
    <link rel='stylesheet' href='./datepicker/dynCalendar.css' type='text/css' media='screen'>
    <script src='./datepicker/browserSniffer.js' type='text/javascript' language='javascript'></script>
    <script src='./datepicker/dynCalendar.js' type='text/javascript' language='javascript'></script>
    <script type='text/javascript'>
      {literal}
      <!--
      	// Calendar callback. When a date is clicked on the calendar
      	// this function is called so you can do as you want with it
      	function calendarCallback(date, month, year, pos)
      	{
      	    if(date<10){date='0'+date;}
      	    if(month<10){month='0'+month;}
      		date_tag = date;
      		date_mon = month;
      		date_jahr = year;
      		document.getElementById('tag'+pos).value = date_tag;
      		document.getElementById('mon'+pos).value = date_mon;
      		document.getElementById('jahr'+pos).value = date_jahr;
      	}

      // -->
      {/literal}
    </script>
    <!-- Kalender Ende // -->
    <script language='JavaScript' type='text/javascript'>
      <!--
       function start() {
         showDiv(document.getElementById("besoldung"))
         if (document.prof_anleg){
           document.prof_anleg.vorname.focus();
         } else {
           return false;
         }
       }
      //-->
    </script>

  </head>
  <!-- -->
  <body onload="start();">
    <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="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">{$prof_bearbeiten_headtitel}</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=overview method="POST" name="prof_anleg">
                    <table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="100%" id="AutoNumber1" height="194">
                      <tr>
                        <td width="40%">
                          <b>{$prof_bearbeiten_field_titel}</b>
                        </td>
                        <td width="60%">
                          <input type="text" name="titel" value="{$prof_bearbeiten_titel}" size="40">
                        </td>
                      </tr>
                      <tr>
                        <td width="40%">
                          <b>{$prof_bearbeiten_field_vorname}*</b>
                        </td>
                        <td width="60%">
                          <input type="text" name="vorname" value="{$prof_bearbeiten_vorname}" size="40">
                        </td>
                      </tr>
                      <tr>
                        <td width="40%">
                          <b>{$prof_bearbeiten_field_name}*</b>
                        </td>
                        <td width="60%">
                          <input type="text" name="nachname" value="{$prof_bearbeiten_nachname}" size="40">
                        </td>
                      </tr>
                      <tr>
                        <td width="40%">
                          &nbsp;
                        </td>
                        <td width="60%">
                          &nbsp;
                        </td>
                      </tr>
                        <tr>
                          <td width="40%">
                            <b>{$prof_bearbeiten_field_gebtag}*</b>
                          </td>
                          <td width="60%">
                            <input type='text' name='tag1' id='tag1' value='{$prof_bearbeiten_gebdat_tag}' size=1>.<input type='text' name='mon1' id='mon1' value='{$prof_bearbeiten_gebdat_mon}' size=1>.<input type='text' name='jahr1' id='jahr1' value='{$prof_bearbeiten_gebdat_jahr}' size=3>
                            <script language='JavaScript' type='text/javascript'>
                              <!--
                              	gebtag = new dynCalendar('gebtag', 'calendarCallback', './datepicker/images/', '', '1');
                              //-->
                            </script>
                          </td>
                        </tr>
                      <tr>
                        <tr>
                          <td width="40%">
                            <b>{$prof_bearbeiten_field_zugang}*</b>
                          </td>
                          <td width="60%">
                            <input type='text' name='tag2' id='tag2' value='{$prof_bearbeiten_zugang_tag}' size=1>.<input type='text' name='mon2' id='mon2' value='{$prof_bearbeiten_zugang_mon}' size=1>.<input type='text' name='jahr2' id='jahr2' value='{$prof_bearbeiten_zugang_jahr}' size=3>
                            <script language='JavaScript' type='text/javascript'>
                              <!--
                              	zugang = new dynCalendar('zugang', 'calendarCallback', './datepicker/images/', '', '2');
                              //-->
                            </script>
                          </td>
                        </tr>
                      <tr>
                        <tr>
                          <td width="40%">
                            <b>{$prof_bearbeiten_field_weggang}</b>
                          </td>
                          <td width="60%">
                            <input type='text' name='tag3' id='tag3' value='{$prof_bearbeiten_weggang_tag}' size=1>.<input type='text' name='mon3' id='mon3' value='{$prof_bearbeiten_weggang_mon}' size=1>.<input type='text' name='jahr3' id='jahr3' value='{$prof_bearbeiten_weggang_jahr}' size=3>
                            <script language='JavaScript' type='text/javascript'>
                              <!--
                              	weggang = new dynCalendar('weggang', 'calendarCallback', './datepicker/images/', '', '3');
                              //-->
                            </script>
                          </td>
                        </tr>
                      <tr>

                        <tr>
                          <td width="40%">
                            <b>{$prof_bearbeiten_field_nachbes}</b>
                          </td>
                          <td width="60%">
                            <input type='text' name='tag4' id='tag4' value='{$prof_bearbeiten_nachbes_tag}' size=1>.<input type='text' name='mon4' id='mon4' value='{$prof_bearbeiten_nachbes_mon}' size=1>.<input type='text' name='jahr4' id='jahr4' value='{$prof_bearbeiten_nachbes_jahr}' size=3>
                            <script language='JavaScript' type='text/javascript'>
                              <!--
                              	nachbes = new dynCalendar('nachbes', 'calendarCallback', './datepicker/images/', '', '4');
                              //-->
                            </script>
                          </td>
                        </tr>
                      <tr>


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

                      <tr>
                        <td width="40%">
                          <b>{$prof_bearbeiten_field_delta}*</b>
                        </td>
                        <td width="60%">
                          <input type="text" name="delta" value="{$prof_bearbeiten_deltas}" size="40">
                        </td>
                      </tr>

                      <tr>
                        <td width="40%">
                          &nbsp;
                        </td>
                        <td width="60%">
                          <p id="validateCheck"></p>
                        </td>
                      </tr>
                      <tr>
                        <td width="40%">
                          * = Pflichtfelder
                        </td>
                        <td width="60%">
                          &nbsp;
                        </td>
                      </tr>
                    </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>

            <br>
            <table width="100%">
            <tr>
              <td width="50%" valign="top">
                <form action=?action=save_besoldung method="POST" name="besoldung">
                <fieldset width='50%'>
                <legend><b>Besoldungsstart</b></legend>
                  <table width='100%' border='0'>
                    <tr>
                      <td width='40%'>
                        <b>Beginn der Zulage ab:</b>
                      </td>
                      <td>
                                <input type='text' name='tag5' id='tag5' value='{$prof_bearbeiten_startdat_tag}' size=1>.<input type='text' name='mon5' id='mon5' value='{$prof_bearbeiten_startdat_mon}' size=1>.<input type='text' name='jahr5' id='jahr5' value='{$prof_bearbeiten_startdat_jahr}' size=3>
                                <script language='JavaScript' type='text/javascript'>
                                  <!--
                                  	besoldung1 = new dynCalendar('besoldung1', 'calendarCallback', './datepicker/images/', '', '5');
                                  //-->
                                </script>
                      </td>
                    </tr>
                    <tr>
                      <td width="40%">
                        <b>Besoldungsgruppe:</b>
                      </td>
                      <td>
                         <select size="1" id='besoldung' name='besoldung' onchange="showDiv(this)">
                            <option value="W1" {if $prof_bearbeiten_besoldung == 'W1'} selected {/if}>W1&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="W2" {if $prof_bearbeiten_besoldung == 'W2'} selected {/if}>W2&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="W3" {if $prof_bearbeiten_besoldung == 'W3'} selected {/if}>W3&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="C1" {if $prof_bearbeiten_besoldung == 'C1'} selected {/if}>C1&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="C2" {if $prof_bearbeiten_besoldung == 'C2'} selected {/if}>C2&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="C3" {if $prof_bearbeiten_besoldung == 'C3'} selected {/if}>C3&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="C4" {if $prof_bearbeiten_besoldung == 'C4'} selected {/if}>C4&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="A9" {if $prof_bearbeiten_besoldung == 'A9'} selected {/if}>A9&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="A10" {if $prof_bearbeiten_besoldung == 'A10'} selected {/if}>A10&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="A11" {if $prof_bearbeiten_besoldung == 'A11'} selected {/if}>A11&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="A12" {if $prof_bearbeiten_besoldung == 'A12'} selected {/if}>A12&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="A13" {if $prof_bearbeiten_besoldung == 'A13'} selected {/if}>A13&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="A14" {if $prof_bearbeiten_besoldung == 'A14'} selected {/if}>A14&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="A15" {if $prof_bearbeiten_besoldung == 'A15'} selected {/if}>A15&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="A16" {if $prof_bearbeiten_besoldung == 'A16'} selected {/if}>A16&nbsp;&nbsp;&nbsp;&nbsp;</option>
                         </select>
                      </td>
                    </tr>

                      <tr>
                        <td width="40%">
                          <b>Besoldungsstufe:</b>
                        </td>
                        <td width="60%">
                          <div id="hidden_divA" style="display:none;">
                           <select size="1" id='stufeA' name='stufeA'>
                           <!-- Stufe 0 eingeführt: Diese Professoren bekommen dann kein Gehalt berechnet, da es Stufe 0 im Grundgehalt nicht gibt.
                                Alle mit Stufe 0 sind für die Berechnung des Vergaberahmens nicht relevant
                           -->
                            <option value="0" {if $prof_bearbeiten_stufe == '0'} selected {/if}>unrelevant für Vergaberahmen</option>
                            <option value="1" {if $prof_bearbeiten_stufe == '1'} selected {/if}>1&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="2" {if $prof_bearbeiten_stufe == '2'} selected {/if}>2&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="3" {if $prof_bearbeiten_stufe == '3'} selected {/if}>3&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="4" {if $prof_bearbeiten_stufe == '4'} selected {/if}>4&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="5" {if $prof_bearbeiten_stufe == '5'} selected {/if}>5&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="6" {if $prof_bearbeiten_stufe == '6'} selected {/if}>6&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="7" {if $prof_bearbeiten_stufe == '7'} selected {/if}>7&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="8" {if $prof_bearbeiten_stufe == '8'} selected {/if}>8&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="9" {if $prof_bearbeiten_stufe == '9'} selected {/if}>9&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="10" {if $prof_bearbeiten_stufe == '10'} selected {/if}>10&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="11" {if $prof_bearbeiten_stufe == '11'} selected {/if}>11&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="12" {if $prof_bearbeiten_stufe == '12'} selected {/if}>12&nbsp;&nbsp;&nbsp;&nbsp;</option>
                           </select>
                          </div>
                          <div id="hidden_divC" style="display:none;">
                           <select size="1" id='stufeC' name='stufeC'>
                           <!-- Stufe 0 eingeführt: Diese Professoren bekommen dann kein Gehalt berechnet, da es Stufe 0 im Grundgehalt nicht gibt.
                                Alle mit Stufe 0 sind für die Berechnung des Vergaberahmens nicht relevant
                           -->
                            <option value="0" {if $prof_bearbeiten_stufe == '0'} selected {/if}>unrelevant für Vergaberahmen</option>
                            <option value="1" {if $prof_bearbeiten_stufe == '1'} selected {/if}>1&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="2" {if $prof_bearbeiten_stufe == '2'} selected {/if}>2&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="3" {if $prof_bearbeiten_stufe == '3'} selected {/if}>3&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="4" {if $prof_bearbeiten_stufe == '4'} selected {/if}>4&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="5" {if $prof_bearbeiten_stufe == '5'} selected {/if}>5&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="6" {if $prof_bearbeiten_stufe == '6'} selected {/if}>6&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="7" {if $prof_bearbeiten_stufe == '7'} selected {/if}>7&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="8" {if $prof_bearbeiten_stufe == '8'} selected {/if}>8&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="9" {if $prof_bearbeiten_stufe == '9'} selected {/if}>9&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="10" {if $prof_bearbeiten_stufe == '10'} selected {/if}>10&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="11" {if $prof_bearbeiten_stufe == '11'} selected {/if}>11&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="12" {if $prof_bearbeiten_stufe == '12'} selected {/if}>12&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="13" {if $prof_bearbeiten_stufe == '13'} selected {/if}>13&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="14" {if $prof_bearbeiten_stufe == '14'} selected {/if}>14&nbsp;&nbsp;&nbsp;&nbsp;</option>
                            <option value="15" {if $prof_bearbeiten_stufe == '15'} selected {/if}>15&nbsp;&nbsp;&nbsp;&nbsp;</option>
                           </select>
                          </div>

                          <script type="text/javascript">
                           function showDiv(select){
                             if(select.value=='A9'||select.value=='A10'||select.value=='A11'||select.value=='A12'||select.value=='A13'||select.value=='A14'||select.value=='A15'||select.value=='A16'){
                              document.getElementById('hidden_divA').style.display = "block";
                              document.getElementById('hidden_divC').style.display = "none";
                             }
                             if(select.value=='C1'||select.value=='C2'||select.value=='C3'||select.value=='C4'){
                              document.getElementById('hidden_divA').style.display = "none";
                              document.getElementById('hidden_divC').style.display = "block";
                             }
                             if(select.value=='W1'||select.value=='W2'||select.value=='W3'){
                              document.getElementById('hidden_divA').style.display = "none";
                              document.getElementById('hidden_divC').style.display = "none";
                             }
                           }
                          </script>
                        </td>
                      </tr>
                      <tr>
                        <td width="40%">
                          <b>Besoldungszuweisung:</b>
                        </td>
                        <td width="60%">
                            <select size="1" id='zuweisung' name='zuweisung'>
                              {section name=table_data4 loop=$table_data4}
                              <option value="{$table_data4[table_data4].bzid}" {if $prof_bearbeiten_zuweisung == $table_data4[table_data4].bzid} selected {/if}>{$table_data4[table_data4].beschreibung}</option>
                              {/section}
                            </select>
                        </td>
                      </tr>
                  </table>
                  <br>
                  <br>
                  <table width='100%' border='0'>
                  <tr>
                    <td>
                      <b>Besoldungsstart</b>
                    </td>
                    <td>
                      <b>Besoldungsgruppe</b>
                    </td>
                    <td>
                      <b>Besoldungsstufe</b>
                    </td>
                    <td>
                      <b>Besoldungszuweisung</b>
                    </td>
                    <td align='center'>
                      <b>Aktionen</b>
                    </td>
                  <tr>
                    {section name=table_data2 loop=$table_data2}
                      <tr>
                        <td>
                          {$table_data2[table_data2].startdat_form}
                        </td>
                        <td>
                          {$table_data2[table_data2].besoldung}
                        </td>
                        <td>
                          {$table_data2[table_data2].stufeform}
                        </td>
                        <td>
                          {$table_data2[table_data2].zuweisung}
                        </td>
                        <td align='center'>
                          <a href=?action=auswahl&edit={$table_data2[table_data2].pbid}&did={$prof_bearbeiten_did}><img title = "Daten bearbeiten" border="0" height=10 src="./templates/{$global_template}/images/edit.png"></a>
                          &nbsp;
                          <a href=?action=del&pbid={$table_data2[table_data2].pbid}><img title = "Daten löschen" border="0" height=10 src="./templates/{$global_template}/images/drop.png"></a>
                        </td>
                      <tr>
                    {/section}
                   </table>
                <p align='center'>
                  <input type="submit" value="Besoldung speichern" name="B1">
                </p>
                </form>
                </fieldset>
			  </td>
			  <td width="50%" valign="top">
                <form action=?action=save_vza method="POST" name="besoldung">
                <fieldset width='50%'>
                <legend><b>Vollzeitäquivalente</b></legend>
                  <table width='100%' border='0'>
                    <tr>
                      <td width='40%'>
                        <b>Beginn der VZÄ ab:</b>
                      </td>
                      <td>
                                <input type='text' name='tag6' id='tag6' value='{$prof_bearbeiten_vza_startdat_tag}' size=1>.<input type='text' name='mon6' id='mon6' value='{$prof_bearbeiten_vza_startdat_mon}' size=1>.<input type='text' name='jahr6' id='jahr6' value='{$prof_bearbeiten_vza_startdat_jahr}' size=3>
                                <script language='JavaScript' type='text/javascript'>
                                  <!--
                                  	vza1 = new dynCalendar('vza1', 'calendarCallback', './datepicker/images/', '', '6');
                                  //-->
                                </script>
                      </td>
                    </tr>
                    <tr>
                      <td width="40%">
                        <b>Beschäftigungsgrad:</b>
                      </td>
                      <td>
                         <select size="1" id='umfang' name='umfang'>
                           <option value="1.00" {if $prof_bearbeiten_vza_prozent == '1.00'} selected {/if}>100&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.95" {if $prof_bearbeiten_vza_prozent == '0.95'} selected {/if}>95&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.90" {if $prof_bearbeiten_vza_prozent == '0.90'} selected {/if}>90&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.85" {if $prof_bearbeiten_vza_prozent == '0.85'} selected {/if}>85&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.80" {if $prof_bearbeiten_vza_prozent == '0.80'} selected {/if}>80&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.75" {if $prof_bearbeiten_vza_prozent == '0.75'} selected {/if}>75&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.70" {if $prof_bearbeiten_vza_prozent == '0.70'} selected {/if}>70&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.65" {if $prof_bearbeiten_vza_prozent == '0.65'} selected {/if}>65&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.60" {if $prof_bearbeiten_vza_prozent == '0.60'} selected {/if}>60&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.55" {if $prof_bearbeiten_vza_prozent == '0.55'} selected {/if}>55&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.50" {if $prof_bearbeiten_vza_prozent == '0.50'} selected {/if}>50&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.45" {if $prof_bearbeiten_vza_prozent == '0.45'} selected {/if}>45&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.40" {if $prof_bearbeiten_vza_prozent == '0.40'} selected {/if}>40&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.35" {if $prof_bearbeiten_vza_prozent == '0.35'} selected {/if}>35&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.30" {if $prof_bearbeiten_vza_prozent == '0.30'} selected {/if}>30&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.25" {if $prof_bearbeiten_vza_prozent == '0.25'} selected {/if}>25&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.20" {if $prof_bearbeiten_vza_prozent == '0.20'} selected {/if}>20&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.15" {if $prof_bearbeiten_vza_prozent == '0.15'} selected {/if}>15&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.10" {if $prof_bearbeiten_vza_prozent == '0.10'} selected {/if}>10&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.05" {if $prof_bearbeiten_vza_prozent == '0.05'} selected {/if}>5&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                           <option value="0.00" {if $prof_bearbeiten_vza_prozent == '0.00'} selected {/if}>0&nbsp;%&nbsp;&nbsp;&nbsp;</option>
                         </select>
                       </td>
                    </tr>
                  </table>
                  <br>
                  <br>
                  <table width='100%' border='0'>
                  <tr>
                    <td>
                      <b>VZÄ-Start</b>
                    </td>
                    <td>
                      <b>Beschäftigungsgrad</b>
                    </td>
                    <td align='center'>
                      <b>Aktionen</b>
                    </td>
                  <tr>
                    {section name=table_data3 loop=$table_data3}
                      <tr>
                        <td>
                          {$table_data3[table_data3].startdat_form}
                        </td>
                        <td>
                          {$table_data3[table_data3].anz_proz} %
                        </td>
                        <td align='center'>
                          <a href=?action=auswahl&edit_vza={$table_data3[table_data3].pad}&did={$prof_bearbeiten_did}><img title = "Daten bearbeiten" border="0" height=10 src="./templates/{$global_template}/images/edit.png"></a>
                          &nbsp;
                          <a href=?action=del_vza&pad={$table_data3[table_data3].pad}><img title = "Daten löschen" border="0" height=10 src="./templates/{$global_template}/images/drop.png"></a>
                        </td>
                      <tr>
                    {/section}
                   </table>
                <p align='center'>
                  <input type="submit" value="VZÄ speichern" name="B1">
                </p>
                </form>
                </fieldset>
			  </td>
		   </tr>
		   </table>

          </div>
        </td>
      </tr>
    </table>
  </body>
</html>
{/if}

{if $action == 'overview'}
{if $prof_bearbeiten_mandatory == '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>{$prof_bearbeiten_mandatory_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">{$prof_bearbeiten_mandatory_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="center"><b>{$prof_bearbeiten_mandatory_text}</b>
                  </p>
                  <p align="center"><a href="?">
                      <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 $prof_bearbeiten_mandatory == '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>{$prof_bearbeiten_overview_titel}</title>

  </head>
  <body onload="if (document.{$tinte_bearbeiten_form})document.{$tinte_bearbeiten_form}.{$tinte_bearbeiten_focus}.focus(); return false;">
    <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="80%" 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 width="95%" background="./templates/{$global_template}/images/box_top.gif">
                  <img height="10" src="./templates/{$global_template}/images/blank.gif" width="1"><br>
                  <font class="hd">{$prof_bearbeiten_overview_titel}</font><br>
                <td nowrap="nowrap" align="left" width="3%" background="./templates/{$global_template}/images/box_top.gif" valign="top"></td>
              <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">
                  <!-- hier inhalt -->


                  <form action=?action=save method="POST">
                    <table width="100%">
                      <tr>
                        <td>
                          <b>
                            Feld
                          </b>
                        </td>
                        <td>
                          <b>
                            Wert
                          </b>
                        </td>
                      </tr>

                      <tr>
                        <td>
                          {$prof_bearbeiten_field_titel}
                        </td>
                        <td>
                          {$prof_bearbeiten_titel}
                        </td>
                      </tr>
                      <tr>
                        <td>
                          {$prof_bearbeiten_overview_field_vorname}
                        </td>
                        <td>
                          {$prof_bearbeiten_vorname}
                        </td>
                      </tr>
                      <tr>
                        <td>
                          {$prof_bearbeiten_overview_field_nachname}
                        </td>
                        <td>
                          {$prof_bearbeiten_nachname}
                        </td>
                      </tr>
                      <tr>
                        <td>
                          &nbsp;
                        </td>
                        <td>
                          &nbsp;
                        </td>
                      </tr>
                      <tr>
                        <td>
                          {$prof_bearbeiten_field_gebtag}
                        </td>
                        <td>
                          {$prof_bearbeiten_gebtag}
                        </td>
                      </tr>
                      <tr>
                        <td>
                          {$prof_bearbeiten_field_zugang}
                        </td>
                        <td>
                          {$prof_bearbeiten_zugang}
                        </td>
                      </tr>
                      <tr>
                        <td>
                          {$prof_bearbeiten_field_weggang}
                        </td>
                        <td>
                          {$prof_bearbeiten_weggang}
                        </td>
                      </tr>
                      <tr>
                      <tr>
                        <td>
                          {$prof_bearbeiten_field_nachbes}
                        </td>
                        <td>
                          {$prof_bearbeiten_nachbes}
                        </td>
                      </tr>
                      <tr>
                        <td>
                          &nbsp;
                        </td>
                        <td>
                          &nbsp;
                        </td>
                      </tr>

                      <tr>
                        <td>
                          {$prof_bearbeiten_field_delta}
                        </td>
                        <td>
                          {$prof_bearbeiten_deltas}
                        </td>
                      </tr>
                      <tr>
                        <td>
                          &nbsp;
                        </td>
                        <td>
                          &nbsp;
                        </td>
                        <td>
                          &nbsp;
                        </td>
                      </tr>


                    </table>
                    <br><br>
                    <p align='center'>
                      <input type="button" value="Zur&uuml;ck" onclick="window.location.href = '?'">
                      &nbsp;
                      <input type="submit" value="Speichern" name="B1">
                    </p>
                  </form>
                  <!-- hier inhalt Ende -->
                </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}

{if $action == 'save'}
{if $prof_bearbeiten_exists == '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>{$prof_bearbeiten_exists_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">{$prof_bearbeiten_exists_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="center"><b>{$prof_bearbeiten_exists_text}</b>
                  </p>
                  <p align="center"><a href="?">
                      <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 $prof_bearbeiten_exists == '2'}
{if $prof_bearbeiten_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>{$prof_bearbeiten_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">{$prof_bearbeiten_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>{$prof_bearbeiten_inserterr_text}</b>
                    <br><br>
                    {$prof_bearbeiten_reason}
                  </p>
                  <p align="center"><a href="?">
                      <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 $prof_bearbeiten_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>{$prof_bearbeiten_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">{$prof_bearbeiten_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>
                  {$prof_bearbeiten_returnmal_text1}
                  <br><br>
                  </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}
{/if}