Originally Posted by
rambo
It would be great to include fields across the top for get driving directions.
To put a get driving directions field above the map:
in includes/templates/template_default/templates/tpl_contact_us_default.php
move line: 17
Code:
<?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send')); ?>
down below on line 44. This will start the contact <form> below our map form. You probably would want to do a overwrite version in YOURTEMPLATE folder.
then in:
includes/language/english/html_includes/YOURTEMPLATE/define_contact_us.php
Code:
<form action="http://maps.google.com/maps" method="get" target="blank">
<p><label for="mapsUsSaddr">Where are you coming from? <br>
Please enter street address, city, and ZIP Code:<br></label><input class="text" id="maps" size="40" name="saddr"> <input class="submit" value="Get directions" type="submit"> <input value="11111 Yourstreet Boulevard Beverly Hills, CA. 90210" name="whateva" type="hidden"> <input value="en" name="hl" type="hidden"></p>
</form>
place this above the map code:
Code:
<div id="map" style="width: 100%; height: 350px; border:solid black 1px;" ></div>
Please try it out and let me know if you run into any problems posting to either form on the page. Thanks.
Bookmarks