Witam, nie wiem jak zmienic rozmiar środkowego panelu i wyśrodkowac go w stosunku do lewego i prawego, mam skórkę paradox w niej lewy i prawy panel ma 190 px, srodkowy tez chcialbym zeby mial 190, inaczej pisząc: chciałbym, aby welcome_message_panel mial 190px oraz każdy nastepny, który utworze wybierając położenie panela jako góra, poniżej moje theme.php
<?
// theme settings
$body_text = "#000000";
$body_bg = "#c2c9c9";
$theme_width = "100%";
$theme_width_l = "190";
$theme_width_r = "190";
function render_header($header_content) {
global $theme_width,$settings,$locale;
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 class='bar-left'><img src='".THEME."images/blank.gif' width='7' height='28' alt='' style='display:block'></td>
<td class='bar-main'>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE 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 align='right' class='bar-main'>".ucwords(showdate("%A, %B %d, %Y", time()))."</td>
<td class='bar-right'><img src='".THEME."images/blank.gif' width='9' height='28' alt='' style='display:block'></td>
</tr>
</table>\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 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 "<a href='http://www.php-fusion.co.uk' target='_blank'><img src='".THEME."images/fusion.gif' border='0' alt='PHP-Fusion' title='PHP-Fusion '></a>
<a href='http://validator.w3.org/check?uri=referer'><img
src='http://www.rentier.nazwa.pl/images/w3chtml.gif'
alt='Valid HTML 4.01 Transitional' border='0' height='15' width='80'></a>
<a href='http://jigsaw.w3.org/css-validator/check?uri=referer'><img src='http://www.rentier.nazwa.pl/images/w3ccss.gif'
alt='Valid CSS!' border='0' height='15' width='80'></a>
<a href='http://polish-77423590770.spampoison.com'><img src='http://pics3.inxhost.com/images/sticker.gif' alt='spampoison!' border='0' height='15' width='80'></a><br><br>\n";
}
echo "</td>\n</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='b-top-left'><img src='".THEME."images/blank.gif' width='7' height='27' alt='' style='display:block'></td>
<td class='b-top-main'>$subject</td>
<td class='b-top-right'><img src='".THEME."images/blank.gif' width='9' height='27' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='b-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>
<td class='main-body'>
$news
<div style='margin-top:5px;'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='news-footer'><img src='".THEME."images/bullet.gif'>
".$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' class='news-footer'>\n";
if ($info['news_ext'] == "y") echo "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n";
if ($info['news_allow_comments']) echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·\n";
echo $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>
</div>
</td>
<td class='b-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='b-bottom-left'><img src='".THEME."images/blank.gif' width='7' height='10' alt='' style='display:block'></td>
<td class='b-bottom-main'><img src='".THEME."images/blank.gif' width='1' height='10' alt='' style='display:block'></td>
<td class='b-bottom-right'><img src='".THEME."images/blank.gif' width='9' height='10' alt='' style='display:block'></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='b-top-left'><img src='".THEME."images/blank.gif' width='7' height='27' alt='' style='display:block'></td>
<td class='b-top-main'>$subject</td>
<td class='b-top-right'><img src='".THEME."images/blank.gif' width='9' height='27' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='b-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
<div style='margin-top:5px;'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='news-footer'>
".$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' class='news-footer'>\n";
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>
</div>
</td>
<td class='b-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='b-bottom-left'><img src='".THEME."images/blank.gif' width='7' height='10' alt='' style='display:block'></td>
<td class='b-bottom-main'><img src='".THEME."images/blank.gif' width='1' height='10' alt='' style='display:block'></td>
<td class='b-bottom-right'><img src='".THEME."images/blank.gif' width='9' height='10' alt='' style='display:block'></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='b-top-left'><img src='".THEME."images/blank.gif' width='7' height='27' alt='' style='display:block'></td>
<td class='b-top-main'>$title</td>
<td class='b-top-right'><img src='".THEME."images/blank.gif' width='9' height='27' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='b-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
<td class='b-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='b-bottom-left'><img src='".THEME."images/blank.gif' width='7' height='10' alt='' style='display:block'></td>
<td class='b-bottom-main'><img src='".THEME."images/blank.gif' width='1' height='10' alt='' style='display:block'></td>
<td class='b-bottom-right'><img src='".THEME."images/blank.gif' width='9' height='10' alt='' style='display:block'></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='b-top-left'><img src='".THEME."images/blank.gif' width='7' height='27' alt='' style='display:block'></td>
<td class='b-top-main'>$title</td>
<td class='b-top-right'><img src='".THEME."images/blank.gif' width='9' height='27' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='b-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
<td class='b-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='b-bottom-left'><img src='".THEME."images/blank.gif' width='7' height='10' alt='' style='display:block'></td>
<td class='b-bottom-main'><img src='".THEME."images/blank.gif' width='1' height='10' alt='' style='display:block'></td>
<td class='b-bottom-right'><img src='".THEME."images/blank.gif' width='9' height='10' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='b-top-left'><img src='".THEME."images/blank.gif' width='7' height='27' alt='' style='display:block'></td>
<td class='b-top-main'>$title</td>
<td class='b-top-main' align='right'><img onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'></td>
<td class='b-top-right'><img src='".THEME."images/blank.gif' width='9' height='27' alt='' style='display:block'></td>
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='b-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>
<td class='side-body'>
<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div>
</td>
<td class='b-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='b-bottom-left'><img src='".THEME."images/blank.gif' width='7' height='10' alt='' style='display:block'></td>
<td class='b-bottom-main'><img src='".THEME."images/blank.gif' width='1' height='10' alt='' style='display:block'></td>
<td class='b-bottom-right'><img src='".THEME."images/blank.gif' width='9' height='10' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='8'></td></tr>
</table>\n";
}
?>
|