mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
Export Ordnungsstrafen. Unnötige Tags entfernt.
This commit is contained in:
@@ -6411,6 +6411,89 @@ function adminEditOrdnungsstrafe(): void
|
|||||||
redirectSportsManagerURL('&task=admin_ordnungsstrafen');
|
redirectSportsManagerURL('&task=admin_ordnungsstrafen');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[NoReturn] function adminExportOrdnungsstrafen(): void
|
||||||
|
{
|
||||||
|
$db = getDatabase();
|
||||||
|
$jInput = Factory::getContainer()->get(SiteApplication::class)->input;
|
||||||
|
|
||||||
|
$filter['saison'] = $jInput->get('filter_saison_id', 0, 'INT');
|
||||||
|
$filter['verein'] = $jInput->get('filter_verein_id', 0, 'INT');
|
||||||
|
$filter['veranstaltung'] = $jInput->get('filter_veranstaltung_id', 0, 'INT');
|
||||||
|
$filter['aussteller'] = $jInput->get('filter_aussteller_id', 0, 'INT');
|
||||||
|
|
||||||
|
if (!benutzerZugriff("benutzerVeranstalterModerator"))
|
||||||
|
keinZugriff(true);
|
||||||
|
|
||||||
|
if (empty($filter['saison']))
|
||||||
|
$filter['saison'] = $saisons[0]->saison_id;
|
||||||
|
if (!isset($filter['verein']))
|
||||||
|
$filter['verein'] = 0;
|
||||||
|
if (!isset($filter['veranstaltung']))
|
||||||
|
$filter['veranstaltung'] = 0;
|
||||||
|
if (!isset($filter['aussteller']))
|
||||||
|
$filter['aussteller'] = 0;
|
||||||
|
|
||||||
|
$query = "SELECT t1.ordnungsstrafen_id AS ID, t3.begegnung_id AS Spiel_ID, t7.bezeichnung AS Liga,"
|
||||||
|
. "\n t3.spieltag AS Spieltag, t9.vereinsname AS Verein, t2.verstoss AS Verstoss, t8.name AS Aussteller,"
|
||||||
|
. "\n (t1.multiplikator * t2.gebuehr + t2.zusatzgebuehr) AS Gebuehr,"
|
||||||
|
. "\n t1.ausstelldatum AS Ausstelldatum, t1.status AS Status"
|
||||||
|
. "\n FROM #__sportsmanager_ordnungsstrafen AS t1"
|
||||||
|
. "\n LEFT JOIN #__sportsmanager_verstoesse AS t2 ON t1.verstoesse_id = t2.verstoesse_id"
|
||||||
|
. "\n LEFT JOIN #__sportsmanager_begegnung AS t3 ON t1.begegnung_id = t3.begegnung_id"
|
||||||
|
. "\n LEFT JOIN #__sportsmanager_team AS t4 ON t1.team_id = t4.team_id"
|
||||||
|
. "\n LEFT JOIN #__sportsmanager_verein AS t9 ON t4.verein_id = t9.verein_id"
|
||||||
|
. "\n LEFT JOIN #__sportsmanager_team AS t5 ON t3.heim_team_id = t5.team_id"
|
||||||
|
. "\n LEFT JOIN #__sportsmanager_team AS t6 ON t3.gast_team_id = t6.team_id"
|
||||||
|
. "\n LEFT JOIN #__sportsmanager_veranstaltung AS t7 ON t4.veranstaltung_id = t7.veranstaltung_id"
|
||||||
|
. "\n LEFT JOIN #__users AS t8 ON t1.aussteller_id = t8.id"
|
||||||
|
. "\n WHERE t7.saison_id = '" . $filter['saison'] . "'";
|
||||||
|
if (!empty($filter['verein']))
|
||||||
|
$query .= "\n AND t9.verein_id = '" . $filter['verein'] . "'";
|
||||||
|
if (!empty($filter['veranstaltung']))
|
||||||
|
$query .= "\n AND t7.veranstaltung_id = '" . $filter['veranstaltung'] . "'";
|
||||||
|
if (!empty($filter['aussteller']))
|
||||||
|
$query .= "\n AND t8.id = '" . $filter['aussteller'] . "'";
|
||||||
|
$query .= "\n ORDER BY ordnungsstrafen_id";
|
||||||
|
$rows = loadObjectList($db, $query);
|
||||||
|
|
||||||
|
$dateiname .= "Ordnungsstrafen.csv";
|
||||||
|
$dateiname = bereinigterDateiname($dateiname);
|
||||||
|
ob_end_clean(); // Wegen UTF-8-Zeichen, die in der ausgabe vorhanden sind
|
||||||
|
Header("Content-Type: text/x-csv");
|
||||||
|
Header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||||
|
Header('Content-Disposition: attachment; filename="' . $dateiname . '"');
|
||||||
|
Header("Pragma: no-cache");
|
||||||
|
|
||||||
|
$data = "";
|
||||||
|
$trennzeichen = ";";
|
||||||
|
$spalte = 0;
|
||||||
|
$header = "";
|
||||||
|
|
||||||
|
foreach ($rows[0] as $field => $value) {
|
||||||
|
if ($spalte != 0) {
|
||||||
|
$header .= $trennzeichen;
|
||||||
|
}
|
||||||
|
$header .= $field;
|
||||||
|
$spalte++;
|
||||||
|
}
|
||||||
|
foreach ($rows as $row) {
|
||||||
|
$line = '';
|
||||||
|
$spalte = 0;
|
||||||
|
foreach ($row as $value) {
|
||||||
|
if ($spalte != 0) {
|
||||||
|
$line .= $trennzeichen;
|
||||||
|
}
|
||||||
|
$line .= $value;
|
||||||
|
$spalte++;
|
||||||
|
}
|
||||||
|
$data .= trim($line) . "\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo $header . "\n" . utf8_decode($data);
|
||||||
|
|
||||||
|
die();
|
||||||
|
}
|
||||||
|
|
||||||
function adminRegelwerke(): void
|
function adminRegelwerke(): void
|
||||||
{
|
{
|
||||||
$db = getDatabase();
|
$db = getDatabase();
|
||||||
|
|||||||
@@ -377,6 +377,9 @@ if ($task == "spielerbild") {
|
|||||||
case 'admin_ordnungsstrafe_remove':
|
case 'admin_ordnungsstrafe_remove':
|
||||||
adminRemoveOrdnungsstrafe();
|
adminRemoveOrdnungsstrafe();
|
||||||
break;
|
break;
|
||||||
|
case 'admin_ordnungsstrafen_export':
|
||||||
|
adminExportOrdnungsstrafen();
|
||||||
|
break;
|
||||||
case 'admin_verstoesse':
|
case 'admin_verstoesse':
|
||||||
adminVerstoesse();
|
adminVerstoesse();
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -6838,30 +6838,30 @@ class HTML_sportsmanager_admin
|
|||||||
}
|
}
|
||||||
|
|
||||||
function sendMail() {
|
function sendMail() {
|
||||||
let to = document.getElementById("to").value.trim();
|
let to = document.getElementById("to").value.trim();
|
||||||
if (!to) { alert("Bitte Empfänger eingeben!"); return; }
|
if (!to) { alert("Bitte Empfänger eingeben!"); return; }
|
||||||
|
|
||||||
let ccRaw = document.getElementById("cc").value;
|
let ccRaw = document.getElementById("cc").value;
|
||||||
let bccRaw = document.getElementById("bcc").value;
|
let bccRaw = document.getElementById("bcc").value;
|
||||||
|
|
||||||
let cc = buildAddressList(ccRaw);
|
let cc = buildAddressList(ccRaw);
|
||||||
let bcc = buildAddressList(bccRaw);
|
let bcc = buildAddressList(bccRaw);
|
||||||
|
|
||||||
let subject = encodeURIComponent(document.getElementById("subject").value);
|
let subject = encodeURIComponent(document.getElementById("subject").value);
|
||||||
let body = encodeURIComponent(document.getElementById("body").value);
|
let body = encodeURIComponent(document.getElementById("body").value);
|
||||||
|
|
||||||
// Mailto-Link zusammenbauen
|
// Mailto-Link zusammenbauen
|
||||||
let mailto = `mailto:${encodeURIComponent(to)}?`;
|
let mailto = `mailto:${encodeURIComponent(to)}?`;
|
||||||
|
|
||||||
if (cc) mailto += `cc=${cc}&`;
|
if (cc) mailto += `cc=${cc}&`;
|
||||||
if (bcc) mailto += `bcc=${bcc}&`;
|
if (bcc) mailto += `bcc=${bcc}&`;
|
||||||
if (subject) mailto += `subject=${subject}&`;
|
if (subject) mailto += `subject=${subject}&`;
|
||||||
if (body) mailto += `body=${body}`;
|
if (body) mailto += `body=${body}`;
|
||||||
|
|
||||||
mailto = mailto.replace(/[&?]+$/, ""); // aufräumen
|
mailto = mailto.replace(/[&?]+$/, ""); // aufräumen
|
||||||
|
|
||||||
// Mailclient öffnen
|
// Mailclient öffnen
|
||||||
window.location.href = mailto;
|
window.location.href = mailto;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -6910,7 +6910,7 @@ class HTML_sportsmanager_admin
|
|||||||
<td>
|
<td>
|
||||||
<label for="filter_saison_id"><?php echo Text::_('COM_SPORTSMANAGER_SEASON'); ?>:</label>
|
<label for="filter_saison_id"><?php echo Text::_('COM_SPORTSMANAGER_SEASON'); ?>:</label>
|
||||||
<select class="uk-form-width-small" name="filter_saison_id" id="filter_saison_id" size="1"
|
<select class="uk-form-width-small" name="filter_saison_id" id="filter_saison_id" size="1"
|
||||||
onChange="document.adminForm.submit();" >
|
onChange="document.adminForm.submit();" style='width: 60px;'>
|
||||||
<?php
|
<?php
|
||||||
foreach ($saisons as $saison)
|
foreach ($saisons as $saison)
|
||||||
echo "<option value=\"" . $saison->saison_id . "\" " . ($filter['saison'] == $saison->saison_id ? "selected" : "") . ">" . htmlentities_utf8($saison->saisonbezeichnung) . "</option>";
|
echo "<option value=\"" . $saison->saison_id . "\" " . ($filter['saison'] == $saison->saison_id ? "selected" : "") . ">" . htmlentities_utf8($saison->saisonbezeichnung) . "</option>";
|
||||||
@@ -6936,13 +6936,17 @@ class HTML_sportsmanager_admin
|
|||||||
</select>
|
</select>
|
||||||
<label for="filter_aussteller_id"><?php echo Text::_('COM_SPORTSMANAGER_ISSUER'); ?>:</label>
|
<label for="filter_aussteller_id"><?php echo Text::_('COM_SPORTSMANAGER_ISSUER'); ?>:</label>
|
||||||
<select class="uk-form-width-small" name="filter_aussteller_id" id="filter_aussteller_id" size="1"
|
<select class="uk-form-width-small" name="filter_aussteller_id" id="filter_aussteller_id" size="1"
|
||||||
onChange="document.adminForm.submit();" style='width: 200px;'>
|
onChange="document.adminForm.submit();" style='width: 150px;'>
|
||||||
<?php
|
<?php
|
||||||
echo "<option value=\"0\" " . ($filter['aussteller'] == 0 ? "selected" : "") . ">Alle</option>";
|
echo "<option value=\"0\" " . ($filter['aussteller'] == 0 ? "selected" : "") . ">Alle</option>";
|
||||||
foreach ($ausstellerliste as $aussteller)
|
foreach ($ausstellerliste as $aussteller)
|
||||||
echo "<option value=\"" . $aussteller->id . "\" " . ($filter['aussteller'] == $aussteller->id ? "selected" : "") . ">" . htmlentities_utf8($aussteller->name) . "</option>";
|
echo "<option value=\"" . $aussteller->id . "\" " . ($filter['aussteller'] == $aussteller->id ? "selected" : "") . ">" . htmlentities_utf8($aussteller->name) . "</option>";
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
|
<?php if (benutzerZugriff("benutzerVeranstalterModerator")){ ?>
|
||||||
|
<input type="submit" name="exportieren" value="<?php echo Text::_('COM_SPORTSMANAGER_EXPORT'); ?>"
|
||||||
|
class="button" onclick="this.form.task.value='admin_ordnungsstrafen_export';" />
|
||||||
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -6965,7 +6969,9 @@ class HTML_sportsmanager_admin
|
|||||||
<th style='text-align: center;' nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_FEE'); ?></strong></th>
|
<th style='text-align: center;' nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_FEE'); ?></strong></th>
|
||||||
<th style='text-align: center;' nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_DATE'); ?></strong></th>
|
<th style='text-align: center;' nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_DATE'); ?></strong></th>
|
||||||
<th style='text-align: center;' nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_status'); ?></strong></th>
|
<th style='text-align: center;' nowrap><strong><?php echo Text::_('COM_SPORTSMANAGER_status'); ?></strong></th>
|
||||||
<th></th>
|
<?php if (benutzerZugriff("benutzerVeranstalterModerator")){ ?>
|
||||||
|
<th></th>
|
||||||
|
<?php } ?>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
@@ -7018,132 +7024,124 @@ class HTML_sportsmanager_admin
|
|||||||
<form action="<?php echo SportsManagerURL(); ?>" method="post" name="adminForm" id="adminForm"
|
<form action="<?php echo SportsManagerURL(); ?>" method="post" name="adminForm" id="adminForm"
|
||||||
enctype="multipart/form-data">
|
enctype="multipart/form-data">
|
||||||
<div class="uk-overflow-auto">
|
<div class="uk-overflow-auto">
|
||||||
<table style="width: 100%">
|
<table style="width: 100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap style="width: 60%; vertical-align: top">
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
<div class="uk-overflow-auto">
|
<label
|
||||||
<table style="width: 100%">
|
for="match"><?php echo Text::_('COM_SPORTSMANAGER_MATCH'); ?>
|
||||||
<tr>
|
:</label>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
</td>
|
||||||
<label
|
<td nowrap>
|
||||||
for="match"><?php echo Text::_('COM_SPORTSMANAGER_MATCH'); ?>
|
<input class="uk-select uk-form-width-large" type="text" name="begegnung"
|
||||||
:</label>
|
id="match" size="50" style='height: 34px;' readonly
|
||||||
</td>
|
value="<?php echo $begegnung->begegnung; ?>"/>
|
||||||
<td nowrap>
|
<input class="uk-select uk-form-width-small" type="text" name="begegnung_id" id="match_id"
|
||||||
<input class="uk-select uk-form-width-large" type="text" name="begegnung"
|
style='height: 34px; display: none;' readonly
|
||||||
id="match" size="50" style='height: 34px;' readonly
|
value="<?php echo $begegnung->begegnung_id; ?>"/>
|
||||||
value="<?php echo $begegnung->begegnung; ?>"/>
|
</td>
|
||||||
<input class="uk-select uk-form-width-small" type="text" name="begegnung_id" id="match_id"
|
</tr>
|
||||||
style='height: 34px; display: none;' readonly
|
<tr>
|
||||||
value="<?php echo $begegnung->begegnung_id; ?>"/>
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
</td>
|
<label for="violation"><?php echo Text::_('COM_SPORTSMANAGER_VIOLATION'); ?>
|
||||||
</tr>
|
:</label>
|
||||||
<tr>
|
</td>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
<td nowrap>
|
||||||
<label for="violation"><?php echo Text::_('COM_SPORTSMANAGER_VIOLATION'); ?>
|
<select class="uk-select uk-form-width-large" name="verstoesse_id" id="violation"
|
||||||
:</label>
|
size="1">
|
||||||
</td>
|
<option value="0"><?php echo Text::_('COM_SPORTSMANAGER_NO_SELECT'); ?></option>
|
||||||
<td nowrap>
|
<?php
|
||||||
<select class="uk-select uk-form-width-large" name="verstoesse_id" id="violation"
|
foreach ($verstoesse as $verstoss) {
|
||||||
size="1">
|
echo "<option value=\"" . $verstoss->verstoesse_id . "\"" . ($row != null ? ($row->verstoesse_id == $verstoss->verstoesse_id ? "selected" : "") : "") . ">" . htmlentities_utf8($verstoss->verstoss) . "</option>";
|
||||||
<option value="0"><?php echo Text::_('COM_SPORTSMANAGER_NO_SELECT'); ?></option>
|
}
|
||||||
<?php
|
?>
|
||||||
foreach ($verstoesse as $verstoss) {
|
</select>
|
||||||
echo "<option value=\"" . $verstoss->verstoesse_id . "\"" . ($row != null ? ($row->verstoesse_id == $verstoss->verstoesse_id ? "selected" : "") : "") . ">" . htmlentities_utf8($verstoss->verstoss) . "</option>";
|
</td>
|
||||||
}
|
</tr>
|
||||||
?>
|
<tr>
|
||||||
</select>
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
</td>
|
<label for="team"><?php echo Text::_('COM_SPORTSMANAGER_TEAM'); ?>
|
||||||
</tr>
|
:</label>
|
||||||
<tr>
|
</td>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
<td nowrap>
|
||||||
<label for="team"><?php echo Text::_('COM_SPORTSMANAGER_TEAM'); ?>
|
<select class="uk-select uk-form-width-medium" name="team_id" id="team"
|
||||||
:</label>
|
size="1" style='height: 34px; width: 300px;'>
|
||||||
</td>
|
<?php
|
||||||
<td nowrap>
|
echo "<option value=\"" . $begegnung->heim_team_id . "\"" . ($row != null ? ($row->team_id == $begegnung->heim_team_id ? "selected" : "") : "") . ">" . htmlentities_utf8($begegnung->heim_name) . "</option>";
|
||||||
<select class="uk-select uk-form-width-medium" name="team_id" id="team"
|
echo "<option value=\"" . $begegnung->gast_team_id . "\"" . ($row != null ? ($row->team_id == $begegnung->gast_team_id ? "selected" : "") : "") . ">" . htmlentities_utf8($begegnung->gast_name) . "</option>";
|
||||||
size="1" style='height: 34px; width: 300px;'>
|
?>
|
||||||
<?php
|
</select>
|
||||||
echo "<option value=\"" . $begegnung->heim_team_id . "\"" . ($row != null ? ($row->team_id == $begegnung->heim_team_id ? "selected" : "") : "") . ">" . htmlentities_utf8($begegnung->heim_name) . "</option>";
|
</td>
|
||||||
echo "<option value=\"" . $begegnung->gast_team_id . "\"" . ($row != null ? ($row->team_id == $begegnung->gast_team_id ? "selected" : "") : "") . ">" . htmlentities_utf8($begegnung->gast_name) . "</option>";
|
</tr>
|
||||||
?>
|
<tr>
|
||||||
</select>
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
</td>
|
<label
|
||||||
</tr>
|
for="issuer"><?php echo Text::_('COM_SPORTSMANAGER_ISSUER'); ?>
|
||||||
<tr>
|
:</label>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
</td>
|
||||||
<label
|
<td nowrap>
|
||||||
for="issuer"><?php echo Text::_('COM_SPORTSMANAGER_ISSUER'); ?>
|
<input class="uk-select uk-form-width-medium" type="text" name="aussteller"
|
||||||
:</label>
|
id="issuer" size="1" style='height: 34px; width: 300px;' readonly
|
||||||
</td>
|
value="<?php echo $aussteller->name; ?>"/>
|
||||||
<td nowrap>
|
<input class="uk-select uk-form-width-small" type="text" name="aussteller_id" id="issuer_id"
|
||||||
<input class="uk-select uk-form-width-medium" type="text" name="aussteller"
|
style='height: 34px; display: none;' size="1" readonly
|
||||||
id="issuer" size="1" style='height: 34px; width: 300px;' readonly
|
value="<?php echo $aussteller->id; ?>"/>
|
||||||
value="<?php echo $aussteller->name; ?>"/>
|
</td>
|
||||||
<input class="uk-select uk-form-width-small" type="text" name="aussteller_id" id="issuer_id"
|
</tr>
|
||||||
style='height: 34px; display: none;' size="1" readonly
|
<tr>
|
||||||
value="<?php echo $aussteller->id; ?>"/>
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
</td>
|
<label
|
||||||
</tr>
|
for="issuedate"><?php echo Text::_('COM_SPORTSMANAGER_ISSUE_DATE'); ?>
|
||||||
<tr>
|
:</label>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
</td>
|
||||||
<label
|
<td nowrap>
|
||||||
for="issuedate"><?php echo Text::_('COM_SPORTSMANAGER_ISSUE_DATE'); ?>
|
<input class="uk-select uk-form-width-medium" type="text" name="ausstelldatum" id="issuedate"
|
||||||
:</label>
|
size="1" style='height: 34px; width: 300px;' title='Format YYYY-mm-dd' readonly
|
||||||
</td>
|
value="<?php echo (empty($row->ausstelldatum) ? date('Y-m-d') : $row->ausstelldatum); ?>"/>
|
||||||
<td nowrap>
|
</td>
|
||||||
<input class="uk-select uk-form-width-medium" type="text" name="ausstelldatum" id="issuedate"
|
</tr>
|
||||||
size="1" style='height: 34px; width: 300px;' title='Format YYYY-mm-dd' readonly
|
<tr>
|
||||||
value="<?php echo (empty($row->ausstelldatum) ? date('Y-m-d') : $row->ausstelldatum); ?>"/>
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
</td>
|
<label for="multiplier"><?php echo Text::_('COM_SPORTSMANAGER_MULTIPLIER'); ?>
|
||||||
</tr>
|
:</label>
|
||||||
<tr>
|
</td>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
<td nowrap>
|
||||||
<label for="multiplier"><?php echo Text::_('COM_SPORTSMANAGER_MULTIPLIER'); ?>
|
<select class="uk-select uk-form-width-xsmall" name="multiplikator" id="multiplier" size="1">
|
||||||
:</label>
|
<?php
|
||||||
</td>
|
for ($i = 1; $i <= 4; $i++) {
|
||||||
<td nowrap>
|
echo "<option value=\"" . $i . "\"" . ($row != null ? ($row->multiplikator == $i ? " selected" : "") : "") . ">" . $i . "</option>";
|
||||||
<select class="uk-select uk-form-width-xsmall" name="multiplikator" id="multiplier" size="1">
|
}
|
||||||
<?php
|
?>
|
||||||
for ($i = 1; $i <= 4; $i++) {
|
</select>
|
||||||
echo "<option value=\"" . $i . "\"" . ($row != null ? ($row->multiplikator == $i ? " selected" : "") : "") . ">" . $i . "</option>";
|
</td>
|
||||||
}
|
</tr>
|
||||||
?>
|
<tr>
|
||||||
</select>
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
</td>
|
<label
|
||||||
</tr>
|
for="additional_information"><?php echo Text::_('COM_SPORTSMANAGER_ADDITIONAL_INFORMATION'); ?>
|
||||||
<tr>
|
:</label>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
</td>
|
||||||
<label
|
<td nowrap>
|
||||||
for="additional_information"><?php echo Text::_('COM_SPORTSMANAGER_ADDITIONAL_INFORMATION'); ?>
|
<textarea name="weitere_angaben" id="additional_information" cols="100"
|
||||||
:</label>
|
rows="8"><?php if ($row != null) echo htmlentities_utf8($row->weitere_angaben); ?></textarea>
|
||||||
</td>
|
</td>
|
||||||
<td nowrap>
|
</tr>
|
||||||
<textarea name="weitere_angaben" id="additional_information" cols="100"
|
<tr>
|
||||||
rows="8"><?php if ($row != null) echo htmlentities_utf8($row->weitere_angaben); ?></textarea>
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
</td>
|
<label for="state"><?php echo Text::_('COM_SPORTSMANAGER_STATUS'); ?>
|
||||||
</tr>
|
:</label>
|
||||||
<tr>
|
</td>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
<td nowrap>
|
||||||
<label for="state"><?php echo Text::_('COM_SPORTSMANAGER_STATUS'); ?>
|
<select class="uk-select uk-form-width-small" name="status" id="state"
|
||||||
:</label>
|
size="1" style='height: 34px; width: 300px;'>
|
||||||
</td>
|
<?php
|
||||||
<td nowrap>
|
foreach ($stati as $status) {
|
||||||
<select class="uk-select uk-form-width-small" name="status" id="state"
|
echo "<option value=\"" . $status . "\"" . ($row != null ? ($row->status == $status ? "selected" : "") : "") . ">" . htmlentities_utf8($status) . "</option>";
|
||||||
size="1" style='height: 34px; width: 300px;'>
|
}
|
||||||
<?php
|
?>
|
||||||
foreach ($stati as $status) {
|
</select>
|
||||||
echo "<option value=\"" . $status . "\"" . ($row != null ? ($row->status == $status ? "selected" : "") : "") . ">" . htmlentities_utf8($status) . "</option>";
|
</td>
|
||||||
}
|
</tr>
|
||||||
?>
|
</table>
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
</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"/>
|
||||||
@@ -7220,35 +7218,26 @@ class HTML_sportsmanager_admin
|
|||||||
<form action="<?php echo SportsManagerURL(); ?>" method="post" name="adminForm" id="adminForm"
|
<form action="<?php echo SportsManagerURL(); ?>" method="post" name="adminForm" id="adminForm"
|
||||||
enctype="multipart/form-data">
|
enctype="multipart/form-data">
|
||||||
<div class="uk-overflow-auto">
|
<div class="uk-overflow-auto">
|
||||||
<table style="width: 100%">
|
<table style="width: 100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap style="width: 60%; vertical-align: top">
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
<div class="uk-overflow-auto">
|
<label
|
||||||
<table style="width: 100%">
|
for="rulebook"><?php echo Text::_('COM_SPORTSMANAGER_RULEBOOK'); ?>
|
||||||
<tr>
|
:</label>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
</td>
|
||||||
<label
|
<td nowrap>
|
||||||
for="rulebook"><?php echo Text::_('COM_SPORTSMANAGER_RULEBOOK'); ?>
|
<input class="inputbox" type="text" name="regelwerk"
|
||||||
:</label>
|
id="rulebook" size="50"
|
||||||
</td>
|
maxlength="32"
|
||||||
<td nowrap>
|
value="<?php if ($row != null) echo htmlentities_utf8($row->regelwerk); ?>"/>
|
||||||
<input class="inputbox" type="text" name="regelwerk"
|
</td>
|
||||||
id="rulebook" size="50"
|
<tr>
|
||||||
maxlength="32"
|
<td nowrap colspan="2">
|
||||||
value="<?php if ($row != null) echo htmlentities_utf8($row->regelwerk); ?>"/>
|
|
||||||
</td>
|
|
||||||
<tr>
|
|
||||||
<td nowrap colspan="2">
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
</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'); ?>"
|
||||||
class="button"/>
|
class="button"/>
|
||||||
@@ -7330,140 +7319,133 @@ class HTML_sportsmanager_admin
|
|||||||
<form action="<?php echo SportsManagerURL(); ?>" method="post" name="adminForm" id="adminForm"
|
<form action="<?php echo SportsManagerURL(); ?>" method="post" name="adminForm" id="adminForm"
|
||||||
enctype="multipart/form-data">
|
enctype="multipart/form-data">
|
||||||
<div class="uk-overflow-auto">
|
<div class="uk-overflow-auto">
|
||||||
<table style="width: 100%">
|
<table style="width: 100%">
|
||||||
<tr>
|
</tr>
|
||||||
<td nowrap style="width: 60%; vertical-align: top">
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
<div class="uk-overflow-auto">
|
<label for="rulebook"><?php echo Text::_('COM_SPORTSMANAGER_RULEBOOK'); ?>
|
||||||
<table style="width: 100%">
|
:</label>
|
||||||
</tr>
|
</td>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
<td nowrap>
|
||||||
<label for="rulebook"><?php echo Text::_('COM_SPORTSMANAGER_RULEBOOK'); ?>
|
<select class="uk-select uk-form-width-medium" name="regelwerke_id" id="rulebook"
|
||||||
:</label>
|
size="1">
|
||||||
</td>
|
<option value="0"><?php echo Text::_('COM_SPORTSMANAGER_NO_SELECT'); ?></option>
|
||||||
<td nowrap>
|
<?php
|
||||||
<select class="uk-select uk-form-width-medium" name="regelwerke_id" id="rulebook"
|
foreach ($regelwerke as $regelwerk) {
|
||||||
size="1">
|
echo "<option value=\"" . $regelwerk->regelwerke_id . "\"" . ($row != null ? ($row->regelwerke_id == $regelwerk->regelwerke_id ? "selected" : "") : "") . ">" . htmlentities_utf8($regelwerk->regelwerk) . "</option>";
|
||||||
<option value="0"><?php echo Text::_('COM_SPORTSMANAGER_NO_SELECT'); ?></option>
|
}
|
||||||
<?php
|
?>
|
||||||
foreach ($regelwerke as $regelwerk) {
|
</select>
|
||||||
echo "<option value=\"" . $regelwerk->regelwerke_id . "\"" . ($row != null ? ($row->regelwerke_id == $regelwerk->regelwerke_id ? "selected" : "") : "") . ">" . htmlentities_utf8($regelwerk->regelwerk) . "</option>";
|
</td>
|
||||||
}
|
</tr>
|
||||||
?>
|
<tr>
|
||||||
</select>
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
</td>
|
<label
|
||||||
</tr>
|
for="rule"><?php echo Text::_('COM_SPORTSMANAGER_RULE_LONG'); ?>
|
||||||
<tr>
|
:</label>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
</td>
|
||||||
<label
|
<td nowrap>
|
||||||
for="rule"><?php echo Text::_('COM_SPORTSMANAGER_RULE_LONG'); ?>
|
<input class="uk-select uk-form-width-medium" type="text" name="paragraph_spo"
|
||||||
:</label>
|
id="rule" size="50" maxlength="32"
|
||||||
</td>
|
style='width: 200px; height: 34px;'
|
||||||
<td nowrap>
|
value="<?php if ($row != null) echo htmlentities_utf8($row->paragraph_spo); ?>"/>
|
||||||
<input class="uk-select uk-form-width-medium" type="text" name="paragraph_spo"
|
</td>
|
||||||
id="rule" size="50" maxlength="32"
|
</tr>
|
||||||
style='width: 200px; height: 34px;'
|
<tr>
|
||||||
value="<?php if ($row != null) echo htmlentities_utf8($row->paragraph_spo); ?>"/>
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
</td>
|
<label
|
||||||
</tr>
|
for="fee_long"><?php echo Text::_('COM_SPORTSMANAGER_FEE_LONG'); ?>
|
||||||
<tr>
|
:</label>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
</td>
|
||||||
<label
|
<td nowrap>
|
||||||
for="fee_long"><?php echo Text::_('COM_SPORTSMANAGER_FEE_LONG'); ?>
|
<input class="uk-select uk-form-width-medium" type="text" name="paragraph_go"
|
||||||
:</label>
|
id="fee_long" size="50" maxlength="32"
|
||||||
</td>
|
style='width: 200px; height: 34px;'
|
||||||
<td nowrap>
|
value="<?php if ($row != null) echo htmlentities_utf8($row->paragraph_go); ?>"/>
|
||||||
<input class="uk-select uk-form-width-medium" type="text" name="paragraph_go"
|
</td>
|
||||||
id="fee_long" size="50" maxlength="32"
|
</tr>
|
||||||
style='width: 200px; height: 34px;'
|
<tr>
|
||||||
value="<?php if ($row != null) echo htmlentities_utf8($row->paragraph_go); ?>"/>
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
</td>
|
<label
|
||||||
</tr>
|
for="violation"><?php echo Text::_('COM_SPORTSMANAGER_VIOLATION'); ?>
|
||||||
<tr>
|
:</label>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
</td>
|
||||||
<label
|
<td nowrap>
|
||||||
for="violation"><?php echo Text::_('COM_SPORTSMANAGER_VIOLATION'); ?>
|
<input class="uk-select uk-form-width-medium" type="text" name="verstoss"
|
||||||
:</label>
|
id="violation" size="50" maxlength="64"
|
||||||
</td>
|
style='width: 600px; height: 34px;'
|
||||||
<td nowrap>
|
value="<?php if ($row != null) echo htmlentities_utf8($row->verstoss); ?>"/>
|
||||||
<input class="uk-select uk-form-width-medium" type="text" name="verstoss"
|
</td>
|
||||||
id="violation" size="50" maxlength="64"
|
</tr>
|
||||||
style='width: 600px; height: 34px;'
|
<tr>
|
||||||
value="<?php if ($row != null) echo htmlentities_utf8($row->verstoss); ?>"/>
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
</td>
|
<label
|
||||||
</tr>
|
for="text1"><?php echo Text::_('COM_SPORTSMANAGER_VIOLATION_TEXT'); ?>
|
||||||
<tr>
|
:</label>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
</td>
|
||||||
<label
|
<td nowrap>
|
||||||
for="text1"><?php echo Text::_('COM_SPORTSMANAGER_VIOLATION_TEXT'); ?>
|
<textarea name="haupttext" id="text1" cols="80"
|
||||||
:</label>
|
rows="6"><?php if ($row != null) echo htmlentities_utf8($row->haupttext); ?></textarea>
|
||||||
</td>
|
</td>
|
||||||
<td nowrap>
|
</tr>
|
||||||
<textarea name="haupttext" id="text1" cols="80"
|
<tr>
|
||||||
rows="6"><?php if ($row != null) echo htmlentities_utf8($row->haupttext); ?></textarea>
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
</td>
|
<label
|
||||||
</tr>
|
for="text2"><?php echo Text::_('COM_SPORTSMANAGER_VIOLATION_ADD_TEXT'); ?>
|
||||||
<tr>
|
:</label>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
</td>
|
||||||
<label
|
<td nowrap>
|
||||||
for="text2"><?php echo Text::_('COM_SPORTSMANAGER_VIOLATION_ADD_TEXT'); ?>
|
<textarea name="zusatztext" id="text2" cols="80"
|
||||||
:</label>
|
rows="6"><?php if ($row != null) echo htmlentities_utf8($row->zusatztext); ?></textarea>
|
||||||
</td>
|
</td>
|
||||||
<td nowrap>
|
</tr>
|
||||||
<textarea name="zusatztext" id="text2" cols="80"
|
<tr>
|
||||||
rows="6"><?php if ($row != null) echo htmlentities_utf8($row->zusatztext); ?></textarea>
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
</td>
|
<label for="fee"><?php echo Text::_('COM_SPORTSMANAGER_FEE'); ?>
|
||||||
</tr>
|
:</label>
|
||||||
<tr>
|
</td>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
<td nowrap>
|
||||||
<label for="fee"><?php echo Text::_('COM_SPORTSMANAGER_FEE'); ?>
|
<select class="uk-select uk-form-width-small" name="gebuehr" id="fee" size="1">
|
||||||
:</label>
|
<?php
|
||||||
</td>
|
for ($i = 0; $i <= 200; $i++) {
|
||||||
<td nowrap>
|
echo "<option value=\"" . $i . "\"" . ($row != null ? ($row->gebuehr == $i ? " selected" : "") : "") . ">" . $i . "</option>";
|
||||||
<select class="uk-select uk-form-width-small" name="gebuehr" id="fee" size="1">
|
}
|
||||||
<?php
|
?>
|
||||||
for ($i = 0; $i <= 200; $i++) {
|
</select>
|
||||||
echo "<option value=\"" . $i . "\"" . ($row != null ? ($row->gebuehr == $i ? " selected" : "") : "") . ">" . $i . "</option>";
|
</td>
|
||||||
}
|
</tr>
|
||||||
?>
|
<tr>
|
||||||
</select>
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
</td>
|
<label for="add_fee"><?php echo Text::_('COM_SPORTSMANAGER_ADD_FEE'); ?>
|
||||||
</tr>
|
:</label>
|
||||||
<tr>
|
</td>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
<td nowrap>
|
||||||
<label for="add_fee"><?php echo Text::_('COM_SPORTSMANAGER_ADD_FEE'); ?>
|
<select class="uk-select uk-form-width-small" name="zusatzgebuehr" id="add_fee" size="1">
|
||||||
:</label>
|
<?php
|
||||||
</td>
|
for ($i = 0; $i <= 200; $i++) {
|
||||||
<td nowrap>
|
echo "<option value=\"" . $i . "\"" . ($row != null ? ($row->zusatzgebuehr == $i ? " selected" : "") : "") . ">" . $i . "</option>";
|
||||||
<select class="uk-select uk-form-width-small" name="zusatzgebuehr" id="add_fee" size="1">
|
}
|
||||||
<?php
|
?>
|
||||||
for ($i = 0; $i <= 200; $i++) {
|
</select>
|
||||||
echo "<option value=\"" . $i . "\"" . ($row != null ? ($row->zusatzgebuehr == $i ? " selected" : "") : "") . ">" . $i . "</option>";
|
</td>
|
||||||
}
|
</tr>
|
||||||
?>
|
<tr>
|
||||||
</select>
|
<td nowrap style="width: 20%; text-align: right">
|
||||||
</td>
|
<label for="for_select"><?php echo Text::_('COM_SPORTSMANAGER_SELECTABLE'); ?>
|
||||||
</tr>
|
:</label>
|
||||||
<tr>
|
</td>
|
||||||
<td nowrap style="width: 20%; text-align: right">
|
<td nowrap>
|
||||||
<label for="for_select"><?php echo Text::_('COM_SPORTSMANAGER_SELECTABLE'); ?>
|
<select class="uk-select uk-form-width-small" name="zur_auswahl" id="for_select" size="1">
|
||||||
:</label>
|
<?php
|
||||||
</td>
|
$zur_auswahl = array(Text::_('COM_SPORTSMANAGER_NO'), Text::_('COM_SPORTSMANAGER_YES'));
|
||||||
<td nowrap>
|
for ($i = 1; $i >= 0; $i--) {
|
||||||
<select class="uk-select uk-form-width-small" name="zur_auswahl" id="for_select" size="1">
|
echo "<option value=\"" . $i . "\"" . ($row != null ? ($row->zur_auswahl == $i ? " selected" : "") : "") . ">" . htmlentities_utf8($zur_auswahl[$i]) . "</option>";
|
||||||
<?php
|
}
|
||||||
$zur_auswahl = array(Text::_('COM_SPORTSMANAGER_NO'), Text::_('COM_SPORTSMANAGER_YES'));
|
?>
|
||||||
for ($i = 1; $i >= 0; $i--) {
|
</select>
|
||||||
echo "<option value=\"" . $i . "\"" . ($row != null ? ($row->zur_auswahl == $i ? " selected" : "") : "") . ">" . htmlentities_utf8($zur_auswahl[$i]) . "</option>";
|
</td>
|
||||||
}
|
</tr>
|
||||||
?>
|
</table>
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<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"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user