diff --git a/ajax/ajax_location_push.php b/ajax/ajax_location_push.php index 888fa30..fde9e30 100644 --- a/ajax/ajax_location_push.php +++ b/ajax/ajax_location_push.php @@ -11,7 +11,7 @@ $strAge = (isset($_POST['ext_age'])) ? $_POST['ext_age'] : ""; $strTransport = (isset($_POST['ext_transport'])) ? $_POST['ext_transport'] : ""; $strDescription = htmlentities(trim($_POST['description'])); $strDescription = addslashes($strDescription); -$numTopic = (isset($_POST['topic'])) ? $_POST['topic'] : 1; +$numTopic = (isset($_POST['topic'])) ? $_POST['topic'] : 2; $numDefect = (isset($_POST['defect'])) ? $_POST['defect'] : 0; $numLng = $_POST['lng']; $numLat = $_POST['lat']; @@ -85,8 +85,4 @@ if ($row = $result->fetch(PDO::FETCH_ASSOC)) { $markerText=generate_tooltip_description($row); $markerText=stripcslashes($markerText); } - - - -echo ($markerText); - \ No newline at end of file +echo ($markerText); \ No newline at end of file diff --git a/config.php b/config.php index aec98cf..f47bbaa 100644 --- a/config.php +++ b/config.php @@ -11,6 +11,8 @@ require_once("config.db.php"); +$boolTopics=false; + $strSQL = "select * from config"; $result = $db->query($strSQL); @@ -114,9 +116,6 @@ while ($row = $result->fetch(PDO::FETCH_ASSOC)) { $arrDistrict[$row['district']]=$row['title']; } - - - $arrTopic = array ( 2 => "Radverkehr", // 1 => "Fußverkehr", diff --git a/index.php b/index.php index 2d04eb5..c1de12a 100644 --- a/index.php +++ b/index.php @@ -318,7 +318,8 @@ $("#lat").val(lat); $("#lng").val(lng); $("#district").val("=$strDistrict?>"); - topic=$('input[name=topic]:checked').val(); + //topic=$('input[name=topic]:checked').val(); + topic=2; // Keine Eingabe als Auswahlfeld in ADFC-Hindernis-Melder newMarker = getMarker(topic); event.preventDefault(); diff --git a/lib/dialog_karte.php b/lib/dialog_karte.php index 22932d8..4f23053 100644 --- a/lib/dialog_karte.php +++ b/lib/dialog_karte.php @@ -1,92 +1,84 @@ - -Ihr Name oder Pseudonym: - - -EOT; + echo << + Ihr Name oder Pseudonym: + + + EOT; } - function print_userinfo() { global $arrAge; global $arrTransport; -echo << - Die Fragen nach Alter und Verkehrsmittel können Sie freiwillig beantworten: - - Ihr Alter: - -EOT; - + echo << + Die Fragen nach Alter und Verkehrsmittel können Sie freiwillig beantworten: + + Ihr Alter: + + HEREDOC; foreach ($arrAge as $age) { - echo " $age"; - } - -echo ' - - - Ihr hauptsächlich genutztes Verkehrsmittel: - '; - foreach ($arrTransport as $transport) { - echo " $transport"; - } -echo ""; + echo "$age"; + } + echo << + + Ihr hauptsächlich genutztes Verkehrsmittel: + + HEREDOC; + foreach ($arrTransport as $transport) { + echo " $transport"; + } + echo ""; } function print_category(){ global $arrDefect; -echo << - - Art des Hindernisses: - -EOT; - foreach ($arrDefect as $defectKey => $defectVal) { - echo " $defectVal"; - } -echo ""; + echo << + + Art des Hindernisses: + + HEREDOC; + foreach ($arrDefect as $defectKey => $defectVal) { + echo " $defectVal"; + } + echo ""; } function print_description(){ -echo << - -Beschreibung: - -EOT; + echo << + Beschreibung: + + HEREDOC; } - function print_topics(){ global $arrTopic; -echo << - Wählen Sie ein Themenfeld aus: -EOT; - +HEREDOC; $first=true; foreach ($arrTopic as $keyTopic => $valTopic) { $checked = ($first) ? "checked=\"checked\"" : ""; $first=false; - echo ' - - '.$valTopic.' - '; + echo ' + + '.$valTopic.' + '; }; echo " "; } - ?> - Ihr Wunsch oder Anregung + Hindernismelder des ADFC NRW @@ -96,17 +88,18 @@ echo " "; - "; + } ?> - - @@ -136,7 +129,7 @@ Wenn Sie ein Bild hochladen, achten Sie bitte auf Urheber- und Persönlichkeitsrechte. - +
- Art des Hindernisses: - -EOT; - foreach ($arrDefect as $defectKey => $defectVal) { - echo " $defectVal"; - } -echo "