2013-04-28 00:08:53 +02:00

291 lines
12 KiB
PHP

<?php
/****************************************************************************
./lang/de/ocstyle/main.tpl.php
-------------------
begin : Mon June 14 2004
For license information see doc/license.txt
****************************************************************************/
/****************************************************************************
Unicode Reminder メモ
german main template
template replacement(s):
title HTML page title
lang language
style style
htmlheaders additional HTML headers
loginbox login status (login form or username)
functionsbox available function on this site
template template to display
runtime computing time
****************************************************************************/
//Menü laden
global $mnu_bgcolor, $mnu_selmenuitem, $develwarning, $tpl_subtitle, $opt, $rootpath, $usr;
require_once($stylepath . '/lib/menu.php');
if (function_exists('post_config'))
post_config();
require_once($rootpath . 'lib2/smarty/ocplugins/function.season.php');
$sUserCountry = getUserCountry();
$pageidx = mnu_MainMenuIndexFromPageId($menu, $tplname);
if (isset($menu[$pageidx]['navicolor']))
{
$mnu_bgcolor = $menu[$pageidx]['navicolor'];
}
else
{
$mnu_bgcolor = '#D5D9FF';
}
if ($tplname != 'start')
$tpl_subtitle .= htmlspecialchars($mnu_selmenuitem['title'] . ' - ', ENT_COMPAT, 'UTF-8');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $tpl_subtitle; ?>{title}</title>
<meta name="KEYWORDS" content="geocaching, opencaching, geocashing, longitude, latitude, utm, coordinates, treasure hunting, treasure, GPS, global positioning system, garmin, magellan, mapping, geo, hiking, outdoors, sport, hunt, stash, cache, geocaching, geocache, cache, treasure, hunting, satellite, navigation, tracking, bugs, travel bugs" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="{lang}" />
<meta http-equiv="gallerimg" content="no" />
<meta http-equiv="cache-control" content="no-cache" />
<link rel="SHORTCUT ICON" href="favicon.ico">
<link rel="apple-touch-icon" href="resource2/{style}/images/oclogo/apple-touch-icon-iphone.png" />
<link rel="apple-touch-icon" sizes="72x72" href="resource2/{style}/images/oclogo/apple-touch-icon-ipad.png" />
<link rel="apple-touch-icon" sizes="114x114" href="resource2/{style}/images/oclogo/apple-touch-icon-iphone-retina.png" />
<link rel="apple-touch-icon" sizes="144x144" href="resource2/{style}/images/oclogo/apple-touch-icon-ipad-retina.png" />
<link rel="stylesheet" type="text/css" media="screen,projection" href="resource2/{style}/css/style_screen.css?ft={screen_css_time}">
<script type="text/javascript">
<!--
<?php
$seasons = array('winter' => 'resource2/ocstyle/css/seasons/style_winter.css',
'spring' => 'resource2/ocstyle/css/seasons/style_spring.css',
'summer' => 'resource2/ocstyle/css/seasons/style_summer.css',
'autumn' => 'resource2/ocstyle/css/seasons/style_autumn.css');
$seasons_stripe
= array('winter' => 'resource2/ocstyle/css/seasons/style_langstripe_winter.css',
'spring' => 'resource2/ocstyle/css/seasons/style_langstripe_spring.css',
'summer' => 'resource2/ocstyle/css/seasons/style_langstripe_summer.css',
'autumn' => 'resource2/ocstyle/css/seasons/style_langstripe_autumn.css');
$smarty_dummy = 0;
?>
var nWindowWidth = 9999;
if (window.innerWidth)
nWindowWidth = window.innerWidth;
else if (screen.availWidth)
nWindowWidth = screen.availWidth;
if (nWindowWidth > 970)
document.writeln('<link rel="stylesheet" type="text/css" media="screen,projection" href="<?php echo smarty_function_season($seasons, $smarty_dummy); ?>">');
document.writeln('<link rel="stylesheet" type="text/css" media="screen,projection" href="<?php echo smarty_function_season($seasons_stripe, $smarty_dummy); ?>">');
function usercountry_change()
{
var sCurrentOption = "<?php echo $sUserCountry; ?>";
var oUserCountryCombo = document.getElementById('usercountry');
if (sCurrentOption!=oUserCountryCombo.value)
{
window.location = 'index.php?usercountry=' + oUserCountryCombo.value;
}
}
function submitbutton(bname)
{
document.getElementsByName(bname)[0].className = "formbutton_active";
}
function resetbutton(bname)
{
document.getElementsByName(bname)[0].className = "formbutton"
}
function flashbutton(bname)
{
document.getElementsByName(bname)[0].className = "formbutton_active";
window.setTimeout('resetbutton(\'' + bname + '\')', 350);
}
//-->
</script>
<link rel="stylesheet" type="text/css" media="print" href="resource2/{style}/css/style_print.css?ft={print_css_time}">
<script type="text/javascript" src="resource2/{style}/js/enlargeit/enlargeit.js"></script>
{htmlheaders}
</head>
<body style="{bodystyle}">
<div id="overall">
<div id="langstripe">
<!-- Navigation Level 1 -->
<table class="nav1" cellspacing=0>
<tr>
<td width="100%">
&nbsp; {loginbox}
</td>
<td><strong>{t}Language:{/t}&nbsp;</strong></td>
<td>
<?php
foreach ($opt['template']['locales'] AS $k => $lang)
if ($lang['show'] == true)
echo '<a style="text-decoration: none;" href="index.php?locale=' . $k . '"><img src="' . $lang['flag'] . '" alt="' . $lang['name'] . '" width="24px" height="18px" /></a> ';
?>
</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;<strong>{t}Country:{/t}&nbsp;</strong></td>
<td>
<select id="usercountry" onclick="usercountry_change()">
<?php
global $tpl_usercountries;
$nLastGroup = 0;
for ($i = 0; $i < count($tpl_usercountries); $i++)
{
if ($nLastGroup != $tpl_usercountries[$i]['group'])
{
echo '<option disabled="disabled">';
if ($tpl_usercountries[$i]['group'] == 1)
echo '- ' . t('This OC node') . ' -';
elseif ($tpl_usercountries[$i]['group'] == 2)
echo '- ' . t('Other OC nodes') . ' -';
elseif ($tpl_usercountries[$i]['group'] == 3)
echo '- ' . t('Others') . ' -';
else
echo '-';
echo '</option>';
}
$nLastGroup = $tpl_usercountries[$i]['group'];
echo '<option value="' . htmlspecialchars($tpl_usercountries[$i]['country'], ENT_COMPAT, 'UTF-8') . '"' . (($sUserCountry==$tpl_usercountries[$i]['country']) ? ' selected="selected"' : '') . '>' . htmlspecialchars($tpl_usercountries[$i]['name'], ENT_COMPAT, 'UTF-8') . '</option>';
}
?>
</select>&nbsp;
</td>
</tr>
</table>
</div>
<div class="page-container-1" style="position: relative;">
{backgroundimage}
<!-- HEADER -->
<?php echo isset($develwarning) ? $develwarning : '' ?>
<!-- Header banner -->
<div class="header">
<div class="headerimage">
<img src="resource2/{style}/images/head/rotator.php?path=<?php echo $opt['page']['headimagepath']; ?>" class="headerimagecontent" />
</div>
<div class="headerlogo">
<img src="resource2/{style}/images/oclogo/oc_head_alpha3.png" class="headerimagecontent" />
</div>
</div>
<!-- Navigation Level 2 -->
<div class="nav2">
<ul>
<?php
mnu_EchoMainMenu($menu[$pageidx]['siteid']);
?>
</ul>
</div>
<!-- Buffer after header -->
<div class="buffer" style="height: 30px;"></div>
<!-- Suchbox -->
<div id="suchbox"><form action="searchplugin.php" method="post" style="display:inline;"><b>{t}Waypoint search:{/t}</b><input type="hidden" name="source" value="waypoint-suche" /> <input type="text" name="userinput" size="10" /> <input type="submit" value="Go" /></form></div>
<!-- NAVIGATION -->
<!-- Navigation Level 3 -->
<div class="nav3">
<?php
//SubNavigation
if (isset($menu[$pageidx]['submenu']))
{
?>
<ul>
<li class="title">{t}Main menu{/t}</li>
<?php
mnu_EchoSubMenu($menu[$pageidx]['submenu'], $tplname, 1, false);
?>
</ul>
<?php
}
?>
<!-- Länderknoten -->
<p class="sidebar-maintitle">{t}Country sites{/t}</p>
<div style="text-align: center;" class="nodeflags">
<a href="http://www.opencaching.cz" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-cz.png" width="100" height="22" /></a><br />
<a href="http://www.opencaching.de" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-de.png" width="100" height="22" /></a><br />
<a href="http://www.opencachingspain.es" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-es.png" width="100" height="22" /></a><br />
<a href="http://www.opencaching.it" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-it.png" width="100" height="22" /></a><br />
<a href="http://www.opencaching.no" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-no.png" width="100" height="22" /></a><br />
<a href="http://www.opencaching.nl" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-nl.png" width="100" height="22" /></a><br />
<a href="http://www.opencaching.pl" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-pl.png" width="100" height="22" /></a><br />
<a href="http://www.opencaching.se" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-se.png" width="100" height="22" /></a><br />
<a href="http://www.opencaching.org.uk" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-org-uk.png" width="100" height="22" /></a><br />
<a href="http://www.opencaching.us" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-us.png" width="100" height="22" /></a>
</div>
<!-- Paypalbutton -->
<?php
if (isset($opt['page']['showdonations']) && $opt['page']['showdonations'])
{
?>
<p class="sidebar-maintitle">{t}Donations{/t}</p>
<div style="margin-top:20px;width:100%;text-align:center;">
<a href="http://www.opencaching.de/articles.php?page=donations">
<img src="https://www.paypal.com/de_DE/DE/i/btn/btn_donateCC_LG.gif" alt="{t}Donations{/t}" style="border:0px;" />
</a>
</div>
<p>&nbsp;</p>
<?php
}
?>
<!-- Datalicense -->
{license_disclaimer}
<!-- page statistics -->
<div class="sidebar-txtbox-noshade">
<p class="content-txtbox-noshade-size5">
<small>
{t}Page performance{/t}: {scripttime} {t}sec{/t}<br />
{t}Page creation{/t}: <?php $bTemplateBuild->Stop(); echo sprintf('%1.3f', $bTemplateBuild->Diff()); ?> {t}sec{/t}
</small>
</p>
</div>
</div>
<!-- CONTENT -->
<div class="content2">
<div id="breadcrumb">
<?php mnu_EchoBreadCrumb($tplname, $pageidx); ?>
</div>
<div class="tplhelp">
<?php mnu_EchoHelpLink($tplname); ?>
</div>
<div id="ocmain">
{template}
</div>
</div>
<!-- End Text Container -->
<!-- FOOTER -->
<div class="footer">
<p><a href="articles.php?page=dsb">{t}Privacy statement{/t}</a> | <a href="articles.php?page=impressum">{t}Terms of use and legal information{/t}</a> | <a href="articles.php?page=contact">{t}Contact{/t}</a> | <a href="articles.php?page=changelog">{t}Changelog{/t}</a> | <a href="sitemap.php">{t}Sitemap{/t}</a></p>
<p><strong>{sponsorbottom}</strong></p>
</div>
</div>
</body>
</html>