Changeset 355 for trunk/info/info/alkis/alkisfsnw.php
- Timestamp:
- 12/09/15 16:00:54 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/info/info/alkis/alkisfsnw.php
r349 r355 25 25 2014-09-30 Umbenennung SchlÃŒsseltabellen (Prefix), RÃŒckbau substring(gml_id) 26 26 2014-12-16 Zum Grundbuch einen Hinweis anzeigen, wenn es dazu berechtigte Buchungen gibt. 27 2015-12-09 Austausch .ico durch .png 27 28 28 29 ToDo: … … 32 33 */ 33 34 session_start(); 35 $id="n"; 34 36 $cntget = extract($_GET); 35 37 require_once("alkis_conf_location.php"); … … 190 192 if ($eig=="j") { 191 193 echo "<p class='fsei'>ALKIS Flurstück ".$gmkgnr."-".$flurnummer."-".$flstnummer." </p>\n"; 192 echo "\n<h2><img src='ico/Flurstueck. ico' width='16' height='16' alt=''> Flurstück mit Eigentümer</h2>\n";194 echo "\n<h2><img src='ico/Flurstueck.png' width='16' height='16' alt=''> Flurstück mit Eigentümer</h2>\n"; 193 195 } else { 194 196 echo "<p class='fskennz'>ALKIS Flurstück ".$gmkgnr."-".$flurnummer."-".$flstnummer." </p>\n"; 195 echo "\n<h2><img src='ico/Flurstueck. ico' width='16' height='16' alt=''> Flurstück</h2>\n";197 echo "\n<h2><img src='ico/Flurstueck.png' width='16' height='16' alt=''> Flurstück</h2>\n"; 196 198 } 197 199 echo "\n<table class='outer'>\n<tr>\n\t<td>"; // linke Seite … … 234 236 // eine Tabellenzeile mit der Gebietszugehoerigkeit eines Flurstuecks wird ausgegeben 235 237 // Schluessel "land" wird nicht verwendet, gibt es Bestaende wo das nicht einheitlich ist? 236 echo "\n<tr>\n\t<td class='ll'><img title='Im Gebiet von' src='ico/Gemeinde. ico' width='16' height='16' alt=''> Gebiet:</td>";238 echo "\n<tr>\n\t<td class='ll'><img title='Im Gebiet von' src='ico/Gemeinde.png' width='16' height='16' alt=''> Gebiet:</td>"; 237 239 238 240 // G e m e i n d e … … 259 261 if ($showkey) {echo "&showkey=j";} 260 262 echo "' title='Vorgänger-Flurstücke'>Historie "; 261 echo "<img src='ico/Flurstueck_Historisch. ico' width='16' height='16' alt=''>";263 echo "<img src='ico/Flurstueck_Historisch.png' width='16' height='16' alt=''>"; 262 264 echo "</a>"; 263 265 echo "\n</p>"; … … 329 331 echo "\n<tr>\n\t"; 330 332 if ($j == 0) { 331 echo "<td class='ll'><img src='ico/Lage_mit_Haus. ico' width='16' height='16' alt=''> Adresse:</td>";333 echo "<td class='ll'><img src='ico/Lage_mit_Haus.png' width='16' height='16' alt=''> Adresse:</td>"; 332 334 } else { 333 335 echo "<td> </td>"; … … 345 347 if ($showkey) {echo "&showkey=j";} 346 348 echo "'>Lage "; 347 echo "<img src='ico/Lage_mit_Haus. ico' width='16' height='16' alt=''></a>";349 echo "<img src='ico/Lage_mit_Haus.png' width='16' height='16' alt=''></a>"; 348 350 echo "\n\t\t</p>\n\t</td>"; 349 351 echo "\n</tr>"; … … 377 379 if (!$gewann == "") { 378 380 echo "\n<tr>"; 379 echo "\n\t<td class='ll' title='Lagebezeichnung'><img src='ico/Lage_Gewanne. ico' width='16' height='16' alt=''> Gewanne:</td>";381 echo "\n\t<td class='ll' title='Lagebezeichnung'><img src='ico/Lage_Gewanne.png' width='16' height='16' alt=''> Gewanne:</td>"; 380 382 echo "\n\t<td></td>"; 381 383 echo "\n\t<td class='lr'>".$gewann."</td>"; … … 383 385 echo "\n\t\t\t<a title='Lagebezeichnung Ohne Hausnummer' href='alkislage.php?gkz=".$gkz."&ltyp=o&gmlid=".$lgml; 384 386 if ($showkey) {echo "&showkey=j";} 385 echo "'>\n\t\t\tLage <img src='ico/Lage_Gewanne. ico' width='16' height='16' alt=''></a>";387 echo "'>\n\t\t\tLage <img src='ico/Lage_Gewanne.png' width='16' height='16' alt=''></a>"; 386 388 echo "\n\t\t</p>\n\t</td>"; 387 389 echo "\n</tr>"; … … 390 392 if ($skey > 0) { 391 393 echo "\n<tr>"; 392 echo "\n\t<td class='ll'><img src='ico/Lage_an_Strasse. ico' width='16' height='16' alt=''> Straße:</td>";394 echo "\n\t<td class='ll'><img src='ico/Lage_an_Strasse.png' width='16' height='16' alt=''> Straße:</td>"; 393 395 echo "\n\t<td></td>"; 394 396 echo "\n\t<td class='lr'>"; … … 402 404 echo "\n\t\t\t<a title='Lagebezeichnung Ohne Hausnummer' href='alkislage.php?gkz=".$gkz."&ltyp=o&gmlid=".$lgml; 403 405 if ($showkey) {echo "&showkey=j";} 404 echo "'>\n\t\t\tLage <img src='ico/Lage_an_Strasse. ico' width='16' height='16' alt=''>\n\t\t\t</a>";406 echo "'>\n\t\t\tLage <img src='ico/Lage_an_Strasse.png' width='16' height='16' alt=''>\n\t\t\t</a>"; 405 407 echo "\n\t\t</p>\n\t</td>"; 406 408 echo "\n</tr>"; … … 449 451 echo "\n<tr>\n\t"; 450 452 if ($j == 0) { 451 echo "<td class='ll' title='Abschnitt der tatsächlichen Nutzung'><img src='ico/Abschnitt. ico' width='16' height='16' alt=''> Nutzung:</td>";453 echo "<td class='ll' title='Abschnitt der tatsächlichen Nutzung'><img src='ico/Abschnitt.png' width='16' height='16' alt=''> Nutzung:</td>"; 452 454 } else { 453 455 echo "<td> </td>"; … … 508 510 echo "\n\t<td>"; 509 511 switch ($grupp) { // Icon nach 4 Objektartengruppen 510 case "Siedlung": $ico = "Abschnitt. ico"; break;511 case "Verkehr": $ico = "Strassen_Klassifikation. ico"; break;512 case "Vegetation": $ico = "Wald. ico"; break;513 case "GewÀsser": $ico = "Wasser. ico"; break;514 default: $ico = "Abschnitt. ico"; break;512 case "Siedlung": $ico = "Abschnitt.png"; break; 513 case "Verkehr": $ico = "Strassen_Klassifikation.png"; break; 514 case "Vegetation": $ico = "Wald.png"; break; 515 case "GewÀsser": $ico = "Wasser.png"; break; 516 default: $ico = "Abschnitt.png"; break; 515 517 } 516 518 // Icon ist auch im Druck sichtbar, class='noprint' ? … … 534 536 if ($idanzeige) {echo "&id=j";} 535 537 if ($showkey) {echo "&showkey=j";} 536 echo "' title='Gebäudenachweis'>Gebäude <img src='ico/Haus. ico' width='16' height='16' alt=''></a>";538 echo "' title='Gebäudenachweis'>Gebäude <img src='ico/Haus.png' width='16' height='16' alt=''></a>"; 537 539 echo "\n\t\t</p>"; 538 540 echo "\n\t</td>"; … … 562 564 if (pg_num_rows($res_bodeneuordnung) > 0 OR pg_num_rows($res_strittigeGrenze) > 0) { 563 565 echo "\n<tr>"; 564 echo "\n\t<td title='Hinweise zum Flurstück'><h6><img src='ico/Hinweis. ico' width='16' height='16' alt=''> ";566 echo "\n\t<td title='Hinweise zum Flurstück'><h6><img src='ico/Hinweis.png' width='16' height='16' alt=''> "; 565 567 echo "Hinweise:</td></h6>\n\t<td colspan=3> </td>"; 566 568 echo "\n</tr>"; … … 584 586 if ($idanzeige) {echo "&id=j";} 585 587 if ($showkey) {echo "&showkey=j";} 586 echo "' title='Bau-, Raum- oder Bodenordnungsrecht'>Recht <img src='ico/Gericht. ico' width='16' height='16' alt=''></a>";588 echo "' title='Bau-, Raum- oder Bodenordnungsrecht'>Recht <img src='ico/Gericht.png' width='16' height='16' alt=''></a>"; 587 589 echo "\n\t\t</p>"; 588 590 echo "</td>"; … … 638 640 echo "\n<tr>"; 639 641 echo "\n\t<td>"; 640 echo "\n\t\t<a name='gb'></a>\n\t\t<h3><img src='ico/Grundbuch_zu. ico' width='16' height='16' alt=''> Grundbücher</h3>";642 echo "\n\t\t<a name='gb'></a>\n\t\t<h3><img src='ico/Grundbuch_zu.png' width='16' height='16' alt=''> Grundbücher</h3>"; 641 643 echo "\n\t</td>"; 642 644 echo "\n\t<td>"; … … 650 652 } else { 651 653 echo "&eig=j#gb' title='Flurstücks- und Eigentümernachweis'>mit Eigentümer "; 652 echo "<img src='ico/EigentuemerGBzeile. ico' width='16' height='16' alt=''></a>";654 echo "<img src='ico/EigentuemerGBzeile.png' width='16' height='16' alt=''></a>"; 653 655 } 654 656 echo "\n\t\t</p>"; … … 753 755 echo "' title='Grundbuchnachweis'>"; 754 756 } 755 echo $blattartg." <img src='ico/GBBlatt_link. ico' width='16' height='16' alt=''>";757 echo $blattartg." <img src='ico/GBBlatt_link.png' width='16' height='16' alt=''>"; 756 758 echo "</a>"; 757 759 echo "\n\t</p>"; … … 774 776 // Person <-benennt< AX_Namensnummer >istBestandteilVon-> AX_Buchungsblatt 775 777 if ($eig=="j") { // Wahlweise mit/ohne EigentÃŒmer 776 echo "\n\n<h3><img src='ico/Eigentuemer_2. ico' width='16' height='16' alt=''> Angaben zum Eigentum</h3>\n";778 echo "\n\n<h3><img src='ico/Eigentuemer_2.png' width='16' height='16' alt=''> Angaben zum Eigentum</h3>\n"; 777 779 $n = eigentuemer($con, $gmlg, false, ""); // ohne Adresse 778 780 if ($n == 0) { … … 792 794 linkgml($gkz, $gmls, "Buchungstelle", "ax_buchungsstelle"); 793 795 } 796 797 798 /* ++ Diese Teil wird deaktiviert, weil das nicht vorkommen kann. SpÀter komplett löschen ++ 799 800 // Dienende Buchungsstellen ausgeben - Beginn 801 802 // Buchungstelle herr. >an> Buchungstelle dien. >istBestandteilVon> BLATT -> Bezirk 803 $sql ="SELECT sd.gml_id AS s_gml, sd.buchungsart, sd.laufendenummer as lfd, sd.zaehler, sd.nenner, sd.nummerimaufteilungsplan as nrpl, sd.beschreibungdessondereigentums as sond, 804 b.gml_id AS g_gml, b.bezirk, b.buchungsblattnummermitbuchstabenerweiterung as blatt, b.blattart, z.bezeichnung, a.bezeichner AS bart 805 FROM ax_buchungsstelle sh JOIN ax_buchungsstelle sd ON sd.gml_id=ANY(sh.an) 806 JOIN ax_buchungsblatt b ON b.gml_id=sd.istbestandteilvon 807 LEFT JOIN ax_buchungsblattbezirk z ON z.land=b.land AND z.bezirk=b.bezirk 808 LEFT JOIN v_bs_buchungsart a ON sd.buchungsart=a.wert 809 WHERE sh.gml_id= $1 AND sh.endet IS NULL AND sd.endet IS NULL AND b.endet IS NULL AND z.endet IS NULL 810 ORDER BY b.bezirk, b.buchungsblattnummermitbuchstabenerweiterung;"; 811 812 $v = array($gmls); // id herrschende Buchungsstelle 813 $resan = pg_prepare("", $sql); 814 $resan = pg_execute("", $v); 815 if (!$resan) { 816 echo "\n<p class='err'>Fehler bei 'weitere Buchungsstellen'.</p>\n"; 817 if ($debug > 2) {echo "<p class='dbg'>SQL=<br>".$sql."<br>$1 = gml_id = '".$gmls."'</p>";} 818 } 819 820 $an=0; // Stelle >Recht an> Stelle 821 while($rowan = pg_fetch_array($resan)) { 822 $beznam=$rowan["bezeichnung"]; 823 $blattkeyan=$rowan["blattart"]; // Schluessel von Blattart 824 $blattartan=blattart($blattkeyan); 825 echo "\n<hr>\n<table class='outer'>"; 826 echo "\n<tr>"; // 1 row only 827 echo "\n<td>"; // outer linke Spalte 828 // Rahmen mit Kennzeichen GB 829 if ($blattkeyan == 1000) { 830 echo "\n\t<table class='kennzgb' title='Bestandskennzeichen'>"; 831 } else { 832 echo "\n\t<table class='kennzgbf' title='Bestandskennzeichen'>"; // dotted 833 } 834 echo "\n\t<tr>"; 835 echo "\n\t\t<td class='head'>Bezirk</td>"; 836 echo "\n\t\t<td class='head'>".$blattartan."</td>"; 837 echo "\n\t\t<td class='head'>Lfd-Nr,</td>"; 838 echo "\n\t\t<td class='head'>Buchungsart</td>"; 839 echo "\n\t</tr>"; 840 echo "\n\t<tr>"; 841 echo "\n\t\t<td title='Grundbuchbezirk'>"; 842 if ($showkey) {echo "<span class='key'>".$rowan["bezirk"]."</span><br>";} 843 echo $beznam."</td>"; 844 845 echo "\n\t\t<td title='Grundbuch-Blatt'><span class='wichtig'>".$rowan["blatt"]."</span></td>"; 846 847 echo "\n\t\t<td title='Bestandsverzeichnis-Nummer (BVNR, Grundstück)'>".$rowan["lfd"]."</td>"; 848 849 echo "\n\t\t<td title='Buchungsart'>"; 850 if ($showkey) {echo "<span class='key'>".$rowan["buchungsart"]."</span><br>";} 851 echo $rowan["bart"]; 852 echo "</td>"; 853 echo "\n\t</tr>"; 854 echo "\n\t</table>"; 855 if ($rowan["zaehler"] <> "") { 856 echo "\n<p class='ant'>".$rowan["zaehler"]."/".$rowan["nenner"]." Anteil am Flurstück</p>"; 857 } 858 echo "\n</td>"; 859 echo "\n<td>"; // outer rechte Spalte 860 if ($idanzeige) { 861 linkgml($gkz, $rowan["s_gml"], "Buchungsstelle", "ax_buchungsstelle"); 862 echo "<br>"; 863 linkgml($gkz, $rowan["g_gml"], "Buchungsblatt", ""); 864 } 865 echo "\n<br>"; 866 echo "\n\t<p class='nwlink'>"; 867 echo "\n\t\t<a href='alkisbestnw.php?gkz=".$gkz."&gmlid=".$rowan["g_gml"]; 868 if ($idanzeige) {echo "&id=j";} 869 if ($showkey) {echo "&showkey=j";} 870 echo "' title='Grundbuchnachweis mit kompletter Eigentümerangabe'>"; 871 echo $blattartan; 872 echo " <img src='ico/GBBlatt_link.png' width='16' height='16' alt=''>"; 873 echo "</a>"; 874 echo "\n\t</p>"; 875 echo "\n\t</td>"; 876 echo "\n</tr>"; 877 echo "\n</table>"; 878 879 if ($blattkeyan != 1000) { 880 echo "\n<p>Blattart: ".$blattartan." (".$blattkeyan.").<br>\n"; 881 } 882 if ($rowan["nrpl"] != "") { 883 echo "<p class='nrap' title='Nummer im Aufteilungsplan'>Nummer <span class='wichtig'>".$rowan["nrpl"]."</span> im Aufteilungsplan.</p>"; 884 } 885 if ($rowan["sond"] != "") { 886 echo "<p class='sond' title='Sondereigentum'>Verbunden mit dem Sondereigentum<br>".$rowan["sond"]."</p>"; 887 } 888 if ($eig == "j") { 889 $n = eigentuemer($con, $rowan["g_gml"], false, ""); // ohne Adresse 890 } 891 $an++; 892 } 893 pg_free_result($resan); 894 // Dienende Buchungsstellen ausgeben - Ende 895 */ 896 794 897 $bs++; 795 898 } … … 805 908 <div class='buttonbereich noprint'> 806 909 <hr> 807 <a title="zurück" href='javascript:history.back()'><img src="ico/zurueck. ico" width="16" height="16" alt="zurück"></a> 808 <a title="Drucken" href='javascript:window.print()'><img src="ico/print. ico" width="16" height="16" alt="Drucken"></a> 809 <a title="Export als CSV" href='javascript:ALKISexport()'><img src="ico/download_fs. ico" width="32" height="16" alt="Export"></a> 910 <a title="zurück" href='javascript:history.back()'><img src="ico/zurueck.png" width="16" height="16" alt="zurück"></a> 911 <a title="Drucken" href='javascript:window.print()'><img src="ico/print.png" width="16" height="16" alt="Drucken"></a> 912 <a title="Export als CSV" href='javascript:ALKISexport()'><img src="ico/download_fs.png" width="32" height="16" alt="Export"></a> 810 913 </div> 811 914 </form>
Note: See TracChangeset
for help on using the changeset viewer.