WIP: bring participo back - consistent use of bootstrap - formatting -

phpstan level 0 error free - fixes for kyu subpage - move mams into
participo framework - remove legacy `lib/db.php` usage - add attributer
admin function - add newsposter - fixing apiKey creation
This commit is contained in:
marko
2025-11-07 10:37:25 +01:00
parent 672eaccfc9
commit f28fa7b51b
96 changed files with 6152 additions and 6053 deletions

View File

@@ -1,6 +1,5 @@
<?php
require 'admin.inc.php';
?>
require "admin.inc.php"; ?>
<!DOCTYPE html>
<html>
<head>
@@ -8,22 +7,22 @@ require 'admin.inc.php';
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- shared imports (common css, MaterializeCss) -->
<?php readfile('shared/imports.php'); ?>
<?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']); ?>" />
<title><?php echo $meta["title"]; ?></title>
<meta name="description" content="<?php echo $meta["description"]; ?>" />
<link rel="icon" href="<?echo($config['ressourceUrl']);?>/graphiken/icons/cwsv.ico" />
<link rel="apple-touch-icon" href="<?echo($config['baseUrl']);?>/apple-touch-icon.png">
<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'; ?>
<?php require "./admin.sidenav.inc.php"; ?>
</header>
<?php if (participo::isLoginValid() && participo::isUserAdmin()) { ?>
@@ -31,18 +30,56 @@ require 'admin.inc.php';
<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([
"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>