198 lines
9.3 KiB
PHP
198 lines
9.3 KiB
PHP
<?php
|
|
/* Smarty version 3.1.39, created on 2023-03-28 18:40:17
|
|
from 'F:\git\survey\templates\modern\dashboard\edit_user.html' */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '3.1.39',
|
|
'unifunc' => 'content_64231871f064b3_97258353',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'79043b0398a7fe1f928c28aa43fc5b429e06493b' =>
|
|
array (
|
|
0 => 'F:\\git\\survey\\templates\\modern\\dashboard\\edit_user.html',
|
|
1 => 1680021613,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_64231871f064b3_97258353 (Smarty_Internal_Template $_smarty_tpl) {
|
|
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
|
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<title>JU & MI Benutzer 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">
|
|
<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-->
|
|
|
|
<!-- data Table: https://datatables.net/ -->
|
|
<?php echo '<script'; ?>
|
|
src="../bootstrap/data-table/jquery.min.js"><?php echo '</script'; ?>
|
|
>
|
|
<link rel="stylesheet" href="../bootstrap/data-table/dataTables.bootstrap5.min.css"></style>
|
|
<link rel="stylesheet" href="../bootstrap/data-table/rowReorder.dataTables.min.css"></style>
|
|
<?php echo '<script'; ?>
|
|
type="text/javascript" src="../bootstrap/data-table/jquery.dataTables.min.js"><?php echo '</script'; ?>
|
|
>
|
|
<?php echo '<script'; ?>
|
|
type="text/javascript" src="../bootstrap/data-table/dataTables.rowReorder.min.js"><?php echo '</script'; ?>
|
|
>
|
|
<?php echo '<script'; ?>
|
|
type="text/javascript" src="../bootstrap/data-table/dataTables.bootstrap5.min.js"><?php echo '</script'; ?>
|
|
>
|
|
<link rel="stylesheet" href="../bootstrap/data-table/jumistyle.css"></style>
|
|
|
|
<?php echo '<script'; ?>
|
|
src="js/all.js" crossorigin="anonymous"><?php echo '</script'; ?>
|
|
>
|
|
<?php echo '<script'; ?>
|
|
src="../jquery/jquery-3.4.1.min.js"><?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_create_user.js"><?php echo '</script'; ?>
|
|
>
|
|
|
|
<div class="container-fluid">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<i class="fas fa-edit me-1"></i>
|
|
Benutzer bearbeiten
|
|
</div>
|
|
<div class="card-body">
|
|
|
|
|
|
<!-- https://datatables.net/download/release -->
|
|
<table id="myTable" class="table table-striped table-bordered table-responsive table-hover" >
|
|
<thead>
|
|
<tr>
|
|
<th>Vorname</th>
|
|
<th>Nachname</th>
|
|
<th class="d-none d-lg-table-cell"> Mail</th>
|
|
<th class="d-none d-lg-table-cell">Letzter Login</th>
|
|
<th class="d-none d-lg-table-cell">Status</th>
|
|
<th>Aktion</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$__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']++){
|
|
?>
|
|
<tr>
|
|
<td><?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)]['vorname'];?>
|
|
</td>
|
|
<td><?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)]['nachname'];?>
|
|
</td>
|
|
<td class="d-none d-lg-table-cell"><?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)]['mail'];?>
|
|
</td>
|
|
<td class="d-none d-lg-table-cell"><?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)]['last_login'];?>
|
|
</td>
|
|
<td class="d-none d-lg-table-cell">
|
|
<!--
|
|
# 4 Neu
|
|
# 3 Deaktiviert
|
|
# 2 Inaktiv
|
|
# 1 Aktiv
|
|
-->
|
|
<?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)]['status'] == '4') {?>
|
|
<span class="status text-secondary">•</span> Neu
|
|
<?php }?>
|
|
<?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)]['status'] == '3') {?>
|
|
<span class="status text-danger">•</span> Deaktiviert
|
|
<?php }?>
|
|
<?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)]['status'] == '2') {?>
|
|
<span class="status text-danger">•</span> Inaktiv
|
|
<?php }?>
|
|
<?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)]['status'] == '1') {?>
|
|
<span class="status text-success">•</span> Aktiv
|
|
<?php }?>
|
|
</td>
|
|
<td>
|
|
<a href="create_user.php?edituid=<?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)]['uid'];?>
|
|
" class="settings" title="Edit User" data-toggle="tooltip"><i class="fas fa fa-cog"></i></a>
|
|
|
|
<?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)]['aktiv'] == 1) {?>
|
|
<a href="#" class="settings text-danger" id="disable" onclick="disableuser(<?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)]['uid'];?>
|
|
);" title="Lock User" data-toggle="tooltip"><i class="fas fa fa-lock"></i></a>
|
|
<?php } else { ?>
|
|
<a href="#" class="settings text-success" id="enable" onclick="enableuser(<?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)]['uid'];?>
|
|
);" title="Unlock User" data-toggle="tooltip"><i class="fas fa fa-unlock"></i></a>
|
|
<?php }?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="msg"></div>
|
|
</main>
|
|
<!-- footer -->
|
|
<div id="footer"></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
<?php echo '<script'; ?>
|
|
>
|
|
$(document).ready(function(){
|
|
var table = new DataTable('#myTable', {
|
|
rowReorder: true,
|
|
pageLength: 5,
|
|
language: {
|
|
url: '//cdn.datatables.net/plug-ins/1.13.4/i18n/de-DE.json',
|
|
search: "",
|
|
lengthMenu: "_MENU_ Zeilen",
|
|
},
|
|
});
|
|
});
|
|
<?php echo '</script'; ?>
|
|
>
|
|
</html>
|
|
<?php }
|
|
}
|
|
}
|