Changeset 64 for trunk/var/www/info/alkis/alkisfsnw.php
- Timestamp:
- 01/04/11 18:26:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/var/www/info/alkis/alkisfsnw.php
r63 r64 10 10 10.11.2010 Felder nutzung.zustand und nutzung.name 11 11 14.12.2010 Pfad zur Conf 12 17.12.2010 Astrid Emde: Prepared Statements (pg_query -> pg_prepare + pg_execute) 13 04.01.2011 Frank JÀger: verkuerzte Nutzungsart-Zeilen mit Icon 12 14 13 15 ToDo: 14 16 NamNum >bestehtAusRechtsverhaeltnissenZu> NamNum 17 KÃŒrzere Bezeichnung der Nutzungsart 15 18 */ 16 19 ini_set('error_reporting', 'E_ALL & ~ E_NOTICE'); … … 44 47 $eig=urldecode($_REQUEST["eig"]); 45 48 46 // getswitch($idanzeige, $showkey);47 49 $id = isset($_GET["id"]) ? $_GET["id"] : "n"; 48 50 if ($id == "j") { … … 98 100 echo "\n\t\t<td class='head'>Gmkg</td>\n\t\t<td class='head'>Flur</td>\n\t\t<td class='head'>Flurst-Nr.</td>\n\t</tr>"; 99 101 echo "\n\t<tr>\n\t\t<td title='Gemarkung'>"; 100 if ($showkey) { 102 if ($showkey) { 101 103 echo "<span class='key'>".$gmkgnr."</span><br>"; 102 } 104 } 103 105 echo $gemkname."</td>"; 104 106 echo "\n\t\t<td title='Flurnummer'>".$flurnummer."</td>"; … … 124 126 echo "\n<p class='nwlink noprint'>weitere Auskunft:</p>"; // oben rechts von der Tabelle 125 127 echo "\n<table class='fs'>"; 126 128 127 129 // ** G e b i e t s z u g e h o e r i g k e i t ** 128 130 // eine Tabellenzeile mit der Gebietszugehoerigkeit eines Flurstuecks wird ausgegeben 129 131 // Schluessel "land" wird nicht verwendet, gibt es Bestaende wo das nicht einheitlich ist? 130 echo "\n<tr>\n\t<td class='ll'><img src='ico/Gemeinde.ico' width='16' height='16' alt=''> Im Gebiet von:</td>";132 echo "\n<tr>\n\t<td class='ll'><img title='Im Gebiet von' src='ico/Gemeinde.ico' width='16' height='16' alt=''> Gebiet:</td>"; 131 133 132 134 // G e m e i n d e … … 139 141 $row = pg_fetch_array($res); 140 142 $gnam = htmlentities($row["bezeichnung"], ENT_QUOTES, "UTF-8"); 141 echo "\n\t<td class='lr'>Gemeinde 143 echo "\n\t<td class='lr'>Gemeinde</td><td class='lr'>"; 142 144 if ($showkey) { 143 145 echo "<span class='key'>(".$gemeinde.")</span> "; 144 146 } 145 echo $gnam."< br>";147 echo $gnam."</td><td></td></tr>"; 146 148 147 149 // K r e i s … … 154 156 $row = pg_fetch_array($res); 155 157 $knam = htmlentities($row["bezeichnung"], ENT_QUOTES, "UTF-8"); 156 echo " Kreis";158 echo "<tr><td></td><td>Kreis</td><td>"; 157 159 if ($showkey) { 158 160 echo "<span class='key'>(".$kreis.")</span> "; 159 } 160 echo $knam."< br>";161 } 162 echo $knam."</td><td></td></tr>"; 161 163 162 164 // R e g - B e z … … 166 168 $row = pg_fetch_array($res); 167 169 $bnam = htmlentities($row["bezeichnung"], ENT_QUOTES, "UTF-8"); 168 echo " Regierungsbezirk";170 echo "<tr><td></td><td>Regierungsbezirk</td><td>"; 169 171 if ($showkey) { 170 172 echo "<span class='key'>(".$bezirk.")</span> "; 171 173 } 172 echo $bnam."</td>"; 173 echo "\n\t<td> </td>\n</tr>"; // 3. Spalte fÃŒr NW-Link (in weiteren Tab-Zeilen) 174 echo $bnam."</td><td></td></tr>"; 174 175 // ENDE G e b i e t s z u g e h o e r i g k e i t 175 176 176 177 177 // ** L a g e b e z e i c h n u n g ** … … 208 208 while($row = pg_fetch_array($res)) { 209 209 $sname = htmlentities($row["bezeichnung"], ENT_QUOTES, "UTF-8"); // Str.-Name 210 //echo "<!-- Adresse -->";211 210 echo "\n<tr>\n\t"; 212 if ($j == 0) { 211 if ($j == 0) { 213 212 echo "<td class='ll'><img src='ico/Lage_mit_Haus.ico' width='16' height='16' alt=''> Adresse:</td>"; 214 213 } else { 215 214 echo "<td> </td>"; 216 215 } 216 echo "\n\t<td></td>"; 217 217 echo "\n\t<td class='lr'>"; 218 218 if ($showkey) { … … 221 221 echo $sname." ".$row["hausnummer"]."</td>"; 222 222 echo "\n\t<td>\n\t\t<p class='nwlink noprint'>"; 223 echo "\n\t\t\t<a href='alkislage.php?gkz=".$gkz."&ltyp=m&gmlid=".$row["gml_id"]."'>Lage ";223 echo "\n\t\t\t<a title='Lagebezeichnung mit Hausnummer' href='alkislage.php?gkz=".$gkz."&ltyp=m&gmlid=".$row["gml_id"]."'>Lage "; 224 224 echo "<img src='ico/Lage_mit_Haus.ico' width='16' height='16' alt=''></a>"; 225 225 echo "\n\t\t</p>\n\t</td>"; … … 249 249 if (!$res) echo "<p class='err'>Fehler bei Lagebezeichnung ohne Hausnummer<br>\n".$sql."</p>"; 250 250 $j=0; 251 // Es wird auch eine Zeile ausgegeben, wenn kein Eintrag gefunden! 251 // Es wird auch eine Zeile ausgegeben, wenn kein Eintrag gefunden! 252 252 while($row = pg_fetch_array($res)) { 253 253 $gewann = htmlentities($row["unverschluesselt"], ENT_QUOTES, "UTF-8"); … … 255 255 $lgml=$row["gml_id"]; // key der Lage 256 256 if (!$gewann == "") { 257 echo "\n<tr>"; 257 echo "\n<tr>"; 258 258 echo "\n\t<td class='ll'><img src='ico/Lage_Gewanne.ico' width='16' height='16' alt=''> Gewanne:</td>"; 259 echo "\n\t<td></td>"; 259 260 echo "\n\t<td class='lr'>".$gewann."</td>"; 260 261 echo "\n\t<td>\n\t\t<p class='nwlink noprint'>"; … … 262 263 echo "\n\t\t\tLage <img src='ico/Lage_Gewanne.ico' width='16' height='16' alt=''></a>"; 263 264 echo "\n\t\t</p>\n\t</td>"; 264 echo "\n</tr>"; 265 echo "\n</tr>"; 265 266 } 266 // Gleicher DB-Eintrag in zwei HTML-Zeilen, besser nur ein Link 267 // Gleicher DB-Eintrag in zwei HTML-Zeilen, besser nur ein Link 267 268 if ($skey > 0) { 268 echo "\n<tr>"; 269 echo "\n\t<td class='ll'><img src='ico/Lage_an_Strasse.ico' width='16' height='16' alt=''> Straße:</td>"; 269 echo "\n<tr>"; 270 echo "\n\t<td class='ll'><img src='ico/Lage_an_Strasse.ico' width='16' height='16' alt=''> Straße:</td>"; 271 echo "\n\t<td></td>"; 270 272 echo "\n\t<td class='lr'>"; 271 273 if ($showkey) { … … 278 280 echo "\n\t\t</p>\n\t</td>"; 279 281 echo "\n</tr>"; 280 } 282 } 281 283 $j++; 282 284 } … … 285 287 // ** N U T Z U N G ** 286 288 // Tabellenzeilen (3 Spalten) mit tats. Nutzung zu einem FS ausgeben 287 $sql ="SELECT m.title, m.fldclass, m.fldinfo, n.gml_id, c.class, n.info, n.zustand, n.name, n.bezeichnung, "; 288 // ", m.gruppe, "; 289 $sql ="SELECT m.title, m.fldclass, m.fldinfo, n.gml_id, c.class, n.info, n.zustand, n.name, n.bezeichnung, m.gruppe, "; 289 290 // Gemeinsame FlÀche von NUA und FS 290 291 $sql.="round(st_area(st_intersection(n.wkb_geometry,f.wkb_geometry))::numeric,1) AS schnittflae, "; … … 305 306 $j=0; 306 307 while($row = pg_fetch_array($res)) { 307 //$grupp = $row["gruppe"]; // Individuelles Icon?308 $grupp = $row["gruppe"]; // Individuelles Icon? 308 309 $title = htmlentities($row["title"], ENT_QUOTES, "UTF-8"); // NUA-Titel 309 310 $fldclass=$row["fldclass"]; // Feldname erstes Zusatzfeld … … 313 314 $info=$row["info"]; // zweites Zusatzfeld verschlÃŒsselt (noch keine Info zum entschl.) 314 315 $schnittflae=$row["schnittflae"]; 315 $label=$row["label"]; // Nutzungsart 316 $label=$row["label"]; // Nutzungsart entschlÃŒsselt 316 317 $zus=$row["zustand"]; // im Bau 317 318 $nam=$row["name"]; // Eigenname 318 319 $bez=$row["bezeichnung"]; // weiterer Name (unverschl.) 319 $blabla=htmlentities($row["blabla"], ENT_QUOTES, "UTF-8"); // Achtung, enthÀlt auch ""320 $blabla=htmlentities($row["blabla"], ENT_QUOTES, "UTF-8"); // Beschr. aus GeoInfoDok als PopUp-Label, enthÀlt auch "" 320 321 // $nflae=$row["nflae"]; 321 322 322 // Icon nach Gruppe?: 323 // Siedlung - Abschnitt.ico, Verkehr - Strassen_Klassifikation.ico, GewÀsser - Wasser.ico 324 // Vegetation - Wald.ico, Title=Landwirtschaft Landwirt.ico 323 // Beispiele: 324 // group Verkehr 325 // title Weg 326 // fldclass Funktion 327 // class 5250 328 // label Rad- und FuÃweg 329 325 330 echo "\n<tr>\n\t"; 326 if ($j == 0) { 331 if ($j == 0) { 327 332 echo "<td class='ll'><img src='ico/Abschnitt.ico' width='16' height='16' alt=''> Nutzung:</td>"; 328 333 } else { 329 334 echo "<td> </td>"; 330 335 } 331 echo "\n\t<td class='lr'>".$schnittflae." m²</td>"; 332 336 echo "\n\t<td class='fla'>".$schnittflae." m²</td>"; 333 337 echo "\n\t<td class='lr'>"; 334 // Eigene Nachweis-Seite fÃŒr Nutzungsart-FlÀche sinnvoll? dann hier verlinken 335 //echo "\n\t\t<p class='nwlink noprint'>"; 336 //echo "\n\t\t\t<a href='alkisnua.php?gkz=".$gkz."amp;gmlid=".$gml."'>Nutzung "; 337 //echo "<img src='ico/Abschnitt.ico' width='16' height='16' alt=''></a>"; 338 //if ($idanzeige) {linkgml($gkz, $gml, "Nutzung");} // Nein, ist mit nix verknuepft 339 //echo "\n\t\t</p>"; 340 echo $title; 341 If ($class != "") { // SchlÃŒssel 342 echo ", ".$fldclass.": "; // Feldname 343 if ($label != "") { // Bedeutung dazu wurde erfasst 344 if ($showkey) {echo "<span class='key'>(".$class.")</span> ";} 345 echo "<span title='".$blabla."'>".$label."</span> "; 346 } else { // muss noch erfasst werden 347 echo $class." "; // SchlÃŒssel als Ersatz fÃŒr Bedeutung 338 If ($fldclass = "Funktion" and $label != "") { // Kurze Anzeige 339 if ($showkey) {echo "<span class='key'>(".$class.")</span> ";} 340 if ($blabla = "") { 341 echo $label; 342 } else { 343 echo "<span title='".$blabla."'>".$label."</span>"; 344 } 345 } else { // ausfuehrlichere Anzeige 346 echo $title; // NUA-Tabelle 347 If ($class != "") { // NUA-SchlÃŒssel 348 echo ", ".$fldclass.": "; // Feldname 349 if ($label != "") { // Bedeutung dazu wurde erfasst 350 if ($showkey) {echo "<span class='key'>(".$class.")</span> ";} 351 if ($blabla = "") { 352 echo $label; 353 } else { 354 echo "<span title='".$blabla."'>".$label."</span>"; 355 } 356 } else { // muss noch erfasst werden 357 echo $class." "; // SchlÃŒssel als Ersatz fÃŒr Bedeutung 358 } 348 359 } 349 360 } 361 350 362 If ($info != "") { // manchmal ein zweites Zusatzfeld (wie entschlÃŒsseln?) 351 363 echo ", ".$fldinfo."=".$info; … … 374 386 If ($bez != "") { 375 387 echo "<br>Bezeichnung: ".$bez; 388 // echo "\"".$bez."\""; // +++ in "" dahinter? 376 389 } 390 echo "</td>"; 391 echo "\n\t<td>"; 392 // Eigene Nachweis-Seite fÃŒr Nutzungsart-FlÀche sinnvoll? dann hier verlinken 393 //echo "\n\t\t\t<a href='alkisnua.php?gkz=".$gkz."amp;gmlid=".$gml."'>Nutzung "; 394 //if ($idanzeige) {linkgml($gkz, $gml, "Nutzung");} // Nein, ist mit nix verknuepft 395 switch ($grupp) { // Icon nach 4 Objektartengruppen 396 case "Siedlung": 397 $ico = "Abschnitt.ico"; break; 398 case "Verkehr": 399 $ico = "Strassen_Klassifikation.ico"; break; 400 case "Vegetation": 401 $ico = "Wald.ico"; break; 402 case "GewÀsser": 403 $ico = "Wasser.ico"; break; 404 default: 405 $ico = "Abschnitt.ico"; break; 406 } 407 echo "<p class='nwlink'><img title='".$title."' src='ico/".$ico."' width='16' height='16' alt='NUA'></p>"; 377 408 echo "</td>"; 378 409 echo "\n</tr>"; … … 383 414 // Flaeche und Link auf GebÀude-Auswertung 384 415 echo "\n<tr>"; 385 echo "\n\t<td class='ll'>Fläche:</td>"; // Sp. 1386 echo "\n\t<td class=' lr'><span class='flae'>".$flae."</span></td>"; // Sp. 2387 echo "\n\t<td> "; // Sp. 3416 echo "\n\t<td class='ll'>Fläche:</td>"; 417 echo "\n\t<td class='fla'><span class='flae'>".$flae."</span></td>"; 418 echo "\n\t<td> </td>\n\t<td>"; 388 419 echo "\n\t\t<p class='nwlink noprint'>"; // Gebaeude-Verschneidung 389 420 echo "\n\t\t\t<a href='alkisgebaeudenw.php?gkz=".$gkz."&gmlid=".$gmlid; … … 413 444 if ($eig=="j") { 414 445 echo "&eig=n#gb' title='Flurstücksnachweis'>ohne Eigentümer</a>"; 415 } else { 446 } else { 416 447 echo "&eig=j#gb' title='Flurstücks- und Eigentümernachweis'>mit Eigentümer "; 417 448 echo "<img src='ico/EigentuemerGBzeile.ico' width='16' height='16' alt=''></a>"; … … 479 510 }else { 480 511 echo "\n\t<table class='kennzgbf' title='Bestandskennzeichen'>"; // dotted 481 } 512 } 482 513 echo "\n\t<tr>\n\t\t<td class='head'>Bezirk</td>"; 483 514 echo "\n\t\t<td class='head'>".$blattartg."</td>"; … … 487 518 echo "\n\t<tr>"; 488 519 echo "\n\t\t<td title='Grundbuchbezirk'>"; 489 if ($showkey) { 490 echo "<span class='key'>".$rowg["bezirk"]."</span><br>"; 491 } 520 if ($showkey) { 521 echo "<span class='key'>".$rowg["bezirk"]."</span><br>"; 522 } 492 523 echo $beznam; 493 524 echo "</td>"; … … 503 534 echo $rows["bart"]; 504 535 echo "</td>"; 505 536 506 537 echo "\n\t</tr>"; 507 538 echo "\n\t</table>"; … … 523 554 if ($idanzeige) {echo "&id=j";} 524 555 if ($showkey) {echo "&showkey=j";} 525 if ($blattkeyg == 1000) { 556 if ($blattkeyg == 1000) { 526 557 echo "' title='Grundbuchnachweis mit kompletter Eigentümerangabe'>"; 527 558 } else { 528 559 echo "' title='Grundbuchnachweis'>"; 529 } 560 } 530 561 echo $blattartg." <img src='ico/GBBlatt_link.ico' width='16' height='16' alt=''>"; 531 562 echo "</a>"; … … 540 571 } 541 572 if ($rows["nrpl"] != "") { 542 echo "<p class='nrap' title='Nummer im Aufteilungsplan'>Nummer <span class='wichtig'>".$rows["nrpl"]."</span> im Aufteilungsplan.</p>"; 573 echo "<p class='nrap' title='Nummer im Aufteilungsplan'>Nummer <span class='wichtig'>".$rows["nrpl"]."</span> im Aufteilungsplan.</p>"; 543 574 } 544 575 … … 604 635 } else { 605 636 echo "\n\t<table class='kennzgbf' title='Bestandskennzeichen'>"; // dotted 606 } 637 } 607 638 echo "\n\t<tr>"; 608 639 echo "\n\t\t<td class='head'>Bezirk</td>"; … … 614 645 echo "\n\t<tr>"; 615 646 echo "\n\t\t<td title='Grundbuchbezirk'>"; 616 if ($showkey) { 647 if ($showkey) { 617 648 echo "<span class='key'>".$rowan["bezirk"]."</span><br>"; 618 } 649 } 619 650 echo $beznam."</td>"; 620 651 … … 624 655 625 656 echo "\n\t\t<td title='Buchungsart'>"; 626 if ($showkey) { 657 if ($showkey) { 627 658 echo "<span class='key'>".$rowan["buchungsart"]."</span><br>"; 628 659 } … … 649 680 echo "' title='Grundbuchnachweis mit kompletter Eigentümerangabe'>"; 650 681 echo $blattartan; 651 echo " <img src='ico/GBBlatt_link.ico' width='16' height='16' alt=''>"; 682 echo " <img src='ico/GBBlatt_link.ico' width='16' height='16' alt=''>"; 652 683 echo "</a>"; 653 684 echo "\n\t</p>";
Note: See TracChangeset
for help on using the changeset viewer.