mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-09-11 18:41:50 +00:00
Zusatzinfo-Feld für Spielort im Admin-Formular ergänzt und Frontend-Anzeige der Heimspielstätte um Weitere Infos, Ruhetag und Training erweitert.
Adresse der Heimspielstätte verlinkt jetzt zusätzlich auf Google Maps. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
5d126b0d28
commit
cb2e614604
@@ -4040,6 +4040,7 @@ function adminEditSpielort(): void
|
|||||||
$telefon = $db->escape(trim($jInput->get('telefon', '', 'RAW')));
|
$telefon = $db->escape(trim($jInput->get('telefon', '', 'RAW')));
|
||||||
$email = $db->escape(trim($jInput->get('email', '', 'RAW')));
|
$email = $db->escape(trim($jInput->get('email', '', 'RAW')));
|
||||||
$ruhetage = $db->escape(trim($jInput->get('ruhetage', '', 'RAW')));
|
$ruhetage = $db->escape(trim($jInput->get('ruhetage', '', 'RAW')));
|
||||||
|
$zusatzinfo = $db->escape(trim($jInput->get('zusatzinfo', '', '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');
|
||||||
|
|
||||||
@@ -4048,8 +4049,8 @@ function adminEditSpielort(): void
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($id == 0) {
|
if ($id == 0) {
|
||||||
$query = "INSERT INTO #__sportsmanager_spielort (name, strasse, plz, ortsname, ortsteil, url, telefon, email, ruhetage, beschreibung, status)"
|
$query = "INSERT INTO #__sportsmanager_spielort (name, strasse, plz, ortsname, ortsteil, url, telefon, email, ruhetage, zusatzinfo, beschreibung, status)"
|
||||||
. "\n VALUES ('$name', '$strasse', '$plz', '$ortsname', '$ortsteil', '$url', '$telefon', '$email', '$ruhetage', '$beschreibung', '$status');";
|
. "\n VALUES ('$name', '$strasse', '$plz', '$ortsname', '$ortsteil', '$url', '$telefon', '$email', '$ruhetage', '$zusatzinfo', '$beschreibung', '$status');";
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
if (!$db->execute()) {
|
if (!$db->execute()) {
|
||||||
die($db->stderr(true));
|
die($db->stderr(true));
|
||||||
@@ -4066,6 +4067,7 @@ function adminEditSpielort(): void
|
|||||||
. "\n telefon = '$telefon',"
|
. "\n telefon = '$telefon',"
|
||||||
. "\n email = '$email',"
|
. "\n email = '$email',"
|
||||||
. "\n ruhetage = '$ruhetage',"
|
. "\n ruhetage = '$ruhetage',"
|
||||||
|
. "\n zusatzinfo = '$zusatzinfo',"
|
||||||
. "\n beschreibung = '$beschreibung',"
|
. "\n beschreibung = '$beschreibung',"
|
||||||
. "\n status = '$status'"
|
. "\n status = '$status'"
|
||||||
. "\n WHERE spielort_id = $id";
|
. "\n WHERE spielort_id = $id";
|
||||||
|
|||||||
@@ -2664,13 +2664,47 @@ global $params;
|
|||||||
else
|
else
|
||||||
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);
|
if (!empty($anschrift))
|
||||||
|
echo "<br /><a href=\"https://www.google.com/maps/search/?api=1&query=" . urlencode($anschrift) . "\" target=\"_blank\" rel=\"noopener\">" . htmlentities_utf8($anschrift) . "</a>";
|
||||||
if (!empty($team->telefon))
|
if (!empty($team->telefon))
|
||||||
echo "<br />" . htmlentities_utf8($team->telefon);
|
echo "<br />" . htmlentities_utf8($team->telefon);
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
|
if (!empty($team->zusatzinfo)) {
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td nowrap style="vertical-align: top">
|
||||||
|
<strong>Weitere Infos:</strong></td>
|
||||||
|
<td>
|
||||||
|
<?php echo nl2br(htmlentities_utf8($team->zusatzinfo)); ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
if (!empty($team->ruhetage)) {
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td nowrap style="vertical-align: top">
|
||||||
|
<strong>Ruhetag:</strong></td>
|
||||||
|
<td nowrap>
|
||||||
|
<?php echo htmlentities_utf8($team->ruhetage); ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
if (!empty($team->trainingstage)) {
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td nowrap style="vertical-align: top">
|
||||||
|
<strong>Training:</strong></td>
|
||||||
|
<td nowrap>
|
||||||
|
<?php echo htmlentities_utf8($team->trainingstage); ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ($team->nichtraucherschutz != 0) {
|
if ($team->nichtraucherschutz != 0) {
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -4436,6 +4436,17 @@ class HTML_sportsmanager_admin
|
|||||||
value="<?php if ($row != null) echo htmlentities_utf8($row->ruhetage); ?>"/>
|
value="<?php if ($row != null) echo htmlentities_utf8($row->ruhetage); ?>"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap style="width: 20%; text-align: right; vertical-align: top">
|
||||||
|
<label
|
||||||
|
for="zusatzinfo"><?php echo Text::_('COM_SPORTSMANAGER_ADDITIONAL_INFO'); ?>
|
||||||
|
:</label>
|
||||||
|
</td>
|
||||||
|
<td nowrap>
|
||||||
|
<textarea name="zusatzinfo" id="zusatzinfo" cols="60"
|
||||||
|
rows="8"><?php if ($row != null) echo htmlentities_utf8($row->zusatzinfo); ?></textarea>
|
||||||
|
</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
|
||||||
|
|||||||
@@ -1089,6 +1089,7 @@ COM_SPORTSMANAGER_MATCH_SWAPPING_HELP="Bei Heimrechttausch gleichen Termin eintr
|
|||||||
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_REST_DAYS="Ruhetage"
|
||||||
|
COM_SPORTSMANAGER_ADDITIONAL_INFO="Zusatzinfo"
|
||||||
COM_SPORTSMANAGER_TRAINING_DAYS="Trainingstage"
|
COM_SPORTSMANAGER_TRAINING_DAYS="Trainingstage"
|
||||||
COM_SPORTSMANAGER_NOT_ACTUALIZED_DATA="Nicht aktualisierte Daten"
|
COM_SPORTSMANAGER_NOT_ACTUALIZED_DATA="Nicht aktualisierte Daten"
|
||||||
COM_SPORTSMANAGER_ASSOCIATION_BODIES="Verbandsorgane"
|
COM_SPORTSMANAGER_ASSOCIATION_BODIES="Verbandsorgane"
|
||||||
|
|||||||
@@ -1089,6 +1089,7 @@ COM_SPORTSMANAGER_MATCH_SWAPPING_HELP="If home advantage is swapped, enter the s
|
|||||||
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_REST_DAYS="Rest days"
|
||||||
|
COM_SPORTSMANAGER_ADDITIONAL_INFO="Additional info"
|
||||||
COM_SPORTSMANAGER_TRAINING_DAYS="Training days"
|
COM_SPORTSMANAGER_TRAINING_DAYS="Training days"
|
||||||
COM_SPORTSMANAGER_NOT_ACTUALIZED_DATA="Data not updated"
|
COM_SPORTSMANAGER_NOT_ACTUALIZED_DATA="Data not updated"
|
||||||
COM_SPORTSMANAGER_ASSOCIATION_BODIES="Association bodies"
|
COM_SPORTSMANAGER_ASSOCIATION_BODIES="Association bodies"
|
||||||
|
|||||||
Reference in New Issue
Block a user