Changeset 356 for trunk/mapbender/http/nav/alkisnav_fkt.php
- Timestamp:
- 12/10/15 17:35:32 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mapbender/http/nav/alkisnav_fkt.php
r339 r356 1 1 <?php 2 2 /* Version vom 3 2013-05-07 Strukturierung des Programms, redundanten Code in Functions zusammen fassen 4 2013-05-14 Hervorhebung aktuelles Objekt, Title auch auf Icon, IE zeigt sonst alt= als Title dar. 5 2013-05-15 Function verlegt 6 2014-02-06 Korrektur zeile_person 7 2014-09-03 PostNAS 0.8: ohne Tab. "alkis_beziehungen", mehr "endet IS NULL", Spalten varchar statt integer 8 2014-09-15 Bei Relationen den Timestamp abschneiden, mehr "endet IS NULL" 9 2014-09-30 RÃŒckbau substring(gml_id) 3 2013-05-07 Strukturierung des Programms, redundanten Code in Functions zusammen fassen 4 2013-05-14 Hervorhebung aktuelles Objekt, Title auch auf Icon, IE zeigt sonst alt= als Title dar. 5 2013-05-15 Function verlegt 6 2014-02-06 Korrektur zeile_person 7 2014-09-03 PostNAS 0.8: ohne Tab. "alkis_beziehungen", mehr "endet IS NULL", Spalten varchar statt integer 8 2014-09-15 Bei Relationen den Timestamp abschneiden, mehr "endet IS NULL" 9 2014-09-30 RÃŒckbau substring(gml_id) 10 2015-12-10 Umstellen .ico auf .png, Vermeidung nicht initialisierter Variable 10 11 */ 11 12 … … 22 23 $arr=explode("-", $gbkennz, 3); 23 24 $zgbbez=trim($arr[0]); 24 $zblatt=trim($arr[1]); 25 $zbvnr=trim($arr[2]); 25 if (count($arr) > 1) { 26 $zblatt=trim($arr[1]); 27 if (count($arr) > 2) { 28 $zbvnr=trim($arr[2]); 29 } else { 30 $zbvnr=""; 31 } 32 } else { 33 $zblatt=""; 34 $zbvnr=""; 35 } 26 36 if ($zgbbez == "") { // keine Eingabe 27 37 return 0; // Amtsgerichte oder Bezirke listen … … 84 94 $agd=htmlentities($ag, ENT_QUOTES, "UTF-8"); 85 95 } 86 if ($aktuell) {$cls=" aktuell";} 96 if ($aktuell) {$cls=" aktuell";} else {$cls="";} 87 97 echo "\n<div class='ga".$cls."' title='Amtsgericht'>"; 88 echo "\n\t\t<img class='nwlink' src='ico/Gericht. ico' width='16' height='16' alt='AG' title='Amtsgericht'> ";98 echo "\n\t\t<img class='nwlink' src='ico/Gericht.png' width='16' height='16' alt='AG' title='Amtsgericht'> "; 89 99 echo "AG <a href='".$_SERVER['SCRIPT_NAME']."?gkz=".$gkz."&gemeinde=".$gemeinde."&epsg=".$epsg."&ag=".$anr."'>"; 90 100 echo $agd."</a> (".$anr.")"; … … 97 107 global $gkz, $gemeinde, $epsg, $person; 98 108 $gnamd=htmlentities($gnam, ENT_QUOTES, "UTF-8"); 99 if ($aktuell) {$cls=" aktuell";} 109 if ($aktuell) {$cls=" aktuell";} else {$cls="";} 100 110 echo "\n<div class='gk".$cls."' title='GB-Bezirk'>"; 101 echo "\n\t\t<img class='nwlink' src='ico/GB-Bezirk. ico' width='16' height='16' alt='Bez.' title='GB-Bezirk'> ";111 echo "\n\t\t<img class='nwlink' src='ico/GB-Bezirk.png' width='16' height='16' alt='Bez.' title='GB-Bezirk'> "; 102 112 echo "<a href='".$_SERVER['SCRIPT_NAME']."?gkz=".$gkz."&gemeinde=".$gemeinde."&epsg=".$epsg."&gbkennz=".$zgbbez; 103 113 echo "&gbbeznam=".urlencode($gnam); … … 117 127 // Zeile Grundbuch - B l a t t 118 128 $blattd=ltrim($blatt, "0"); // Display-Version ohne fÃŒhrende Nullen 119 if ( $dienend) {$dientxt="dienendes";}129 if ($dienend) {$dientxt="dienendes ";} else {$dientxt="";} 120 130 $blattlnk=urlencode($blatt); // trailing Blank 121 if ($beznam != "") {$nam = $beznam." ";} 122 if ($aktuell) {$cls=" aktuell";} 131 if ($beznam != "") {$nam = $beznam." ";} else {$nam="";} 132 if ($aktuell) {$cls=" aktuell";} else {$cls="";} 123 133 124 134 echo "\n<div class='gb".$cls."' title='".$dientxt."GB-Blatt'>"; … … 126 136 // Icon / Nachweis 127 137 if ($blattgml == "") { // Link zum Nachweis nur wenn GML bekannt 128 echo "\n\t<img class='nwlink' src='ico/GBBlatt_link. ico' width='16' height='16' alt='Blatt' title='".$dientxt."GB-Blatt'>";138 echo "\n\t<img class='nwlink' src='ico/GBBlatt_link.png' width='16' height='16' alt='Blatt' title='".$dientxt."GB-Blatt'>"; 129 139 } else { 130 140 echo "\n\t<a title='Nachweis' href='javascript:imFenster(\"".$auskpath."alkisbestnw.php?gkz=".$gkz."&gmlid=".$blattgml."\")'>"; 131 echo "\n\t\t<img class='nwlink' src='ico/GBBlatt_link. ico' width='16' height='16' alt='Blatt' title='Nachweis'>";141 echo "\n\t\t<img class='nwlink' src='ico/GBBlatt_link.png' width='16' height='16' alt='Blatt' title='Nachweis'>"; 132 142 echo "\n\t</a> "; 133 143 } … … 152 162 $bvnra = str_pad($bvnr, 4, "0", STR_PAD_LEFT); // auf 4 Stellen 153 163 } 154 if ($diene d) {164 if ($dienend) { 155 165 $ti="dienendes "; 156 166 $re="Recht an "; … … 159 169 $re=""; 160 170 } 161 if ($aktuell) {$cls=" aktuell";} 171 if ($aktuell) {$cls=" aktuell";} else {$cls="";} 162 172 echo "\n<div class='gs".$cls."' title='".$ti."Grundstück'>"; 163 echo "\n\t<img class='nwlink' src='ico/Grundstueck. ico' width='16' height='16' alt='GS' title='".$ti."Grundstück'> ".$re;173 echo "\n\t<img class='nwlink' src='ico/Grundstueck.png' width='16' height='16' alt='GS' title='".$ti."Grundstück'> ".$re; 164 174 if ($blattkennz == "") { // ohne Link 165 175 echo "Buchung ".$bvnra; … … 178 188 $stadt=htmlentities($gmdname, ENT_QUOTES, "UTF-8"); 179 189 $bez=urlencode($gmdname); 180 if ($aktuell) {$cls=" aktuell";} 190 if ($aktuell) {$cls=" aktuell";} else {$cls="";} 181 191 echo "\n<div class='gm".$cls."' title='Gemeinde'>"; 182 echo "\n\t\t<img class='nwlink' src='ico/Gemeinde. ico' width='16' height='16' alt='Stadt'>";192 echo "\n\t\t<img class='nwlink' src='ico/Gemeinde.png' width='16' height='16' alt='Stadt'>"; 183 193 echo " Gem. <a href='".$_SERVER['SCRIPT_NAME']."?gkz=".$gkz."&gemeinde=".$gemeinde."&epsg=".$epsg."&gm=".$gmdnr."&bez=".$bez."'>"; 184 194 echo " ".$stadt."</a> (".$gmdnr.")"; … … 191 201 global $gkz, $gemeinde, $epsg, $auskpath, $scalefs; 192 202 193 if ($aktuell) {$cls=" aktuell";} 203 if ($aktuell) {$cls=" aktuell";} else {$cls="";} 194 204 echo "\n<div class='fs".$cls."'>"; 195 205 echo "\n\t<a title='Nachweis' href='javascript:imFenster(\"".$auskpath."alkisfsnw.php?gkz=".$gkz."&gmlid=".$fs_gml."\")'>"; 196 echo "\n\t\t<img class='nwlink' src='ico/Flurstueck_Link. ico' width='16' height='16' alt='FS' title='Nachweis'>";206 echo "\n\t\t<img class='nwlink' src='ico/Flurstueck_Link.png' width='16' height='16' alt='FS' title='Nachweis'>"; 197 207 echo "\n\t</a>\n\t"; 198 208 … … 225 235 echo "<div class='pe'> 226 236 <a title='Nachweis' href='javascript:imFenster(\"".$auskpath."alkisnamstruk.php?gkz=".$gkz."&gemeinde=".$gemeinde."&gmlid=".$persongml."\")'> 227 <img class='nwlink' src='ico/Eigentuemer. ico' width='16' height='16' alt='EIG' title='Nachweis'>237 <img class='nwlink' src='ico/Eigentuemer.png' width='16' height='16' alt='EIG' title='Nachweis'> 228 238 </a> 229 239 <a title='Person' href='".$_SERVER['SCRIPT_NAME']."?gkz=".$gkz."&gemeinde=".$gemeinde."&epsg=".$epsg."&person=".$persongml."&name=".$namlnk."'>".$nnam.", ".$vnam."</a> … … 257 267 258 268 // hinten gleich 259 $sql2 .="JOIN pp_gemarkung g ON f.land=g.land AND f.gemarkungsnummer=g.gemarkung269 $sql2="JOIN pp_gemarkung g ON f.land=g.land AND f.gemarkungsnummer=g.gemarkung 260 270 WHERE s1.istbestandteilvon = $1 AND f.endet IS NULL AND s1.endet IS NULL "; 261 271 switch ($gfilter) {
Note: See TracChangeset
for help on using the changeset viewer.