Moje obrazki z środkowego panela są przycinane.
Moja strona to http://www.tibiam...
Theme.php
<?
// theme settings
$body_text = "#000000";
$body_bg = "#000000";
$theme_width = "150";
$theme_width_l = "194";
$theme_width_r = "194";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='full-header' style='padding:5px;'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>
<td><img src='".THEME."images/whitel.jpg' align='right' alt='rahmen links'></td>
<td class='white-header'>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_language='".LANGUAGE."' AND link_visibility<='".iUSER."' AND link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " ·\n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>
<td><img src='".THEME."images/whiter.jpg' align='left' alt='rahmen rechts'></td></tr>
</table><br>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='white-header'>".stripslashes($settings['footer'])."</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/footl.jpg' align='right' alt='rahmen rechts'></td>
<td width='40%' align='center' class='full-header'><br>
".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."<br><br>\n" : $locale['141']."<br><br>\n");
if ($license == false) {
echo "Powered by <a href='http://www.php-fusion.co.uk' class='foot'>PHP-Fusion</a> © 2005-2006<br>Design by TibiaME.pl team</a><br>\n";
}
echo "</td>
<td><img src='".THEME."images/footr.jpg' align='left' alt='rahmen links'></td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>
$news
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' class='news-footer'>
<tr>
<td><img src='".THEME."images/bullet.gif' alt='-'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</td>
<td align='right'>\n";
if ($info['news_ext'] == "y") echo "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n";
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·
".$info['news_reads'].$locale['044']."
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' class='news-footer'>
<tr>
<td><img src='".THEME."images/bullet.gif' alt='-'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."</td>
<td align='right'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
echo $info['article_reads'].$locale['044']."
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='553' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$title</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/contbottom.jpg' alt='bottom'></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='194' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapmain'>$title</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/sidebottom.jpg' alt='bottom'></td>
</tr>
</table>
\n";
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table width='194' cellpadding='0' cellspacing='0' class='scapmain'>
<tr>
<td>$title</td>
<td align='right'>
<img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'>
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>
<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/sidebottom.jpg' alt='bottom'></td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='8'></td></tr>
</table>\n";
}
?>
Styles.css
a { color:#882222; text-decoration:none; }
a:hover { color:#000; text-decoration:underline; }
a.foot{ color:#fff; }
a.side { color:#111; text-decoration:none; }
a:hover.side { color:#666; text-decoration:underline; }
a.white { color:#ddd; text-decoration:none; font-weight: bold; }
a:hover.white { color:#880000; text-decoration:underline; }
body {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
margin:0px;
}
form { margin:0px 0px 0px 0px; }
hr { height:1px; color:#ddd; }
hr.side-hr { height:1px; color:#ccc; }
td { font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:11px; }
pre { font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; }
.alt { color:#882222; }
.white-header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#ddd;
padding:4px;
}
.full-header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#aaa;
}
.button {
font-family:Tahoma,Arial,Verdana,Sans-Serif;
font-size:10px;
color:#000;background-color:#fff;
height:19px;
padding:0px 2px 0px 2px;
border:1px #888 solid;
margin-top:2px;
}
.textbox {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#000;background-color:#eee;
border:1px #888888 solid;
}
.main-body {
font-size:11px;
color:#000;
padding:0px 15px 0px 13px;
background-image: url(images/contbg.jpg);
background-repeat: repeat-y;
}
.side-body {
font-size:10px;
color:#000;
padding:0px 15px 0px 15px;
background-image: url(images/sidebg.jpg);
background-repeat: repeat-y;
}
.main-bg { padding:10px; padding-top: 0px }
.border { border:0px #ccc solid; }
.side-border-left { background-color:#000; }
.side-border-right { background-color:#000;}
.news-footer {
font-size:9px;
color:#000;
height:35px;
background-image: url(images/contbottom.jpg);
background-repeat: no-repeat;
padding:0px 15px 8px 13px;
}
.barmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#000;
padding:4px 4px 4px 4px;
}
.capmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
font-weight: bold;
height: 38px;
color:#880000;
background-image: url(images/conttopbg.jpg);
background-repeat: no-repeat;
padding:13px 13px 0px 13px;
}
.scapmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
font-weight: bold;
height: 38px;
color:#880000;
background-image: url(images/sidetopbg.jpg);
background-repeat: no-repeat;
padding:14px 15px 0px 15px;
}
.tbl-border { background-color:#98784F; }
.tbl { font-size:11px; padding:4px; }
.tbl1 { font-size:11px; color:#000; background-color:#C4B699; padding:4px; }
.tbl2 { font-size:11px; color:#000; background-color:#B7A483; padding:4px; }
.forum-caption {
font-size:10px;font-weight:bold;
color:#880000;background-color:#ddd;
height:20px;
padding:0px 4px 2px 4px;
}
.quote {
color:#000;background-color:#B7A483;
padding:2px;
margin:0px 20px 0px 20px;
border:1px #B7A483 solid;
}
.poll { height:12px; border:1px #000 solid; }
.comment-name { font-weight:bold; color:#666; }
.shoutboxname { font-weight:bold; color:#666; }
.shoutbox { color:#333; }
.shoutboxdate { font-size:9px; color:#000; }
.small { font-size:10px; font-weight:normal; }
.small2 { font-size:10px; font-weight:normal; color:#666; }
.side-small { font-size:10px; font-weight:normal; color:#000; }
.side-label { border: 1px black dotted; padding:2px; }
.gallery { padding: 16px 0px 8px 0px; }
.gallery img { border: 1px solid #B7A483; filter: gray; }
.gallery:hover img { border: 1px solid red; filter: none; }
img.activegallery { border: 1px solid green; filter: none; }
Bardzo prosze o pomoc - szukałem wszędzie.
Edytowane przez Pruzio dnia 28.05.2006 10:54:51
|