91 lines
2.5 KiB
PHP
91 lines
2.5 KiB
PHP
<?php
|
|
/** @var array $meta pages meta information (provided via bootstraping) */
|
|
// @todo Better architecture. This forward declaration shouldn't be necessary.
|
|
require "admin.inc.php"; ?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<!-- shared imports (common css, MaterializeCss) -->
|
|
<?php readfile("shared/imports.php"); ?>
|
|
|
|
<!-- inits for the materializeCss -->
|
|
<script src="admin.js"></script>
|
|
|
|
<title><?php echo $meta["title"]; ?></title>
|
|
<meta name="description" content="<?php echo $meta["description"]; ?>" />
|
|
|
|
<link rel="icon" href="/ressourcen/graphiken/icons/cwsv.ico" />
|
|
<link rel="apple-touch-icon" href="/ressourcen/graphiken/logos/favIcons/apple-touch-icon.png">
|
|
</head>
|
|
|
|
<body>
|
|
<header>
|
|
<!-- The sidenav -->
|
|
<?php require "./admin.sidenav.inc.php"; ?>
|
|
</header>
|
|
|
|
<?php if (participo::isLoginValid() && participo::isUserAdmin()) { ?>
|
|
<main>
|
|
<h2>AdminStuff</h2>
|
|
<div id="admiStuff" class="row">
|
|
<?php
|
|
echo AppCard::fromArray([
|
|
"title" => "lastLogins",
|
|
"description" => "</p>" . lastLoginTable() . "</p>",
|
|
])->htmlCode();
|
|
echo AppCard::fromArray([
|
|
"title" => "Add User",
|
|
"description" => User::getHtmlFormAddUser(),
|
|
])->htmlCode();
|
|
echo AppCard::fromArray([
|
|
"link" => "mams",
|
|
"title" => "mams",
|
|
"description" => "Anwesenheiten eintragen",
|
|
"actions" => [
|
|
AppCardAction::fromArray(["caption" => "mams", "link" => "mams"]),
|
|
],
|
|
])->htmlCode();
|
|
echo AppCard::fromArray([
|
|
"link" => "attributer",
|
|
"title" => "attributer",
|
|
"description" => "Usern Attribute geben und entziehen",
|
|
"actions" => [
|
|
AppCardAction::fromArray([
|
|
"caption" => "attributer",
|
|
"link" => "attributer",
|
|
]),
|
|
],
|
|
])->htmlCode();
|
|
echo AppCard::fromArray([
|
|
"link" => "addEvent",
|
|
"title" => "addEvent",
|
|
"description" =>
|
|
"Shiai aus dem Wettkampkalender in den Eventplaner übernehmen",
|
|
"actions" => [
|
|
AppCardAction::fromArray([
|
|
"caption" => "addEvent",
|
|
"link" => "addEvent",
|
|
]),
|
|
],
|
|
])->htmlCode();
|
|
echo AppCard::fromArray([
|
|
"link" => "newnews",
|
|
"title" => "newnews",
|
|
"description" => "Eine neue Nachricht posten",
|
|
"actions" => [
|
|
AppCardAction::fromArray([
|
|
"caption" => "newnews",
|
|
"link" => "newnews",
|
|
]),
|
|
],
|
|
])->htmlCode();
|
|
?>
|
|
</div>
|
|
</main>
|
|
<?php } ?>
|
|
</body>
|
|
</html>
|