Ignore:
Timestamp:
04/12/11 09:58:26 (11 years ago)
Author:
frank.jaeger
Message:

ALKIS-Navigation fuer Mapbender erweitert: EPSG aus Mapframe entnehmen, Liste der Gemeinden oder Amtsgerichte bei leerer Eingabe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/mapbender/http/nav/alkisnav_adr.htm

    r66 r86  
    1919                var gem = "0"; 
    2020                if(arr[0] == "gemeinde") {gem = arr[1];} 
    21                 // aktueller EPSG-Code der GUI  ++ funktioniert noch nicht ++ 
    22                 var ind = parent.parent.parent.getMapObjIndexByName("mapframe1"); 
    23                 epsg = parent.parent.parent.mb_mapObj[ind].epsg; 
     21                // aktueller EPSG-Code 
     22                function sendGuiEpsg () { 
     23                        var ind = parent.parent.getMapObjIndexByName("mapframe1"); 
     24                        var epsg = parent.parent.mb_mapObj[ind].getSRS(); 
     25                        document.forms[0].epsg.value = epsg; 
     26                } 
     27                function validate(){ 
     28                        sendGuiEpsg(); 
     29                        document.forms[0].gkz.value = gkz; 
     30                        document.forms[0].gemeinde.value = gem; 
     31                } 
    2432        </script> 
    2533</head> 
    26 <body> 
     34<body onload="javascript:validate();"> 
    2735 
    2836<div id='tabs'> 
     
    3846 
    3947<form class='nav' name='AdrGazetteerFrame' onsubmit='return validate()' target='AdrResultFrame' action='alkisnav_adr.php'> 
    40 <script type="text/javascript" language="JavaScript"> 
    41                 document.writeln("<input name='gkz' type='hidden' value='" + gkz + "'>"); 
    42                 document.writeln("<input name='gemeinde' type='hidden' value='" + gem + "'>"); 
    43                 document.writeln("<input name='epsg' type='hidden' value='" + epsg + "'>"); 
    44 </script> 
    45 <input class='textfield' name='street' type='text' size='22' title='Stra&szlig;enname (Anfang)'> 
    46 <input class='sbutton' type='submit' value='ok'> 
    47 <br> 
    48 <span class="letter" onclick="document.forms[0].street.value='A'; document.forms[0].submit(); document.forms[0].street.value='';">A</span> 
    49 <span class="letter" onclick="document.forms[0].street.value='B'; document.forms[0].submit(); document.forms[0].street.value='';">B</span> 
    50 <span class="letter" onclick="document.forms[0].street.value='C'; document.forms[0].submit(); document.forms[0].street.value='';">C</span> 
    51 <span class="letter" onclick="document.forms[0].street.value='D'; document.forms[0].submit(); document.forms[0].street.value='';">D</span> 
    52 <span class="letter" onclick="document.forms[0].street.value='E'; document.forms[0].submit(); document.forms[0].street.value='';">E</span> 
    53 <span class="letter" onclick="document.forms[0].street.value='F'; document.forms[0].submit(); document.forms[0].street.value='';">F</span> 
    54 <span class="letter" onclick="document.forms[0].street.value='G'; document.forms[0].submit(); document.forms[0].street.value='';">G</span> 
    55 <span class="letter" onclick="document.forms[0].street.value='H'; document.forms[0].submit(); document.forms[0].street.value='';">H</span> 
    56 <span class="letter" onclick="document.forms[0].street.value='I'; document.forms[0].submit(); document.forms[0].street.value='';">I</span> 
    57 <span class="letter" onclick="document.forms[0].street.value='J'; document.forms[0].submit(); document.forms[0].street.value='';">J</span> 
    58 <span class="letter" onclick="document.forms[0].street.value='K'; document.forms[0].submit(); document.forms[0].street.value='';">K</span> 
    59 <span class="letter" onclick="document.forms[0].street.value='L'; document.forms[0].submit(); document.forms[0].street.value='';">L</span> 
    60 <span class="letter" onclick="document.forms[0].street.value='M'; document.forms[0].submit(); document.forms[0].street.value='';">M</span> 
    61 <span class="letter" onclick="document.forms[0].street.value='N'; document.forms[0].submit(); document.forms[0].street.value='';">N</span> 
    62 <br> 
    63 <span class="letter" onclick="document.forms[0].street.value='O'; document.forms[0].submit(); document.forms[0].street.value='';">O</span> 
    64 <span class="letter" onclick="document.forms[0].street.value='P'; document.forms[0].submit(); document.forms[0].street.value='';">P</span> 
    65 <span class="letter" onclick="document.forms[0].street.value='Q'; document.forms[0].submit(); document.forms[0].street.value='';">Q</span> 
    66 <span class="letter" onclick="document.forms[0].street.value='R'; document.forms[0].submit(); document.forms[0].street.value='';">R</span> 
    67 <span class="letter" onclick="document.forms[0].street.value='S'; document.forms[0].submit(); document.forms[0].street.value='';">S</span> 
    68 <span class="letter" onclick="document.forms[0].street.value='T'; document.forms[0].submit(); document.forms[0].street.value='';">T</span> 
    69 <span class="letter" onclick="document.forms[0].street.value='U'; document.forms[0].submit(); document.forms[0].street.value='';">U</span> 
    70 <span class="letter" onclick="document.forms[0].street.value='V'; document.forms[0].submit(); document.forms[0].street.value='';">V</span> 
    71 <span class="letter" onclick="document.forms[0].street.value='W'; document.forms[0].submit(); document.forms[0].street.value='';">W</span> 
    72 <span class="letter" onclick="document.forms[0].street.value='X'; document.forms[0].submit(); document.forms[0].street.value='';">X</span> 
    73 <span class="letter" onclick="document.forms[0].street.value='Y'; document.forms[0].submit(); document.forms[0].street.value='';">Y</span> 
    74 <span class="letter" onclick="document.forms[0].street.value='Z'; document.forms[0].submit(); document.forms[0].street.value='';">Z</span> 
     48        <input name='gkz' type='hidden'> 
     49        <input name='gemeinde' type='hidden' > 
     50        <input name='epsg' type='hidden'> 
     51        <input class='textfield' name='street' type='text' size='22' title='Stra&szlig;enname (Anfang)'> 
     52        <input class='sbutton' type='submit' value='ok'> 
     53        <br> 
     54        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='A'; document.forms[0].submit();">A</span> 
     55        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='B'; document.forms[0].submit();">B</span> 
     56        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='C'; document.forms[0].submit();">C</span> 
     57        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='D'; document.forms[0].submit();">D</span> 
     58        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='E'; document.forms[0].submit();">E</span> 
     59        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='F'; document.forms[0].submit();">F</span> 
     60        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='G'; document.forms[0].submit();">G</span> 
     61        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='H'; document.forms[0].submit();">H</span> 
     62        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='I'; document.forms[0].submit();">I</span> 
     63        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='J'; document.forms[0].submit();">J</span> 
     64        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='K'; document.forms[0].submit();">K</span> 
     65        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='L'; document.forms[0].submit();">L</span> 
     66        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='M'; document.forms[0].submit();">M</span> 
     67        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='N'; document.forms[0].submit();">N</span> 
     68        <br> 
     69        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='O'; document.forms[0].submit();">O</span> 
     70        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='P'; document.forms[0].submit();">P</span> 
     71        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='Q'; document.forms[0].submit();">Q</span> 
     72        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='R'; document.forms[0].submit();">R</span> 
     73        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='S'; document.forms[0].submit();">S</span> 
     74        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='T'; document.forms[0].submit();">T</span> 
     75        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='U'; document.forms[0].submit();">U</span> 
     76        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='V'; document.forms[0].submit();">V</span> 
     77        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='W'; document.forms[0].submit();">W</span> 
     78        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='X'; document.forms[0].submit();">X</span> 
     79        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='Y'; document.forms[0].submit();">Y</span> 
     80        <span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='Z'; document.forms[0].submit();">Z</span> 
    7581</form> 
    7682 
Note: See TracChangeset for help on using the changeset viewer.