<?php
function img_size ($img){
$size = getimagesize($img);
return $size[3];
}
function img ($array) {
return "<img border=\"0\" src=\"".$array[0]."\" ".$array[1]." alt=\"".$array[2]."\">";
}
$root = "../"; //pngbehavior.php ändern
$array['icons']['home'] = array($root."img/icons/home.png", img_size($root."img/icons/home.png"), "Home");
$array['icons']['upload'] = array($root."img/icons/upload.png", img_size($root."img/icons/upload.png"), "Upload");
$array['icons']['remote_upload'] = array($root."img/icons/remote_upload.png", img_size($root."/img/icons/remote_upload.png"), "Remote Upload");
$array['icons']['news'] = array($root."img/icons/news.png", img_size($root."img/icons/news.png"), "News");
$array['icons']['statistik'] = array($root."img/icons/statistik.png", img_size($root."img/icons/statistik.png"), "Statistik");
$array['icons']['trenn_icon_10px'] = array($root."img/icons/trenn_icon_10px.png", img_size($root."img/icons/trenn_icon_10px.png"), "");
$array['icons']['trenn_icon_6px'] = array($root."img/icons/trenn_icon_6px.png", img_size($root."img/icons/trenn_icon_6px.png"), "");
$array['icons']['help'] = array($root."img/icons/help.png", img_size($root."img/icons/help.png"), "ALT-TEXT");
$array['img']['top'] = array($root."img/top.png", img_size($root."img/top.png"), "Top");
$array['img']['top2'] = array($root."img/".$theme."/top2.png", img_size($root."img/".$theme."/top2.png"), "Top2");
$array['img']['main_bg'] = array($root."img/bg_main.jpg", img_size($root."img/bg_main.jpg"), "Main BG");
$array['img']['blank1'] = array($root."img/".$theme."/blank1.png", img_size($root."img/".$theme."/blank1.png"), "Blank1");
$array['img']['blank2'] = array($root."img/".$theme."/blank2.png", img_size($root."/img/".$theme."/blank2.png"), "Blank2");
$array['img']['bg'] = array($root."img/back-body.jpg", img_size($root."img/back-body.jpg"), "BG");
$array['img']['main'] = array($root."img/".$theme."/main.png", img_size($root."img/".$theme."/main.png"), "Main");
//$array['icons'][''] = array(, img_size(), "");
define(home, $root."home");
define(upload, $root."upload");
define(remote_upload, $root."remote_upload");
define(news, $root."news");
define(statistik, $root."statistik");
?>
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\">
<style type="text/css">
body {
background-image:url(<?php echo $array['img']['bg'][0]; ?>);
}
table.body {
font-family:verdana;
font-size:10px;
}
.main2 {
background-image:url(<?php echo $array['img']['main_bg'][0]; ?>);
padding-left:15px;
}
#impressum {
font-size:9px;
}
a:link {
color:black;
text-decoration: none;
}
a:visited {
color:black;
text-decoration: none;
}
a:hover {
color:gray;
text-decoration: none;
}
a:active {
color:gray;
text-decoration: none;
}
img {
behavior: url("<?php echo $root; ?>pngbehavior.htc");
}
</style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse">
<tr>
<td>
<?php echo img($array['img']['top']); ?>
</td>
<td rowspan="2">
<?php echo img($array['img']['top2']); ?>
</td>
</tr>
<tr>
<td>
<?php echo img($array['icons']['trenn_icon_10px']); ?><a href="<?php echo home; ?>"><?php echo img($array['icons']['home']); ?></a><?php echo img($array['icons']['trenn_icon_10px']); ?><a href="<?php echo upload; ?>"><?php echo img($array['icons']['upload']); ?></a><?php echo img($array['icons']['trenn_icon_10px']); ?><a href="<?php echo remote_upload; ?>"><?php echo img($array['icons']['remote_upload']); ?></a><?php echo img($array['icons']['trenn_icon_10px']); ?><a href="<?php echo news; ?>"><?php echo img($array['icons']['news']); ?></a><?php echo img($array['icons']['trenn_icon_10px']); ?><a href="<?php echo statistik; ?>"><?php echo img($array['icons']['statistik']); ?></a><?php echo img($array['icons']['trenn_icon_6px']); ?>
</td>
</tr>
<tr>
<td colspan="2">
<?php echo img($array['img']['blank1']); ?>
</td>
</tr>
<tr>
<td colspan="2">
<?php echo img($array['img']['main']); ?>
</td>
</tr>
<tr>
<td colspan="2">
<?php echo img($array['img']['blank2']); ?>
</td>
</tr>
<tr>
<td colspan="2">
SEITEN INHALT
</td>
</tr>
</table>
</body>
</html>