<?php
/* Smarty version 3.1.29, created on 2018-03-16 10:44:31
  from "D:\xampp\htdocs\kurs\utf8\deputat\templates\modern\kat_anrede.html" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_5aab91ff16d671_95512842',
  'file_dependency' => 
  array (
    '673788c6acd1ed71f64db45fa3fd9942adbc4728' => 
    array (
      0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\kat_anrede.html',
      1 => 1521026673,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5aab91ff16d671_95512842 ($_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">
  </head>
  <body>
    <br />
    <br />
    <div class="header">
      <div>
        <div><?php echo $_smarty_tpl->tpl_vars['anrede_titel']->value;?>
</div>
      </div>
    </div>
    <form action="?action=edit" method='post' name='erfassen'>
      <div class="pat_list_box">
        <?php if ($_smarty_tpl->tpl_vars['anrede_pflichtfelder']->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['anrede_error_text']->value;?>

            </td>
          </tr>
        </table>
        <br>
        <?php }?>
        <fieldset>
          <legend>
            <b>Anrede erstellen / bearbeiten</b>
          </legend>
          <br />
          <br />
          <p align="center">
            <select size="10" id='anrede' name='anrede'>
              <option style="font-weight:bold;font-style: italic;" value="new">Neue Anrede erstellen&nbsp;&nbsp;&nbsp;&nbsp;</option>
              <option disabled>&nbsp;</option>
              <?php
$__section_table_data_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data'] : false;
$__section_table_data_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data']->value) ? count($_loop) : max(0, (int) $_loop));
$__section_table_data_0_total = $__section_table_data_0_loop;
$_smarty_tpl->tpl_vars['__smarty_section_table_data'] = new Smarty_Variable(array());
if ($__section_table_data_0_total != 0) {
for ($__section_table_data_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] = 0; $__section_table_data_0_iteration <= $__section_table_data_0_total; $__section_table_data_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']++){
?>
              <option value="<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['arid'];?>
" <?php if ($_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['select'] == 'Y') {?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['bezeichnung'];?>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
              <?php
}
}
if ($__section_table_data_0_saved) {
$_smarty_tpl->tpl_vars['__smarty_section_table_data'] = $__section_table_data_0_saved;
}
?>
            </select>
            <br />
            <br />
            <br />
            <input type="submit" name="senden" value="Weiter">
          </p>
          <br />
        </fieldset>
    </form>
    <br />
    </div>
  </body>
</html>
<?php }
if ($_smarty_tpl->tpl_vars['action']->value == 'edit') {?>
<html>
  <head>
    <link type="text/css" rel="stylesheet" href="templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/css/styles_refill.css">
  </head>
  <body onload="if(document.erfassen)document.erfassen.anrede_bez.focus();return false;">
    <br />
    <br />
    <div class="header">
      <div>
        <div><?php echo $_smarty_tpl->tpl_vars['anrede_edit_titel']->value;?>
</div>
      </div>
    </div>
    <div class="pat_list_box">
    <form action="?action=save" method='post' name='erfassen'>
      <fieldset>
        <br />
        <br />
        <p align="center">
          <?php if ($_smarty_tpl->tpl_vars['anrede_new']->value == 1) {
echo $_smarty_tpl->tpl_vars['anrede_edit_desc_new']->value;?>
:&nbsp;<?php }?>
          <?php if ($_smarty_tpl->tpl_vars['anrede_new']->value == 0) {
echo $_smarty_tpl->tpl_vars['anrede_edit_desc_exist']->value;?>
:&nbsp;<?php }?>
          <input value="<?php echo $_smarty_tpl->tpl_vars['anrede_sav_value']->value;?>
" type="text" name="anrede_bez" size="30">
          <br />
          <br />
          <input type="submit" name="senden" value="Speichern">
          <?php if ($_smarty_tpl->tpl_vars['anrede_new']->value == 0) {?>

            <input type="button" value="Diesen Wert löschen" onclick="window.location.href = '?action=del'">
            &nbsp;
          <?php }?>
        </p>
        <br />
      </fieldset>
    </form>
    <br />
    </div>
  </body>
</html>
<?php }
}
}
