<?php
/* Smarty version 3.1.29, created on 2022-06-02 06:56:46
  from "C:\xampp_7.4.24\htdocs\deputat\templates\modern\abschlussarbeiten.html" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_6298430e891475_15712244',
  'file_dependency' => 
  array (
    '0f666404f4bef42d1bc1d442f008d07b43fa1202' => 
    array (
      0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\abschlussarbeiten.html',
      1 => 1583413883,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_6298430e891475_15712244 ($_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<html>
  <head>
    <link type="text/css" rel="stylesheet" href="templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/css/styles_refill.css">
    <link rel="stylesheet" href="jquery/jquery-ui.css">
    <?php echo '<script'; ?>
 src="jquery/jquery-1.12.4.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="jquery/jquery-ui.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="jquery/globalize.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="jquery/globalize.culture.de-DE.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="jquery/jquery.mousewheel.js"><?php echo '</script'; ?>
>
    <style type="text/css">
      .spinner {
      width: 200px;
      height: 15px;
      font-size: 12px !important;
      }
    </style>
    <?php echo '<script'; ?>
>
      $( function() {
           $( ".spinner" ).spinner({
          change: function (event, ui) {
           if(this.name == 'basislvsgemlv'){
             gesvol_calc();
           }
          },
          spin: function (event, ui) {
           if(this.name == 'basislvsgemlv'){
             gesvol_calc();
           }
          },
          start: function (event, ui) {
           if(this.name == 'basislvsgemlv'){
	         gesvol_calc();
	       }
	      },
	      stop: function (event, ui) {
	        if(this.name == 'basislvsgemlv'){
	         gesvol_calc();
	        }
	      },

          step: 0.1,
          numberFormat: "i",
          min:0,
          decimals:0
        });
        Globalize.culture( "de-DE" );
      } );

         function trackKeys(evnt,regEx) {
         	var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which;
       	return !!String.fromCharCode(keyCode).match(regEx);
         }
       //-->
    <?php echo '</script'; ?>
>

    <?php echo '<script'; ?>
>
      function felder_einblenden() {
        /* Bei Master darf eine Betreuungspauschle eingegeben werden */
        if (document.getElementById("kaid").value == "2") {
          //<![CDATA[
          $(document).ready(function () {
            var id1 = "pauschaleblock1";
            var id2 = "pauschaleblock2";
            $("#" + id1).show();
            $("#" + id2).hide();
          });
          //]]>
        }else{
          //<![CDATA[
          $(document).ready(function () {
            var id1 = "pauschaleblock1";
            var id2 = "pauschaleblock2";
            $("#" + id1).hide();
            $("#" + id2).show();
          });
          //]]>
        }
      }
    <?php echo '</script'; ?>
>
  </head>
  <body onload="felder_einblenden();">
    <br />
    <br />
    <div class="header">
      <div>
        <div><?php echo $_smarty_tpl->tpl_vars['abschluss_titel']->value;?>
