deputat/templates_c/ada4888fbd82e9c86a0d41b98d8dcb56c4b93d38_0.file.kat_anrede.html.php
2023-04-25 13:25:59 +02:00

145 lines
5.5 KiB
PHP
Executable File

<?php
/* Smarty version 3.1.29, created on 2019-11-15 14:29:57
from "/srv/www/htdocs-hvf/kurs/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_5dcea855c7a7f2_02867469',
'file_dependency' =>
array (
'ada4888fbd82e9c86a0d41b98d8dcb56c4b93d38' =>
array (
0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/kat_anrede.html',
1 => 1521026672,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_5dcea855c7a7f2_02867469 ($_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 }
}
}