Ignore:
Timestamp:
01/04/11 18:26:16 (13 years ago)
Author:
frank.jaeger
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/var/www/info/alkis/alkisbestnw.php

    r61 r64  
    99        15.09.2010  Function "buchungsart" durch JOIN ersetzt 
    1010        14.12.2010  Pfad zur Conf 
     11        17.12.2010  Astrid Emde: Prepared Statements (pg_query -> pg_prepare + pg_execute) 
    1112 
    1213        ToDo: 
    1314        Zahler fuer Anzahl GB und FS in der Liste (ausgeben wenn > 10) 
    1415*/ 
    15 //ini_set('error_reporting', 'E_ALL & ~ E_NOTICE'); 
    1616ini_set('error_reporting', 'E_ALL'); 
    1717session_start(); 
     
    8181        $blattart=blattart($blattkey); 
    8282 
    83         // Balken        
     83        // Balken 
    8484        echo "<p class='gbkennz'>ALKIS Bestand ".$row["bezirk"]." - ".$row["nr"]."&nbsp;</p>\n"; 
    8585 
     
    8888        // Kennzeichen im Rahmen 
    8989        echo "\n<table class='outer'>\n<tr>\n\t<td>"; 
    90                 if ($blattkey == 1000) {                 
     90                if ($blattkey == 1000) { 
    9191                        echo "\n\t<table class='kennzgb' title='Bestandskennzeichen'>"; 
    92                 } else {                 
     92                } else { 
    9393                        echo "\n\t<table class='kennzgbf' title='Bestandskennzeichen'>"; // dotted 
    94                 }                        
     94                } 
    9595                        echo "\n\t<tr>"; 
    9696                                echo "\n\t\t<td class='head'>".dienststellenart($row["stellenart"])."</td>"; 
     
    107107                                        echo "<span class='key'>".$row["bezirk"]."</span><br>"; 
    108108                                } 
    109                                 echo htmlentities($row["beznam"], ENT_QUOTES, "UTF-8")."</td>";                          
     109                                echo htmlentities($row["beznam"], ENT_QUOTES, "UTF-8")."</td>"; 
    110110                                echo "\n\t\t<td title='Grundbuch-Blatt'><span class='wichtig'>".$row["nr"]."</span></td>"; 
    111111                        echo "\n\t</tr>"; 
     
    151151echo "\n<tr>"; 
    152152        echo "\n\t<td class='head'>&nbsp;</td>"; 
    153         echo "\n\t<td class='head'>Buchungsart</td>";   //2 
     153        echo "\n\t<td class='head'>Buchungsart</td>"; 
    154154        echo "\n\t<td class='head'>Anteil</td>"; 
    155         echo "\n\t<td class='head'>Gemarkung</td>";             //4 
    156         echo "\n\t<td class='head'>Flur</td>";                          //5 
     155        echo "\n\t<td class='head'>Gemarkung</td>"; 
     156        echo "\n\t<td class='head'>Flur</td>"; 
    157157        echo "\n\t<td class='head' title='Flurst&uuml;cksnummer (Z&auml;hler / Nenner)'><span class='wichtig'>Flurst.</span></td>"; 
    158158        echo "\n\t<td class='head fla'>Fl&auml;che</td>"; // 7 
     
    232232                        $sql.="AND   v.beziehungsart='istBestandteilVon' "; 
    233233                        $sql.="ORDER BY b.land, b.bezirk, b.buchungsblattnummermitbuchstabenerweiterung;"; 
    234                          
     234 
    235235                        $fbres=pg_query($con,$sql); 
    236236                        if (!$fbres) {echo "<p class='err'>Fehler bei fiktivem Blatt<br>".$sql."</p>\n";} 
     
    241241                                $fbbez   = $fbrow["bezirk"]; 
    242242                                $fbblatt = $fbrow["blatt"]; 
    243                                 $fbbart  = blattart($fbrow["blattart"]);         
    244                                 $beznam = $fbrow["beznam"];                      
     243                                $fbbart  = blattart($fbrow["blattart"]); 
     244                                $beznam = $fbrow["beznam"]; 
    245245                                $b++; 
    246246                        } 
     
    252252                        echo "\n<tr>"; 
    253253 
    254                                 echo"\n\t<td>";                  
     254                                echo"\n\t<td>"; 
    255255                                        if($bvnr == $altbvnr) { // gleiches Grundstueck 
    256256                                                echo "&nbsp;"; // Anzeige unterdruecken 
    257257                                        } else { 
    258                                                 echo "<a name='bvnr".$lfdnr."'></a>"; // Sprungmarke                             
     258                                                echo "<a name='bvnr".$lfdnr."'></a>"; // Sprungmarke 
    259259                                                echo "<span class='wichtig'>".$bvnr."</span>"; // Sp.1 Erbbau BVNR 
    260260                                                if ($idanzeige) {linkgml($gkz, $gml_bs, "Buchungsstelle");} 
    261261                                                $altbvnr = $bvnr; // Gruppenwechsel merken 
    262                                         }                        
     262                                        } 
    263263                                echo "</td>"; 
    264264 
    265265                                echo "\n\t<td class='dien'>"; // Sp.2 Buchung 
    266                                         if ($showkey) {                                  
     266                                        if ($showkey) { 
    267267                                                echo "<span class='key'>".$row["buchungsart"]."</span> "; 
    268268                                        } 
     
    272272 
    273273                                echo "\n\t<td class='dien'>"; // Sp.4 Gemarkg. hier Bezirk 
    274                                         if ($showkey) {                                  
     274                                        if ($showkey) { 
    275275                                                echo "<span class='key'>".$fbbez."</span> "; 
    276                                         }                                        
     276                                        } 
    277277                                        echo $beznam; 
    278278                                echo "</td>"; // Sp.4 hier Bezirk 
     
    289289                                        if ($idanzeige) { 
    290290                                                linkgml($gkz, $gml_bsan, "Buchungsstelle"); 
    291                                         }        
     291                                        } 
    292292 
    293293                                echo "</td>";  
     
    297297                                                echo "<span class='key'>".$rowan["buchungsart"]."</span> "; 
    298298                                        } 
    299                                         echo $baan." ";                                  
     299                                        echo $baan." "; 
    300300                                echo "</td>"; 
    301301 
     
    315315                        // F l u r s t u e c k s d a t e n  zur  a n d e r e n  Buchungsstelle 
    316316                //      $aj = bnw_fsdaten($con, $gkz, $idanzeige, $lfdnran, $gml_bsan, $baan, $anteil, false); 
    317                         // Buchungsart wird nur in erster Zeile ausgegeben, hier leer            
     317                        // Buchungsart wird nur in erster Zeile ausgegeben, hier leer 
    318318                   $aj = bnw_fsdaten($con, $gkz, $idanzeige, $lfdnran, $gml_bsan, "", $anteil, false); // return = Anzahl der FS 
    319                          
     319 
    320320                        // +++ Gibt es ueberhaupt Sondereigentum beim fiktiven Blatt?? 
    321321                        if ($rowan["nrap"] != "") { 
     
    341341                                        echo "\n\t<td></td>"; 
    342342                                        echo "\n\t<td colspan=4>"; // Gemarkg, Flur, Flurst, Flaeche 
    343                                                 echo "<p class='warn'>(keine Flurst&uuml;cke)";                                  
     343                                                echo "<p class='warn'>(keine Flurst&uuml;cke)"; 
    344344                                        echo "</td>"; 
    345345                                        echo "\n\t<td></td>"; 
    346                                 echo "\n</tr>";                  
     346                                echo "\n</tr>"; 
    347347                        }  
    348348                        */ 
     
    369369                echo "\n</tr>"; 
    370370        } 
    371         // Sondereigentumsbeschreibung   
     371        // Sondereigentumsbeschreibung 
    372372        if ($row["sond"] != "") { 
    373373                echo "\n<tr>"; 
     
    429429 
    430430                        echo "\n<h3><img src='ico/Grundbuch_zu.ico' width='16' height='16' alt=''> Berechtigte Grundb&uuml;cher</h3>\n"; 
    431                          
     431 
    432432                        // Tabelle Kopf ausgeben 
    433433                        echo "\n<table class='outer'>"; 
     
    450450                $lfdnr=$rowb["lfdnr"]; 
    451451                $bvnr   = str_pad($lfdnr, 4, "0", STR_PAD_LEFT); 
    452                  
     452 
    453453                echo "\n<tr>"; 
    454454                        echo "\n\t<td>".$rowb["land"]."</td>"; 
     
    456456                        echo "\n\t<td>"; // Amtsgericht 
    457457                                echo dienststellenart($rowb["stellenart"])." "; 
    458                                 if ($showkey) {                          
     458                                if ($showkey) { 
    459459                                        echo "<span class='key'>".$rowb["stelle"]."</span> "; 
    460460                                } 
     
    464464 
    465465                        echo "\n\t<td>"; 
    466                                 if ($showkey) {                          
     466                                if ($showkey) { 
    467467                                        echo "<span class='key'>".$rowb["bezirk"]."</span> "; 
    468468                                } 
    469469                                echo $rowb["beznam"]; 
    470470                        echo "</td>"; 
    471                          
     471 
    472472                        echo "\n\t<td><span class='wichtig'>".$rowb["blatt"]."</span>"; 
    473473                                if ($idanzeige) {linkgml($gkz, $gml_b, "Buchungsblatt");} 
Note: See TracChangeset for help on using the changeset viewer.