[1.x.x] Routenplaner per map24

In diesem Forum kannst du Erweiterungen zu EasyHP und kleine Code-Schnipsel downloaden.

Moderator: Supporter

Antworten
matze93
Inaktiv
Beiträge: 314
Registriert: 21. Januar 2009, 14:10

[1.x.x] Routenplaner per map24

Beitrag von matze93 »

Und mal wieder was neues:

Code: Alles auswählen

<?php
define("IN_EASYHP", true);

include "includes/mysql.php";
include "common.php";
include "includes/website.php";

echo make_message(SITE_IMG, "Routenplaner", "Route berechnen:", '', '');

echo "<div id='content'>";

?>
   <div class="boxcontent" align="center">
      <form action="http://link2.map24.com" method=get target="_blank" name="routec">
         <input type="hidden" name="lang" value="de">
         <table cellspacing="0" cellpadding="5" border="0">
            <tr>
               <td class="tbl">
                  <center>
                     <b>Start</b><br>
                     <input type="text" class="button" name="sstreet" maxlength="50" style="width:130px;" value="Strasse" onFocus="javascript:if (document.routec.sstreet.value == \"Strasse\") document.routec.sstreet.value = \"\";"><br>
                     <input type="hidden" name="scountry" value="de">
                     <input type="text" class="button" name="szip" maxlength="5" style="width:42px;" value="PLZ" onFocus="javascript:if (document.routec.szip.value == \"PLZ\") document.routec.szip.value = \"\";">
                     <input type="text" class="button" name="scity" maxlength="50" style="width:85px;" value="Stadt" onFocus="javascript:if (document.routec.scity.value == \"Stadt\") document.routec.scity.value = \"\";"><br>
                     <br><b>Ziel</b><br>
                     <input type="text" class="button" name="dstreet" maxlength="50" style="width:130px;" value="Strasse" onFocus="javascript:if (document.routec.dstreet.value == \"Strasse\") document.routec.dstreet.value = \"\";"><br>
                     <input type="hidden" name="dcountry" value="de">
                     <input type="text" class="button" name="dzip" maxlength="5" style="width:42px;" value="PLZ" onFocus="javascript:if (document.routec.dzip.value == \"PLZ\") document.routec.dzip.value = \"\";">
                     <input type="text" class="button" name="dcity" maxlength="48" style="width:85px;" value="Stadt" onFocus="javascript:if (document.routec.dcity.value == \"Stadt\") document.routec.dcity.value = \"\";"><br><br>
                     <br><select class="button" name="rtype" style="width:130px;">
                        <option value="fast" selected>Schnellste Strecke</option>
                        <option value="short">Kürzeste Strecke</option>
                     </select><br><br>
                     <input type="image" src="http://www.map24.com/images/route_button.gif" border="0">
                     <input type="hidden" name="lid" value="2142fd27">
                     <input type="hidden" name="maptype" value="CGI" align="right">
                  </center>
               </td>
            </tr>
         </table>
      </form>
   </div>
<?php

echo "</div>";

footer(0);

?>
Antworten