</div>
      </div>
    </div>
    <form action="?action=register" method='post' name='erfassen'>
      <div class="pat_list_box">
        <?php if ($_smarty_tpl->tpl_vars['abschluss_error']->value == '1') {?>
        <table width="70%" class="errorTable" align="center">
          <tr>
            <td>
              <img src="templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/pflichtfelder/achtung_gross.gif">
            </td>
            <td><b>Achtung!</b><br>
              <?php echo $_smarty_tpl->tpl_vars['abschluss_error_text']->value;?>

            </td>
          </tr>
        </table>
        <br />
        <?php }?>
        <?php if ($_smarty_tpl->tpl_vars['abschluss_abschluss']->value == '0') {?>
        <fieldset>
          <legend>
            <b>Abschlussarbeit erfassen</b>
          </legend>
          <br />
          <br />
          <table cellspacing="0" cellpadding="0" width="100%" border="0" class="StandardTable">
            <tr>
              <td width="20%" height="25">
                Name des Studierenden
              </td>
              <td valign="top">
                <input type="text" name="name"  id="name"  size="101" value="<?php echo $_smarty_tpl->tpl_vars['abschluss_value_name']->value;?>
">
              </td>
            </tr>
            <tr>
              <td width="20%" height="39">
                Art der Abschlussarbeit
              </td>
              <td valign="top">
                <select name="kaid" id="kaid" size=2 onchange='felder_einblenden();'>
                <?php
$__section_table_data1_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1'] : false;
$__section_table_data1_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data1']->value) ? count($_loop) : max(0, (int) $_loop));
$__section_table_data1_0_total = $__section_table_data1_0_loop;
$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = new Smarty_Variable(array());
if ($__section_table_data1_0_total != 0) {
for ($__section_table_data1_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] = 0; $__section_table_data1_0_iteration <= $__section_table_data1_0_total; $__section_table_data1_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']++){
?>
                <option value="<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['kaid'];?>
" <?php if ($_smarty_tpl->tpl_vars['abschluss_value_kaid']->value == $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['kaid']) {?> selected <?php }?> ><?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['bezeichnung'];?>
</option>
                <?php
}
}
if ($__section_table_data1_0_saved) {
$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = $__section_table_data1_0_saved;
}
?>
                </select>
              </td>
            </tr>
              <tr id="pauschaleblock1">
                <td width="20%" height="25">
                 Betreuungspauschale (LVS)
                </td>
                <td valign="top">
                  <input type="text" class="spinner" name="pauschale" id="pauschale" size="101" value="<?php echo $_smarty_tpl->tpl_vars['abschluss_value_pauschale']->value;?>
" onKeypress="return trackKeys(event,/[0-9,]/);">
                </td>
              </tr>
              <tr id="pauschaleblock2">
                <td width="20%" height="25">
                 &nbsp;
                </td>
                <td valign="top">
                  &nbsp;
                </td>
              </tr>
            <tr>
              <td width="20%" height="25">
                Semester
              </td>
              <td valign="top">
                <select name="semester" id="semester" size=2>
                <option value="WS" <?php if ($_smarty_tpl->tpl_vars['abschluss_value_semester']->value == "WS") {?> selected <?php }?> >Wintersemester</option>
                <option value="SS" <?php if ($_smarty_tpl->tpl_vars['abschluss_value_semester']->value == "SS") {?> selected <?php }?> >Sommersemester</option>
                </select>
              </td>
            </tr>
            <tr>
              <td>
                &nbsp;
              </td>
              <td>
                <br>
                <table width="70%" class="errorTable">
                  <tr>
                    <td>
                      <b>Informationen</b><br>
                      <ul>
                        <li>Es können höchstens <?php echo $_smarty_tpl->tpl_vars['abschluss_value_max_arbeiten']->value;?>
 Abschlussarbeiten pro Semester erfasst werden.</li>
                      </ul>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
          <br />
          <p align='center'>
            <input type='submit' name='senden' value="Speichern">
          </p>
          <br />
        </fieldset>
    </form>
    <br />
    <br />
    <fieldset>
    <legend>
    <b>Erfasste Abschlussarbeiten im Wintersemester</b>
    </legend>
    <table cellspacing="0" cellpadding="2" width="100%" border="1">
    <tr>
    <td width="5%">
    <b>lfd.Nr.</b>
    </td>
    <td width="20%">
    <b>Name</b>
    </td>
    <td width="20%">
    <b>Art</b>
    </td>
    <td  width="20%">
    <b>Semester</b>
    </td>
    <td width="10%">
    <b>Betreuungspauschale</b>
    </td>
    <td align="right" width="20%">
    <b>LVS</b>
    </td>
    <td align="center" width="5%">
    <b>Edit</b>
    </td>
    <tr>
    <?php
