mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 14:37: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');
|
||||
}
|
||||
|
||||
#[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
|
||||
{
|
||||
$db = getDatabase();
|
||||
|
||||
@@ -377,6 +377,9 @@ if ($task == "spielerbild") {
|
||||
case 'admin_ordnungsstrafe_remove':
|
||||
adminRemoveOrdnungsstrafe();
|
||||
break;
|
||||
case 'admin_ordnungsstrafen_export':
|
||||
adminExportOrdnungsstrafen();
|
||||
break;
|
||||
case 'admin_verstoesse':
|
||||
adminVerstoesse();
|
||||
break;
|
||||
|
||||
@@ -6838,30 +6838,30 @@ class HTML_sportsmanager_admin
|
||||
}
|
||||
|
||||
function sendMail() {
|
||||
let to = document.getElementById("to").value.trim();
|
||||
if (!to) { alert("Bitte Empfänger eingeben!"); return; }
|
||||
let to = document.getElementById("to").value.trim();
|
||||
if (!to) { alert("Bitte Empfänger eingeben!"); return; }
|
||||
|
||||
let ccRaw = document.getElementById("cc").value;
|
||||
let bccRaw = document.getElementById("bcc").value;
|
||||
let ccRaw = document.getElementById("cc").value;
|
||||
let bccRaw = document.getElementById("bcc").value;
|
||||
|
||||
let cc = buildAddressList(ccRaw);
|
||||
let bcc = buildAddressList(bccRaw);
|
||||
let cc = buildAddressList(ccRaw);
|
||||
let bcc = buildAddressList(bccRaw);
|
||||
|
||||
let subject = encodeURIComponent(document.getElementById("subject").value);
|
||||
let body = encodeURIComponent(document.getElementById("body").value);
|
||||
let subject = encodeURIComponent(document.getElementById("subject").value);
|
||||
let body = encodeURIComponent(document.getElementById("body").value);
|
||||
|
||||
// Mailto-Link zusammenbauen
|
||||
let mailto = `mailto:${encodeURIComponent(to)}?`;
|
||||
// Mailto-Link zusammenbauen
|
||||
let mailto = `mailto:${encodeURIComponent(to)}?`;
|
||||
|
||||
if (cc) mailto += `cc=${cc}&`;
|
||||
if (bcc) mailto += `bcc=${bcc}&`;
|
||||
if (subject) mailto += `subject=${subject}&`;
|
||||
if (body) mailto += `body=${body}`;
|
||||
if (cc) mailto += `cc=${cc}&`;
|
||||
if (bcc) mailto += `bcc=${bcc}&`;
|
||||
if (subject) mailto += `subject=${subject}&`;
|
||||
if (body) mailto += `body=${body}`;
|
||||
|
||||
mailto = mailto.replace(/[&?]+$/, ""); // aufräumen
|
||||
mailto = mailto.replace(/[&?]+$/, ""); // aufräumen
|
||||
|
||||
// Mailclient öffnen
|
||||
window.location.href = mailto;
|
||||
// Mailclient öffnen
|
||||
window.location.href = mailto;
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -6910,7 +6910,7 @@ class HTML_sportsmanager_admin
|
||||
<td>
|
||||
<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"
|
||||
onChange="document.adminForm.submit();" >
|
||||
onChange="document.adminForm.submit();" style='width: 60px;'>
|
||||
<?php
|
||||
foreach ($saisons as $saison)
|
||||
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>
|
||||
<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"
|
||||
onChange="document.adminForm.submit();" style='width: 200px;'>
|
||||
onChange="document.adminForm.submit();" style='width: 150px;'>
|
||||
<?php
|
||||
echo "<option value=\"0\" " . ($filter['aussteller'] == 0 ? "selected" : "") . ">Alle</option>";
|
||||
foreach ($ausstellerliste as $aussteller)
|
||||
echo "<option value=\"" . $aussteller->id . "\" " . ($filter['aussteller'] == $aussteller->id ? "selected" : "") . ">" . htmlentities_utf8($aussteller->name) . "</option>";
|
||||
?>
|
||||
</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>
|
||||
</tr>
|
||||
</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_DATE'); ?></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>
|
||||
<?php
|
||||
|
||||
@@ -7018,132 +7024,124 @@ class HTML_sportsmanager_admin
|
||||
<form action="<?php echo SportsManagerURL(); ?>" method="post" name="adminForm" id="adminForm"
|
||||
enctype="multipart/form-data">
|
||||
<div class="uk-overflow-auto">
|
||||
<table style="width: 100%">
|
||||
<tr>
|
||||
<td nowrap style="width: 60%; vertical-align: top">
|
||||
<div class="uk-overflow-auto">
|
||||
<table style="width: 100%">
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="match"><?php echo Text::_('COM_SPORTSMANAGER_MATCH'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<input class="uk-select uk-form-width-large" type="text" name="begegnung"
|
||||
id="match" size="50" style='height: 34px;' readonly
|
||||
value="<?php echo $begegnung->begegnung; ?>"/>
|
||||
<input class="uk-select uk-form-width-small" type="text" name="begegnung_id" id="match_id"
|
||||
style='height: 34px; display: none;' readonly
|
||||
value="<?php echo $begegnung->begegnung_id; ?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label for="violation"><?php echo Text::_('COM_SPORTSMANAGER_VIOLATION'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<select class="uk-select uk-form-width-large" name="verstoesse_id" id="violation"
|
||||
size="1">
|
||||
<option value="0"><?php echo Text::_('COM_SPORTSMANAGER_NO_SELECT'); ?></option>
|
||||
<?php
|
||||
foreach ($verstoesse as $verstoss) {
|
||||
echo "<option value=\"" . $verstoss->verstoesse_id . "\"" . ($row != null ? ($row->verstoesse_id == $verstoss->verstoesse_id ? "selected" : "") : "") . ">" . htmlentities_utf8($verstoss->verstoss) . "</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label for="team"><?php echo Text::_('COM_SPORTSMANAGER_TEAM'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<select class="uk-select uk-form-width-medium" name="team_id" id="team"
|
||||
size="1" style='height: 34px; width: 300px;'>
|
||||
<?php
|
||||
echo "<option value=\"" . $begegnung->heim_team_id . "\"" . ($row != null ? ($row->team_id == $begegnung->heim_team_id ? "selected" : "") : "") . ">" . htmlentities_utf8($begegnung->heim_name) . "</option>";
|
||||
echo "<option value=\"" . $begegnung->gast_team_id . "\"" . ($row != null ? ($row->team_id == $begegnung->gast_team_id ? "selected" : "") : "") . ">" . htmlentities_utf8($begegnung->gast_name) . "</option>";
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="issuer"><?php echo Text::_('COM_SPORTSMANAGER_ISSUER'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<input class="uk-select uk-form-width-medium" type="text" name="aussteller"
|
||||
id="issuer" size="1" style='height: 34px; width: 300px;' readonly
|
||||
value="<?php echo $aussteller->name; ?>"/>
|
||||
<input class="uk-select uk-form-width-small" type="text" name="aussteller_id" id="issuer_id"
|
||||
style='height: 34px; display: none;' size="1" readonly
|
||||
value="<?php echo $aussteller->id; ?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="issuedate"><?php echo Text::_('COM_SPORTSMANAGER_ISSUE_DATE'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<input class="uk-select uk-form-width-medium" type="text" name="ausstelldatum" id="issuedate"
|
||||
size="1" style='height: 34px; width: 300px;' title='Format YYYY-mm-dd' readonly
|
||||
value="<?php echo (empty($row->ausstelldatum) ? date('Y-m-d') : $row->ausstelldatum); ?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label for="multiplier"><?php echo Text::_('COM_SPORTSMANAGER_MULTIPLIER'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<select class="uk-select uk-form-width-xsmall" name="multiplikator" id="multiplier" size="1">
|
||||
<?php
|
||||
for ($i = 1; $i <= 4; $i++) {
|
||||
echo "<option value=\"" . $i . "\"" . ($row != null ? ($row->multiplikator == $i ? " selected" : "") : "") . ">" . $i . "</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="additional_information"><?php echo Text::_('COM_SPORTSMANAGER_ADDITIONAL_INFORMATION'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<textarea name="weitere_angaben" id="additional_information" cols="100"
|
||||
rows="8"><?php if ($row != null) echo htmlentities_utf8($row->weitere_angaben); ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label for="state"><?php echo Text::_('COM_SPORTSMANAGER_STATUS'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<select class="uk-select uk-form-width-small" name="status" id="state"
|
||||
size="1" style='height: 34px; width: 300px;'>
|
||||
<?php
|
||||
foreach ($stati as $status) {
|
||||
echo "<option value=\"" . $status . "\"" . ($row != null ? ($row->status == $status ? "selected" : "") : "") . ">" . htmlentities_utf8($status) . "</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table style="width: 100%">
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="match"><?php echo Text::_('COM_SPORTSMANAGER_MATCH'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<input class="uk-select uk-form-width-large" type="text" name="begegnung"
|
||||
id="match" size="50" style='height: 34px;' readonly
|
||||
value="<?php echo $begegnung->begegnung; ?>"/>
|
||||
<input class="uk-select uk-form-width-small" type="text" name="begegnung_id" id="match_id"
|
||||
style='height: 34px; display: none;' readonly
|
||||
value="<?php echo $begegnung->begegnung_id; ?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label for="violation"><?php echo Text::_('COM_SPORTSMANAGER_VIOLATION'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<select class="uk-select uk-form-width-large" name="verstoesse_id" id="violation"
|
||||
size="1">
|
||||
<option value="0"><?php echo Text::_('COM_SPORTSMANAGER_NO_SELECT'); ?></option>
|
||||
<?php
|
||||
foreach ($verstoesse as $verstoss) {
|
||||
echo "<option value=\"" . $verstoss->verstoesse_id . "\"" . ($row != null ? ($row->verstoesse_id == $verstoss->verstoesse_id ? "selected" : "") : "") . ">" . htmlentities_utf8($verstoss->verstoss) . "</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label for="team"><?php echo Text::_('COM_SPORTSMANAGER_TEAM'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<select class="uk-select uk-form-width-medium" name="team_id" id="team"
|
||||
size="1" style='height: 34px; width: 300px;'>
|
||||
<?php
|
||||
echo "<option value=\"" . $begegnung->heim_team_id . "\"" . ($row != null ? ($row->team_id == $begegnung->heim_team_id ? "selected" : "") : "") . ">" . htmlentities_utf8($begegnung->heim_name) . "</option>";
|
||||
echo "<option value=\"" . $begegnung->gast_team_id . "\"" . ($row != null ? ($row->team_id == $begegnung->gast_team_id ? "selected" : "") : "") . ">" . htmlentities_utf8($begegnung->gast_name) . "</option>";
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="issuer"><?php echo Text::_('COM_SPORTSMANAGER_ISSUER'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<input class="uk-select uk-form-width-medium" type="text" name="aussteller"
|
||||
id="issuer" size="1" style='height: 34px; width: 300px;' readonly
|
||||
value="<?php echo $aussteller->name; ?>"/>
|
||||
<input class="uk-select uk-form-width-small" type="text" name="aussteller_id" id="issuer_id"
|
||||
style='height: 34px; display: none;' size="1" readonly
|
||||
value="<?php echo $aussteller->id; ?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="issuedate"><?php echo Text::_('COM_SPORTSMANAGER_ISSUE_DATE'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<input class="uk-select uk-form-width-medium" type="text" name="ausstelldatum" id="issuedate"
|
||||
size="1" style='height: 34px; width: 300px;' title='Format YYYY-mm-dd' readonly
|
||||
value="<?php echo (empty($row->ausstelldatum) ? date('Y-m-d') : $row->ausstelldatum); ?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label for="multiplier"><?php echo Text::_('COM_SPORTSMANAGER_MULTIPLIER'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<select class="uk-select uk-form-width-xsmall" name="multiplikator" id="multiplier" size="1">
|
||||
<?php
|
||||
for ($i = 1; $i <= 4; $i++) {
|
||||
echo "<option value=\"" . $i . "\"" . ($row != null ? ($row->multiplikator == $i ? " selected" : "") : "") . ">" . $i . "</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="additional_information"><?php echo Text::_('COM_SPORTSMANAGER_ADDITIONAL_INFORMATION'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<textarea name="weitere_angaben" id="additional_information" cols="100"
|
||||
rows="8"><?php if ($row != null) echo htmlentities_utf8($row->weitere_angaben); ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label for="state"><?php echo Text::_('COM_SPORTSMANAGER_STATUS'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<select class="uk-select uk-form-width-small" name="status" id="state"
|
||||
size="1" style='height: 34px; width: 300px;'>
|
||||
<?php
|
||||
foreach ($stati as $status) {
|
||||
echo "<option value=\"" . $status . "\"" . ($row != null ? ($row->status == $status ? "selected" : "") : "") . ">" . htmlentities_utf8($status) . "</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<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"
|
||||
enctype="multipart/form-data">
|
||||
<div class="uk-overflow-auto">
|
||||
<table style="width: 100%">
|
||||
<tr>
|
||||
<td nowrap style="width: 60%; vertical-align: top">
|
||||
<div class="uk-overflow-auto">
|
||||
<table style="width: 100%">
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="rulebook"><?php echo Text::_('COM_SPORTSMANAGER_RULEBOOK'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<input class="inputbox" type="text" name="regelwerk"
|
||||
id="rulebook" size="50"
|
||||
maxlength="32"
|
||||
value="<?php if ($row != null) echo htmlentities_utf8($row->regelwerk); ?>"/>
|
||||
</td>
|
||||
<tr>
|
||||
<td nowrap colspan="2">
|
||||
<table style="width: 100%">
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="rulebook"><?php echo Text::_('COM_SPORTSMANAGER_RULEBOOK'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<input class="inputbox" type="text" name="regelwerk"
|
||||
id="rulebook" size="50"
|
||||
maxlength="32"
|
||||
value="<?php if ($row != null) echo htmlentities_utf8($row->regelwerk); ?>"/>
|
||||
</td>
|
||||
<tr>
|
||||
<td nowrap colspan="2">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<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'); ?>"
|
||||
class="button"/>
|
||||
@@ -7330,140 +7319,133 @@ class HTML_sportsmanager_admin
|
||||
<form action="<?php echo SportsManagerURL(); ?>" method="post" name="adminForm" id="adminForm"
|
||||
enctype="multipart/form-data">
|
||||
<div class="uk-overflow-auto">
|
||||
<table style="width: 100%">
|
||||
<tr>
|
||||
<td nowrap style="width: 60%; vertical-align: top">
|
||||
<div class="uk-overflow-auto">
|
||||
<table style="width: 100%">
|
||||
</tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label for="rulebook"><?php echo Text::_('COM_SPORTSMANAGER_RULEBOOK'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<select class="uk-select uk-form-width-medium" name="regelwerke_id" id="rulebook"
|
||||
size="1">
|
||||
<option value="0"><?php echo Text::_('COM_SPORTSMANAGER_NO_SELECT'); ?></option>
|
||||
<?php
|
||||
foreach ($regelwerke as $regelwerk) {
|
||||
echo "<option value=\"" . $regelwerk->regelwerke_id . "\"" . ($row != null ? ($row->regelwerke_id == $regelwerk->regelwerke_id ? "selected" : "") : "") . ">" . htmlentities_utf8($regelwerk->regelwerk) . "</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="rule"><?php echo Text::_('COM_SPORTSMANAGER_RULE_LONG'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<input class="uk-select uk-form-width-medium" type="text" name="paragraph_spo"
|
||||
id="rule" size="50" maxlength="32"
|
||||
style='width: 200px; height: 34px;'
|
||||
value="<?php if ($row != null) echo htmlentities_utf8($row->paragraph_spo); ?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="fee_long"><?php echo Text::_('COM_SPORTSMANAGER_FEE_LONG'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<input class="uk-select uk-form-width-medium" type="text" name="paragraph_go"
|
||||
id="fee_long" size="50" maxlength="32"
|
||||
style='width: 200px; height: 34px;'
|
||||
value="<?php if ($row != null) echo htmlentities_utf8($row->paragraph_go); ?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="violation"><?php echo Text::_('COM_SPORTSMANAGER_VIOLATION'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<input class="uk-select uk-form-width-medium" type="text" name="verstoss"
|
||||
id="violation" size="50" maxlength="64"
|
||||
style='width: 600px; height: 34px;'
|
||||
value="<?php if ($row != null) echo htmlentities_utf8($row->verstoss); ?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="text1"><?php echo Text::_('COM_SPORTSMANAGER_VIOLATION_TEXT'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<textarea name="haupttext" id="text1" cols="80"
|
||||
rows="6"><?php if ($row != null) echo htmlentities_utf8($row->haupttext); ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="text2"><?php echo Text::_('COM_SPORTSMANAGER_VIOLATION_ADD_TEXT'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<textarea name="zusatztext" id="text2" cols="80"
|
||||
rows="6"><?php if ($row != null) echo htmlentities_utf8($row->zusatztext); ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label for="fee"><?php echo Text::_('COM_SPORTSMANAGER_FEE'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<select class="uk-select uk-form-width-small" name="gebuehr" id="fee" size="1">
|
||||
<?php
|
||||
for ($i = 0; $i <= 200; $i++) {
|
||||
echo "<option value=\"" . $i . "\"" . ($row != null ? ($row->gebuehr == $i ? " selected" : "") : "") . ">" . $i . "</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label for="add_fee"><?php echo Text::_('COM_SPORTSMANAGER_ADD_FEE'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<select class="uk-select uk-form-width-small" name="zusatzgebuehr" id="add_fee" size="1">
|
||||
<?php
|
||||
for ($i = 0; $i <= 200; $i++) {
|
||||
echo "<option value=\"" . $i . "\"" . ($row != null ? ($row->zusatzgebuehr == $i ? " selected" : "") : "") . ">" . $i . "</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label for="for_select"><?php echo Text::_('COM_SPORTSMANAGER_SELECTABLE'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<select class="uk-select uk-form-width-small" name="zur_auswahl" id="for_select" size="1">
|
||||
<?php
|
||||
$zur_auswahl = array(Text::_('COM_SPORTSMANAGER_NO'), Text::_('COM_SPORTSMANAGER_YES'));
|
||||
for ($i = 1; $i >= 0; $i--) {
|
||||
echo "<option value=\"" . $i . "\"" . ($row != null ? ($row->zur_auswahl == $i ? " selected" : "") : "") . ">" . htmlentities_utf8($zur_auswahl[$i]) . "</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table style="width: 100%">
|
||||
</tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label for="rulebook"><?php echo Text::_('COM_SPORTSMANAGER_RULEBOOK'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<select class="uk-select uk-form-width-medium" name="regelwerke_id" id="rulebook"
|
||||
size="1">
|
||||
<option value="0"><?php echo Text::_('COM_SPORTSMANAGER_NO_SELECT'); ?></option>
|
||||
<?php
|
||||
foreach ($regelwerke as $regelwerk) {
|
||||
echo "<option value=\"" . $regelwerk->regelwerke_id . "\"" . ($row != null ? ($row->regelwerke_id == $regelwerk->regelwerke_id ? "selected" : "") : "") . ">" . htmlentities_utf8($regelwerk->regelwerk) . "</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="rule"><?php echo Text::_('COM_SPORTSMANAGER_RULE_LONG'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<input class="uk-select uk-form-width-medium" type="text" name="paragraph_spo"
|
||||
id="rule" size="50" maxlength="32"
|
||||
style='width: 200px; height: 34px;'
|
||||
value="<?php if ($row != null) echo htmlentities_utf8($row->paragraph_spo); ?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="fee_long"><?php echo Text::_('COM_SPORTSMANAGER_FEE_LONG'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<input class="uk-select uk-form-width-medium" type="text" name="paragraph_go"
|
||||
id="fee_long" size="50" maxlength="32"
|
||||
style='width: 200px; height: 34px;'
|
||||
value="<?php if ($row != null) echo htmlentities_utf8($row->paragraph_go); ?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="violation"><?php echo Text::_('COM_SPORTSMANAGER_VIOLATION'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<input class="uk-select uk-form-width-medium" type="text" name="verstoss"
|
||||
id="violation" size="50" maxlength="64"
|
||||
style='width: 600px; height: 34px;'
|
||||
value="<?php if ($row != null) echo htmlentities_utf8($row->verstoss); ?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="text1"><?php echo Text::_('COM_SPORTSMANAGER_VIOLATION_TEXT'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<textarea name="haupttext" id="text1" cols="80"
|
||||
rows="6"><?php if ($row != null) echo htmlentities_utf8($row->haupttext); ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label
|
||||
for="text2"><?php echo Text::_('COM_SPORTSMANAGER_VIOLATION_ADD_TEXT'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<textarea name="zusatztext" id="text2" cols="80"
|
||||
rows="6"><?php if ($row != null) echo htmlentities_utf8($row->zusatztext); ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label for="fee"><?php echo Text::_('COM_SPORTSMANAGER_FEE'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<select class="uk-select uk-form-width-small" name="gebuehr" id="fee" size="1">
|
||||
<?php
|
||||
for ($i = 0; $i <= 200; $i++) {
|
||||
echo "<option value=\"" . $i . "\"" . ($row != null ? ($row->gebuehr == $i ? " selected" : "") : "") . ">" . $i . "</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label for="add_fee"><?php echo Text::_('COM_SPORTSMANAGER_ADD_FEE'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<select class="uk-select uk-form-width-small" name="zusatzgebuehr" id="add_fee" size="1">
|
||||
<?php
|
||||
for ($i = 0; $i <= 200; $i++) {
|
||||
echo "<option value=\"" . $i . "\"" . ($row != null ? ($row->zusatzgebuehr == $i ? " selected" : "") : "") . ">" . $i . "</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap style="width: 20%; text-align: right">
|
||||
<label for="for_select"><?php echo Text::_('COM_SPORTSMANAGER_SELECTABLE'); ?>
|
||||
:</label>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<select class="uk-select uk-form-width-small" name="zur_auswahl" id="for_select" size="1">
|
||||
<?php
|
||||
$zur_auswahl = array(Text::_('COM_SPORTSMANAGER_NO'), Text::_('COM_SPORTSMANAGER_YES'));
|
||||
for ($i = 1; $i >= 0; $i--) {
|
||||
echo "<option value=\"" . $i . "\"" . ($row != null ? ($row->zur_auswahl == $i ? " selected" : "") : "") . ">" . htmlentities_utf8($zur_auswahl[$i]) . "</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<br>
|
||||
<input type="submit" name="save" value="<?php echo Text::_('COM_SPORTSMANAGER_SAVE'); ?>" class="button"/>
|
||||
|
||||
Reference in New Issue
Block a user