Ignore:
Timestamp:
12/30/21 17:49:00 (2 years ago)
Author:
frank.jaeger
Message:

Web-GIS-Auskunft und Mapbender2-Navigation: neue Konfigurations-Parameter und verbessertes Grundbuch-Modul

File:
1 edited

Legend:

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

    r422 r425  
    55 
    66        Version: 
    7         2016-02-24 Version fuer norGIS-ALKIS-Import 
     7        2016-02-24 Version fÃŒr norGIS-ALKIS-Import 
    88        .... 
    99        2020-02-03 Fenster-Weite 
    1010        2020-02-20 Authentifizierung ausgelagert in Function darf_ich() 
    1111        2020-12-15 Input-Validation und Strict Comparisation (===) 
     12        2021-12-09 2021-12-09 Neue Parameter: $katAmtMix (Kataster-Amt-Mix) 
    1213*/ 
    1314ini_set("session.cookie_httponly", 1); 
     
    5051 
    5152$erlaubnis = darf_ich(); if ($erlaubnis === 0) { die('<p class="stop1">Abbruch</p></body>'); } 
     53$dbg=$debug; // CONF in Arbeits-Variable 
    5254 
    5355// Body des Inlay muss in Mapbender-Feature-Info-PopUp passen. Kleiner als 750 aus css. 
     
    5961FROM ax_bauraumoderbodenordnungsrecht r  
    6062LEFT JOIN ax_artderfestlegung_bauraumoderbodenordnungsrecht a ON r.artderfestlegung = a.wert 
    61 LEFT JOIN ax_dienststelle d ON r.land=d.land AND r.stelle=d.stelle  
    62 WHERE r.gml_id= $1 AND r.endet IS NULL AND d.endet IS NULL;"; 
     63LEFT JOIN ax_dienststelle d ON r.land=d.land AND r.stelle=d.stelle ".UnqKatAmt("r","d") 
     64."WHERE r.gml_id= $1 AND r.endet IS NULL AND d.endet IS NULL;"; 
    6365 
    6466$v = array($gmlid); 
     
    6870if (!$res) { 
    6971        echo "\n<p class='err'>Fehler bei Baurecht.</p>"; 
    70         if ($debug > 2) {echo "\n<p class='err'>SQL=<br>".str_replace("$1", "'".$gmlid."'", $sql)."</p>";} 
     72        if ($dbg > 2) {echo "\n<p class='err'>SQL=<br>".str_replace("$1", "'".$gmlid."'", $sql)."</p>";} 
    7173} 
    7274echo "\n<h2><img src='ico/Gericht.png' width='16' height='16' alt=''> Bau-, Raum- oder Bodenordnungsrecht</h2>"; 
    73  
     75if ($dbg > 0) { 
     76        $zeianz=pg_num_rows($res); 
     77        if ($zeianz > 1){ 
     78                echo "\n<p class='err'>Die Abfrage liefert mehr als ein (".$zeianz.") Bauordnungs-Objekt!</p>"; 
     79                if ($dbg > 2) {echo "\n<p class='dbg'>SQL=<br>".htmlentities(str_replace("$1","'".$gmlid."'",$sql), ENT_QUOTES, "UTF-8")."</p>";} 
     80        } 
     81} 
    7482if ($row = pg_fetch_assoc($res)) { 
    7583        echo "\n<table>" 
Note: See TracChangeset for help on using the changeset viewer.