Changeset 283 for trunk/mapbender/http/nav/alkisnav_fkt.php
- Timestamp:
- 05/08/13 16:44:28 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mapbender/http/nav/alkisnav_fkt.php
r282 r283 2 2 /* Version vom 3 3 2013-05-07 Strukturierung des Programms, redundanten Code in Functions zusammen fassen 4 2013-05-08 Hervorhebung aktuelles Objekt, in Arbeit ... 4 5 */ 5 6 … … 9 10 // Hierin die Encodierung fÃŒr url und HTML. 10 11 11 function zeile_ag ($ag, $anr ) { // Zeile A m t s g e r i c h t12 function zeile_ag ($ag, $anr, $aktuell) { // Zeile A m t s g e r i c h t 12 13 global $gkz, $gemeinde, $epsg, $auskpath; 13 14 if ($ag == "") { … … 16 17 $agd=htmlentities($ag, ENT_QUOTES, "UTF-8"); 17 18 } 18 echo "\n<div class='ga' title='Amtsgericht'>"; 19 if ($aktuell) {$cls=" aktuell";} 20 echo "\n<div class='ga".$cls."' title='Amtsgericht'>"; 19 21 echo "\n\t\t<img class='nwlink' src='ico/Gericht.ico' width='16' height='16' alt='Amtsgericht'> "; 20 22 echo "AG <a href='".$_SERVER['SCRIPT_NAME']."?gkz=".$gkz."&gemeinde=".$gemeinde."&epsg=".$epsg."&ag=".$anr."'>"; … … 24 26 } 25 27 26 function zeile_gbbez ($gnam, $zgbbez ) { // Zeile Grundbuch - B e z i r k28 function zeile_gbbez ($gnam, $zgbbez, $aktuell) { // Zeile Grundbuch - B e z i r k 27 29 global $gkz, $gemeinde, $epsg, $auskpath; 28 30 $gnamd=htmlentities($gnam, ENT_QUOTES, "UTF-8"); 29 echo "\n<div class='gk' title='GB-Bezirk'>"; 31 if ($aktuell) {$cls=" aktuell";} 32 echo "\n<div class='gk".$cls."' title='GB-Bezirk'>"; 30 33 echo "\n\t\t<img class='nwlink' src='ico/GB-Bezirk.ico' width='16' height='16' alt='Bez.'> "; 31 34 echo "<a href='".$_SERVER['SCRIPT_NAME']."?gkz=".$gkz."&gemeinde=".$gemeinde."&epsg=".$epsg."&gbkennz=".$zgbbez."'>"; 32 35 echo "Bezirk ".$gnamd."</a> (".suchfeld($zgbbez).")"; 33 36 echo "\n</div>"; 34 return; 35 } 36 37 function zeile_blatt ($bezirk, $beznam, $blattgml, $blatt, $dienend, $person) { 37 38 return; 39 } 40 41 function zeile_blatt ($bezirk, $beznam, $blattgml, $blatt, $dienend, $person, $aktuell) { 38 42 global $gkz, $gemeinde, $epsg, $auskpath; 39 43 // Zeile Grundbuch - B l a t t … … 42 46 $blattlnk=urlencode($blatt); // trailing Blank 43 47 if ($beznam != "") {$nam = $beznam." ";} 44 echo "\n<div class='gb' title='".$dientxt."GB-Blatt'>"; 48 if ($aktuell) {$cls=" aktuell";} 49 echo "\n<div class='gb".$cls."' title='".$dientxt."GB-Blatt'>"; 45 50 if ($blattgml == "") { // Link zum Nachweis nur wenn GML bekannt 46 51 echo "\n\t<img class='nwlink' src='ico/GBBlatt_link.ico' width='16' height='16' alt='Blatt'>"; … … 60 65 } 61 66 62 function zeile_buchung ($buchunggml, $bvnr, $gbkennz, $dienend) {67 function zeile_buchung($buchunggml, $bvnr, $blattkennz, $dienend, $aktuell) { 63 68 // Zeile B u c h u n g s s t e l l e - GrundstÃŒck ausgeben 64 69 global $gkz, $gemeinde, $epsg, $auskpath; … … 75 80 $re=""; 76 81 } 77 echo "\n<div class='gs' title='".$ti."Grundstück'>"; 78 echo "\n\t<img class='nwlink' src='ico/Grundstueck.ico' width='16' height='16' alt='GS'> "; 79 echo $re."Buchung"; 80 81 if ($gbkennz == "") { // ohne Link 82 echo " ".$bvnra." "; 83 } else { // Bezirk-Blatt-lfd 84 echo "\n\t<a href='".$_SERVER['SCRIPT_NAME']."?gkz=".$gkz."&gemeinde=".$gemeinde."&epsg=".$epsg."&buchunggml=".$buchunggml; 85 echo "&gbkennz=".$gbkennz; 86 echo "'> ".$bvnra." </a>"; 87 } 88 echo "\n</div>"; 89 return 0; 90 } 91 92 function zeile_flurstueck ($fs_gml, $fskenn, $x, $y, $gmkg, $flur) { 82 if ($aktuell) {$cls=" aktuell";} 83 echo "\n<div class='gs".$cls."' title='".$ti."Grundstück'>"; 84 echo "\n\t<img class='nwlink' src='ico/Grundstueck.ico' width='16' height='16' alt='GS'> ".$re; 85 if ($blattkennz == "") { // ohne Link 86 echo "Buchung ".$bvnra; 87 } else { 88 $gbkennlnk=urlencode($blattkennz."-".$bvnr); // Trailing Blanks! 89 echo "<a href='".$_SERVER['SCRIPT_NAME']. "?gkz=". $gkz."&gemeinde=".$gemeinde."&epsg=".$epsg."&buchunggml=".$buchunggml; 90 echo "&gbkennz=".$gbkennlnk."'>Buchung ".$bvnra."</a>"; 91 } 92 echo "\n</div>"; 93 return; 94 } 95 96 function zeile_flurstueck ($fs_gml, $fskenn, $x, $y, $gmkg, $flur, $aktuell) { 93 97 // Zeile mit Icon (Link zum Buch-Nachweis) und Text (Link zum Positionieren) 94 98 global $gkz, $gemeinde, $epsg, $auskpath, $scalefs; 95 96 echo "\n<div class='fs '>";99 if ($aktuell) {$cls=" aktuell";} 100 echo "\n<div class='fs".$cls."'>"; 97 101 echo "\n\t<a title='Nachweis' href='javascript:imFenster(\"".$auskpath."alkisfsnw.php?gkz=".$gkz."&gmlid=".$fs_gml."\")'>"; 98 102 echo "\n\t\t<img class='nwlink' src='ico/Flurstueck_Link.ico' width='16' height='16' alt='FS'>"; … … 123 127 $namlnk=urlencode($nachname); 124 128 $vnam=htmlentities($vorname, ENT_QUOTES, "UTF-8"); 125 // Link zur Auskunft Person +++ Icon differenzieren? Firma/Person 126 echo "\n<br>\n\t<a title='Nachweis' href='javascript:imFenster(\"".$auskpath."alkisnamstruk.php?gkz=".$gkz."&gemeinde=".$gemeinde."&gmlid=".$gml."\")'>"; 127 echo "\n\t\t<img class='nwlink' src='ico/Eigentuemer.ico' width='16' height='16' alt='EIG'>"; 128 echo "\n\t</a> "; 129 echo "\n<a title='Person' href='".$_SERVER['SCRIPT_NAME']."?gkz=".$gkz."&gemeinde=".$gemeinde."&epsg=".$epsg."&person=".$persongml."&name=".$namlnk."'>".$nnam.", ".$vnam."</a>"; 130 return; 131 } 132 133 function GB_Buchung_FS ($linelimit) { 129 // Link zur Auskunft Person ++ Icon differenzieren? Firma/Person 130 131 // 2013-05-08 DIV statt br 132 echo "<div class='pe'> 133 <a title='Nachweis' href='javascript:imFenster(\"".$auskpath."alkisnamstruk.php?gkz=".$gkz."&gemeinde=".$gemeinde."&gmlid=".$gml."\")'> 134 <img class='nwlink' src='ico/Eigentuemer.ico' width='16' height='16' alt='EIG'> 135 </a> 136 <a title='Person' href='".$_SERVER['SCRIPT_NAME']."?gkz=".$gkz."&gemeinde=".$gemeinde."&epsg=".$epsg."&person=".$persongml."&name=".$namlnk."'>".$nnam.", ".$vnam."</a> 137 </div>"; 138 return; 139 } 140 141 function GB_Buchung_FS ($linelimit, $blattgbkenn) { 134 142 // Zu einem Grundbuch-Blatt (identifiziert ÃŒber seine gml_id) suchen der 135 143 // Buchungen (Gruppenwechsel) und FlurstÃŒcke (Links) 136 global $g kz, $gemeinde, $blattgml, $epsg, $gfilter, $debug;144 global $gemeinde, $blattgml, $epsg, $gfilter, $debug; 137 145 138 146 // SQL-Bausteine vorbereiten … … 157 165 $sqlz2.="JOIN alkis_beziehungen vfb ON s2.gml_id = vfb.beziehung_zu "; 158 166 159 // ++ JOIN alkis_beziehungen - ax_buchungsblatt160 // fÃŒr Link auf Buchung mit komplettem Grundbuchennzeichen161 162 167 // SQL hinten gleich 163 168 $sql2 ="JOIN ax_flurstueck f ON vfb.beziehung_von = f.gml_id "; … … 191 196 if ($gwbv != $bvnr) { // Gruppierung Buchungs-Stelle (BVNR) 192 197 $gwbv = $bvnr; 193 zeile_buchung ($bsgml, $bvnr, "", false); // FÃŒr GB-Kennz. (-> Link) fehlt Bezirk + Blatt198 zeile_buchung($bsgml, $bvnr, $blattgbkenn, false, false); 194 199 } 195 200 $fs_gml=$row["gml_id"]; … … 200 205 $x=$row["x"]; 201 206 $y=$row["y"]; 202 zeile_flurstueck ($fs_gml, $fskenn, $x, $y, $gmkg, $flur );207 zeile_flurstueck ($fs_gml, $fskenn, $x, $y, $gmkg, $flur, false); 203 208 $zfs1++; 204 209 } … … 222 227 } 223 228 $zfs2=0; 224 #$gwblatt="";225 229 $gwbv=""; 226 230 while($row = pg_fetch_array($res)) { … … 229 233 if ($gwbv != $bvnr) { // Gruppierung Buchung (BVNR) - dienend 230 234 $gwbv = $bvnr; 231 zeile_buchung ($bsgml, $bvnr, "", true);235 zeile_buchung($bsgml, $bvnr, $blattgbkenn, true, false); 232 236 } 233 237 $fs_gml=$row["gml_id"]; … … 236 240 $fskenn=$row["zaehler"]; 237 241 if ($row["nenner"] != "") {$fskenn.="/".$row["nenner"];} // Bruchnummer 238 $x=$row["x"]; 239 $y=$row["y"]; 240 zeile_flurstueck ($fs_gml, $fskenn, $x, $y, $gmkg, $flur); 242 zeile_flurstueck ($fs_gml, $fskenn, $row["x"], $row["y"], $gmkg, $flur, false); 241 243 $zfs2++; 242 244 } 245 // Foot 243 246 if($zfs1 + $zfs2 == 0) { 244 247 echo "\n<p class='anz'>Kein Flurstück im berechtigten Bereich.</p>";
Note: See TracChangeset
for help on using the changeset viewer.