108 lines
4.7 KiB
PHP
108 lines
4.7 KiB
PHP
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/header.php"); ?>
|
|
<link href="<?= self::getResourcePath() ?>assets/css/datatables-std.css?<?= date('U') ?>" rel="stylesheet"
|
|
type="text/css"/>
|
|
<!-- 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">Kalender Verwaltung</li>
|
|
</ol>
|
|
</div>
|
|
<h4 class="page-title">Kalender Verwaltung</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 Kalender Verwaltung</h4>
|
|
</div>
|
|
<div class="float-right">
|
|
<!-- <a class="btn btn-primary mb-2" href="--><?php //= self::getUrl("Calendar", "add") ?><!--"><i-->
|
|
<!-- class="fas fa-plus"></i> Neuen Kalender Verwaltung anlegen</a>-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<table id="datatable" class="table table-striped table-hover table-sm">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-center">Name</th>
|
|
<th class="text-center">GO Kalender ID</th>
|
|
<th class="text-center">Microsoft Id</th>
|
|
<th class="text-center">Kalenderrechte</th>
|
|
<th class="text-center">Webhook</th>
|
|
<th class="text-center">Webhook Timeout</th>
|
|
<th class="text-center">Aktiv</th>
|
|
<th class="edit-width"></th>
|
|
</tr>
|
|
<tr id="filterrow">
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($calendars as $calendar):
|
|
$calenadarRights = json_decode($calendar->rights, true);
|
|
$rights = "";
|
|
foreach ($calenadarRights as $key => $value) {
|
|
if ($key != $calendar->go_calendar_id) {
|
|
$rights .= $calendars[$key]->user->name . " : " . $value . "<br>";
|
|
}
|
|
}
|
|
?>
|
|
<tr>
|
|
<td><?= $calendar->user->name ?></td>
|
|
<td class="text-center"><?= $calendar->go_calendar_id ?></td>
|
|
<td class="text-nowrap"><?= $calendar->microsoft_id ?></td>
|
|
<td><?= $rights ?></td>
|
|
<td class="text-nowrap"><?= $calendar->subscription_id ?></td>
|
|
<td class="text-center"><?= ($calendar->expirationDateTime) ? date("d.m.Y H:i", $calendar->expirationDateTime) : '' ?></td>
|
|
<td class="text-center"><?= ($calendar->active==1) ? '<i class="fa-regular fa-circle-check mr-1"></i>' : '<i class="fa-regular fa-circle-xmark mr-1"></i>' ?></td>
|
|
<td style="text-align: left; letter-spacing: 4px; font-size: 1.1em;">
|
|
<a href="<?= self::getUrl("Calendar", "edit", ["id" => $calendar->id]) ?>"><i
|
|
class="far fa-edit" title="Bearbeiten"></i></a>
|
|
<a href="<?= self::getUrl("Calendar", "delete", ["id" => $calendar->id]) ?>"
|
|
onclick="if(!confirm('Kalender Verwaltung 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 = [8];
|
|
|
|
$(document).ready(function () {
|
|
|
|
});
|
|
</script>
|
|
<script type="text/javascript"
|
|
src="<?= self::getResourcePath() ?>assets/js/datatables-std.js?<?= date('U') ?>"></script>
|
|
|
|
|
|
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/footer.php"); ?>
|