$__section_table_data2_1_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false;
$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop));
$__section_table_data2_1_total = $__section_table_data2_1_loop;
$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array());
if ($__section_table_data2_1_total != 0) {
for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){
$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration;
?>
    <?php if ((isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?>
    <tr>
    <td>
    <?php echo (isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?>

    </td>
    <td>
    <?php echo $_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['name'];?>

    </td>
    <td>
    <?php echo $_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['abschlussarbeit'];?>

    </td>
    <td>
    <?php echo $_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['semesterbez'];?>

    </td>
    <td align="right">
    <?php echo $_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['pauschale'];?>

    </td>
    <td align="right">
    <?php echo $_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?>

    </td>
    <td align="center">
    <a href=?edit=<?php echo $_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['daid'];?>
><img title = "Abschlussarbeit bearbeiten" border="0" height=10 src="templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/edit.png"></a>
    &nbsp;
    <a href="?action=del&daid=<?php echo $_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['daid'];?>
"><img title = 'Abschlussarbeit l&ouml;schen' border="0" height=10 src="templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/drop.png"></a>
    </td>
    </tr>
    <?php }?>
    <?php
}
}
if ($__section_table_data2_1_saved) {
$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved;
}
?>
    <tr>
    <td colspan="5">&nbsp;</td>
    <td align="right"><b>Summe: <?php echo $_smarty_tpl->tpl_vars['abschluss_value_ws_summe_lvs']->value;?>
</b></td>
    <td>&nbsp;</td>
    </tr>
    </table>
    </fieldset>
    <br />
    <fieldset>
    <legend>
    <b>Erfasste Abschlussarbeiten im Sommersemester</b>
    </legend>
    <table cellspacing="0" cellpadding="2" width="100%" border="1">
    <tr>
    <td width="5%">
    <b>lfd.Nr.</b>
    </td>
    <td width="20%">
    <b>Name</b>
    </td>
    <td width="20%">
    <b>Art</b>
    </td>
    <td width="20%">
    <b>Semester</b>
    </td>
    <td width="10%">
    <b>Betreuungspauschale</b>
    </td>
    <td align="right" width="20%">
    <b>LVS</b>
    </td>
    <td align="center" width="5%">
    <b>Edit</b>
    </td>
    <tr>
    <?php
$__section_table_data3_2_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3'] : false;
$__section_table_data3_2_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data3']->value) ? count($_loop) : max(0, (int) $_loop));
$__section_table_data3_2_total = $__section_table_data3_2_loop;
$_smarty_tpl->tpl_vars['__smarty_section_table_data3'] = new Smarty_Variable(array());
if ($__section_table_data3_2_total != 0) {
for ($__section_table_data3_2_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] = 0; $__section_table_data3_2_iteration <= $__section_table_data3_2_total; $__section_table_data3_2_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']++){
$_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] = $__section_table_data3_2_iteration;
?>
    <?php if ((isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null) != '') {?>
    <tr>
    <td>
    <?php echo (isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null);?>

    </td>
    <td>
    <?php echo $_smarty_tpl->tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['name'];?>

    </td>
    <td>
    <?php echo $_smarty_tpl->tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['abschlussarbeit'];?>

    </td>
    <td>
    <?php echo $_smarty_tpl->tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['semesterbez'];?>

    </td>
    <td align="right">
    <?php echo $_smarty_tpl->tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['pauschale'];?>

    </td>
    <td align="right">
    <?php echo $_smarty_tpl->tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['lvs'];?>

    </td>
    <td align="center">
    <a href=?edit=<?php echo $_smarty_tpl->tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['daid'];?>
><img title = "Abschlussarbeit bearbeiten" border="0" height=10 src="templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/edit.png"></a>
    &nbsp;
    <a href="?action=del&daid=<?php echo $_smarty_tpl->tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['daid'];?>
"><img title = 'Abschlussarbeit l&ouml;schen' border="0" height=10 src="templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/drop.png"></a>
    </td>
    </tr>
    <?php }?>
    <?php
}
}
if ($__section_table_data3_2_saved) {
$_smarty_tpl->tpl_vars['__smarty_section_table_data3'] = $__section_table_data3_2_saved;
}
?>
    <tr>
    <td colspan="5">&nbsp;</td>
    <td align="right"><b>Summe: <?php echo $_smarty_tpl->tpl_vars['abschluss_value_ss_summe_lvs']->value;?>
</b></td>
    <td>&nbsp;</td>
    </tr>
    </table>
    </fieldset>
    <?php }?>
    <br />
    <br />
    </div>
  </body>
</html>
<?php }
}
}
