hindernisse
This commit is contained in:
parent
f4a8cef3f8
commit
e16939b233
39
config.php
39
config.php
@ -4,9 +4,9 @@
|
||||
* Ideenmelder
|
||||
* Autor: Walter Hupfeld, Hamm
|
||||
* E-Mail: info@hupfeld-software.de
|
||||
* Version: 1.1
|
||||
* Version: 3.0
|
||||
* Datum: 18.02.2024
|
||||
* zuletzt bearbeitet: 20.02.2024
|
||||
* zuletzt bearbeitet: 11.03.2024
|
||||
******************************** */
|
||||
|
||||
require_once("config.db.php");
|
||||
@ -119,8 +119,8 @@ while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
|
||||
$arrTopic = array (
|
||||
2 => "Radverkehr",
|
||||
1 => "Fußverkehr",
|
||||
3 => "Bus und Bahn",
|
||||
// 1 => "Fußverkehr",
|
||||
// 3 => "Bus und Bahn",
|
||||
// 4 => "Pkw-Verkehr",
|
||||
// 5 => "Lkw-Verkehr"
|
||||
);
|
||||
@ -152,29 +152,14 @@ $arrAge = array (
|
||||
);
|
||||
|
||||
$arrDefect = array (
|
||||
0 => "Keine Angabe",
|
||||
1 => "Abrupt endender Radweg",
|
||||
2 => "Buckelpiste",
|
||||
3 => "Gefährliche Gleise/Schienen",
|
||||
4 => "Gehweg/Fahrräder frei",
|
||||
5 => "Falschparker",
|
||||
6 => "Fehlende Abstellmöglichkeiten",
|
||||
7 => "Fehlende Radwege",
|
||||
8 => "Fehlender Abstellbereich",
|
||||
9 => "Fehlender taktiler Sicherheitstrennstreifen",
|
||||
10 => "Fehlende Fahrbahnüberleitung",
|
||||
11 => "Hindernisse auf Radwegen",
|
||||
12 => "Mangelhafte Radwegmarkierung/kennzeichnung",
|
||||
13 => "Mögliche grüne Pfeile für Radfahrende",
|
||||
14 => "Probleme beim Abbiegen",
|
||||
15 => "Ungenügende Ampelschaltung",
|
||||
16 => "Ungenügende Bordsteinabsenkung",
|
||||
17 => "Ungenügender Sicherheitsabstand",
|
||||
18 => "Ungenügende Wegbreite/Engstellen",
|
||||
19 => "Unsichere/fehlende Querungsmöglichkeit",
|
||||
20 => "Unklare Radwegsituation",
|
||||
21 => "Station für Leihräder",
|
||||
22 => "Ampelspiegel installieren"
|
||||
0 => "Pfosten/Poller",
|
||||
1 => "Schranke",
|
||||
2 => "Umlaufsperre/Drängelgitter",
|
||||
3 => "Laternenmast",
|
||||
4 => "Litfaßsäule",
|
||||
5 => "Stromverteilerkasten",
|
||||
6 => "Sonstiges"
|
||||
|
||||
);
|
||||
|
||||
$arrTransport = array (
|
||||
|
@ -1,3 +1,90 @@
|
||||
<?php
|
||||
function print_username() {
|
||||
echo <<<EOT
|
||||
<!-- Username ---------------------------------- -->
|
||||
|
||||
<label for="username"><strong>Ihr Name oder Pseudonym:</strong></label>
|
||||
<input type="text" name="username" maxlength="16" id="username" placeholder="Name" class="text" required="required">
|
||||
<br>
|
||||
EOT;
|
||||
}
|
||||
|
||||
|
||||
function print_userinfo() {
|
||||
global $arrAge;
|
||||
global $arrTransport;
|
||||
echo <<<EOT
|
||||
<!-- Userinfo ---------------------------------- -->
|
||||
<label><strong>Die Fragen nach Alter und Verkehrsmittel können Sie freiwillig beantworten:</strong></label>
|
||||
<br>
|
||||
<label for="ext_age">Ihr Alter:</label>
|
||||
<select name="ext_age" id="ext_age">
|
||||
EOT;
|
||||
|
||||
foreach ($arrAge as $age) {
|
||||
echo " <option value='$age'>$age</option>";
|
||||
}
|
||||
|
||||
echo '
|
||||
</select>
|
||||
<br>
|
||||
<label for="ext_transport">Ihr hauptsächlich genutztes Verkehrsmittel:</label>
|
||||
<select name="ext_transport" id="ext_transport">';
|
||||
foreach ($arrTransport as $transport) {
|
||||
echo " <option value='$transport'>$transport</option>";
|
||||
}
|
||||
echo "</select><br>";
|
||||
}
|
||||
|
||||
|
||||
function print_category(){
|
||||
global $arrDefect;
|
||||
echo <<<EOT
|
||||
<!-- Mängelkategorie -------------------------------- -->
|
||||
<p>
|
||||
<label for="defect"><strong>Art des Hindernisses:</strong></label>
|
||||
<select name="defect" id="defect">
|
||||
EOT;
|
||||
foreach ($arrDefect as $defectKey => $defectVal) {
|
||||
echo " <option value='$defectKey'>$defectVal</option>";
|
||||
}
|
||||
echo "</select></p>";
|
||||
}
|
||||
|
||||
function print_description(){
|
||||
echo <<<EOT
|
||||
<!-- Beschreibung ---------------------------------- -->
|
||||
|
||||
<label for="description"><strong>Beschreibung:</strong></label><br>
|
||||
<textarea name="description" id="description" maxlength="1001" placeholder="Beschreiben Sie Ihren Eintrag" required="required"></textarea>
|
||||
EOT;
|
||||
}
|
||||
|
||||
|
||||
function print_topics(){
|
||||
global $arrTopic;
|
||||
echo <<<EOT
|
||||
<!-- Themenfelder ---------------------------------- -->
|
||||
|
||||
<strong>Wählen Sie ein Themenfeld aus:</strong></br>
|
||||
<div class="row">
|
||||
EOT;
|
||||
|
||||
$first=true;
|
||||
foreach ($arrTopic as $keyTopic => $valTopic) {
|
||||
$checked = ($first) ? "checked=\"checked\"" : "";
|
||||
$first=false;
|
||||
|
||||
echo '<div class="col-6-md col-6">
|
||||
<input type="radio" id="topic'.$keyTopic.'" name="topic" value="'.$keyTopic.'" $checked/>
|
||||
<label for="topic$keyTopic">'.$valTopic.'</label>
|
||||
</div>';
|
||||
};
|
||||
echo "</div> <!-- row -->";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div id="dialog" class="card" title="Neuer Eintrag in die Karte">
|
||||
<div class="card-header">Ihr Wunsch oder Anregung
|
||||
<span id="hint"></span>
|
||||
@ -9,76 +96,16 @@
|
||||
<div class="card-body">
|
||||
<form id="newobjectform" enctype="multipart/form-data" action="#" method="post" >
|
||||
|
||||
<!-- Username ---------------------------------- -->
|
||||
|
||||
<label for="username"><strong>Ihr Name oder Pseudonym:</strong></label>
|
||||
<input type="text" name="username" maxlength="16" id="username" placeholder="Name" class="text" required="required">
|
||||
<br>
|
||||
|
||||
<!-- Userinfo ---------------------------------- -->
|
||||
|
||||
<?php if ($boolUserinfo): ?>
|
||||
<label><strong>Die Fragen nach Alter und Verkehrsmittel können Sie freiwillig beantworten:</strong></label>
|
||||
<br>
|
||||
<label for="ext_age">Ihr Alter:</label>
|
||||
<select name="ext_age" id="ext_age">
|
||||
<?php
|
||||
foreach ($arrAge as $age) {
|
||||
echo " <option value='$age'>$age</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<br>
|
||||
|
||||
<label for="ext_transport">Ihr hauptsächlich genutztes Verkehrsmittel:</label>
|
||||
<select name="ext_transport" id="ext_transport">
|
||||
<?php
|
||||
foreach ($arrTransport as $transport) {
|
||||
echo " <option value='$transport'>$transport</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<br>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Beschreibung ---------------------------------- -->
|
||||
|
||||
<label for="description"><strong>Beschreibung:</strong></label><br>
|
||||
<textarea name="description" id="description" maxlength="1001" placeholder="Beschreiben Sie Ihren Eintrag" required="required"></textarea>
|
||||
|
||||
<!-- Themenfelder ---------------------------------- -->
|
||||
|
||||
<strong>Wählen Sie ein Themenfeld aus:</strong></br>
|
||||
<div class="row">
|
||||
<?php
|
||||
$first=true;
|
||||
foreach ($arrTopic as $keyTopic => $valTopic):
|
||||
$checked = ($first) ? "checked=\"checked\"" : "";
|
||||
$first=false;
|
||||
print_username();
|
||||
if ($boolUserinfo) print_userinfo();
|
||||
if ($boolDefect) print_category();
|
||||
print_description();
|
||||
print_topics();
|
||||
?>
|
||||
<div class="col-6-md col-6">
|
||||
<input type="radio" id="topic<?=$keyTopic?>" name="topic" value="<?=$keyTopic?>" <?=$checked?>/>
|
||||
<label for="topic<?=$keyTopic?>"><?=$valTopic?></label>
|
||||
</div>
|
||||
|
||||
<?php endforeach; ?>
|
||||
</div> <!-- row -->
|
||||
|
||||
<!-- Mängelkategorie -------------------------------- -->
|
||||
|
||||
<?php if ($boolDefect): ?>
|
||||
<p>
|
||||
<label for="defect"><strong>Mängelkategorie:</strong></label>
|
||||
<select name="defect" id="defect">
|
||||
<?php
|
||||
foreach ($arrDefect as $defectKey => $defectVal) {
|
||||
echo " <option value='$defectKey'>$defectVal</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Lokalisierung ---------------------------------- -->
|
||||
|
||||
@ -102,7 +129,7 @@
|
||||
Ich bin einverstanden, dass die von mir eingegebenen Daten in der
|
||||
Karte veröffentlicht
|
||||
<?= $boolUserinfo ? " (außer Alter und Verkehrsmittel) " : ""?>und im Rahmen der
|
||||
<a href="datenschutz.php" target="_blank">Datenschutzerklärung</a>
|
||||
<a href="https://nrw.adfc.de/datenschutz" target="_blank">Datenschutzerklärung</a>
|
||||
verarbeitet werden dürfen.<br>
|
||||
<?php if ($boolUpload): ?>
|
||||
Wenn Sie ein <strong>Bild</strong> hochladen, achten Sie bitte auf
|
||||
|
Loading…
Reference in New Issue
Block a user