Przedszkolak
Postów: 46 Ostrzeżeń: 1
Data rejestracji: 04.07.2007 06:41
|
Witam
Pytanie może banalne ale siedze juz nad tym pół dnia. Jak zlikwidowac odstepy miedzy panelami, newsami? Szukam tego w plikach thema (DxDark, kurde całe 2 pliki) i nie daje rady. Jak coś to kody:
styles.css
a {
color: #c0c0c0;
text-decoration: underline;
}
a:hover {
color: #FFFFFF;
text-decoration: underline;
}
a.side {
color: #c0c0c0;
height: 9px;
text-decoration: none;
}
a:hover.side {
color: #FFFFFF;
text-decoration: underline;
}
a.white {
color: #c0c0c0;
height: 9px;
text-decoration: none;
}
a:hover.white {
color: #FFFFFF;
text-decoration: underline;
}
body {
background-image: url(images/panel_back.gif);
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 11px;
}
form {
margin: 0px 0px 0px 0px;
}
hr {
border: 0px solid #666666;
}
hr.side-hr {
border: 0px solid #666666;
}
img {
border: 0px;
}
img.activegallery {
border: 1px solid #008000;
filter: none;
}
pre {
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 10px;
}
td {
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 10px;
}
.alt {
color: #FFFFFF;
}
.border {
background-color: #DDDDDD;
border: 2px #004A80 solid;
}
.border-bleft {
background-image: url(images/panel_bottom_left.gif);
height: 3px;
width: 1px;
}
.border-bmain {
background-image: url(images/panel_bottom_main.gif);
height: 3px;
}
.border-bright {
background-image: url(images/panel_bottom_right.gif);
height: 3px;
width: 1px;
}
.border-left {
background-image: url(images/panel_border_left.gif);
width: 3px;
}
.border-right {
background-image: url(images/panel_border_right.gif);
width: 3px;
}
.border-tleft {
background-image: url(images/panel_top_left.gif);
height: 21px;
width: 3px;
}
.border-tmain {
background-image: url(images/panel_top_main.gif);
height: 21px;
}
.border-tright {
background-image: url(images/panel_top_right.gif);
height: 21px;
width: 3px;
}
.button {
background-color: #424242;
border: 1px solid #666666;
color: #FFFFFF;
cursor: hand;
font-family: Tahoma,Arial,Verdana,Sans-Serif;
font-size: 10px;
margin-top: 2px;
}
.comment-name {
color: #50778B;
font-weight: bold;
}
.footer {
background-color: #BBBBBB;
border: #AAAAAA 1px solid;
color: #333333;
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 10px;
padding: 10px;
}
.footer2 {
color: #666666;
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 10px;
padding: 10px;
}
.forum-caption {
background-image: url(images/panel_top_main.gif);
color: #daa520;
font-size: 10px;
font-weight: bold;
padding: 2px 4px 4px 4px;
}
.gallery {
padding: 16px 0px 8px 0px;
}
.gallery img {
border: 1px solid #CCCCCC;
filter: #808080;
}
.gallery:hover img {
border: 1px solid #FF0000;
filter: none;
}
.header {
background-color: #000000;
color: #FFFFFF;
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 10px;
padding: 5px;
}
.header2 {
color: #c0c0c0;
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 10px;
padding: 0px 4px 4px 4px;
}
.header-bleft {
background-image: url(images/panel_top_left.gif);
height: 21px;
width: 3px;
}
.header-bmain {
background-image: url(images/panel_top_main.gif);
color: #FFFFFF;
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 11px;
font-weight: normal;
height: 21px;
padding: 0px 2px 2px 2px;
}
.header-bright {
background-image: url(images/panel_top_right.gif);
height: 21px;
width: 3px;
}
.infobar {
background-color: #;
color: #EEEEEE;
font-size: 9px;
height: 18px;
padding: 3px 4px 3px 4px;
}
.main-bg {
padding: 5px 0px 5px 0px;
}
.main-body {
background-color: #333333;
color: #FFFFFF;
font-size: 10px;
padding: 4px 4px 3px 4px;
}
.pan-left {
background-image: url(images/panel_top_left.gif);
height: 21px;
width: 3px;
}
.pan-main {
background-image: url(images/panel_top_main.gif);
color: #daa520;
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 10px;
font-weight: bold;
height: 21px;
padding: 0px 2px 0px 2px;
}
.pan-right {
background-image: url(images/panel_top_right.gif);
height: 21px;
width: 3px;
}
.poll {
border: 1px #BBBBBB solid;
height: 12px;
}
.quote {
background-color: #4E4E4E;
border: 1px solid #666666;
color: #FFFFFF;
margin: 0px 20px 0px 20px;
padding: 2px;
}
.shoutbox {
color: #FFFFFF;
}
.shoutboxdate {
color: #666666;
font-size: 9px;
text-align: right;
}
.shoutboxname {
color: #50778B;
font-weight: bold;
}
.side-body {
background-color: #333333;
color: #FFFFFF;
font-size: 9px;
padding: 4px 4px 6px 4px;
}
.side-border-left {
padding: 5px 5px 0px 0px;
}
.side-border-right {
padding: 5px 0px 0px 5px;
}
.side-caption {
background-color: #004A80;
color: #c0c0c0;
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 10px;
font-weight: bold;
padding: 0px 4px 3px 4px;
}
.side-label {
background-color: #000000;
padding: 2px;
}
.side-small {
color: #FFFFFF;
font-size: 9px;
font-weight: normal;
}
.small {
font-size: 10px;
font-weight: normal;
color: #daa520;
}
.small2 {
color: #FFFFFF;
font-size: 10px;
font-weight: normal;
}
.tbl {
font-size: 11px;
padding: 3px 4px 3px 4px;
}
.tbl1 {
background-color: #424242;
color: #FFFFFF;
font-size: 11px;
padding: 4px;
}
.tbl2 {
background-color: #333333;
color: #daa520;
font-size: 11px;
padding: 4px;
}
.tbl-border {
background-color: #666666;
}
.textbox {
background-color: #4E4E4E;
border: 1px #666666 solid;
color: #ffffff;
font-family: Verdana,Tahoma,Arial,Sans-Serif;
font-size: 10px;
}
.image_left {
text-align: left;
margin: 0px 15px 10px 0px;
background-position: left;
float: left;
}
.image_right {
text-align: right;
margin: 0px 0px 0px 0px;
border: 1px solid #999999;
background-position: left;
float: right;
i
theme.php
<?php
// theme settings
$body_text = "#FFFFFF";
$body_bg = "#f2f2f2";
$theme_width = "80%";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td class='border-tleft'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''></td>
<td colspan='2' class='border-tmain'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''></td>
<td class='border-tright'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''></td>
</tr>
<tr>
<td class='border-left'><img src='".THEME."images/blank.gif' width='3' height='1' alt=''></td>
<td colspan='2' class='header'>
<table width='80%' cellspacing='0' cellpadding='0'>
<tr>
<td height='80'>$header_content</td>
</tr>
</table>
</td>
<td class='border-right'><img src='".THEME."images/blank.gif' width='3' height='1' alt=''></td>
</tr>
<tr>
<td class='header-bleft'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''></td>
<td class='header-bmain'>\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 " <img src='".THEME."images/div.gif'>\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.">".$data['link_name']."</a>";
} else {
echo "<a class='white' href='".BASEDIR.$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>\n<td align='right' class='header-bmain'>".ucwords(showdate($settings['subheaderdate'], time()))."</td>
<td class='header-bright'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''></td>
</tr>
</table>\n";
echo "<center><table width='80%' cellspacing='0' cellpadding='0'>\n<tr></center>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr></table>";
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td class='border-tleft'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''></td>
<td class='border-tmain' align='right'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''><b>".$settings['counter']."</b> ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']);echo "</td>
<td class='border-tright'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''></td>
</tr>
<tr>
<td class='border-left'><img src='".THEME."images/blank.gif' width='3' height='1' alt=''></td>
<td>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>";
if ($license == false) {
echo "<td align='left' class='header'><a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' title='PHP-Fusion' style='vertical-align:middle;'></a></td>
<td align='center' class='header'>".stripslashes($settings['footer'])."<br>Powered by: PHP-Fusion v".$settings['version']." | Theme DX-Dark by: <a href='http://daemonx.byethost14.com' target='_blank'>Daemon-X</a></td>
<td align='right' class='header'><a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fthemes.gif' title='PHP-Fusion Themes' style='vertical-align:middle;'></a></td>";
}
echo "</tr>
</table>
</td>
<td class='border-right'><img src='".THEME."images/blank.gif' width='3' height='1' alt=''></td>
</tr>
<tr>
<td class='border-bleft'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
<td class='border-bmain'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
<td class='border-bright'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
</tr>
</table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='pan-left'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''></td>
<td width='100%' class='pan-main'>$subject</td>
<td class='pan-right'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-left'><img src='".THEME."images/blank.gif' width='3' height='1' alt=''></td>
<td class='main-body'>
<div style='width:100%;vertical-align:top;'>$news</div>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='infobar'> <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='infobar'>";
echo "".($info['news_ext'] == "y" ? "<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> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<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>";
echo " </td>
</tr>
</table>
</div>
</td>
<td class='border-right'><img src='".THEME."images/blank.gif' width='3' height='1' alt=''></td>
</tr>
<tr>
<td class='border-bleft'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
<td class='border-bmain'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
<td class='border-bright'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='pan-left'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''></td>
<td width='100%' class='pan-main'>$subject</td>
<td class='pan-right'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-left'><img src='".THEME."images/blank.gif' width='3' height='1' alt=''></td>
<td class='main-body'>
<div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='infobar'> <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['article_date'])."
</td>
<td align='right' class='infobar'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<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>";
echo " </td>
</tr>
</table>
</div>
</td>
<td class='border-right'><img src='".THEME."images/blank.gif' width='3' height='1' alt=''></td>
</tr>
<tr>
<td class='border-bleft'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
<td class='border-bmain'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
<td class='border-bright'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='pan-left'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''></td>
<td width='100%' class='pan-main'><center>$title</center></td>
<td class='pan-right'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-left'><img src='".THEME."images/blank.gif' width='3' height='1' alt=''></td>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
<td class='border-right'><img src='".THEME."images/blank.gif' width='3' height='1' alt=''></td>
</tr>
<tr>
<td class='border-bleft'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
<td class='border-bmain'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
<td class='border-bright'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='pan-left'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''></td>
<td width='100%' class='pan-main'><center>$title</center></td>
<td class='pan-right'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-left'><img src='".THEME."images/blank.gif' width='3' height='1' alt=''></td>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
<td class='border-right'><img src='".THEME."images/blank.gif' width='3' height='1' alt=''></td>
</tr>
<tr>
<td class='border-bleft'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
<td class='border-bmain'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
<td class='border-bright'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='pan-left'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''></td>
<td class='pan-main'>$title</td>
<td align='right' class='pan-main'><img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'></td>
<td class='pan-right'><img src='".THEME."images/blank.gif' width='3' height='21' alt=''></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-left'><img src='".THEME."images/blank.gif' width='3' height='1' alt=''></td>
<td class='side-body'>
<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>
<td class='border-right'><img src='".THEME."images/blank.gif' width='3' height='1' alt=''></td>
</tr>
<tr>
<td class='border-bleft'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
<td class='border-bmain'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
<td class='border-bright'><img src='".THEME."images/blank.gif' width='3' height='3' alt=''></td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='80%' cellspacing='0' cellpadding='0'>
<tr><td height='5'></td></tr>
</table>\n";
}
?>
|