mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
Merge pull request #243 from Deutscher-Tischfussballbund/sportsmanager2-issue242
Sportsmanager2 issue242
This commit is contained in:
@@ -3915,6 +3915,9 @@ function adminEditSpielort(): void
|
|||||||
$ortsname = $db->escape(trim($jInput->get('ortsname', '', 'RAW')));
|
$ortsname = $db->escape(trim($jInput->get('ortsname', '', 'RAW')));
|
||||||
$ortsteil = $db->escape(trim($jInput->get('ortsteil', '', 'RAW')));
|
$ortsteil = $db->escape(trim($jInput->get('ortsteil', '', 'RAW')));
|
||||||
$url = $db->escape(trim($jInput->get('url', '', 'RAW')));
|
$url = $db->escape(trim($jInput->get('url', '', 'RAW')));
|
||||||
|
$telefon = $db->escape(trim($jInput->get('telefon', '', 'RAW')));
|
||||||
|
$email = $db->escape(trim($jInput->get('email', '', 'RAW')));
|
||||||
|
$ruhetage = $db->escape(trim($jInput->get('ruhetage', '', 'RAW')));
|
||||||
$beschreibung = $db->escape(trim($jInput->get('beschreibung', '', 'RAW')));
|
$beschreibung = $db->escape(trim($jInput->get('beschreibung', '', 'RAW')));
|
||||||
$status = $jInput->get('status', 0, 'INT');
|
$status = $jInput->get('status', 0, 'INT');
|
||||||
|
|
||||||
@@ -3923,8 +3926,8 @@ function adminEditSpielort(): void
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($id == 0) {
|
if ($id == 0) {
|
||||||
$query = "INSERT INTO #__sportsmanager_spielort (name, strasse, plz, ortsname, ortsteil, url, beschreibung, status)"
|
$query = "INSERT INTO #__sportsmanager_spielort (name, strasse, plz, ortsname, ortsteil, url, telefon, email, ruhetage, beschreibung, status)"
|
||||||
. "\n VALUES ('$name', '$strasse', '$plz', '$ortsname', '$ortsteil', '$url', '$beschreibung', '$status');";
|
. "\n VALUES ('$name', '$strasse', '$plz', '$ortsname', '$ortsteil', '$url', '$telefon', '$email', '$ruhetage', '$beschreibung', '$status');";
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
if (!$db->execute()) {
|
if (!$db->execute()) {
|
||||||
die($db->stderr(true));
|
die($db->stderr(true));
|
||||||
@@ -3938,6 +3941,9 @@ function adminEditSpielort(): void
|
|||||||
. "\n ortsname = '$ortsname',"
|
. "\n ortsname = '$ortsname',"
|
||||||
. "\n ortsteil = '$ortsteil',"
|
. "\n ortsteil = '$ortsteil',"
|
||||||
. "\n url = '$url',"
|
. "\n url = '$url',"
|
||||||
|
. "\n telefon = '$telefon',"
|
||||||
|
. "\n email = '$email',"
|
||||||
|
. "\n ruhetage = '$ruhetage',"
|
||||||
. "\n beschreibung = '$beschreibung',"
|
. "\n beschreibung = '$beschreibung',"
|
||||||
. "\n status = '$status'"
|
. "\n status = '$status'"
|
||||||
. "\n WHERE spielort_id = $id";
|
. "\n WHERE spielort_id = $id";
|
||||||
@@ -7944,6 +7950,7 @@ function adminEditMannschaft(): void
|
|||||||
$heimspiel_wochentag = $jInput->get('heimspiel_wochentag', 0, 'INT');
|
$heimspiel_wochentag = $jInput->get('heimspiel_wochentag', 0, 'INT');
|
||||||
$heimspiel_uhrzeit = sprintf("%02d%02d", $jInput->get('heimspiel_uhrzeit_stunden', 0, 'INT'), $jInput->get('heimspiel_uhrzeit_minuten', 0, 'INT'));
|
$heimspiel_uhrzeit = sprintf("%02d%02d", $jInput->get('heimspiel_uhrzeit_stunden', 0, 'INT'), $jInput->get('heimspiel_uhrzeit_minuten', 0, 'INT'));
|
||||||
$heimspielort_id = $jInput->get('heimspielort_id', 0, 'INT');
|
$heimspielort_id = $jInput->get('heimspielort_id', 0, 'INT');
|
||||||
|
$trainingstage = $db->escape(trim($jInput->get('trainingstage', '', 'RAW')));
|
||||||
$nichtraucherschutz = $jInput->get('nichtraucherschutz', 0, 'INT');
|
$nichtraucherschutz = $jInput->get('nichtraucherschutz', 0, 'INT');
|
||||||
$zusatzpunkte = $jInput->get('zusatzpunkte', 0, 'FLOAT');
|
$zusatzpunkte = $jInput->get('zusatzpunkte', 0, 'FLOAT');
|
||||||
$bildbeibehalten = $jInput->get('bildbeibehalten', 0, 'INT');
|
$bildbeibehalten = $jInput->get('bildbeibehalten', 0, 'INT');
|
||||||
@@ -7970,8 +7977,8 @@ function adminEditMannschaft(): void
|
|||||||
$veranstaltung = $rows[0];
|
$veranstaltung = $rows[0];
|
||||||
|
|
||||||
if ($id == 0) {
|
if ($id == 0) {
|
||||||
$query = "INSERT INTO #__sportsmanager_team (verein_id, veranstaltung_id, teamname, teamname_kurz, tischtyp, tischeigenschaften, heimspiel_wochentag, heimspiel_uhrzeit, heimspielort_id, nichtraucherschutz, zusatzpunkte" . ($veranstaltung->tabellenwertung == -2 ? ", platz" : "") . ", pin)"
|
$query = "INSERT INTO #__sportsmanager_team (verein_id, veranstaltung_id, teamname, teamname_kurz, tischtyp, tischeigenschaften, heimspiel_wochentag, heimspiel_uhrzeit, heimspielort_id, trainingstage, nichtraucherschutz, zusatzpunkte" . ($veranstaltung->tabellenwertung == -2 ? ", platz" : "") . ", pin)"
|
||||||
. "\n VALUES (" . ($verein_id != 0 ? "'$verein_id'" : "NULL") . ", '$veranstaltungId', '$teamname', '$teamname_kurz', '$tischtyp', '$tischeigenschaften', '$heimspiel_wochentag', '$heimspiel_uhrzeit', " . ($heimspielort_id != 0 ? "'$heimspielort_id'" : "NULL") . ", '$nichtraucherschutz', '$zusatzpunkte'" . ($veranstaltung->tabellenwertung == -2 ? ($platz != 0 ? ", '$platz'" : ", NULL") : "") . ", '$pin');";
|
. "\n VALUES (" . ($verein_id != 0 ? "'$verein_id'" : "NULL") . ", '$veranstaltungId', '$teamname', '$teamname_kurz', '$tischtyp', '$tischeigenschaften', '$heimspiel_wochentag', '$heimspiel_uhrzeit', " . ($heimspielort_id != 0 ? "'$heimspielort_id'" : "NULL") . ", '$trainingstage', '$nichtraucherschutz', '$zusatzpunkte'" . ($veranstaltung->tabellenwertung == -2 ? ($platz != 0 ? ", '$platz'" : ", NULL") : "") . ", '$pin');";
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
if (!$db->execute()) {
|
if (!$db->execute()) {
|
||||||
die($db->stderr(true));
|
die($db->stderr(true));
|
||||||
@@ -7999,6 +8006,7 @@ function adminEditMannschaft(): void
|
|||||||
. "\n heimspiel_wochentag = '$heimspiel_wochentag',"
|
. "\n heimspiel_wochentag = '$heimspiel_wochentag',"
|
||||||
. "\n heimspiel_uhrzeit = '$heimspiel_uhrzeit',"
|
. "\n heimspiel_uhrzeit = '$heimspiel_uhrzeit',"
|
||||||
. "\n heimspielort_id = " . ($heimspielort_id != 0 ? "'$heimspielort_id'" : "NULL") . ","
|
. "\n heimspielort_id = " . ($heimspielort_id != 0 ? "'$heimspielort_id'" : "NULL") . ","
|
||||||
|
. "\n trainingstage = '$trainingstage',"
|
||||||
. "\n nichtraucherschutz = '$nichtraucherschutz',"
|
. "\n nichtraucherschutz = '$nichtraucherschutz',"
|
||||||
. ($veranstaltung->tabellenwertung == -2 ? ($platz != 0 ? "\n platz = '$platz'," : "\n platz = NULL,") : "")
|
. ($veranstaltung->tabellenwertung == -2 ? ($platz != 0 ? "\n platz = '$platz'," : "\n platz = NULL,") : "")
|
||||||
. "\n zusatzpunkte = '$zusatzpunkte',"
|
. "\n zusatzpunkte = '$zusatzpunkte',"
|
||||||
@@ -11969,6 +11977,9 @@ function adminBegegnungenExportForm(): void
|
|||||||
";
|
";
|
||||||
|
|
||||||
$rows = loadObjectList($db, $query);
|
$rows = loadObjectList($db, $query);
|
||||||
|
if (!isset($rows) or count($rows) == 0) {
|
||||||
|
redirectSportsManagerURL('&task=admin_begegnungen&veranstaltungid=1', "Zu dieser Auswahl sind keine Daten vorhanden!");
|
||||||
|
}
|
||||||
$dateiname = "Spieler " . $veranstaltung->bezeichnung;
|
$dateiname = "Spieler " . $veranstaltung->bezeichnung;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -12026,11 +12037,11 @@ function adminBegegnungenExportForm(): void
|
|||||||
$value->verlegt_auf = $genehmigt[0]->Termin_neu;
|
$value->verlegt_auf = $genehmigt[0]->Termin_neu;
|
||||||
}
|
}
|
||||||
$dateiname = "Spielplan " . $veranstaltung->bezeichnung;
|
$dateiname = "Spielplan " . $veranstaltung->bezeichnung;
|
||||||
}
|
|
||||||
|
|
||||||
if (!isset($rows) or count($rows) == 0) {
|
if (!isset($rows) or count($rows) == 0) {
|
||||||
redirectSportsManagerURL('&task=admin_begegnungen&veranstaltungid=1', "Zu dieser Auswahl sind keine Daten vorhanden!");
|
redirectSportsManagerURL('&task=admin_begegnungen&veranstaltungid=1', "Zu dieser Auswahl sind keine Daten vorhanden!");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($export == "spielberichte") {
|
if ($export == "spielberichte") {
|
||||||
// Modus ermitteln
|
// Modus ermitteln
|
||||||
@@ -12145,6 +12156,89 @@ function adminBegegnungenExportForm(): void
|
|||||||
$dateiname = "Spielberichte " . $veranstaltung->bezeichnung;
|
$dateiname = "Spielberichte " . $veranstaltung->bezeichnung;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($export == "teams") {
|
||||||
|
$query = "SELECT t2.verein_id, t2.vereinsname AS Verein, t2.vereinssitz AS Vereinssitz,"
|
||||||
|
. "\n t2.vereinssitz_ortsteil AS Vereinssitz_Ortsteil, t2.url AS Vereinswebseite,"
|
||||||
|
. "\n t1.team_id, t1.teamname AS Team, t3.bezeichnung AS Liga, t1.tischtyp AS Tisch,"
|
||||||
|
. "\n t4.name AS Spielort, t4.strasse AS Spielort_Strasse, t4.plz AS Spielort_PLZ,"
|
||||||
|
. "\n t4.ortsname AS Spielort_Ort, t4.ortsteil AS Spielort_Ortsteil, t4.telefon AS Spielort_Telefon,"
|
||||||
|
. "\n t4.url AS Spielort_Url, t1.trainingstage AS Trainingstage, t4.ruhetage AS Spielort_Ruhetage"
|
||||||
|
. "\n FROM #__sportsmanager_team AS t1"
|
||||||
|
. "\n LEFT JOIN #__sportsmanager_verein AS t2 ON t1.verein_id = t2.verein_id"
|
||||||
|
. "\n LEFT JOIN #__sportsmanager_veranstaltung AS t3 ON t1.veranstaltung_id = t3.veranstaltung_id"
|
||||||
|
. "\n LEFT JOIN #__sportsmanager_spielort AS t4 ON t1.heimspielort_id = t4.spielort_id"
|
||||||
|
. "\n WHERE t1.veranstaltung_id = " . $veranstaltungId . ";";
|
||||||
|
|
||||||
|
$rows = loadObjectList($db, $query);
|
||||||
|
if (!isset($rows) or count($rows) == 0) {
|
||||||
|
redirectSportsManagerURL('&task=admin_begegnungen&veranstaltungid=1', "Zu dieser Auswahl sind keine Daten vorhanden!");
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach ($rows AS $value)
|
||||||
|
{
|
||||||
|
$query = "SELECT * FROM #__sportsmanager_vereinsansprechpartner"
|
||||||
|
. "\n WHERE verein_id = ".$value->verein_id." ORDER BY vereinsansprechpartner_id;";
|
||||||
|
$ansprechpartner = loadObjectList($db, $query);
|
||||||
|
for ($i = 0; $i <= 2; $i++){
|
||||||
|
$index = $i + 1;
|
||||||
|
if (isset($ansprechpartner[$i])){
|
||||||
|
$property = "VAP{$index}_Nachname";
|
||||||
|
$value->$property = $ansprechpartner[$i]->nachname;
|
||||||
|
$property = "VAP{$index}_Vorname";
|
||||||
|
$value->$property = $ansprechpartner[$i]->vorname;
|
||||||
|
$property = "VAP{$index}_Telefon";
|
||||||
|
$value->$property = $ansprechpartner[$i]->telefon;
|
||||||
|
$property = "VAP{$index}_Mobil";
|
||||||
|
$value->$property = $ansprechpartner[$i]->mobil;
|
||||||
|
$property = "VAP{$index}_EMail";
|
||||||
|
$value->$property = $ansprechpartner[$i]->email;
|
||||||
|
} else {
|
||||||
|
$property = "VAP{$index}_Nachname";
|
||||||
|
$value->$property = "";
|
||||||
|
$property = "VAP{$index}_Vorname";
|
||||||
|
$value->$property = "";
|
||||||
|
$property = "VAP{$index}_Telefon";
|
||||||
|
$value->$property = "";
|
||||||
|
$property = "VAP{$index}_Mobil";
|
||||||
|
$value->$property = "";
|
||||||
|
$property = "VAP{$index}_EMail";
|
||||||
|
$value->$property = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$query = "SELECT * FROM #__sportsmanager_teamansprechpartner"
|
||||||
|
. "\n WHERE team_id = ".$value->team_id." ORDER BY kontaktperson_id;";
|
||||||
|
$ansprechpartner = loadObjectList($db, $query);
|
||||||
|
for ($i = 0; $i <= 1; $i++){
|
||||||
|
$index = $i + 1;
|
||||||
|
if (isset($ansprechpartner[$i])){
|
||||||
|
$property = "TAP{$index}_Nachname";
|
||||||
|
$value->$property = $ansprechpartner[$i]->nachname;
|
||||||
|
$property = "TAP{$index}_Vorname";
|
||||||
|
$value->$property = $ansprechpartner[$i]->vorname;
|
||||||
|
$property = "TAP{$index}_Telefon";
|
||||||
|
$value->$property = $ansprechpartner[$i]->telefon;
|
||||||
|
$property = "TAP{$index}_Mobil";
|
||||||
|
$value->$property = $ansprechpartner[$i]->mobil;
|
||||||
|
$property = "TAP{$index}_EMail";
|
||||||
|
$value->$property = $ansprechpartner[$i]->email;
|
||||||
|
} else {
|
||||||
|
$property = "TAP{$index}_Nachname";
|
||||||
|
$value->$property = "";
|
||||||
|
$property = "TAP{$index}_Vorname";
|
||||||
|
$value->$property = "";
|
||||||
|
$property = "TAP{$index}_Telefon";
|
||||||
|
$value->$property = "";
|
||||||
|
$property = "TAP{$index}_Mobil";
|
||||||
|
$value->$property = "";
|
||||||
|
$property = "TAP{$index}_EMail";
|
||||||
|
$value->$property = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$dateiname = "Teams " . $veranstaltung->bezeichnung;
|
||||||
|
}
|
||||||
|
|
||||||
$dateiname .= ".csv";
|
$dateiname .= ".csv";
|
||||||
$dateiname = bereinigterDateiname($dateiname);
|
$dateiname = bereinigterDateiname($dateiname);
|
||||||
ob_end_clean(); // Wegen UTF-8-Zeichen, die in der ausgabe vorhanden sind
|
ob_end_clean(); // Wegen UTF-8-Zeichen, die in der ausgabe vorhanden sind
|
||||||
|
|||||||
@@ -5541,6 +5541,33 @@ function updateDatabase(): void
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($datenbank_version < 116) {
|
||||||
|
|
||||||
|
$query = "ALTER TABLE `#__sportsmanager_spielort`"
|
||||||
|
. "\n ADD IF NOT EXISTS `telefon` VARCHAR(64) NULL DEFAULT NULL AFTER `url`,"
|
||||||
|
. "\n ADD IF NOT EXISTS `email` VARCHAR(64) NULL DEFAULT NULL AFTER `telefon`,"
|
||||||
|
. "\n ADD IF NOT EXISTS `ruhetage` VARCHAR(64) NULL DEFAULT NULL AFTER `email`;";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
|
||||||
|
$query = "ALTER TABLE `#__sportsmanager_team`"
|
||||||
|
. "\n ADD IF NOT EXISTS `trainingstage` VARCHAR(64) NULL DEFAULT NULL AFTER `heimspielort_id`;";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
|
||||||
|
$query = "UPDATE #__sportsmanager_einstellungen"
|
||||||
|
. "\n SET wert = '116'"
|
||||||
|
. "\n WHERE name = 'datenbank_version'";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($termin_aktionen_email_setzen) {
|
if ($termin_aktionen_email_setzen) {
|
||||||
$query = "SELECT aktion_user_id, termin_aktion_id"
|
$query = "SELECT aktion_user_id, termin_aktion_id"
|
||||||
. "\n FROM #__sportsmanager_termin_aktion";
|
. "\n FROM #__sportsmanager_termin_aktion";
|
||||||
|
|||||||
@@ -2648,6 +2648,8 @@ global $params;
|
|||||||
echo htmlentities_utf8($team->name);
|
echo htmlentities_utf8($team->name);
|
||||||
$anschrift = $team->strasse . (!empty($team->strasse) && (!empty($team->plz) || !empty($team->ortsname) || !empty($team->ortsteil)) ? ", " : "") . $team->plz . (!empty($team->plz) ? " " : "") . $team->ortsname . (!empty($team->ortsname) && !empty($team->ortsteil) ? "-" : "") . $team->ortsteil;
|
$anschrift = $team->strasse . (!empty($team->strasse) && (!empty($team->plz) || !empty($team->ortsname) || !empty($team->ortsteil)) ? ", " : "") . $team->plz . (!empty($team->plz) ? " " : "") . $team->ortsname . (!empty($team->ortsname) && !empty($team->ortsteil) ? "-" : "") . $team->ortsteil;
|
||||||
echo "<br />" . htmlentities_utf8($anschrift);
|
echo "<br />" . htmlentities_utf8($anschrift);
|
||||||
|
if (!empty($team->telefon))
|
||||||
|
echo "<br />" . htmlentities_utf8($team->telefon);
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -4022,12 +4022,14 @@ class HTML_sportsmanager_admin
|
|||||||
|
|
||||||
if (count($vereinsmitglieder) > 0) {
|
if (count($vereinsmitglieder) > 0) {
|
||||||
?>
|
?>
|
||||||
|
<div class="uk-overflow-auto">
|
||||||
<table class="contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>">
|
<table class="contentpaneopen<?php echo $params->get('pageclass_sfx'); ?>">
|
||||||
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
|
<tr class="sectiontableheader<?php echo $params->get('pageclass_sfx'); ?>">
|
||||||
<th nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_LAST_NAME'); ?></strong></th>
|
<th style="width: 200px; text-align: left;" nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_LAST_NAME'); ?></strong></th>
|
||||||
<th nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_FIRST_NAME'); ?> </strong></th>
|
<th style="width: 200px; text-align: left;" nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_FIRST_NAME'); ?> </strong></th>
|
||||||
<th nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_FIRST_NAME'); ?></strong></th>
|
<th style="width: 150px; text-align: left;" nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_PLAYER_NUMBER_SHORT'); ?></strong></th>
|
||||||
<th nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_MEMBER_STATUS'); ?></strong></th>
|
<th style="width: 150px; text-align: left;" nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_STATUS'); ?></strong></th>
|
||||||
|
<th style="width: 100px;"></th>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
@@ -4058,6 +4060,7 @@ class HTML_sportsmanager_admin
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4277,17 +4280,13 @@ class HTML_sportsmanager_admin
|
|||||||
<form action="<?php echo SportsManagerURL(($row != null ? ('#id' . $row->spielort_id) : "")); ?>" method="post"
|
<form action="<?php echo SportsManagerURL(($row != null ? ('#id' . $row->spielort_id) : "")); ?>" method="post"
|
||||||
name="adminForm" id="adminForm" enctype="multipart/form-data">
|
name="adminForm" id="adminForm" enctype="multipart/form-data">
|
||||||
<div class="uk-overflow-auto">
|
<div class="uk-overflow-auto">
|
||||||
<table class="uk-table" style="width: 100%">
|
<table style="width: 100%">
|
||||||
<tr>
|
|
||||||
<td nowrap style="width: 60%; vertical-align: top">
|
|
||||||
<div class="uk-overflow-auto">
|
|
||||||
<table class="uk-table" style="width: 100%">
|
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
<label for="name"><?php echo Text::_('COM_SPORTSMANAGER_NAME'); ?>:</label>
|
<label for="name"><?php echo Text::_('COM_SPORTSMANAGER_NAME'); ?>:</label>
|
||||||
</td>
|
</td>
|
||||||
<td nowrap>
|
<td nowrap>
|
||||||
<input class="inputbox" type="text" name="name" id="name" size="50"
|
<input class="inputbox" type="text" name="name" id="name" size="64"
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
value="<?php if ($row != null) echo htmlentities_utf8($row->name); ?>"/>
|
value="<?php if ($row != null) echo htmlentities_utf8($row->name); ?>"/>
|
||||||
</td>
|
</td>
|
||||||
@@ -4298,7 +4297,7 @@ class HTML_sportsmanager_admin
|
|||||||
:</label>
|
:</label>
|
||||||
</td>
|
</td>
|
||||||
<td nowrap>
|
<td nowrap>
|
||||||
<input class="inputbox" type="text" name="strasse" id="street" size="50"
|
<input class="inputbox" type="text" name="strasse" id="street" size="64"
|
||||||
maxlength="30"
|
maxlength="30"
|
||||||
value="<?php if ($row != null) if ($row->strasse != null) echo htmlentities_utf8($row->strasse); ?>"/>
|
value="<?php if ($row != null) if ($row->strasse != null) echo htmlentities_utf8($row->strasse); ?>"/>
|
||||||
</td>
|
</td>
|
||||||
@@ -4316,10 +4315,10 @@ class HTML_sportsmanager_admin
|
|||||||
<input class="inputbox" type="text" name="plz" id="zip" size="5"
|
<input class="inputbox" type="text" name="plz" id="zip" size="5"
|
||||||
maxlength="6"
|
maxlength="6"
|
||||||
value="<?php if ($row != null) echo htmlentities_utf8($row->plz); ?>"/>
|
value="<?php if ($row != null) echo htmlentities_utf8($row->plz); ?>"/>
|
||||||
<input class="inputbox" type="text" name="ortsname" id="location" size="28"
|
<input class="inputbox" type="text" name="ortsname" id="location" size="27"
|
||||||
maxlength="30"
|
maxlength="30"
|
||||||
value="<?php if ($row != null) echo htmlentities_utf8($row->ortsname); ?>"/>
|
value="<?php if ($row != null) echo htmlentities_utf8($row->ortsname); ?>"/>
|
||||||
<input class="inputbox" type="text" name="ortsteil" id="district" size="21"
|
<input class="inputbox" type="text" name="ortsteil" id="district" size="20"
|
||||||
maxlength="30"
|
maxlength="30"
|
||||||
value="<?php if ($row != null) echo htmlentities_utf8($row->ortsteil); ?>"/>
|
value="<?php if ($row != null) echo htmlentities_utf8($row->ortsteil); ?>"/>
|
||||||
</td>
|
</td>
|
||||||
@@ -4330,11 +4329,44 @@ class HTML_sportsmanager_admin
|
|||||||
:</label>
|
:</label>
|
||||||
</td>
|
</td>
|
||||||
<td nowrap>
|
<td nowrap>
|
||||||
<input class="inputbox" type="text" name="url" id="url" size="50"
|
<input class="inputbox" type="text" name="url" id="url" size="64"
|
||||||
maxlength="150"
|
maxlength="150"
|
||||||
value="<?php if ($row != null) echo htmlentities_utf8($row->url); ?>"/>
|
value="<?php if ($row != null) echo htmlentities_utf8($row->url); ?>"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
|
<label for="phone"><?php echo Text::_('COM_SPORTSMANAGER_PHONE'); ?>
|
||||||
|
:</label>
|
||||||
|
</td>
|
||||||
|
<td nowrap>
|
||||||
|
<input class="inputbox" type="text" name="telefon" id="phone" size="64"
|
||||||
|
maxlength="64"
|
||||||
|
value="<?php if ($row != null) echo htmlentities_utf8($row->telefon); ?>"/>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
|
<label for="email"><?php echo Text::_('COM_SPORTSMANAGER_EMAIL'); ?>
|
||||||
|
:</label>
|
||||||
|
</td>
|
||||||
|
<td nowrap>
|
||||||
|
<input class="inputbox" type="text" name="email" id="email" size="64"
|
||||||
|
maxlength="64"
|
||||||
|
value="<?php if ($row != null) echo htmlentities_utf8($row->email); ?>"/>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
|
<label for="restdays"><?php echo Text::_('COM_SPORTSMANAGER_REST_DAYS'); ?>
|
||||||
|
:</label>
|
||||||
|
</td>
|
||||||
|
<td nowrap>
|
||||||
|
<input class="inputbox" type="text" name="ruhetage" id="restdays" size="64"
|
||||||
|
maxlength="64"
|
||||||
|
value="<?php if ($row != null) echo htmlentities_utf8($row->ruhetage); ?>"/>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap style="width: 20%; text-align: right; vertical-align: top">
|
<td nowrap style="width: 20%; text-align: right; vertical-align: top">
|
||||||
<label
|
<label
|
||||||
@@ -4342,7 +4374,7 @@ class HTML_sportsmanager_admin
|
|||||||
:</label>
|
:</label>
|
||||||
</td>
|
</td>
|
||||||
<td nowrap>
|
<td nowrap>
|
||||||
<textarea name="beschreibung" id="description" cols="50"
|
<textarea name="beschreibung" id="description" cols="60"
|
||||||
rows="8"><?php if ($row != null) echo htmlentities_utf8($row->beschreibung); ?></textarea>
|
rows="8"><?php if ($row != null) echo htmlentities_utf8($row->beschreibung); ?></textarea>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -4369,10 +4401,6 @@ class HTML_sportsmanager_admin
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<input type="submit" name="save" value="<?php echo Text::_('COM_SPORTSMANAGER_SAVE'); ?>" class="button"/>
|
<input type="submit" name="save" value="<?php echo Text::_('COM_SPORTSMANAGER_SAVE'); ?>" class="button"/>
|
||||||
<input type="submit" name="cancel" value="<?php echo Text::_('COM_SPORTSMANAGER_CANCEL'); ?>"
|
<input type="submit" name="cancel" value="<?php echo Text::_('COM_SPORTSMANAGER_CANCEL'); ?>"
|
||||||
@@ -8855,10 +8883,6 @@ class HTML_sportsmanager_admin
|
|||||||
enctype="multipart/form-data">
|
enctype="multipart/form-data">
|
||||||
<div class="uk-overflow-auto">
|
<div class="uk-overflow-auto">
|
||||||
<table style="width: 100%;padding-top: 20px;">
|
<table style="width: 100%;padding-top: 20px;">
|
||||||
<tr>
|
|
||||||
<td nowrap style="width: 60%; vertical-align: top;">
|
|
||||||
<div class="uk-overflow-auto">
|
|
||||||
<table style="width: 100%;">
|
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap style="width: 20%; text-align: right;">
|
<td nowrap style="width: 20%; text-align: right;">
|
||||||
<label for="team_name"><?php echo Text::_('COM_SPORTSMANAGER_TEAM_NAME'); ?>
|
<label for="team_name"><?php echo Text::_('COM_SPORTSMANAGER_TEAM_NAME'); ?>
|
||||||
@@ -9019,6 +9043,18 @@ class HTML_sportsmanager_admin
|
|||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
|
<label
|
||||||
|
for="trainingdays"><?php echo Text::_('COM_SPORTSMANAGER_TRAINING_DAYS'); ?>
|
||||||
|
:</label>
|
||||||
|
</td>
|
||||||
|
<td nowrap>
|
||||||
|
<input class="uk-select uk-form-width-medium" type="text" name="trainingstage" id="trainingdays"
|
||||||
|
size="50" maxlength="64" style="height: 34px; width: 370px;"
|
||||||
|
value="<?php if ($row != null) echo htmlentities_utf8($row->trainingstage); ?>"/>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
<label
|
<label
|
||||||
@@ -9281,10 +9317,6 @@ class HTML_sportsmanager_admin
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<input type="submit" name="save" value="<?php echo Text::_('COM_SPORTSMANAGER_SAVE'); ?>" class="button"/>
|
<input type="submit" name="save" value="<?php echo Text::_('COM_SPORTSMANAGER_SAVE'); ?>" class="button"/>
|
||||||
<input type="submit" name="cancel" value="<?php echo Text::_('COM_SPORTSMANAGER_CANCEL'); ?>"
|
<input type="submit" name="cancel" value="<?php echo Text::_('COM_SPORTSMANAGER_CANCEL'); ?>"
|
||||||
@@ -11802,6 +11834,7 @@ class HTML_sportsmanager_admin
|
|||||||
<option value='spielberichte'>Spielberichte</option>
|
<option value='spielberichte'>Spielberichte</option>
|
||||||
<option value='spieler'>Spieler</option>
|
<option value='spieler'>Spieler</option>
|
||||||
<option value='spielplan'>Spielplan</option>
|
<option value='spielplan'>Spielplan</option>
|
||||||
|
<option value='teams'>Teams</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -1068,3 +1068,5 @@ COM_SPORTSMANAGER_MATCH_RESCHEDULING="Spielverlegung"
|
|||||||
COM_SPORTSMANAGER_MATCH_SWAPPING_HELP="Bei Heimrechttausch gleichen Termin eintragen"
|
COM_SPORTSMANAGER_MATCH_SWAPPING_HELP="Bei Heimrechttausch gleichen Termin eintragen"
|
||||||
COM_SPORTSMANAGER_NOT_VALID_TIME="Ungültige Uhrzeit"
|
COM_SPORTSMANAGER_NOT_VALID_TIME="Ungültige Uhrzeit"
|
||||||
COM_SPORTSMANAGER_REALLY_MATCH_RESCHEDULING="Willst Du diesen Spielverlegung wirklich entfernen?"
|
COM_SPORTSMANAGER_REALLY_MATCH_RESCHEDULING="Willst Du diesen Spielverlegung wirklich entfernen?"
|
||||||
|
COM_SPORTSMANAGER_REST_DAYS="Ruhetage"
|
||||||
|
COM_SPORTSMANAGER_TRAINING_DAYS="Trainingstage"
|
||||||
@@ -1068,3 +1068,5 @@ COM_SPORTSMANAGER_MATCH_RESCHEDULING="Match rescheduling"
|
|||||||
COM_SPORTSMANAGER_MATCH_SWAPPING_HELP="If home advantage is swapped, enter the same date"
|
COM_SPORTSMANAGER_MATCH_SWAPPING_HELP="If home advantage is swapped, enter the same date"
|
||||||
COM_SPORTSMANAGER_NOT_VALID_TIME="Not valid time"
|
COM_SPORTSMANAGER_NOT_VALID_TIME="Not valid time"
|
||||||
COM_SPORTSMANAGER_REALLY_MATCH_RESCHEDULING="Do you really want to remove this match rescheduling?"
|
COM_SPORTSMANAGER_REALLY_MATCH_RESCHEDULING="Do you really want to remove this match rescheduling?"
|
||||||
|
COM_SPORTSMANAGER_REST_DAYS="Rest days"
|
||||||
|
COM_SPORTSMANAGER_TRAINING_DAYS="Training days"
|
||||||
@@ -670,6 +670,9 @@ return new class () implements InstallerScriptInterface
|
|||||||
. "\n `ortsname` varchar(30) DEFAULT NULL,"
|
. "\n `ortsname` varchar(30) DEFAULT NULL,"
|
||||||
. "\n `ortsteil` varchar(30) DEFAULT NULL,"
|
. "\n `ortsteil` varchar(30) DEFAULT NULL,"
|
||||||
. "\n `url` varchar(150) DEFAULT NULL,"
|
. "\n `url` varchar(150) DEFAULT NULL,"
|
||||||
|
. "\n `telefon` varchar(64) DEFAULT NULL,"
|
||||||
|
. "\n `email` varchar(64) DEFAULT NULL,"
|
||||||
|
. "\n `ruhetage` varchar(64) DEFAULT NULL,"
|
||||||
. "\n `beschreibung` varchar(500) DEFAULT NULL,"
|
. "\n `beschreibung` varchar(500) DEFAULT NULL,"
|
||||||
. "\n `status` tinyint(1) NOT NULL DEFAULT '0',"
|
. "\n `status` tinyint(1) NOT NULL DEFAULT '0',"
|
||||||
. "\n PRIMARY KEY (`spielort_id`)"
|
. "\n PRIMARY KEY (`spielort_id`)"
|
||||||
@@ -692,6 +695,7 @@ return new class () implements InstallerScriptInterface
|
|||||||
. "\n `heimspiel_wochentag` tinyint(4) DEFAULT NULL,"
|
. "\n `heimspiel_wochentag` tinyint(4) DEFAULT NULL,"
|
||||||
. "\n `heimspiel_uhrzeit` smallint(6) DEFAULT NULL,"
|
. "\n `heimspiel_uhrzeit` smallint(6) DEFAULT NULL,"
|
||||||
. "\n `heimspielort_id` int(11) DEFAULT NULL,"
|
. "\n `heimspielort_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `trainingstage` varchar(64) DEFAULT NULL,"
|
||||||
. "\n `nichtraucherschutz` tinyint(4) DEFAULT '0',"
|
. "\n `nichtraucherschutz` tinyint(4) DEFAULT '0',"
|
||||||
. "\n `platz` smallint(6) DEFAULT NULL,"
|
. "\n `platz` smallint(6) DEFAULT NULL,"
|
||||||
. "\n `gesamtpunkte` float(6,2) DEFAULT NULL,"
|
. "\n `gesamtpunkte` float(6,2) DEFAULT NULL,"
|
||||||
@@ -1184,7 +1188,7 @@ return new class () implements InstallerScriptInterface
|
|||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "INSERT IGNORE #__sportsmanager_einstellungen SET name = 'datenbank_version', wert = '115';";
|
$query = "INSERT IGNORE #__sportsmanager_einstellungen SET name = 'datenbank_version', wert = '116';";
|
||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user