Changeset 427 for trunk/info/info/alkisn/alkisfsnw.php
- Timestamp:
- 02/24/22 16:24:19 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/info/info/alkisn/alkisfsnw.php
r425 r427 1 1 <?php 2 /* Modul: alkisfsnw.php 3 4 ALKIS-Buchauskunft, Kommunales Rechenzentrum Minden-Ravensberg/Lippe (Lemgo). 5 FlurstÃŒcksnachweis fuer ein FlurstÃŒckskennzeichen aus ALKIS PostNAS 2 /* alkisfsnw.php 3 4 ALKIS-Auskunft 5 Author: Frank JÀger, Kommunales Rechenzentrum Minden-Ravensberg/Lippe (Lemgo) 6 7 FlurstÃŒcksnachweis fÃŒr ein FlurstÃŒckskennzeichen aus ALKIS PostNAS 6 8 7 9 Version: 8 10 2016-02-24 Version fÃŒr norGIS-ALKIS-Import 9 ..... 10 2020-02-20 Authentifizierung ausgelagert in Function darf_ich() 11 2020-10-13 debug-infos raus 11 ... 12 12 2020-12-03 function selbstverlinkung() statt $_SERVER['PHP_SELF'] 13 13 2020-12-09 Verschn. mit "Bau-, Raum- oder Bodenordnungsrecht" korrigiert, Entschl. BodenschÀtzung korrigiert … … 15 15 2021-03-09 Link zum GebÀudenachweis auch mit "Bauwerke" betiteln 16 16 2021-12-09 Neue Parameter: $katAmtMix (Kataster-Amt-Mix), $PrntBtn (Drucken-SchaltflÀche) 17 2022-01-13 Functions in Fach-Modul verschoben, die nicht von mehreren verwendet werden. Neue Functions LnkStf(), DsKy() 17 18 18 19 ToDo: … … 23 24 - Bessere Differenzierung bei den Nutzungsarten (Tabelle dafÃŒr aufbauen) 24 25 */ 26 27 function werteliste($bez ,$sqlin) { 28 // Eine oder mehrere EntschlÃŒsselungen in eine Zeile ausgeben. 29 // Dient dazu, SchlÃŒssel-ARRAYs auflösen ohne die Zeile im JOIN mehrfach aufzulisten 30 // Anwendung: FS-Nachweis BodenschÀtzung 31 global $dbg; 32 33 if ($bez === 'e') {$tabelle = 'ax_entstehungsartoderklimastufewasserverhaeltnisse_bodensc';} 34 elseif ($bez === 's') {$tabelle = 'ax_sonstigeangaben_bodenschaetzung';} 35 36 $sql="SELECT wert, beschreibung FROM ".$tabelle." WHERE wert IN (".$sqlin.") ORDER BY wert LIMIT $1 ;"; 37 $v = array('9'); 38 $res = pg_prepare("", $sql); 39 $res = pg_execute("", $v); 40 if (!$res) { 41 echo "\n<p class='err'>Fehler bei Werteliste.</p>"; 42 if ($dbg > 2) {echo "\n<p class='dbg'>SQL=<br>".htmlentities($sql, ENT_QUOTES, "UTF-8")."</p>";} 43 return; 44 } 45 $zeianz=pg_num_rows($res); 46 while($row = pg_fetch_assoc($res)) { 47 echo " ".$row["beschreibung"]; 48 } 49 pg_free_result($res); 50 if ($zeianz === 0) { 51 echo "(kein Treffer)"; 52 if ($dbg > 2) {echo "\n<p class='dbg'>SQL=<br>".htmlentities($sql, ENT_QUOTES, "UTF-8")."</p>";} 53 } 54 return; 55 } 56 57 // Start 25 58 ini_set("session.cookie_httponly", 1); 26 59 session_start(); … … 71 104 <?php 72 105 $erlaubnis = darf_ich(); if ($erlaubnis === 0) { die('<p class="stop1">Abbruch</p></body>'); } 73 $dbg=$debug; // CONF in Arbeits-Variable 74 75 // Mit URL-Parameter "&nodebug=j" kann man die Entwicklungsumgebung (in Conf definiert) ausschalten. Blendet z.B. "fiktives Blatt" aus. 76 // Wirkt temporÀr und wird nicht in Links weiter gereicht. 106 $dbg=$debug; 77 107 if ($nodebug === "j") {$dbg=0;} 78 108 … … 91 121 } else { 92 122 echo "\n<p class='err'>Fehler! Kein Treffer für Flurstückskennzeichen='".$fskennz."' (".$fskzdb.")</p>"; 93 echo "<p>Kennzeichen veraltet? <a href='./alkisfshist.php?gkz=".$gkz."&fskennz=".$fskennz. "'>Suche in der Flurstücks-Historie</a></p>";123 echo "<p>Kennzeichen veraltet? <a href='./alkisfshist.php?gkz=".$gkz."&fskennz=".$fskennz.LnkStf()."'>Suche in der Flurstücks-Historie</a></p>"; 94 124 echo "\n</body>\n</html>"; 95 125 return; … … 98 128 } 99 129 100 // F L U R S T U EC K m. Gebiet130 // F L U R S T à C K m. Gebiet 101 131 $sql ="SELECT f.zeigtaufexternes_art, f.zeigtaufexternes_name, f.flurnummer, f.zaehler, f.nenner, f.gemeindezugehoerigkeit_regierungsbezirk, f.gemeindezugehoerigkeit_kreis, f.gemeindezugehoerigkeit_gemeinde, f.amtlicheflaeche, st_area(f.wkb_geometry) AS fsgeomflae, 102 132 to_char(cast(f.zeitpunktderentstehung AS date),'DD.MM.YYYY') AS zeitpunktderentstehung, f.istgebucht, g.gemarkungsnummer, g.bezeichnung, r.bezeichnung AS rbez, k.bezeichnung AS kbez, m.bezeichnung AS mbez … … 136 166 $flstnummer=$zaehler; 137 167 if ($nenner > 0) {$flstnummer.="/".$nenner;} // BruchNr 138 $fsbuchflae=$row["amtlicheflaeche"]; // amtl icheFl. aus DB-Feld168 $fsbuchflae=$row["amtlicheflaeche"]; // amtl. Fl. aus DB-Feld 139 169 $fsgeomflae=$row["fsgeomflae"]; // aus Geometrie ermittelte FlÀche 140 170 $the_Xfactor = $fsbuchflae / $fsgeomflae; // Multiplikator zur Umrechnung geometrische AbschnittsflÀchen in BuchflÀche … … 165 195 if ( ($filtkreis != '' and $filtkreis != $kreis) or ($filtgem != '' and $filtgem != $gemeinde) ) { 166 196 // Einer der gesetzten Filter passt nicht 167 if ($dbg > 2) { //++ Schönes Bild? Stop-Zeichen?197 if ($dbg > 2) { 168 198 echo "\n<p class='err'>Filter Kreis='".$filtkreis."', Gemeinde='".$filtgem."'</p>" 169 199 ."\n<p class='err'>Flstk. Kreis='".$fskrs."', Gemeinde='".$fsgem."'</p>"; … … 179 209 ."\n\t\t\t<table class='kennzfs' title='Flurstückskennzeichen'>\n\t\t\t\t<tr>" // darin Tabelle Kennzeichen 180 210 ."\n\t\t\t\t\t<td class='head'>Gemarkung</td>\n\t\t\t\t\t<td class='head'>Flur</td>\n\t\t\t\t\t<td class='head'>Flurst-Nr.</td>\n\t\t\t\t</tr>" 181 ."\n\t\t\t\t<tr>\n\t\t\t\t\t<td title='Gemarkung'>"; 182 if ($showkey) {echo "<span class='key'>".$gmkgnr."</span><br>";} 183 echo $gemkname." </td>" 211 ."\n\t\t\t\t<tr>\n\t\t\t\t\t<td title='Gemarkung'>".DsKy($gmkgnr, 'Gemarkungsnummer').$gemkname." </td>" 184 212 ."\n\t\t\t\t\t<td title='Flurnummer'>".$flurnummer."</td>" 185 213 ."\n\t\t\t\t\t<td title='Flurstücksnummer (Zähler / Nenner)'><span class='wichtig'>".$flstnummer."</span></td>\n\t\t\t\t</tr>" … … 194 222 ."\n</tr>"; 195 223 196 echo "\n<tr>" // Zeile: G e b i e t s z u g e h o e r i g k e i t Gemeinde / Kreis / Regierungsbezirk224 echo "\n<tr>" // Zeile: Gebietszugehörigkeit - Gemeinde / Kreis / Reg.bez. 197 225 ."\n\t<td class='ll'><img title='Im Gebiet von' src='ico/Gemeinde.png' width='16' height='16' alt=''> Gebiet:</td>" 198 226 ."\n\t<td>Gemeinde<br>Kreis<br>Regierungsbezirk</td>" 199 ."\n\t<td class='lr' colspan='3'>"; // 3-5 200 if ($showkey) {echo "<span class='key'>(".$gemeinde.")</span> ";} 201 echo $mbez."<br>"; 202 if ($showkey) {echo "<span class='key'>(".$kreis.")</span> ";} 203 echo $kbez."<br>"; 204 if ($showkey) {echo "<span class='key'>(".$bezirk.")</span> ";} 205 echo $rbez 206 ."</td>" 227 ."\n\t<td class='lr' colspan='3'>".DsKy($gemeinde, 'Gemeinde-Nummer').$mbez."<br>".DsKy($kreis, 'Kreis-Nummer').$kbez."<br>".DsKy($bezirk, 'Regierungsbezirk-Nummer').$rbez."</td>" 207 228 ."\n\t<td class='nwlink'>"; 208 229 if ($fsHistorie){ // conf 209 230 echo "\n\t\t<p class='nwlink noprint'>" 210 ."\n\t\t\t<a href='alkisfshist.php?gkz=".$gkz."&gmlid=".$gmlid; 211 if ($showkey) {echo "&showkey=j";} 212 echo "' title='Vorgänger-Flurstücke'>Historie " 213 ."<img src='ico/Flurstueck_Historisch.png' width='16' height='16' alt=''>" 214 ."</a>" 215 ."\n\t\t</p>\n\t"; 231 ."\n\t\t\t<a href='alkisfshist.php?gkz=".$gkz."&gmlid=".$gmlid.LnkStf() 232 ."' title='Vorgänger-Flurstücke'>Historie <img src='ico/Flurstueck_Historisch.png' width='16' height='16' alt=''></a>\n\t\t</p>\n\t"; 216 233 } 217 234 echo "</td>" 218 235 ."\n</tr>"; 219 236 220 // ** L a g e b e z e i c h n u n g **237 // L a g e b e z e i c h n u n g 221 238 222 239 // Lagebezeichnung M I T Hausnummer … … 250 267 $hsnr=$row["hausnummer"]; 251 268 echo "\n<tr>"; 252 if ($j === 0) { // 1269 if ($j === 0) { 253 270 echo "\n\t<td class='ll'><img src='ico/Lage_mit_Haus.png' width='16' height='16' alt=''> Adresse:</td>"; 254 271 } else { 255 272 echo "\n\t<td> </td>"; 256 273 } 257 echo "\n\t<td> </td>" // 2 258 ."\n\t<td class='lr' colspan='3'>"; // 3-5 259 if ($showkey) {echo "<span class='key' title='StraÃenschlüssel'>(".$row["lage"].")</span> ";} 260 echo $sname." ".$hsnr."</td>"; 261 echo "\n\t<td>\n\t\t<p class='nwlink noprint'>"; // 6 274 echo "\n\t<td> </td>" 275 ."\n\t<td class='lr' colspan='3'>".DsKy($row["lage"], 'StraÃen-*').$sname." ".$hsnr."</td>" 276 ."\n\t<td>\n\t\t<p class='nwlink noprint'>"; 262 277 263 278 // +++ davor auch Link "StraÃe" … … 266 281 $kgmlalt=$kgml; // Katalog GML-ID 267 282 echo "\n\t\t\t<a title='Flurstücke mit oder ohne Hausnummer".$slink."' " 268 ."href='alkisstrasse.php?gkz=".$gkz."&gmlid=".$kgml. "'>Straße "283 ."href='alkisstrasse.php?gkz=".$gkz."&gmlid=".$kgml.LnkStf()."'>Straße " 269 284 ."<img src='ico/Strassen.png' width='16' height='16' alt='STRA'></a> "; 270 285 } 271 286 272 echo "\n\t\t\t<a title='Flurstücke und Gebäude mit Hausnummer ".$hsnr."' href='alkislage.php?gkz=".$gkz."&ltyp=m&gmlid=".$row["gml_id"]; 273 if ($showkey) {echo "&showkey=j";} 274 echo "'>Lage <img src='ico/Lage_mit_Haus.png' width='16' height='16' alt=''></a>" 287 echo "\n\t\t\t<a title='Flurstücke und Gebäude mit Hausnummer ".$hsnr."' href='alkislage.php?gkz=".$gkz."&ltyp=m&gmlid=".$row["gml_id"].LnkStf() 288 ."'>Lage <img src='ico/Lage_mit_Haus.png' width='16' height='16' alt=''></a>" 275 289 ."\n\t\t</p>\n\t</td>" // 6 276 290 ."\n</tr>"; … … 293 307 if (!$res) { 294 308 echo "\n<p class='err'>Fehler bei Lagebezeichnung ohne Hausnummer</p>"; 295 //if ($dbg > 1) {echo "<p class='dbg'>Fehler:".pg_result_error($res)."</p>";}296 309 if ($dbg > 2) {echo "\n<p class='dbg'>SQL=<br>".htmlentities(str_replace("$1", "'".$gmlid."'", $sql), ENT_QUOTES, "UTF-8")."</p>";} 297 310 } 298 $j=0;299 311 while($row = pg_fetch_assoc($res)) { 300 312 $skey=$row["lage"]; // Strassenschl. … … 304 316 echo "\n<tr>" 305 317 ."\n\t<td class='ll' title='unverschlüsselte Lagebezeichnung'><img src='ico/Lage_Gewanne.png' width='16' height='16' alt=''> Gewanne:</td>" // 1 306 ."\n\t<td></td>" // 2 307 ."\n\t<td class='lr' colspan='3'>".$gewann."</td>" // 3-5 308 ."\n\t<td>\n\t\t<p class='nwlink noprint'>" // 6 309 ."\n\t\t\t<a title='Flurstücke mit der Gewanne ".$gewann."' href='alkislage.php?gkz=".$gkz."&ltyp=o&gmlid=".$lgml; 310 if ($showkey) {echo "&showkey=j";} 311 echo "'>\n\t\t\tLage <img src='ico/Lage_Gewanne.png' width='16' height='16' alt=''></a>" 312 ."\n\t\t</p>\n\t</td>" // 6 318 ."\n\t<td></td>" 319 ."\n\t<td class='lr' colspan='3'>".$gewann."</td>" 320 ."\n\t<td>\n\t\t<p class='nwlink noprint'>" 321 ."\n\t\t\t<a title='Flurstücke mit der Gewanne ".$gewann."' href='alkislage.php?gkz=".$gkz."&ltyp=o&gmlid=".$lgml.LnkStf() 322 ."'>\n\t\t\tLage <img src='ico/Lage_Gewanne.png' width='16' height='16' alt=''></a>" 323 ."\n\t\t</p>\n\t</td>" 313 324 ."\n</tr>"; 314 325 } elseif ($skey > 0) { … … 320 331 } 321 332 echo "\n<tr>" 322 ."\n\t<td class='ll'><img src='ico/Lage_an_Strasse.png' width='16' height='16' alt=''> Straße:</td>" // 1 323 ."\n\t<td></td>" // 2 324 ."\n\t<td class='lr' colspan='3'>"; // 3-5 325 if ($showkey) {echo "<span class='key'>(".$skey.")</span> ";} 326 echo $sname."</td>"; 327 echo "\n\t<td>\n\t\t<p class='nwlink noprint'>" // 6 328 ."\n\t\t\t<a title='FlurstÃŒcke ".$slink."' href='alkislage.php?gkz=".$gkz."&ltyp=o&gmlid=".$lgml; 329 if ($showkey) {echo "&showkey=j";} 330 echo "'>\n\t\t\tLage <img src='ico/Lage_an_Strasse.png' width='16' height='16' alt=''>\n\t\t\t</a>" 331 ."\n\t\t</p>\n\t</td>" // 6 333 ."\n\t<td class='ll'><img src='ico/Lage_an_Strasse.png' width='16' height='16' alt=''> Straße:</td>" 334 ."\n\t<td></td>\n\t<td class='lr' colspan='3'>".DsKy($skey, 'StraÃen-*').$sname."</td>"; 335 echo "\n\t<td>\n\t\t<p class='nwlink noprint'>" 336 ."\n\t\t\t<a title='FlurstÃŒcke ".$slink."' href='alkislage.php?gkz=".$gkz."&ltyp=o&gmlid=".$lgml.LnkStf() 337 ."'>\n\t\t\tLage <img src='ico/Lage_an_Strasse.png' width='16' height='16' alt=''>\n\t\t\t</a>" 338 ."\n\t\t</p>\n\t</td>" 332 339 ."\n</tr>"; 333 340 } 334 $j++;335 341 } 336 342 pg_free_result($res); … … 381 387 } 382 388 $absflaebuch = number_format($flae,0,",",".") . " m²"; // Formatierte Abschnitts-Buch-FlÀche 383 echo "\n\t<td></td>"; // 2 384 echo "\n\t<td class='fla' title='Buchfläche des Abschnitts'>".$absflaebuch."</td>"; // 3 - gleiche Spalte wie Fl. in BodenschÀtzg. 385 echo "\n\t<td></td>"; // 4 386 echo "\n\t<td class='lr' title='".$title."'>"; // 5 - gleiche Sp. wie Zustandsstufe usw. 387 if ($showkey) {echo "<span class='key'>(".$nutzsl.")</span> ";} 388 echo $nutzung 389 ."</td>" 390 ."\n\t<td>"; // 6 389 echo "\n\t<td></td>" 390 ."\n\t<td class='fla' title='Buchfläche des Abschnitts'>".$absflaebuch."</td>" // Sp. wie Fl. in BodenschÀtzg. 391 ."\n\t<td></td>" 392 ."\n\t<td class='lr' title='".$title."'>".DsKy($nutzsl, 'Nutzungsarten-*').$nutzung."</td>" 393 ."\n\t<td>"; 391 394 /* // Derzeit ist keine Gruppe zugeordnet 392 395 switch ($grupp) { // Icon nach 4 Objektartengruppen … … 395 398 case "Vegetation": $ico = "Wald.png"; break; 396 399 case "GewÀsser": $ico = "Wasser.png"; break; 397 default: $ico = "Abschnitt.png";break;400 default: $ico = "Abschnitt.png"; break; 398 401 } 399 402 // Icon ist auch im Druck sichtbar, class='noprint' ? 400 403 echo "<p class='nwlink'><img title='".$title."' src='ico/".$ico."' width='16' height='16' alt='NUA'></p>"; */ 401 echo "</td>" // 6404 echo "</td>" 402 405 ."\n</tr>"; 403 406 $j++; … … 414 417 ."\n\t<td>" // 6 Link auf GebÀude-Auswertung 415 418 ."\n\t\t<p class='nwlink noprint'>" // Gebaeude-Verschneidung 416 ."\n\t\t\t<a href='alkisgebaeudenw.php?gkz=".$gkz."&gmlid=".$gmlid; 417 if ($showkey) {echo "&showkey=j";} 419 ."\n\t\t\t<a href='alkisgebaeudenw.php?gkz=".$gkz."&gmlid=".$gmlid.LnkStf(); 418 420 if ($cnt_adressen > 0) { // wenn Adresse vorgekommen ist 419 421 echo "' title='Gebäude oder Bauwerke auf oder an dem Flurstück'>Gebäude/Bauw."; … … 482 484 ."\n\t<td class='lr'><span title='".$kbez1."'>".$boedenzahl."</span>/<span title='".$kbez2."'>".$ackerzahl."</span></td>" 483 485 ."\n\t<td class='lr'>"; 484 485 if ($showkey) {echo "\n\t\t<span class='key'>(".$kulturartk.")</span> ";} 486 echo "\n\t\t<span title='Kulturart'>".$kulturartv."</span> "; 487 488 if ($showkey) {echo "\n\t\t<span class='key'>(".$row['bodenartk'].")</span> ";} 489 echo "\n\t\t<span title='Bodenart'>".$row['bodenartv']."</span> "; 490 491 echo "\n\t\t<span title='Zustandsstufe'>".$row['zustbodv']."</span> "; 486 echo "\n\t\t".DsKy($kulturartk, 'Kulturart')." <span title='Kulturart-*'>".$kulturartv."</span>"; 487 echo "\n\t\t<br>".DsKy($row['bodenartk'], 'Bodenart-*')." <span title='Bodenart'>".$row['bodenartv']."</span>"; 488 echo "\n\t\t<br><span title='Zustandsstufe'>".$row['zustbodv']."</span>"; 492 489 493 490 // 2 ARRAYs auflösen 494 491 if (isset($entsteh)) { 495 492 $ent=trim($entsteh, "{}"); 496 echo "\n\t\t <span title='Enststehungsart oder Klimastufe, Wasserverhältnisse'>"; 497 if ($showkey) {echo "\n\t\t <span class='key'>(".$ent.")</span> ";} 498 werteliste ('e', $ent); 493 echo "\n\t\t<br><span title='Enststehungsart oder Klimastufe, Wasserverhältnisse'>".DsKy($ent, '*'); 494 werteliste('e', $ent); // ++ Zeilenweise mit <br> ? 499 495 echo "</span>"; 500 496 } 501 497 if (isset($sonst)) { 502 498 $son=trim($sonst, "{}"); 503 echo "\n\t\t <span title='Sonstige Angaben'>"; 504 if ($showkey) {echo "\n\t\t <span class='key'>(".$son.")</span> ";} 505 werteliste ('s', $son); 506 echo "</span>"; 499 echo "\n\t\t<br><span title='Sonstige Angaben'>".werteliste('s', $son)."</span>"; // ++ Zeilenweise mit <br> ? 507 500 } 508 501 if (isset($jahr)) { 509 echo "\n\t\t< span title='Jahreszahl'>".$jahr."</span>";502 echo "\n\t\t<br><span title='Jahreszahl'>".$jahr."</span>"; 510 503 } 511 504 echo "\n\t</td>" … … 557 550 ."\n\t<td>Bodenrecht</td>" // 1 558 551 ."\n\t<td class='re'>Festlegung: </td>" // 2 "Art der Festlegung" zu lang 559 ."\n\t<td colspan='3'>"; // 3-5 560 if ($showkey) {echo "<span class='key'>(".$row['wert'].")</span> ";} 561 echo $row['art_verf'] 562 ."</td>"; 563 echo "\n\t<td>" // 6 LINK: 552 ."\n\t<td colspan='3'>".DsKy($row['wert'], 'Art des Verfahrens').$row['art_verf']."</td>"; 553 echo "\n\t<td>" 564 554 ."\n\t\t<p class='nwlink noprint'>" 565 ."\n\t\t\t<a href='alkisbaurecht.php?gkz=".$gkz."&gmlid=".$row['verf_gml']; 566 if ($showkey) {echo "&showkey=j";} 567 echo "' title='Bau-, Raum- oder Bodenordnungsrecht'>Recht <img src='ico/Gericht.png' width='16' height='16' alt=''></a>" 555 ."\n\t\t\t<a href='alkisbaurecht.php?gkz=".$gkz."&gmlid=".$row['verf_gml'].LnkStf() 556 ."' title='Bau-, Raum- oder Bodenordnungsrecht'>Recht <img src='ico/Gericht.png' width='16' height='16' alt=''></a>" 568 557 ."\n\t\t</p>" 569 558 ."\n\t</td>" … … 574 563 ."\n\t<td> </td>" // 1 575 564 ."\n\t<td class='re'>Dienststelle: </td>" // 2 576 ."\n\t<td colspan='3'>"; // 3-5 577 if ($showkey) {echo "<span class='key'>(".$dstell.")</span> ";} 578 echo $row['stelle_bez'] 579 ."</td>" 580 ."\n\t<td> </td>" // 6 565 ."\n\t<td colspan='3'>".DsKy($dstell, 'Art der Dienststelle').$row['stelle_bez']."</td>" 566 ."\n\t<td> </td>" 581 567 ."\n</tr>"; 582 568 } … … 588 574 ."\n\t<td class='re'>Verfahren: </td>" 589 575 ."\n\t<td colspan='3'>"; 590 if ($vnam == "") { 591 echo $vbez; // nur die Nummer 592 } else { // Name oder beides 593 if ($showkey) {echo "<span class='key'>(".$vbez.")</span> ";} 594 echo $vnam; 595 } 576 if ($vnam == "") { 577 echo $vbez; // nur die Nummer 578 } else { // Name oder beides 579 echo DsKy($vbez, 'Nummer des Verfahrens').$vnam; 580 } 596 581 echo "</td>" 597 582 ."\n\t<td> </td>" … … 627 612 $verf_next=array(); // .. und zum AuffÃŒllen leeren 628 613 $stufe++; 629 $i=0; // SchleifenzÀhler Elemente630 614 foreach($verf_akt as $gml_ber_bs) { 631 $i++;632 615 if (ber_bs_zaehl($gml_ber_bs) > 0) { 633 616 $verf_neu=ber_bs_anzg($gml_ber_bs, $eig, false, $gmlid, ""); // Anzeige ber. Buchungst., ggf. mit EigentÃŒmer. 634 617 $anz_neu=count($verf_neu); // Das Ergebnis zÀhlen 635 // if ($dbg > 2) {echo "<p class='dbg'>Weiter zu verfolgen: Stufe ".$stufe.", Element ".$i.", Anzahl: ".$anz_neu."</p>";}636 618 if ($anz_neu > 0) { // wenn neue geliefert 637 619 $verf_next=array_merge($verf_next, $verf_neu); // die neuen an die Sammlung heften … … 647 629 // Wenn der Verweis der Buchungsstelle auf ein Grundbuch ins Leere lÀuft, weil das Grundbuch 648 630 // nicht im SekundÀrbestand vorhanden ist, dann könnte das am NBA-Verfahren liegen. 649 if ( $gezeigt === 0 and $stufe === 1 ) { // and $anzber === 0 650 // Fehlt die Buchung oder das Grundbuch? 631 if ( $gezeigt === 0 and $stufe === 1 ) { 651 632 echo "<p class='err'>Das Grundbuch zur Buchung '".$gml_buchungsstelle."' fehlt in der Datenbank.</p>"; 652 653 if ($dbg > 1) { // fehlt die Buchung?? 633 if ($dbg > 2) { // fehlt die Buchung? 654 634 echo "<p class='dbg'>Suchen mit SQL: SELECT * FROM ax_buchungsstelle WHERE gml_id='".$gml_buchungsstelle."'; </p>"; 655 635 } 656 // Buchung verlinken fÃŒr weitere Suche: alkisgsnw.php?gkz=320&gmlid=DENW18AL0000SEbl657 // Aber das Modul zeigt nichts an (inner join ?)658 // +++ ZunÀchst: Auch im Modul alkisgsnw.php den Fall berÃŒcksichtigen, dass die Buchung vorhanden ist, aber das GB nicht ?!659 636 } 660 637 }
Note: See TracChangeset
for help on using the changeset viewer.