Changeset 425 for trunk/info/info/alkisn/alkisnamstruk.php
- Timestamp:
- 12/30/21 17:49:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/info/info/alkisn/alkisnamstruk.php
r422 r425 6 6 7 7 Version: 8 2016-02-24 Version f uer norGIS-ALKIS-Import8 2016-02-24 Version fÃŒr norGIS-ALKIS-Import 9 9 ... 10 10 2020-02-20 Authentifizierung ausgelagert in Function darf_ich() 11 11 2020-12-03 function selbstverlinkung() statt $_SERVER['PHP_SELF'] 12 12 2020-12-15 Input-Validation und Strict Comparisation (===) 13 2021-12-09 Neue Parameter: $katAmtMix (Kataster-Amt-Mix), $PrntBtn (Drucken-SchaltflÀche). Gruppenwechsel Bezirk. 13 14 */ 14 15 ini_set("session.cookie_httponly", 1); … … 53 54 <?php 54 55 $erlaubnis = darf_ich(); if ($erlaubnis === 0) { die('<p class="stop1">Abbruch</p></body>'); } 56 $dbg=$debug; // CONF in Arbeits-Variable 55 57 56 58 // Mit URL-Parameter "&nodebug=j" kann man die Entwicklungsumgebung (in Conf definiert) ausschalten. 57 // Manuell an die URL anfÃŒgen, wirkt nurtemporÀr und wird nicht in Links weiter gereicht.58 if ($nodebug === "j") {$d ebug=0;}59 // Wirkt temporÀr und wird nicht in Links weiter gereicht. 60 if ($nodebug === "j") {$dbg=0;} 59 61 60 62 echo "<p class='balken nakennz'>ALKIS Name id=".$gmlid." </p>\n" // Balken … … 73 75 if (!$res) { 74 76 echo "\n<p class='err'>Fehler bei Zugriff auf Namensnummer</p>"; 75 if ($debug > 2) {echo "\n<p class='dbg'>SQL=<br>".htmlentities(str_replace("$1", "'".$gmlid."'", $sql), ENT_QUOTES, "UTF-8")."</p>";} 77 if ($dbg > 2) {echo "\n<p class='dbg'>SQL=<br>".htmlentities(str_replace("$1", "'".$gmlid."'", $sql), ENT_QUOTES, "UTF-8")."</p>";} 78 } 79 if ($dbg > 0) { 80 $zeianz=pg_num_rows($res); 81 if ($zeianz > 1){ 82 echo "\n<p class='err'>Die Abfrage liefert mehr als eine Person!</p>"; 83 if ($dbg > 2) {echo "\n<p class='dbg'>SQL=<br>".htmlentities(str_replace("$1","'".$gmlid."'",$sql), ENT_QUOTES, "UTF-8")."</p>";} 84 } 76 85 } 77 86 if ($row = pg_fetch_assoc($res)) { … … 111 120 if (!$resa) { 112 121 echo "\n<p class='err'>Fehler bei Adressen</p>"; 113 if ($d ebug > 2) {echo "\n<p class='err'>SQL=<br>". str_replace("$1", "'".$gmlid."'", $sqla)."</p>";}122 if ($dbg > 2) {echo "\n<p class='err'>SQL=<br>". str_replace("$1", "'".$gmlid."'", $sqla)."</p>";} 114 123 } 115 124 … … 130 139 echo "<table>\n"; 131 140 if ($multiadress === "j" OR $showkey) { 132 if ($d ebug > 0) { // nur Entw.: Sortierung gml_id vs. beginnt?141 if ($dbg > 0) { // nur Entw.: Sortierung gml_id vs. beginnt? 133 142 echo "\t<tr><td class='dbg'>gml_id:</td><td class='dbg'>".$rowa["gml_id"]."</td></tr>\n"; 134 143 } … … 176 185 ."FROM ax_person p JOIN ax_namensnummer n ON p.gml_id=n.benennt " 177 186 ."JOIN ax_buchungsblatt g ON g.gml_id=n.istbestandteilvon " 178 ."LEFT JOIN ax_buchungsblattbezirk b ON g.land=b.land AND g.bezirk=b.bezirk " 187 ."LEFT JOIN ax_buchungsblattbezirk b ON g.land=b.land AND g.bezirk=b.bezirk ".UnqKatAmt("g","b") 179 188 ."LEFT JOIN ax_blattart_buchungsblatt wb ON g.blattart = wb.wert " 180 189 ."WHERE p.gml_id= $1 AND p.endet IS NULL AND n.endet IS NULL AND b.endet IS NULL " … … 187 196 if (!$resg) { 188 197 echo "\n<p class='err'>Fehler bei Grundbuch</p>"; 189 if ($d ebug > 2) {198 if ($dbg > 2) { 190 199 echo "\n<p class='err'>SQL=<br>".htmlentities(str_replace("$1", "'".$gmlid."'", $sqlg ), ENT_QUOTES, "UTF-8")."</p>"; 191 200 } … … 203 212 $i=0; 204 213 $zpaar=false; 214 $gwbeznam=''; 205 215 while($rowg = pg_fetch_assoc($resg)) { 206 216 $gmln=$rowg["gml_n"]; … … 211 221 $blattart=$rowg["blattartv"]; // Value 212 222 if ($zpaar) {$trclass='paa';} else {$trclass='unp';} 223 $beznam=$rowg["beznam"]; 213 224 $zpaar=!$zpaar; 214 225 echo "\n<tr class='".$trclass."'>" 215 226 ."\n\t<td>"; // GB-Bezirk <td class='gbl'> 216 227 if ($showkey) {echo "<span class='key'>".$rowg["bezirk"]."</span> ";} 217 echo $rowg["beznam"] 218 ."</td>"; 228 if ($gwbeznam != $beznam){ 229 echo "<b>".$beznam."</b>"; 230 $gwbeznam=$beznam; 231 } else { 232 echo $beznam; 233 } 234 echo "</td>"; 219 235 220 236 echo "\n\t<td>"; // Blattart … … 259 275 if ($i === 0) {echo "\n<p class='err'>Kein Grundbuch.</p>";} 260 276 } else { 261 echo "\n\t<p class='err'>Fehler! Kein Treffer für\n\t<a target='_blank' href='alkisrelationen.php?gkz=".$gkz."&gmlid=".$gmlid."'>".$gmlid."</a>\n</p>\n\n"; 262 } 277 echo "\n\t<p class='err'>Fehler! Kein Treffer für Person".$gmlid."</p>\n"; 278 } 279 pg_free_result($res); 280 281 echo "\n<div class='buttonbereich noprint'>\n<hr>" 282 ."\n\t<a title='zurück' href='javascript:history.back()'><img src='ico/zurueck.png' width='16' height='16' alt='zurück'></a> "; 283 if ($PrntBtn==true){echo "\n\t<a title='Drucken' href='javascript:window.print()'><img src='ico/print.png' width='16' height='16' alt='Drucken'></a> ";} 284 echo "\n\t<a title='Export als CSV' href='javascript:ALKISexport()'><img src='ico/download.png' width='16' height='16' alt='Export'></a> " 285 ."\n</div>"; 286 287 footer($gmlid, selbstverlinkung()."?", ""); 263 288 ?> 264 265 <div class='buttonbereich noprint'>266 <hr>267 <a title="zurück" href='javascript:history.back()'><img src="ico/zurueck.png" width="16" height="16" alt="zurück"></a> 268 <a title="Drucken" href='javascript:window.print()'><img src="ico/print.png" width="16" height="16" alt="Drucken"></a> 269 <a title="Export als CSV" href='javascript:ALKISexport()'><img src="ico/download.png" width="16" height="16" alt="Export"></a> 270 </div>271 272 <?php footer($gmlid, selbstverlinkung()."?", ""); ?>273 289 274 290 </body>
Note: See TracChangeset
for help on using the changeset viewer.