dvm/templates_c/4a8121ce434eebba33e09221697c734993efc8b9_0.file.kand_del.html.php
2022-11-28 10:27:30 +01:00

198 lines
6.9 KiB
PHP
Executable File

<?php
/* Smarty version 3.1.29, created on 2022-02-10 06:42:01
from "/srv/www/htdocs-hvf/kurs/dvm/templates/modern/admin/kand_del.html" */
if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
'has_nocache_code' => false,
'version' => '3.1.29',
'unifunc' => 'content_6204a5a99086a9_61632921',
'file_dependency' =>
array (
'4a8121ce434eebba33e09221697c734993efc8b9' =>
array (
0 => '/srv/www/htdocs-hvf/kurs/dvm/templates/modern/admin/kand_del.html',
1 => 1644471545,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_6204a5a99086a9_61632921 ($_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">
<?php echo '<script'; ?>
src="../jquery/jquery-1.12.4.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
src="../jquery/bootstrap.min.js"><?php echo '</script'; ?>
>
<link href="../jquery/bootstrap.min.css" rel="stylesheet" />
<style>
select{
width:450px;
}
#inner {
display: table;
margin: 0 auto;
width:330px;
}
#outer {
width:100%
}
</style>
<?php echo '<script'; ?>
>
$(document).ready(function(){
load_data();
function load_data(query)
{
$.ajax({
url:"fetch.php",
method:"post",
data:{query:query,
script:"kand_del"},
success:function(data)
{
/* $('#result').html(data);*/
/* console.log(data); */
$("#user").empty().append(data);
}
});
}
$('#search_text').keyup(function(){
var search = $(this).val();
if(search != '')
{
load_data(search);
}
else
{
load_data();
}
});
});
<?php echo '</script'; ?>
>
</head>
<body onload="if(document.nachfrage)document.nachfrage.search_text.focus();return false;">
<form action="?action=nachfrage" method='post' name='nachfrage'>
<?php if ($_smarty_tpl->tpl_vars['termine_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['termine_error_text']->value;?>
</td>
</tr>
</table>
<br />
<?php }?>
<fieldset>
<legend>
<b>Kandidat löschen</b>
</legend>
<br />
<br />
<p align='center'>Kandidaten können gelöscht werden, solange sie noch nicht am Test teilgenommen haben.</p>
<p align="center">
<div id="outer">
<div id="inner">
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">Suche</span>
<input type="text" name="search_text" id="search_text" placeholder="Kandidaten suchen" class="form-control" />
</div>
</div>
</div>
</div>
<br>
<p align="center">
<select id="user" name="user" size=15>
<?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)]['ka_id'];?>
"><?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)]['nachname'];?>
, <?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)]['vorname'];?>
(<?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)]['geb_format'];?>
)</option>
<?php
}
}
if ($__section_table_data1_0_saved) {
$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = $__section_table_data1_0_saved;
}
?>
</select>
</p>
<br />
<p align='center'>
<input type='submit' name='senden' value="Kandidat löschen">
</p>
<br />
</fieldset>
</form>
<br />
<br />
<br />
<br />
</body>
</html>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['action']->value == 'nachfrage') {?>
<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>
<fieldset>
<legend>
<b>Löschbestätigung</b>
</legend>
<br />
<br />
<p align="center">
M&ouml;chten sie Kandidat/in <b><u><?php echo $_smarty_tpl->tpl_vars['kand_name']->value;?>
</u></b> wirklich l&ouml;schen?<br><br>
<a href="?"><img title = "Nein" border="0" src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/nein.gif"></a>
&nbsp;
<a href="?action=delkand&ka_id=<?php echo $_smarty_tpl->tpl_vars['kand_ka_id']->value;?>
"><img title = "Dokument l&ouml;schen"border="0" src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/ja.gif"></a>
<br>
<br>
</fieldset>
<br />
<br />
<br />
<br />
</body>
</html>
<?php }
}
}