276 lines
7.9 KiB
HTML
276 lines
7.9 KiB
HTML
{if $action == ''}
|
|
<!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">
|
|
<script src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
|
<!-- nochmals bootstrap.css mit Erweiterungen vom Dashboard -->
|
|
<link href="css/styles.css" rel="stylesheet" />
|
|
<!-- icons in nav-->
|
|
|
|
<!-- data Table: https://datatables.net/ -->
|
|
<script src="../bootstrap/data-table/jquery.min.js"></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>
|
|
<script type="text/javascript" src="../bootstrap/data-table/jquery.dataTables.min.js"></script>
|
|
<script type="text/javascript" src="../bootstrap/data-table/dataTables.rowReorder.min.js"></script>
|
|
<script type="text/javascript" src="../bootstrap/data-table/dataTables.bootstrap5.min.js"></script>
|
|
|
|
<script src="js/all.js" crossorigin="anonymous"></script>
|
|
<script src="../jquery/jquery-3.4.1.min.js"></script>
|
|
<link rel="stylesheet" href="../bootstrap/node_modules/bootstrap-icons/font/bootstrap-icons.css">
|
|
<style>
|
|
.table-responsive {
|
|
margin: 30px 0;
|
|
}
|
|
.table-wrapper {
|
|
min-width: 1000px;
|
|
background: #fff;
|
|
padding: 20px 25px;
|
|
border-radius: 3px;
|
|
box-shadow: 0 1px 1px rgba(0,0,0,.05);
|
|
}
|
|
.table-title {
|
|
padding-bottom: 15px;
|
|
background: #299be4;
|
|
color: #fff;
|
|
padding: 16px 30px;
|
|
margin: -20px -25px 10px;
|
|
border-radius: 3px 3px 0 0;
|
|
}
|
|
.table-title h2 {
|
|
margin: 5px 0 0;
|
|
font-size: 24px;
|
|
}
|
|
.table-title .btn {
|
|
color: #566787;
|
|
float: right;
|
|
font-size: 13px;
|
|
background: #fff;
|
|
border: none;
|
|
min-width: 50px;
|
|
border-radius: 2px;
|
|
border: none;
|
|
outline: none !important;
|
|
margin-left: 10px;
|
|
}
|
|
.table-title .btn:hover, .table-title .btn:focus {
|
|
color: #566787;
|
|
background: #f2f2f2;
|
|
}
|
|
.table-title .btn i {
|
|
float: left;
|
|
font-size: 21px;
|
|
margin-right: 5px;
|
|
}
|
|
.table-title .btn span {
|
|
float: left;
|
|
margin-top: 2px;
|
|
}
|
|
table.table tr th, table.table tr td {
|
|
border-color: #e9e9e9;
|
|
padding: 12px 15px;
|
|
vertical-align: middle;
|
|
}
|
|
table.table tr th:first-child {
|
|
width: 60px;
|
|
}
|
|
table.table tr th:last-child {
|
|
width: 100px;
|
|
}
|
|
table.table-striped tbody tr:nth-of-type(odd) {
|
|
background-color: #fcfcfc;
|
|
}
|
|
table.table-striped.table-hover tbody tr:hover {
|
|
background: #f5f5f5;
|
|
}
|
|
table.table th i {
|
|
font-size: 13px;
|
|
margin: 0 5px;
|
|
cursor: pointer;
|
|
}
|
|
table.table td:last-child i {
|
|
opacity: 0.9;
|
|
font-size: 22px;
|
|
margin: 0 5px;
|
|
}
|
|
table.table td a {
|
|
font-weight: bold;
|
|
color: #566787;
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
}
|
|
table.table td a:hover {
|
|
color: #2196F3;
|
|
}
|
|
table.table td a.settings {
|
|
color: #2196F3;
|
|
}
|
|
table.table td a.delete {
|
|
color: #F44336;
|
|
}
|
|
table.table td i {
|
|
font-size: 19px;
|
|
}
|
|
table.table .avatar {
|
|
border-radius: 50%;
|
|
vertical-align: middle;
|
|
margin-right: 10px;
|
|
}
|
|
.status {
|
|
font-size: 30px;
|
|
margin: 2px 2px 0 0;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
line-height: 10px;
|
|
}
|
|
.pagination {
|
|
float: right;
|
|
margin: 0 0 5px;
|
|
}
|
|
.pagination li a {
|
|
border: none;
|
|
font-size: 13px;
|
|
min-width: 30px;
|
|
min-height: 30px;
|
|
color: #999;
|
|
margin: 0 2px;
|
|
line-height: 30px;
|
|
border-radius: 2px !important;
|
|
text-align: center;
|
|
padding: 0 6px;
|
|
}
|
|
.pagination li a:hover {
|
|
color: #666;
|
|
}
|
|
.pagination li.active a, .pagination li.active a.page-link {
|
|
background: #03A9F4;
|
|
}
|
|
.pagination li.active a:hover {
|
|
background: #0397d6;
|
|
}
|
|
.pagination li.disabled i {
|
|
color: #ccc;
|
|
}
|
|
.pagination li i {
|
|
font-size: 16px;
|
|
padding-top: 6px
|
|
}
|
|
.hint-text {
|
|
float: left;
|
|
margin-top: 10px;
|
|
font-size: 13px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="sb-nav-fixed">
|
|
<div id="navtop"></div>
|
|
{literal}
|
|
<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");
|
|
});
|
|
</script>
|
|
{/literal}
|
|
<div id="layoutSidenav">
|
|
<!-- Navigation left -->
|
|
<div id="navleft"></div>
|
|
<div id="layoutSidenav_content">
|
|
<main>
|
|
<!--Anwendung-->
|
|
<script src="../js/components/admin_create_user.js"></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>
|
|
{section name=table_data loop=$table_data}
|
|
<tr>
|
|
<td>{$table_data[table_data].vorname}</td>
|
|
<td>{$table_data[table_data].nachname}</td>
|
|
<td class="d-none d-lg-table-cell">{$table_data[table_data].mail}</td>
|
|
<td class="d-none d-lg-table-cell">{$table_data[table_data].last_login}</td>
|
|
<td class="d-none d-lg-table-cell">
|
|
<!--
|
|
# 4 Neu
|
|
# 3 Deaktiviert
|
|
# 2 Inaktiv
|
|
# 1 Aktiv
|
|
-->
|
|
{if $table_data[table_data].status == '4'}
|
|
<span class="status text-secondary">•</span> Neu
|
|
{/if}
|
|
{if $table_data[table_data].status == '3'}
|
|
<span class="status text-danger">•</span> Deaktiviert
|
|
{/if}
|
|
{if $table_data[table_data].status == '2'}
|
|
<span class="status text-danger">•</span> Inaktiv
|
|
{/if}
|
|
{if $table_data[table_data].status == '1'}
|
|
<span class="status text-success">•</span> Aktiv
|
|
{/if}
|
|
</td>
|
|
<td>
|
|
<a href="create_user.php?edituid={$table_data[table_data].uid}" class="settings" title="Edit User" data-toggle="tooltip"><i class="fas fa fa-cog"></i></a>
|
|
|
|
{if $table_data[table_data].aktiv == 1}
|
|
<a href="#" class="settings text-danger" id="disable" onclick="disableuser({$table_data[table_data].uid});" title="Lock User" data-toggle="tooltip"><i class="fas fa fa-lock"></i></a>
|
|
{else}
|
|
<a href="#" class="settings text-success" id="enable" onclick="enableuser({$table_data[table_data].uid});" title="Unlock User" data-toggle="tooltip"><i class="fas fa fa-unlock"></i></a>
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
{/section}
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="msg"></div>
|
|
</main>
|
|
<!-- footer -->
|
|
<div id="footer"></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
<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',
|
|
},
|
|
});
|
|
});
|
|
</script>
|
|
</html>
|
|
{/if}
|