Ignore:
Timestamp:
09/16/10 11:55:21 (14 years ago)
Author:
frank.jaeger
Message:
 
File:
1 edited

Legend:

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

    r43 r45  
    1515                02.09.2010  Mit Icons 
    1616                07.09.2010  Schluessel anschaltbar 
     17                15.09.2010  Function "buchungsart" durch JOIN ersetzt 
    1718*/ 
    1819ini_set('error_reporting', 'E_ALL'); 
     
    2122require_once("/data/mapwww/http/php/mb_validateSession.php"); 
    2223//require_once(dirname(__FILE__)."/../../../php/mb_validateSession.php"); 
    23 require_once("/data/conf/alkis_conf.php"); 
     24require_once("/data/conf/alkis_www_conf.php"); 
    2425//require_once(dirname(__FILE__)."/../../../../conf/alkis_conf.php"); 
    2526include("alkisfkt.php"); 
     
    2829<html> 
    2930<head> 
    30         <meta name="author" content="Frank Jaeger" > 
     31        <meta name="author" content="b600352" > 
    3132        <meta http-equiv="cache-control" content="no-cache"> 
    3233        <meta http-equiv="pragma" content="no-cache"> 
     
    140141$sql ="SELECT b.gml_id, b.bezirk, b.buchungsblattnummermitbuchstabenerweiterung as blatt, b.blattart, "; 
    141142$sql.="s.gml_id AS s_gml, s.buchungsart, s.laufendenummer, s.zaehler, s.nenner, "; 
    142 $sql.="z.bezeichnung ";  // stelle -> amtsgericht 
     143$sql.="z.bezeichnung, a.bezeichner AS bart ";  // stelle -> amtsgericht 
    143144$sql.="FROM  alkis_beziehungen    bfs "; // Bez Flurst.- Stelle. 
    144145$sql.="JOIN  ax_buchungsstelle      s ON bfs.beziehung_zu=s.gml_id "; 
     
    146147$sql.="JOIN  ax_buchungsblatt       b ON bsb.beziehung_zu=b.gml_id "; 
    147148$sql.="JOIN  ax_buchungsblattbezirk z ON z.land=b.land AND z.bezirk=b.bezirk "; 
     149 
     150$sql.="LEFT JOIN ax_buchungsstelle_buchungsart a ON s.buchungsart = a.wert "; 
     151 
    148152$sql.="WHERE bfs.beziehung_von='".$gmlid."' "; 
    149153$sql.="AND   bfs.beziehungsart='istGebucht' "; 
     
    155159while($rowg = pg_fetch_array($resg)) { 
    156160        $beznam=$rowg["bezeichnung"]; 
    157         echo "\n<hr>\n<table class='outer'>\n<tr>\n<td>"; 
    158  
     161        echo "\n<hr>\n<table class='outer'>"; 
     162        echo "\n<tr>"; 
     163        echo "\n<td>"; 
    159164 
    160165                $blattkey=$rowg["blattart"]; 
     
    165170                        echo "\n\t<table class='kennzgbf' title='Bestandskennzeichen'>"; // dotted 
    166171                } 
    167         //      echo "\n\t<table class='kennzgb' title='Bestandskennzeichen'>"; 
    168                         echo "\n\t<tr>\n\t\t<td class='head'>Bezirk</td>"; 
    169                         echo "\n\t\t<td class='head'>".$blattart."</td>"; 
    170                         echo "\n\t\t<td class='head'>Lfd-Nr,</td>"; 
    171                         echo "\n\t\t<td class='head'>Buchungsart</td>"; 
    172                 echo "\n\t</tr>"; 
    173  
    174         echo "\n\t<tr>"; 
    175                 echo "\n\t\t<td title='Grundbuchbezirk'>"; 
    176                 if ($showkey) { 
    177                         echo "<span class='key'>".$rowg["bezirk"]."</span><br>"; 
     172                        echo "\n\t<tr>"; 
     173                                echo "\n\t\t<td class='head'>Bezirk</td>"; 
     174                                echo "\n\t\t<td class='head'>".$blattart."</td>"; 
     175                                echo "\n\t\t<td class='head'>Lfd-Nr,</td>"; 
     176                                echo "\n\t\t<td class='head'>Buchungsart</td>"; 
     177                        echo "\n\t</tr>"; 
     178                        echo "\n\t<tr>"; 
     179                                echo "\n\t\t<td title='Grundbuchbezirk'>"; 
     180                                        if ($showkey) { 
     181                                                echo "<span class='key'>".$rowg["bezirk"]."</span><br>"; 
     182                                        } 
     183                                echo $beznam."</td>"; 
     184                                echo "\n\t\t<td title='Grundbuch-Blatt'><span class='wichtig'>".$rowg["blatt"]."</span></td>"; 
     185                                echo "\n\t\t<td title='Bestandsverzeichnis-Nummer (BVNR, Grundst&uuml;ck)'>".$rowg["laufendenummer"]."</td>"; 
     186                                echo "\n\t\t<td title='Buchungsart'>"; 
     187                                        if ($showkey) { 
     188                                                echo "<span class='key'>".$rowg["buchungsart"]."</span><br>"; 
     189                                        } 
     190                                        echo $rowg["bart"]; 
     191                                echo "</td>"; 
     192                        echo "\n\t</tr>"; 
     193                echo "\n\t</table>"; 
     194 
     195                if ($rowg["zahler"] <> "") { 
     196                        echo "\n<p class='ant'>".$rowg["zahler"]."/".$rowg["nenner"]."&nbsp;Anteil am Flurst&uuml;ck</p>"; 
    178197                } 
    179                 echo $beznam."</td>"; 
    180                 echo "\n\t\t<td title='Grundbuch-Blatt'><span class='wichtig'>".$rowg["blatt"]."</span></td>"; 
    181                 echo "\n\t\t<td title='Bestandsverzeichnis-Nummer (BVNR, Grundst&uuml;ck)'>".$rowg["laufendenummer"]."</td>"; 
    182                 echo "\n\t\t<td title='Buchungsart'>"; 
    183                 if ($showkey) { 
    184                         echo "<span class='key'>".$rowg["buchungsart"]."</span><br>"; 
    185                 } 
    186                 echo buchungsart($rowg["buchungsart"])."</td>\n\t</tr>"; 
    187         echo "\n\t</table>"; 
    188         if ($rowg["zahler"] <> "") { 
    189                 echo "\n<p class='ant'>".$rowg["zahler"]."/".$rowg["nenner"]."&nbsp;Anteil am Flurst&uuml;ck</p>"; 
    190         } 
    191         echo "\n</td>\n<td>"; 
     198                echo "\n</td>\n<td>"; 
    192199                if ($idanzeige) {linkgml($gkz, $rowg[0], "Buchungsblatt");} 
    193                 //echo "<br>\n"; 
    194200                echo "\n\t<p class='nwlink'>weitere Auskunft:<br>"; 
    195201                        echo "\n\t\t<a href='alkisbestnw.php?gkz=".$gkz."&amp;gmlid=".$rowg[0]; 
     
    197203                                if ($showkey)   {echo "&amp;showkey=j";} 
    198204                                echo "' title='Grundbuchnachweis'>"; 
    199                         //      echo "Grundbuch-Blatt"; 
    200205                                echo $blattart; 
    201                                 echo " <img src='ico/GBBlatt_link.ico' width='16' height='16' alt=''></a>"; 
     206                                echo " <img src='ico/GBBlatt_link.ico' width='16' height='16' alt=''>"; 
     207                        echo "</a>"; 
    202208                echo "\n\t</p>"; 
    203         echo "\n</td>\n"; 
    204         echo "</table>"; 
     209        echo "\n</td>"; 
     210        echo "\n</tr>"; 
     211        echo "\n</table>"; 
    205212         
    206213        // E I G E N T U E M E R 
     
    228235} 
    229236echo "\n<hr>"; 
    230 footer($gkz, $gmlid, $idanzeige, $self, $hilfeurl, "", $showkey); 
     237footer($gkz, $gmlid, $idumschalter, $idanzeige, $self, $hilfeurl, "", $showkey); 
    231238 
    232239?> 
Note: See TracChangeset for help on using the changeset viewer.