Ignore:
Timestamp:
12/10/15 17:35:32 (8 years ago)
Author:
frank.jaeger
Message:

ALKIS-Mapbender-Navigation umgestellt von .ico- auf .png-Grafiken.
Weitere kleine Korrekturen an ALKIS-Mapbender-Navigation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mapbender/http/nav/alkisnav_fkt.php

    r339 r356  
    11<?php 
    22/* 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 
    1011*/ 
    1112 
     
    2223        $arr=explode("-", $gbkennz, 3); 
    2324        $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        } 
    2636        if ($zgbbez == "") { // keine Eingabe 
    2737                return 0; // Amtsgerichte oder Bezirke listen 
     
    8494                $agd=htmlentities($ag, ENT_QUOTES, "UTF-8"); 
    8595        } 
    86         if ($aktuell) {$cls=" aktuell";} 
     96        if ($aktuell) {$cls=" aktuell";} else {$cls="";} 
    8797        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'> "; 
    8999                echo "AG <a href='".$_SERVER['SCRIPT_NAME']."?gkz=".$gkz."&amp;gemeinde=".$gemeinde."&amp;epsg=".$epsg."&amp;ag=".$anr."'>";             
    90100                echo $agd."</a> (".$anr.")"; 
     
    97107        global $gkz, $gemeinde, $epsg, $person; 
    98108        $gnamd=htmlentities($gnam, ENT_QUOTES, "UTF-8"); 
    99         if ($aktuell) {$cls=" aktuell";}         
     109        if ($aktuell) {$cls=" aktuell";} else {$cls="";} 
    100110        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'> "; 
    102112        echo "<a href='".$_SERVER['SCRIPT_NAME']."?gkz=".$gkz."&amp;gemeinde=".$gemeinde."&amp;epsg=".$epsg."&amp;gbkennz=".$zgbbez; 
    103113        echo "&amp;gbbeznam=".urlencode($gnam); 
     
    117127        // Zeile Grundbuch - B l a t t 
    118128        $blattd=ltrim($blatt, "0"); // Display-Version ohne fÃŒhrende Nullen 
    119         if ( $dienend) {$dientxt="dienendes ";} 
     129        if ($dienend) {$dientxt="dienendes ";} else {$dientxt="";} 
    120130        $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="";} 
    123133 
    124134        echo "\n<div class='gb".$cls."' title='".$dientxt."GB-Blatt'>"; 
     
    126136        // Icon / Nachweis 
    127137        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'>"; 
    129139        } else { 
    130140                echo "\n\t<a title='Nachweis' href='javascript:imFenster(\"".$auskpath."alkisbestnw.php?gkz=".$gkz."&amp;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'>"; 
    132142                echo "\n\t</a> "; 
    133143        } 
     
    152162                $bvnra = str_pad($bvnr, 4, "0", STR_PAD_LEFT); // auf 4 Stellen 
    153163        } 
    154         if ($diened) { 
     164        if ($dienend) { 
    155165                $ti="dienendes&nbsp;"; 
    156166                $re="Recht an "; 
     
    159169                $re=""; 
    160170        } 
    161         if ($aktuell) {$cls=" aktuell";}         
     171        if ($aktuell) {$cls=" aktuell";} else {$cls="";} 
    162172        echo "\n<div class='gs".$cls."' title='".$ti."Grundst&uuml;ck'>"; 
    163         echo "\n\t<img class='nwlink' src='ico/Grundstueck.ico' width='16' height='16' alt='GS'  title='".$ti."Grundst&uuml;ck'> ".$re; 
     173        echo "\n\t<img class='nwlink' src='ico/Grundstueck.png' width='16' height='16' alt='GS'  title='".$ti."Grundst&uuml;ck'> ".$re; 
    164174        if ($blattkennz == "") { // ohne Link 
    165175                echo "Buchung ".$bvnra; 
     
    178188        $stadt=htmlentities($gmdname, ENT_QUOTES, "UTF-8"); 
    179189        $bez=urlencode($gmdname); 
    180         if ($aktuell) {$cls=" aktuell";} 
     190        if ($aktuell) {$cls=" aktuell";} else {$cls="";} 
    181191        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'>"; 
    183193                echo " Gem. <a href='".$_SERVER['SCRIPT_NAME']."?gkz=".$gkz."&amp;gemeinde=".$gemeinde."&amp;epsg=".$epsg."&amp;gm=".$gmdnr."&amp;bez=".$bez."'>";               
    184194                echo  " ".$stadt."</a> (".$gmdnr.")"; 
     
    191201        global $gkz, $gemeinde, $epsg, $auskpath, $scalefs; 
    192202 
    193         if ($aktuell) {$cls=" aktuell";} 
     203        if ($aktuell) {$cls=" aktuell";} else {$cls="";} 
    194204        echo "\n<div class='fs".$cls."'>"; 
    195205        echo "\n\t<a title='Nachweis' href='javascript:imFenster(\"".$auskpath."alkisfsnw.php?gkz=".$gkz."&amp;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'>"; 
    197207        echo "\n\t</a>\n\t";                     
    198208 
     
    225235echo "<div class='pe'> 
    226236        <a title='Nachweis' href='javascript:imFenster(\"".$auskpath."alkisnamstruk.php?gkz=".$gkz."&amp;gemeinde=".$gemeinde."&amp;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'> 
    228238        </a>             
    229239        <a title='Person' href='".$_SERVER['SCRIPT_NAME']."?gkz=".$gkz."&amp;gemeinde=".$gemeinde."&amp;epsg=".$epsg."&amp;person=".$persongml."&amp;name=".$namlnk."'>".$nnam.", ".$vnam."</a> 
     
    257267 
    258268        // hinten gleich 
    259         $sql2.="JOIN pp_gemarkung g ON f.land=g.land AND f.gemarkungsnummer=g.gemarkung  
     269        $sql2="JOIN pp_gemarkung g ON f.land=g.land AND f.gemarkungsnummer=g.gemarkung  
    260270        WHERE s1.istbestandteilvon = $1 AND f.endet IS NULL AND s1.endet IS NULL "; 
    261271        switch ($gfilter) { 
Note: See TracChangeset for help on using the changeset viewer.