Changeset 402 for trunk/info/info/alkisn/alkisstrasse.php
- Timestamp:
- 04/23/18 15:33:39 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/info/info/alkisn/alkisstrasse.php
r389 r402 12 12 2017-06-08 Validierung Eingabeparameter, gestreifte Tabelle, Feinkorrekturen 13 13 2017-10-09 Sauber filtern auf endet IS NULL 14 2018-04-23 &nodebug 14 15 */ 15 16 session_start(); 16 17 $showkey="n"; // Var. aus Parameter initalisieren 17 $showkey="n"; $nodebug=""; // Var. aus Parameter initalisieren 18 18 $cntget = extract($_GET); // Parameter in Variable umwandeln 19 19 … … 23 23 if (!preg_match('#^[j|n]{0,1}$#', $showkey)) {die ("Eingabefehler showkey");} 24 24 if ($showkey == "j") {$showkey=true;} else {$showkey=false;} 25 if (!preg_match('#^j{0,1}$#', $nodebug)) {die("Eingabefehler nodebug");} 25 26 26 27 require_once("alkis_conf_location.php"); … … 45 46 <body> 46 47 <?php 48 // Mit URL-Parameter "&nodebug=j" kann man die Entwicklungsumgebung (in Conf definiert) ausschalten. 49 // Manuell an die URL anfÃŒgen, wirkt nur temporÀr und wird nicht in Links weiter gereicht. 50 if ($nodebug == "j") {$debug=0;} 51 47 52 $con = pg_connect($dbconn." options='--application_name=ALKIS-Auskunft_alkisstrasse.php'"); 48 53 if (!$con) echo "\n<p class='err'>Fehler beim Verbinden der DB</p>"; … … 65 70 if ($debug > 2) {echo "\n<p class='err'>SQL=<br>".htmlentities($sql, ENT_QUOTES, "UTF-8")."<br>$1 = gml_id = '".$gmlid."'</p>";} 66 71 } 67 if ($row = pg_fetch_a rray($res)) {72 if ($row = pg_fetch_assoc($res)) { 68 73 $lage=$row["lage"]; // Strassenschluessel 69 74 $snam=$row["snam"]; // Strassenname 70 75 $gem=$row["gemeinde"]; 71 // Balken72 76 $kennz=$gem."-".$lage." (".$snam.")"; // Schluessel als Sucheingabe in NAV brauchbar? 73 echo "\n<p class='strasse'>ALKIS Straße ".$kennz." </p>"; 77 echo "\n<p class='strasse'>ALKIS Straße ".$kennz." </p>"; // Balken 74 78 } else { 75 79 echo "\n<p class='err'>Kein Treffer bei Lagebezeichnungskatalogeintrag.</p>"; 76 80 } 77 81 78 echo "\n<h2> <img src='ico/Strassen.png' width='16' height='16' alt=''>Straße</h2>";82 echo "\n<h2>Straße</h2>"; 79 83 80 84 // Tabelle Kennzeichen 81 echo "\n<table class='outer'>\n<tr>\n\t<td>" 82 ."\n\t<table class='kennzstra' title='Lage'>" 83 ."\n\t<tr>" 84 ."\n\t\t<td class='head'>Land</td>" 85 ."\n\t\t<td class='head'>Reg.-Bez.</td>" 86 ."\n\t\t<td class='head'>Kreis</td>" 87 ."\n\t\t<td class='head'>Gemeinde</td>" 88 ."\n\t\t<td class='head'>Straße</td>" 89 ."\n\t</tr>" 90 ."\n\t<tr>"; 91 echo "\n\t\t<td title='Bundesland'>"; 92 if ($showkey) {echo "<span class='key'>".$row["land"]."</span><br>";} 93 echo $row["bnam"]." </td>" 94 ."\n\t\t<td title='Regierungsbezirk'>"; 95 if ($showkey) {echo "<span class='key'>".$row["regierungsbezirk"]."</span><br>";} 96 echo $row["rnam"]." </td>" 97 ."\n\t\t<td title='Kreis'>"; 98 if ($showkey) {echo "<span class='key'>".$row["kreis"]."</span><br>";} 99 echo $row["knam"]." </td>" 100 ."\n\t\t<td title='Gemeinde'>"; 101 if ($showkey) {echo "<span class='key'>".$gem."</span><br>";} 102 echo $row["gnam"]." </td>" 103 . "\n\t\t<td title='Straße'>"; 104 if ($showkey) {echo "<span class='key'>".$lage."</span><br>";} 105 echo "<span class='wichtig'>".$snam."</span>" 106 . " </td>" 107 ."\n\t</tr>" 108 ."\n\t</table>"; 109 85 echo "\n<table class='outer'>\n<tr>" 86 ."\n\t<td class='ll'><img src='ico/Strassen.png' width='16' height='16' alt=''> Straßenname:</td>" 87 ."\n\t<td>" 88 ."\n\t\t<table class='kennzstra' title='Lage'>" 89 ."\n\t\t<tr>" 90 ."\n\t\t\t<td class='head'>Land</td>" 91 ."\n\t\t\t<td class='head'>Reg.-Bez.</td>" 92 ."\n\t\t\t<td class='head'>Kreis</td>" 93 ."\n\t\t\t<td class='head'>Gemeinde</td>" 94 ."\n\t\t<td class='head'>Straße</td>" 95 ."\n\t\t</tr>" 96 ."\n\t\t<tr>"; 97 echo "\n\t\t\t<td title='Bundesland'>"; 98 if ($showkey) {echo "<span class='key'>".$row["land"]."</span><br>";} 99 echo $row["bnam"]." </td>" 100 ."\n\t\t\t<td title='Regierungsbezirk'>"; 101 if ($showkey) {echo "<span class='key'>".$row["regierungsbezirk"]."</span><br>";} 102 echo $row["rnam"]." </td>" 103 ."\n\t\t\t<td title='Kreis'>"; 104 if ($showkey) {echo "<span class='key'>".$row["kreis"]."</span><br>";} 105 echo $row["knam"]." </td>" 106 ."\n\t\t\t<td title='Gemeinde'>"; 107 if ($showkey) {echo "<span class='key'>".$gem."</span><br>";} 108 echo $row["gnam"]." </td>" 109 . "\n\t\t\t<td title='Straße'>"; 110 if ($showkey) {echo "<span class='key'>".$lage."</span><br>";} 111 echo "<span class='wichtig'>".$snam."</span>" 112 . " </td>" 113 ."\n\t\t</tr>" 114 ."\n\t\t</table>"; 110 115 echo "\n\t</td>\n\t<td>"; 111 116 … … 119 124 ."\n\t\t</p>"; 120 125 } 121 122 126 echo "\n\t</td>\n</tr>\n</table>"; 123 127 pg_free_result($res); … … 168 172 169 173 $zpaar=false; // Zeilen-Farbwechsel 170 while($rowf = pg_fetch_a rray($resf)) {174 while($rowf = pg_fetch_assoc($resf)) { 171 175 $gmkg=$rowf["bezeichnung"]; 172 176 $flur=str_pad($rowf["flurnummer"], 3, "0", STR_PAD_LEFT);
Note: See TracChangeset
for help on using the changeset viewer.