172 lines
8.5 KiB
PHP
172 lines
8.5 KiB
PHP
<?php
|
|
/* Smarty version 3.1.39, created on 2023-03-31 07:31:57
|
|
from 'C:\xampp_8.0.9\htdocs\survey\templates\modern\dashboard\survey_edit.html' */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '3.1.39',
|
|
'unifunc' => 'content_6426704dae6892_07876676',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'5473cec3045fdc71e0e4856581f2d1efb812d964' =>
|
|
array (
|
|
0 => 'C:\\xampp_8.0.9\\htdocs\\survey\\templates\\modern\\dashboard\\survey_edit.html',
|
|
1 => 1680240591,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_6426704dae6892_07876676 (Smarty_Internal_Template $_smarty_tpl) {
|
|
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
|
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<title>JU & MI Umfragen bearbeiten</title>
|
|
<link rel="stylesheet" href="../jquery/jquery-ui.css">
|
|
<link rel="stylesheet" href="../jquery/jquery.timepicker.min.css">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<?php echo '<script'; ?>
|
|
src="../jquery/jquery-3.4.1.min.js"><?php echo '</script'; ?>
|
|
>
|
|
<link href="../bootstrap/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<?php echo '<script'; ?>
|
|
src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"><?php echo '</script'; ?>
|
|
>
|
|
<!-- nochmals bootstrap.css mit Erweiterungen vom Dashboard -->
|
|
<link href="css/styles.css" rel="stylesheet" />
|
|
<!-- icons in nav-->
|
|
<?php echo '<script'; ?>
|
|
src="js/all.js" crossorigin="anonymous"><?php echo '</script'; ?>
|
|
>
|
|
|
|
<link rel="stylesheet" href="../bootstrap/node_modules/bootstrap-icons/font/bootstrap-icons.css">
|
|
|
|
</head>
|
|
<body class="sb-nav-fixed">
|
|
<div id="navtop"></div>
|
|
|
|
<?php echo '<script'; ?>
|
|
>
|
|
$(function(){
|
|
// im Navbar muss der toggle in der Callbackfunktion definiert werden. Sonst findet jquery getelementbyID nicht
|
|
$("#navtop").load('navtop.php', null, function(){$.getScript('js/scripts.js');});
|
|
$("#navleft").load("nav.php");
|
|
$("#footer").load("footer.php");
|
|
});
|
|
<?php echo '</script'; ?>
|
|
>
|
|
|
|
<div id="layoutSidenav">
|
|
<!-- Navigation left -->
|
|
<div id="navleft"></div>
|
|
<div id="layoutSidenav_content">
|
|
<main>
|
|
<!--Anwendung-->
|
|
<?php echo '<script'; ?>
|
|
src="../js/components/admin_edit.js"><?php echo '</script'; ?>
|
|
>
|
|
|
|
<div class="container-fluid">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<i class="fas fa-edit me-1"></i>
|
|
Erfasste Umfragen
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<!-- bei mobilen Geäten ausblenden: d-none d-lg-block -->
|
|
<div class="d-none d-lg-block"><b>Nr</b></div>
|
|
<div class="d-none d-lg-block"><b>Überschrift</b></div>
|
|
<div class="d-none d-lg-block"><b>Startdatum</b></div>
|
|
<div class="d-none d-lg-block"><b>Enddatum</b></div>
|
|
<div class="d-none d-lg-block"><b>Bearbeiten</b></div>
|
|
</div>
|
|
<?php
|
|
$__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']++){
|
|
$_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] = $__section_table_data1_0_iteration;
|
|
?>
|
|
<div class="row mt-0 mb-0">
|
|
<div class="col-1 col-lg-1 mb-2 mb-sm-3"><?php echo (isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] : null);?>
|
|
</div>
|
|
<div class="col-8 col-lg-5 mb-2 mb-sm-3"><?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)]['headline'];?>
|
|
|
|
<div class="d-block d-lg-none"><?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)]['datum_von'];?>
|
|
-</div>
|
|
<div class="d-block d-lg-none"><?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)]['datum_bis'];?>
|
|
</div>
|
|
</div>
|
|
<div class="d-none d-lg-block col-lg-2 mb-2 mb-sm-3"><?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)]['datum_von'];?>
|
|
</div>
|
|
<div class="d-none d-lg-block col-lg-2 mb-2 mb-sm-3"><?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)]['datum_bis'];?>
|
|
</div>
|
|
<div class="col-3 col-lg-2 mb-2 mb-sm-3">
|
|
<a href="survey_erfassen.php?edit=1&umid=<?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)]['umid'];?>
|
|
" class="btn btn-primary btn-rounded btn-icon btn-sm"><i class="fa fa-edit" style="width:18px;"></i></a>
|
|
<a class="btn btn-success btn-rounded btn-icon btn-sm" data-bs-toggle="modal" 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)]['umid'];?>
|
|
" onclick="ShowDetails(this)" data-bs-target="#exampleModal"><i class="fa fa-eye" style="width:18px;"></i></a>
|
|
<a class="btn btn-danger btn-rounded btn-icon btn-sm" onclick="onClickDeleteSurvey(<?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)]['umid'];?>
|
|
)"><i class="fa fa-trash" style="width:18px;"></i></a>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
|
|
<!-- Modal -->
|
|
<div class="modal" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="exampleModalLabel">Umfrageergebnis</h5>
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
</div>
|
|
<div class="modal-body">
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
|
<!--<button type="button" class="btn btn-primary">Save changes</button>-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Lösen Sie das Modal mit einem Button aus -->
|
|
|
|
|
|
|
|
|
|
<?php echo '<script'; ?>
|
|
>
|
|
function ShowDetails(a){
|
|
let value = a.getAttribute("value");
|
|
$( '.modal-body' ).load( 'result_latest.php?editumid='+value , function () {
|
|
$( '#exampleModal' ).modal({show: true });
|
|
});
|
|
}
|
|
<?php echo '</script'; ?>
|
|
>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<!-- footer -->
|
|
<div id="footer"></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
<?php }
|
|
}
|
|
}
|