Mobile Integration: * in footer.php js eingefügt damit das mobile Menu funktioniert * in menu.php bzw. app.css neue Klasse eingefügt mobile-hide um in der mobilen Version Menupünkte zu verstecken Pop Multiple Networks * Pops können nun mehrere Netzgebiete haben * Netzgebiete und Pop ansicht angepasst * (Script muss ausgeführt werden um die PopNetwork Table vom Bestand zu befüllen) DataTables responsible update * Datatables update und responsible addon * Diverse Anpassungen für Responsible in: - Pops, Geräte Hersteller, Geräte Typen, Devices, Benutzer Anpassungen auf neu getProperty Migrations * PopNetwork * Poprackmodulepatch
216 lines
10 KiB
PHP
216 lines
10 KiB
PHP
<?php
|
|
?>
|
|
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/header.php"); ?>
|
|
<!-- start page title -->
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="page-title-box">
|
|
<div class="page-title-right">
|
|
<ol class="breadcrumb m-0">
|
|
<li class="breadcrumb-item"><a href="<?= self::getUrl("Dashboard") ?>"><?= MFAPPNAME_SLUG ?></a>
|
|
</li>
|
|
<li class="breadcrumb-item active">Gerätetyp</li>
|
|
</ol>
|
|
</div>
|
|
<h4 class="page-title">Gerätetyp</h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end page title -->
|
|
|
|
|
|
<div class="card">
|
|
<div class="card-body mb-3">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="float-left">
|
|
<h4 class="header-title">Liste aller Gerätetypen</h4>
|
|
</div>
|
|
<div class="float-right">
|
|
<a class="btn btn-primary mb-2" href="<?= self::getUrl("Devicetype", "add") ?>"><i
|
|
class="fas fa-plus"></i> Neuen Gerätetyp anlegen</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- --><?php //include(realpath(dirname(__FILE__) . "/../") . "/tpl/pagination.php"); ?>
|
|
<!-- --><?php //include(realpath(dirname(__FILE__) . "/../") . "/tpl/pagination-summary.php"); ?>
|
|
|
|
<table id="datatable" class="table table-striped table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th class="text-center">Hersteller</th>
|
|
<th class="text-right">Preis</th>
|
|
<th class="text-right">max. Leistung</th>
|
|
<th class="text-right">erstellt von</th>
|
|
<th class="edit-weight"></th>
|
|
</tr>
|
|
<tr id="filterrow">
|
|
<th>Name</th>
|
|
<th>Hersteller</th>
|
|
<th>Preis</th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
|
|
<thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($devicetypes as $devicetype): ?>
|
|
|
|
<tr>
|
|
<td><?= $devicetype->name ?></td>
|
|
<td class="text-center"><?= $devicetype->devicemanufactor->name ?></td>
|
|
|
|
<td class="text-right"><?= $devicetype->price ?> €</td>
|
|
<td class="text-right"><?= $devicetype->power ?> Watt</td>
|
|
<td class="text-right"><?= $devicetype->creator->name ?>
|
|
(<?= date("d.m.Y , H:i", $devicetype->create) ?>)
|
|
</td>
|
|
|
|
<td style="text-align: left; letter-spacing: 4px; font-size: 1.1em;">
|
|
<a href="<?= self::getUrl("Devicetype", "edit", ["id" => $devicetype->id]) ?>"><i
|
|
class="far fa-edit" title="Bearbeiten"></i></a>
|
|
<a href="<?= self::getUrl("Devicetype", "delete", ["id" => $devicetype->id]) ?>"
|
|
onclick="if(!confirm('Gerätetyp wirklich löschen?')) return false;" class="text-danger"
|
|
title="Löschen"><i class="fas fa-trash"></i></a>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
var hidesearch=[5];
|
|
|
|
$(document).ready(function () {
|
|
|
|
});
|
|
</script>
|
|
|
|
|
|
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/footer.php"); ?> <div class="col-lg-10">
|
|
<a class="btn btn-primary mb-2"
|
|
href="<?= self::getUrl("UserProfile", "edit") ?>">Bearbeiten</a>
|
|
</div>
|
|
</div>
|
|
<div class="w-100 border-bottom"></div>
|
|
|
|
<h4 class=" mb-2 mt-3">Passwort ändern</h4>
|
|
<form class="form-horizontal" method="post"
|
|
action="<?= self::getUrl("UserProfile", "changepwd") ?>">
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="oldpwd">altes Passwort</label>
|
|
<div class="col-lg-2">
|
|
<input type="password" class="form-control" name="oldpwd" id="oldpwd"
|
|
value="">
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="newpwd">neues Passwort</label>
|
|
<div class="col-lg-2">
|
|
<input type="password" class="form-control" name="newpwd" id="newpwd"
|
|
value="">
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="checkpwd">Passwort bestätigen</label>
|
|
<div class="col-lg-2">
|
|
<input type="password" class="form-control" name="checkpwd" id="checkpwd"
|
|
value="">
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-lg-10">
|
|
<button type="submit" class="btn btn-primary">Speichern</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<div class="w-100 border-bottom"></div>
|
|
<h4 class="form-group mb-2 mt-3">2FA</h4>
|
|
<?php if (!$verification || $verification == 0): ?>
|
|
<form class="form-horizontal" method="post"
|
|
action="<?= self::getUrl("UserProfile", $twoFactorFormaction) ?>">
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="twofactor"><?= $twoFactorsym ?>
|
|
Zwei-Faktor-Authentifizierung</label>
|
|
<?= $twoFactortype ?>
|
|
<div class="col-lg-7">
|
|
<?= $twoFactorbtn ?>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<?php elseif ($verification == 1 || $verification == 2) :
|
|
if ($verification == 1) {
|
|
$verificationType = "Email";
|
|
} elseif ($verification == 2) {
|
|
$verificationType = "SMS";
|
|
}
|
|
?>
|
|
<form class="form-horizontal" method="post"
|
|
action="<?= self::getUrl("UserProfile", "activate2faaction") ?>">
|
|
<div class="row">
|
|
<div class="col-lg-2"></div>
|
|
<label class="col-lg-3 col-form-label"
|
|
style="vertical-align: top;font-size: 15px;color: #000;"> Code wurde
|
|
per <?php echo $verificationType; ?> verschickt (5 Minuten gültig)</label>
|
|
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-lg-2 col-form-label" for="code">Verifizierungscode: <i
|
|
data-codetype="<?= $verification ?>"
|
|
class="fa-solid fa-arrows-rotate fa-new-code" id="new-authcode"
|
|
title="Neuen Code anfordern."></i></label>
|
|
<div class="col-lg-2">
|
|
<input type="number" required min="0" max="99999" class="form-control"
|
|
name="code"
|
|
id="code"
|
|
value="">
|
|
<input type="hidden" name="twofactor" value="<?php echo $verification; ?>"/>
|
|
</div>
|
|
<div class="col-lg-7 check-button">
|
|
<?= $twoFactorbtn ?>
|
|
<a href="<?= self::getUrl("UserProfile") ?>">
|
|
<button type="button" class="btn btn-secondary mb-3">Abbrechen</button>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
var hidesearch = [5];
|
|
|
|
$(document).ready(function () {
|
|
$("body").on("click", "#new-authcode", function (event) {
|
|
|
|
$.getJSON("<?= self::getUrl("UserProfile", "api", ['do' => 'sendcode', 'twofactor' => $verification]) ?>", {}).done(function (data) {
|
|
$("#new-authcode").hide(0).delay(5000).show(0);
|
|
}).fail(function (jqxhr, textStatus, error) {
|
|
window.location.href = "<?= self::getUrl("Dashboard") ?>";
|
|
});
|
|
});
|
|
})
|
|
;
|
|
</script>
|
|
|
|
|
|
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/footer.php"); ?>
|