"Fußverkehr", 2 => "Radverkehr", 3 => "Bus und Bahn", 4 => "Pkw-Verkehr", 5 => "Lkw-Verkehr" ); $arrIcon = array ( 1 => "", 2 => "", 3 => "", 4 => "", 5 => "" ); ?>
id | Username | = ($boolUserinfo) ? "Alter | Transport | " : ""; ?>Topic | Beschreibung | = ($boolRating) ? "" : "" ?> | Kommentare | Mangel | Bild | Adresse | Karte | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
".$id." | "; echo "". stripslashes($row['username']) ." ". $strDatum . " | ";
echo ($boolUserinfo) ? "".$row['age']." | ".$row['transport']." | " : ""; echo "".$arrIcon[$row['topic']]." ".$arrTopic[$row['topic']]." | "; echo "" . stripslashes(nl2br($row['description'])) . " | "; echo ($boolRating) ? "".$row['thumb_ups']." | ".$row['thumb_downs']." | " : ""; echo ""; $strSQL = "SELECT id,username,comment,created_at FROM comment WHERE loc_id=".$id; $comments = $db->query($strSQL); while ($comment = $comments->fetchArray()) { echo " | "; $strDefect = (isset($row['defect']) && $row['defect']>0) ? $arrDefect[$row['defect']] : ""; echo "".$strDefect." | \n"; echo ""; $strSQL = "SELECT id,filename FROM files WHERE loc_id=".$id; $files=$db->query($strSQL); if ($file=$files->fetchArray()) { echo ""; } echo " | "; echo "".$row['road']." ".$row['house_number']." ".$row['neighbourhood']." " .$row['hamlet']." ".$row['suburb']." ".$row['postcode']." ".$row['city']." | ";
//echo "".round($row['lat'],5)." ".round($row['lng'],5)." | "; echo "\n"; echo " |
"; echo nl2br($comment['comment']); echo "