Hallo Community,
diesmal habe ich keine Frage sondern ein Template zu [routenplaner] für euch:
Code:
<!-- indexer::stop -->
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<div class="headline"><<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>></div>
<?php endif; ?>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
/**
*
* @access public
* @return void
**/
function GoogleMaps() {
var start = encodeURI(document.getElementById('routenplaner_start').value);
var end = encodeURI(document.getElementById('routenplaner_end').value);
Routenplaner = open("http://maps.google.com/maps?saddr="+start+"&daddr="+end+"&ie=UTF8");
return true;
}
//--><!]]>
</script>
<form method="post" enctype="application/x-www-form-urlencoded" action="" onsubmit="return GoogleMaps()" class="yform columnar">
<fieldset>
<div class="type-text">
<label for="routenplaner_start"><?php echo $this->routenplaner_from; ?></label>
<input type="text" value="<?php echo $this->routenplaner_value; ?>" id="routenplaner_start" name="routenplaner_start" />
</div>
<div class="type-text">
<label for="routenplaner_end"><?php echo $this->routenplaner_to; ?></label>
<input type="text" value="<?php echo $this->routenplaner_value_to; ?>" id="routenplaner_end" name="routenplaner_end" readonly="readonly" />
</div>
<div class="type-button submit_container"><input type="submit" name="start" class="submit" value="<?php echo $this->routenplaner_search; ?>" /></div>
</fieldset>
</form>
</div>
<!-- indexer::continue -->
Ich habe das Original Template als Grundlage genommen und es "etwas" optimiert. Es werden CSS-Klassen aus dem YAML-Formularbaukasten verwendet. Ihr könnt natürlich andere nehmen und diese entsprechend gestalten.
Nun wünsche ich euch viel Spaß mit dem Template und freue mich über Feedback.
Gruß Frank
Lesezeichen