Changeset 425 for trunk/info/info/alkisn/alkisinlayausk.php
- Timestamp:
- 12/30/21 17:49:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/info/info/alkisn/alkisinlayausk.php
r422 r425 17 17 2020-12-15 Input-Validation und Strict Comparisation (===) 18 18 2021-03-09 Link zum GebÀudenachweis auch mit "Bauwerke" betiteln 19 2021-12-09 Neue Parameter: $katAmtMix (Kataster-Amt-Mix) 19 20 */ 20 21 ini_set("session.cookie_httponly", 1); … … 56 57 <body class ="mbfi"> 57 58 END; 58 // <body style='width: 98%;'> 59 59 60 $erlaubnis = darf_ich(); if ($erlaubnis === 0) { die('<p class="stop1">Abbruch</p></body>'); } 61 $dbg=$debug; // CONF in Arbeits-Variable 60 62 61 63 // Body des Inlay muss in Mapbender-Feature-Info-PopUp passen. Kleiner als 750 aus css. … … 65 67 // *** F L U R S T U E C K *** 66 68 $sql ="SELECT f.flurnummer, f.zaehler, f.nenner, f.amtlicheflaeche, g.gemarkungsnummer, g.bezeichnung, f.gemeindezugehoerigkeit_regierungsbezirk, f.gemeindezugehoerigkeit_kreis, f.gemeindezugehoerigkeit_gemeinde, f.istgebucht 67 FROM ax_flurstueck f LEFT JOIN ax_gemarkung g ON f.land=g.land AND f.gemarkungsnummer=g.gemarkungsnummer 68 WHERE f.gml_id= $1 AND f.endet IS NULL AND g.endet IS NULL;";69 FROM ax_flurstueck f LEFT JOIN ax_gemarkung g ON f.land=g.land AND f.gemarkungsnummer=g.gemarkungsnummer ".UnqKatAmt("f","g") 70 ."WHERE f.gml_id= $1 AND f.endet IS NULL AND g.endet IS NULL;"; 69 71 70 72 $v = array($gmlid); … … 73 75 if (!$res) { 74 76 echo "\n<p class='err'>Fehler bei Flurstuecksdaten.</p>"; 75 if ($debug > 2) {echo "\n<p class='err'>SQL=<br>".htmlentities(str_replace("$1", "'".$gmlid."'", $sql), ENT_QUOTES, "UTF-8")."</p>";} 76 } 77 77 if ($dbg > 2) {echo "\n<p class='err'>SQL=<br>".htmlentities(str_replace("$1", "'".$gmlid."'", $sql), ENT_QUOTES, "UTF-8")."</p>";} 78 } 79 if ($dbg > 0) { 80 $zeianz=pg_num_rows($res); 81 if ($zeianz > 1){ 82 echo "\n<p class='err'>Die Abfrage liefert mehr als ein (".$zeianz.") Flurstücks-Objekt!</p>"; 83 if ($dbg > 2) {echo "\n<p class='dbg'>SQL=<br>".htmlentities(str_replace("$1","'".$gmlid."'",$sql), ENT_QUOTES, "UTF-8")."</p>";} 84 } 85 } 78 86 if ($row = pg_fetch_assoc($res)) { 79 87 $gemkname=htmlentities($row["bezeichnung"], ENT_QUOTES, "UTF-8"); … … 97 105 if ( ($filtkreis != '' and $filtkreis != $fskrs) or ($filtgem != '' and $filtgem != $fsgem) ) { 98 106 // Einer der gesetzten Filter passt nicht 99 if ($d ebug > 2) {107 if ($dbg > 2) { 100 108 echo "\n<p class='err'>Filter Kreis='".$filtkreis."', Gemeinde='".$filtgem."'</p>"; 101 109 echo "\n<p class='err'>Flstk. Kreis='".$fskrs."', Gemeinde='".$fsgem."'</p>"; … … 125 133 ."<img src='ico/Flurstueck_Link.png' width='16' height='16' alt=''>" 126 134 ."</a><br>"; 135 127 136 // FS-Historie 128 echo "\n\t\t\t\t<a href='javascript:imFenster(\"alkisfshist.php?gkz=".$gkz."&gmlid=".$gmlid."\")' " 129 ."title='Vorgänger des Flurstücks'>Historie " 130 ."<img src='ico/Flurstueck_Historisch.png' width='16' height='16' alt=''>" 131 ."</a><br>"; 132 // Gebaeude-NW zum FS 137 if ($fsHistorie){ // conf 138 echo "\n\t\t\t\t<a href='javascript:imFenster(\"alkisfshist.php?gkz=".$gkz."&gmlid=".$gmlid."\")' " 139 ."title='Vorgänger des Flurstücks'>Historie " 140 ."<img src='ico/Flurstueck_Historisch.png' width='16' height='16' alt=''>" 141 ."</a><br>"; 142 } 143 // GebÀude-NW zum FS 133 144 echo "\n\t\t\t\t<a href='javascript:imFenster(\"alkisgebaeudenw.php?gkz=".$gkz."&gmlid=".$gmlid."\")' " 134 ."title='Gebäude oder Bauwerke '>Gebäude/Bauw. "145 ."title='Gebäude oder Bauwerke auf oder an diesem Flurstück'>Gebäude/Bauw. " 135 146 ."<img src='ico/Haus.png' width='16' height='16' alt=''>" 136 147 ."</a>"; … … 149 160 if (!$res) { 150 161 echo "\n<p class='err'>Fehler bei Lagebezeichnung mit Hausnummer.</p>"; 151 if ($d ebug > 2) {echo "\n<p class='err'>SQL=<br>".htmlentities(str_replace("$1", "'".$gmlid."'", $sql), ENT_QUOTES, "UTF-8")."</p>";}162 if ($dbg > 2) {echo "\n<p class='err'>SQL=<br>".htmlentities(str_replace("$1", "'".$gmlid."'", $sql), ENT_QUOTES, "UTF-8")."</p>";} 152 163 } 153 164 $j=0; … … 192 203 if (!$res) { 193 204 echo "\n<p class='err'>Fehler bei Lagebezeichnung ohne Hausnummer.</p>"; 194 if ($d ebug > 2) {echo "\n<p class='err'>SQL=<br>".htmlentities(str_replace("$1", "'".$gmlid."'", $sql), ENT_QUOTES, "UTF-8")."</p>";}205 if ($dbg > 2) {echo "\n<p class='err'>SQL=<br>".htmlentities(str_replace("$1", "'".$gmlid."'", $sql), ENT_QUOTES, "UTF-8")."</p>";} 195 206 } 196 207 $kgmlalt=''; … … 216 227 } 217 228 echo "\n\t\t<td>\n\t\t\t<p class='nwlink noprint'>"; 218 if ($sname != "") { // Typ=Stra sse229 if ($sname != "") { // Typ=StraÃe 219 230 $kgml=$row["kgml"]; // Wiederholung vermeiden 220 if ($kgml != $kgmlalt) { // NEUE Stra sse vor Lage-O231 if ($kgml != $kgmlalt) { // NEUE StraÃe vor Lage-O 221 232 $kgmlalt=$kgml; // Katalog GML-ID 222 233 echo "\n\t\t\t<a class='noprint' title='Flurstücke mit oder ohne Hausnummer".$slink."' "
Note: See TracChangeset
for help on using the changeset viewer.