added admin function: add user

This commit is contained in:
marko
2023-03-27 05:15:18 +02:00
parent 3f76d82897
commit 4f2a05b9eb
16 changed files with 380 additions and 122 deletions

View File

@@ -1,4 +1,5 @@
<?php
require_once 'participoLib/participo.php';
/** frame for a shiai
*/
@@ -59,6 +60,8 @@ class Shiai
public static function loadFromDb(int $id)
{
$id = filterId($id);
$query = 'SELECT * FROM `cwsvjudo`.`wettkampfkalender` WHERE `lfdeNr` = :id;';
$params = [':id' => ['value' => $id, 'data_type' => PDO::PARAM_INT]];
$response = dbConnector::query($query, $params);
@@ -88,7 +91,7 @@ class Shiai
/**
* shiai event as html code for displaying
*
* @return html formated string
* @return html formatted string
*/
public function getHtml()
{