added addStarter function to Event
This commit is contained in:
@@ -1,26 +1,26 @@
|
||||
<?php
|
||||
require_once 'config/participo.php';
|
||||
|
||||
require_once './local/cwsvJudo.php';
|
||||
require_once './local/cwsvJudo.php';
|
||||
|
||||
require_once './lib/db.php'; // should be replaced
|
||||
require_once './lib/api.php'; // should be replaced
|
||||
require_once 'participoLib/participo.php';
|
||||
require_once 'participoLib/planer.php';
|
||||
require_once("config/phpcount.config.php");
|
||||
require_once("phpcount/phpcount.php");
|
||||
require_once './lib/db.php'; // should be replaced
|
||||
require_once './lib/api.php'; // should be replaced
|
||||
require_once 'participoLib/participo.php';
|
||||
require_once 'participoLib/planer.php';
|
||||
require_once 'config/phpcount.config.php';
|
||||
require_once 'phpcount/phpcount.php';
|
||||
|
||||
PHPCount::AddHit("participo");
|
||||
PHPCount::AddHit('participo');
|
||||
|
||||
dbConnector::connect(
|
||||
$cwsvJudoConfig['db']['host'],
|
||||
$cwsvJudoConfig['db']['name'],
|
||||
$cwsvJudoConfig['db']['user'],
|
||||
$cwsvJudoConfig['db']['password']
|
||||
);
|
||||
eventPlaner::setDbConnection(dbConnector::getDbConnection());
|
||||
participo::authentificate();
|
||||
$userData = getUserData(dbConnector::getDbConnection(), $_SESSION['user']['userId']);
|
||||
dbConnector::connect(
|
||||
$cwsvJudoConfig['db']['host'],
|
||||
$cwsvJudoConfig['db']['name'],
|
||||
$cwsvJudoConfig['db']['user'],
|
||||
$cwsvJudoConfig['db']['password']
|
||||
);
|
||||
eventPlaner::setDbConnection(dbConnector::getDbConnection());
|
||||
participo::authentificate();
|
||||
$userData = getUserData(dbConnector::getDbConnection(), $_SESSION['user']['userId']);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
@@ -123,32 +123,32 @@ echo(
|
||||
],
|
||||
])->htmlCode()
|
||||
)
|
||||
?>
|
||||
?>
|
||||
</div> <!-- mitmachApps -->
|
||||
|
||||
<h2>Zur Information</h2>
|
||||
<div class="row" id="infoApps">
|
||||
<?php
|
||||
echo(
|
||||
AppCard::fromArray([
|
||||
'link' => 'infoZettel',
|
||||
'title' => 'Infozettel',
|
||||
'description' => 'Online-Variante der Infozettel und Newsletter',
|
||||
'imgUrl' => 'images/info.svg',
|
||||
'actions' => [
|
||||
AppCardAction::fromArray(['caption' => 'Info', 'link' => 'infoZettel']),
|
||||
],
|
||||
])->htmlCode() .
|
||||
AppCard::fromArray([
|
||||
'link' => 'attendance',
|
||||
'title' => 'Teilnahme',
|
||||
'description' => 'Eine kleine Übersicht, wie wie oft man beim Training war',
|
||||
'imgUrl' => 'http://cwsvjudo.bplaced.net/ressourcen/graphiken/icons/calendarIcon.svg',
|
||||
'actions' => [
|
||||
AppCardAction::fromArray(['caption' => 'Anwesenheit', 'link' => 'attendance']),
|
||||
],
|
||||
])->htmlCode()
|
||||
);
|
||||
echo(
|
||||
AppCard::fromArray([
|
||||
'link' => 'infoZettel',
|
||||
'title' => 'Infozettel',
|
||||
'description' => 'Online-Variante der Infozettel und Newsletter',
|
||||
'imgUrl' => 'images/info.svg',
|
||||
'actions' => [
|
||||
AppCardAction::fromArray(['caption' => 'Info', 'link' => 'infoZettel']),
|
||||
],
|
||||
])->htmlCode() .
|
||||
AppCard::fromArray([
|
||||
'link' => 'attendance',
|
||||
'title' => 'Teilnahme',
|
||||
'description' => 'Eine kleine Übersicht, wie wie oft man beim Training war',
|
||||
'imgUrl' => 'http://cwsvjudo.bplaced.net/ressourcen/graphiken/icons/calendarIcon.svg',
|
||||
'actions' => [
|
||||
AppCardAction::fromArray(['caption' => 'Anwesenheit', 'link' => 'attendance']),
|
||||
],
|
||||
])->htmlCode()
|
||||
);
|
||||
// @todo attendanceApp?>
|
||||
</div> <!-- infoApps -->
|
||||
|
||||
@@ -206,20 +206,6 @@ if (participo::isUserAdmin($userData['id'])) {
|
||||
])->htmlCode() .
|
||||
'</div>'
|
||||
);
|
||||
|
||||
echo("<h2 id=\"commingStarts\">Aktuelle Einschreibungen</h2>");
|
||||
$eventList = participo::getEventStarter("2022-01-01");
|
||||
$htmlTable = null;
|
||||
if($eventList){
|
||||
$htmlTable = "<table>"
|
||||
."<thead><tr><th>Datum</th><th>Veranstaltung</th><th>Starter</th></tr></thead>"
|
||||
."<tbody>";
|
||||
foreach($eventList as $event){
|
||||
$htmlTable .= "<tr><td>".$event['eventDate']."</td><td>".$event['eventName']."</td><td>".$event['userName'].", ".$event['userFirstname']."</td></tr>";
|
||||
}
|
||||
$htmlTable .= "</tbody></table>";
|
||||
}
|
||||
echo($eventList?$htmlTable:"<div>Keine Meldungen zu bevorstehenden Events");
|
||||
} ?>
|
||||
</main>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user