Ignore:
Timestamp:
02/24/22 16:24:19 (2 years ago)
Author:
frank.jaeger
Message:

Überarbeitung der Auskunft: Durch Functions den Code verdichtet. Drei neue Arten von Bauwerken.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/info/info/alkisn/alkisnamstruk.php

    r425 r427  
    11<?php 
    2 /*      Modul: alkisnamstruk.php 
    3  
    4         ALKIS-Buchauskunft, Kommunales Rechenzentrum Minden-Ravensberg/Lippe (Lemgo). 
    5         Namens- und Adressdaten fuer einen Eigentuemer aus ALKIS PostNAS 
     2/*      alkisnamstruk.php 
     3 
     4        ALKIS-Auskunft 
     5        Author: Frank JÀger, Kommunales Rechenzentrum Minden-Ravensberg/Lippe (Lemgo) 
     6 
     7        Namens- und Adressdaten fÃŒr einen EigentÃŒmer aus ALKIS PostNAS 
    68 
    79        Version: 
     
    1214        2020-12-15 Input-Validation und Strict Comparisation (===) 
    1315        2021-12-09 Neue Parameter: $katAmtMix (Kataster-Amt-Mix), $PrntBtn (Drucken-SchaltflÀche). Gruppenwechsel Bezirk. 
     16        2022-01-13 Neue Functions LnkStf(), DsKy() 
    1417*/ 
    1518ini_set("session.cookie_httponly", 1); 
     
    5457<?php 
    5558$erlaubnis = darf_ich(); if ($erlaubnis === 0) { die('<p class="stop1">Abbruch</p></body>'); } 
    56 $dbg=$debug; // CONF in Arbeits-Variable 
    57  
    58 // Mit URL-Parameter "&nodebug=j" kann man die Entwicklungsumgebung (in Conf definiert) ausschalten. 
    59 // Wirkt temporÀr und wird nicht in Links weiter gereicht. 
     59$dbg=$debug; 
    6060if ($nodebug === "j") {$dbg=0;}  
    6161 
    62 echo "<p class='balken nakennz'>ALKIS Name id=".$gmlid."&nbsp;</p>\n" // Balken 
     62echo "<p class='balken nakennz'>ALKIS Name id=".$gmlid."&nbsp;</p>\n" 
    6363."\n<h2><img src='ico/Eigentuemer.png' width='16' height='16' alt=''> Person</h2>"; 
    6464$con = pg_connect($dbconn." options='--application_name=ALKIS-Auskunft_alkisnamstruk.php'"); 
     
    9494 
    9595        echo "<table>" 
    96                 ."\n\t<tr><td class='nhd'>Anrede:</td><td class='nam'>"; 
    97                 if ($showkey) {echo "<span class='key' title='Anredekennung'>(".$anrk.")</span> ";} 
    98                 echo $anr."</td></tr>" 
     96                ."\n\t<tr><td class='nhd'>Anrede:</td><td class='nam'>".DsKy($anrk, '* der Anrede-Kennung').$anr."</td></tr>" 
    9997                ."\n\t<tr><td class='nhd'>Nachname oder Firma:</td><td class='nam'>".$nam."</td></tr>" 
    10098                ."\n\t<tr><td class='nhd'>Vorname:</td><td class='nam'>".$vor."&nbsp;</td></tr>" 
     
    143141                                        } 
    144142                                        echo "\t<tr><td class='nhd'>Datum:</td><td class='nam'>".$datum."</td></tr>\n" 
    145                                         ."\t<tr><td class='nhd'>Anlass:</td><td class='nam'>"; 
    146                                         if ($showkey) {echo "<span class='key'>".$anlass."</span> ";} 
    147                                         echo $anltxt."</td></tr>\n"; 
     143                                        ."\t<tr><td class='nhd'>Anlass:</td><td class='nam'>".DsKy($anlass, 'Anlass-*').$anltxt."</td></tr>\n"; 
    148144                                } 
    149145                                echo "\t<tr><td class='nhd'>PLZ:</td><td class='nam'>".$plz."</td></tr>\n" 
     
    154150                        ."\n</table>\n<br>"; 
    155151 
    156                         // Name und Adresse Kompakt (im Rahmen) - Alles was man fuer ein Anschreiben braucht 
     152                        // Name und Adresse Kompakt (im Rahmen) - Alles was man fÃŒr ein Anschreiben braucht 
    157153                        echo "\n<img src='ico/Namen.png' width='16' height='16' alt='Brief' title='Anschrift'>" 
    158154                        ."\n<div class='adr' title='Anschrift'>\n\t".$anr." ".$aka." ".$vor." ".$nbest." ".$nam."<br>" 
     
    166162        } elseif ($j > 1) { 
    167163                echo "\n\t\t<p class='nwlink noprint'>" 
    168                 ."\n\t\t\t<a href='".selbstverlinkung(). "?gkz=".$gkz."&amp;gmlid=".$gmlid; 
    169                 if ($showkey) {echo "&amp;showkey=j";} 
     164                ."\n\t\t\t<a href='".selbstverlinkung(). "?gkz=".$gkz."&amp;gmlid=".$gmlid.LnkStf(); 
    170165                if ($multiadress === "j") { 
    171166                        echo "&amp;multiadress=n' title='mehrfache Adressen unterdr&uuml;cken'>erste Adresse "; 
     
    177172        } 
    178173 
    179         // *** G R U N D B U C H *** 
     174        // G R U N D B U C H 
    180175        echo "\n<hr>\n<h3><img src='ico/Grundbuch_zu.png' width='16' height='16' alt=''> Grundb&uuml;cher</h3>"; 
    181176        // person <benennt< namensnummer >istBestandteilVon>                Buchungsblatt 
     
    224219                $zpaar=!$zpaar; 
    225220                echo "\n<tr class='".$trclass."'>" 
    226                         ."\n\t<td>"; // GB-Bezirk <td class='gbl'> 
    227                                 if ($showkey) {echo "<span class='key'>".$rowg["bezirk"]."</span> ";} 
    228                                 if ($gwbeznam != $beznam){ 
    229                                         echo "<b>".$beznam."</b>"; 
    230                                         $gwbeznam=$beznam; 
    231                                 } else { 
    232                                         echo $beznam; 
    233                                 } 
     221                        ."\n\t<td>".DsKy($rowg["bezirk"], 'Grundbuch-Bezirks-*'); 
     222                        if ($gwbeznam != $beznam){ 
     223                                echo "<b>".$beznam."</b>"; 
     224                                $gwbeznam=$beznam; 
     225                        } else { 
     226                                echo $beznam; 
     227                        } 
    234228                        echo "</td>"; 
    235229 
    236                         echo "\n\t<td>"; // Blattart 
    237                                 if ($showkey) {echo "<span class='key'>".$blattkey."</span> ";} 
    238                                 echo $blattart 
    239                         ."</td>"; 
    240  
    241                         echo "\n\t<td>"; // Blatt 
    242                                 echo "<span class='wichtig'>".$rowg["nr"]."</span>" 
    243                         ."</td>"; 
     230                        echo "\n\t<td>".DsKy($blattkey, 'Blattart-*').$blattart."</td>"; 
     231                        echo "\n\t<td><span class='wichtig'>".$rowg["nr"]."</span></td>";// Blatt 
    244232 
    245233                        echo "\n\t<td>"; // Namensnummer 
    246                                 if ($namnum == "") { 
    247                                         echo "&nbsp;"; 
    248                                 } else { 
    249                                         echo $namnum; 
    250                                 } 
     234                        if ($namnum == "") { 
     235                                echo "&nbsp;"; 
     236                        } else { 
     237                                echo $namnum; 
     238                        } 
    251239                        echo "</td>"; 
    252240 
    253241                        echo "\n\t<td>"; // Anteil 
    254                                 if ($zae == '') { 
    255                                         echo "&nbsp;"; 
    256                                 } else { 
    257                                         echo $zae."/".$rowg["nenner"]." Anteil"; 
    258                                 }  
     242                        if ($zae == '') { 
     243                                echo "&nbsp;"; 
     244                        } else { 
     245                                echo $zae."/".$rowg["nenner"]." Anteil"; 
     246                        }  
    259247                        echo "</td>" 
    260248                        ."\n\t<td>" 
    261                                 ."\n\t\t<p class='nwlink noprint'>" 
    262                                         ."\n\t\t\t<a href='alkisbestnw.php?gkz=".$gkz."&amp;gmlid=".$gmlg; 
    263                                                 if ($showkey) {echo "&amp;showkey=j";} 
    264                                                 echo "' title='Bestandsnachweis'>".$blattart 
    265                                         ."\n\t\t\t<img src='ico/GBBlatt_link.png' width='16' height='16' alt=''></a>" 
    266                                 ."\n\t\t</p>" 
     249                        ."\n\t\t<p class='nwlink noprint'>" 
     250                                ."\n\t\t\t<a href='alkisbestnw.php?gkz=".$gkz."&amp;gmlid=".$gmlg.LnkStf()."' title='Bestandsnachweis'>".$blattart 
     251                                ."\n\t\t\t<img src='ico/GBBlatt_link.png' width='16' height='16' alt=''></a>" 
     252                        ."\n\t\t</p>" 
    267253                        ."\n\t</td>" 
    268254                ."\n</tr>"; 
Note: See TracChangeset for help on using the changeset viewer.