dialog changed
This commit is contained in:
@@ -1,92 +1,84 @@
|
||||
<?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;
|
||||
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;
|
||||
|
||||
echo <<<HEREDOC
|
||||
<!-- 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">
|
||||
HEREDOC;
|
||||
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>";
|
||||
echo "<option value='$age'>$age</option>";
|
||||
}
|
||||
echo <<<HEREDOC
|
||||
</select>
|
||||
<br>
|
||||
<label for="ext_transport">Ihr hauptsächlich genutztes Verkehrsmittel:</label>
|
||||
<select name="ext_transport" id="ext_transport">
|
||||
HEREDOC;
|
||||
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>";
|
||||
echo <<<HEREDOC
|
||||
<!-- Mängelkategorie -------------------------------- -->
|
||||
|
||||
<label for="defect"><strong>Art des Hindernisses:</strong></label>
|
||||
<select name="defect" id="defect">
|
||||
HEREDOC;
|
||||
foreach ($arrDefect as $defectKey => $defectVal) {
|
||||
echo " <option value='$defectKey'>$defectVal</option>";
|
||||
}
|
||||
echo "</select><br>";
|
||||
}
|
||||
|
||||
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;
|
||||
echo <<<HEREDOC
|
||||
<!-- Beschreibung ---------------------------------- -->
|
||||
<label for="description"><strong>Beschreibung:</strong></label><br>
|
||||
<textarea name="description" id="description" maxlength="1001" placeholder="Beschreiben Sie Ihren Eintrag" required="required"></textarea>
|
||||
HEREDOC;
|
||||
}
|
||||
|
||||
|
||||
function print_topics(){
|
||||
global $arrTopic;
|
||||
echo <<<EOT
|
||||
echo <<<HEREDOC
|
||||
<!-- Themenfelder ---------------------------------- -->
|
||||
|
||||
<strong>Wählen Sie ein Themenfeld aus:</strong></br>
|
||||
<div class="row">
|
||||
EOT;
|
||||
|
||||
HEREDOC;
|
||||
$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 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
|
||||
<div class="card-header">Hindernismelder des ADFC NRW
|
||||
<span id="hint"></span>
|
||||
<span id="close" type="button" class="close right text-danger">
|
||||
<i class="fa fa-window-close"></i>
|
||||
@@ -96,17 +88,18 @@ echo "</div> <!-- row -->";
|
||||
<div class="card-body">
|
||||
<form id="newobjectform" enctype="multipart/form-data" action="#" method="post" >
|
||||
|
||||
|
||||
<?php
|
||||
print_username();
|
||||
if ($boolUserinfo) print_userinfo();
|
||||
if ($boolDefect) print_category();
|
||||
print_description();
|
||||
print_topics();
|
||||
if ($boolTopics) {
|
||||
print_topics();
|
||||
} else {
|
||||
echo "<input type='hidden' id='topic' name='topic' value='2' />";
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<!-- Lokalisierung ---------------------------------- -->
|
||||
|
||||
<input type="hidden" id="lng" name="lng" value="0" />
|
||||
@@ -136,7 +129,7 @@ Wenn Sie ein <strong>Bild</strong> hochladen, achten Sie bitte auf
|
||||
<strong>Urheber- und Persönlichkeitsrechte</strong>.
|
||||
<?php endif; ?>
|
||||
</label>
|
||||
<input type="submit" id="submit" class="btn btn-primary" tabindex="-1">
|
||||
<input type="submit" id="submit" class="btn btn-primary" value="Meldung abgeben" tabindex="-1">
|
||||
</form>
|
||||
|
||||
</div> <!-- card-body -->
|
||||
|
||||
Reference in New Issue
Block a user