17.11.2012, 20:17
Ich benutze nur Globale Templates, also alles dort rein geschrieben.
Hier mal eine Übersicht, ein Bild
aus welchem Punkt stammt der o.g. code?
Hier mal eine Übersicht, ein Bild
aus welchem Punkt stammt der o.g. code?
(17.11.2012, 20:17)Trust schrieb: [ -> ]aus welchem Punkt stammt der o.g. code?Siehe den Beitrag bei X-Threads!
<html>
<head>
<title>{$lang->newthread_in}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
var geocoder, map, map2;
function initialize() {
geocoder = new google.maps.Geocoder();
var geont = "{$GLOBALS['tplvars']['resrev_geo']}";
var myLatlng2 = new google.maps.LatLng{$GLOBALS['tplvars']['resrev_geo']};
if(geont == ""){
myLatlng2 = new google.maps.LatLng(0,0);
}
var myOptions2 = {
zoom: 4,
center: myLatlng2,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
map2 = new google.maps.Map(document.getElementById('map_geol'), myOptions2);
var marker2 = new google.maps.Marker({
position: myLatlng2,
map: map2
});
var myLatlng = new google.maps.LatLng{$GLOBALS['tplvars']['resrev_geo']};
var myOptions = {
zoom: 4,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
map = new google.maps.Map(document.getElementById('map_postbit'), myOptions);
var marker = new google.maps.Marker({
position: myLatlng,
map: map
});
}
function codeAddress() {
var address = document.getElementById('xthreads_resrev_location').value;
geocoder.geocode({'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var mylocation = results[0].geometry.location;
map2.setCenter(mylocation);
var marker3 = new google.maps.Marker({
map: map2,
position: mylocation
});
document.getElementsByName("xthreads_resrev_geo")[0].value = mylocation;
} else {
alert("Geocode was not successful for the following reason: " + status);
}
});
}
</script></head>
<body onload="initialize()">
{$header}
{$preview}
{$thread_errors}
{$attacherror}
<form action="newthread.php?fid={$fid}&processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border-bottom: none;">
<tr>
<td class="thead" colspan="2"><strong>{$lang->post_new_thread}</strong></td>
</tr>
{$loginbox}
</table>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border-top: none; border-bottom: none;">
<tr>
<td class="trow2" style="width: 50%; vertical-align: top;">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow2" colspan="2" style="text-align: center;">
<div id="map_geol" style="width:400px; height:250px;margin: auto auto;"></div>
{$tfinput['resrev_location']}
</td>
</tr>
</table>
</td>
<td class="trow2" style="vertical-align: top;">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow2" style="width: 20%; white-space:nowrap;"><strong>{$lang->thread_subject}</strong></td>
<td class="trow2" style="white-space:nowrap;">{$prefixselect}<input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" />
</td>
</tr>
{$extra_threadfields}
</table>
</td>
</tr>
</table>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border-top: none;">
{$posticons}
<tr>
<td class="trow2" valign="top" style="width: 20%;"><strong>{$lang->your_message}</strong>{$smilieinserter}</td>
<td class="trow2">
<textarea name="message" id="message" rows="20" cols="70" tabindex="2">{$message}</textarea>
{$codebuttons}
{$multiquote_external}
</td>
</tr>
<tr>
<td class="trow1" valign="top"><strong>{$lang->post_options}</strong></td>
<td class="trow1"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" tabindex="7"{$postoptionschecked['signature']} /> {$lang->options_sig}</label>
{$disablesmilies}</span></td>
</tr>
{$modoptions}
{$subscriptionmethod}
{$pollbox}
{$captcha}
</table>
{$attachbox}
<br />
<div style="text-align:center"><input type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" /> <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="5" />{$savedraftbutton}</div>
<input type="hidden" name="action" value="do_newthread" />
<input type="hidden" name="posthash" value="{$posthash}" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
<input type="hidden" name="quoted_ids" value="{$quoted_ids}" />
<input type="hidden" name="tid" value="{$tid}" />
{$editdraftpid}
</form>
{$forumrules}
{$footer}
</body>
</html>
if(geont == ""){
myLatlng2 = new google.maps.LatLng(0,0);
}
if(geont == ""){
myLatlng2 = new google.maps.LatLng(51.165691,10.451526000000058);
}
<![ITEM[<label style="display: block;"><input{NAME_PROP} type="radio" class="radio" value="{VALUE}"{CHECKED}{TABINDEX_PROP} />{LABEL}</label>]]>
<![ITEM[<label class="float_left" title="{VALUE} star<if {VALUE} > 1 then>s</if>"><input{NAME_PROP} type="radio" class="radio" value="{VALUE}"{CHECKED}{TABINDEX_PROP} /><div style="text-align:center">{LABEL}</div></label>]]>