Witam! Mam problem z edycją stylu, nie mogę zmniejszyć jego szerokości, chcę żeby było 800 pikseli:
Oto tcheme.php
<?
// theme settings
$body_text = "#000000";
$body_bg = "#d0e2ec";
$theme_width = "800";
$theme_width_l = "150";
$theme_width_r = "150";
function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata;
echo "<TABLE WIDTH='800'>
<TR>";
echo "
<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td >
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='logo'><P ALIGN='center'><BR><BR>";
$plik = "online.txt";
$czas = 1010; # CZAS ONLINE
$t = time();
$ip = $HTTP_SERVER_VARS['REMOTE_ADDR'];
$u = explode("n", str_replace("r", "", @join("", @file($plik))));
foreach($u as $i => $v) {$e = explode("|", $v);
if($e[0] == $ip || $e[1] < $t) unset($u[$i]);
}
$u[] = $ip . "|" . ($t + $czas);
$fp = fopen($plik, "w");
flock($fp, 2);
fputs($fp, join("n", $u));
flock($fp, 3);
fclose($fp);
echo '<IMG SRC="http://www.tvsat24.pl/grafika/obrazki/7.gif"> <B>Users on-line:</B> '.count($u);
$plik2 = "rekord.txt";
$aktualny = file($plik2);
if($aktualny[0]<count($u)){
$fp = fopen($plik2, "w");
flock($fp, 2);
fwrite($fp, count($u));
flock($fp, 3);
fclose($fp);
$max=count($u);
}else{
$max=$aktualny[0];
}
echo ' / <IMG SRC="http://www.tvsat24.pl/grafika/obrazki/8.gif"> <B>Rekord:</B> '.$max;
echo " <BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR></P></td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "
<CENTER><table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='white-header'><CENTER>\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 ? " " : "")."</CENTER></td>
<td align='right' class='white-header' style='padding-right:6px;'>Witamy w serwisie TvSat24.pl - Dzisiaj jest: ".ucwords(showdate("%A, %B %d, %Y", time()))."</td>
</tr>
</table></CENTER>\n";
echo "<table width='500' cellspacing='0' cellpadding='0'>
<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>
</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 "Serwis oparty na: PHP-Fusion | © Powered by <B>TvSat24.pl</B> | Theme created by <B>Tomek58</B>";
}
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
if(isset($_POST['switch_color']))
redirect(FUSION_REQUEST, "header");
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>TEST!
<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'>
<tr>
<td class='news-footer'>".$locale['040']."<a class='news' 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 class='news' href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n";
if ($info['news_allow_comments']) echo "<a class='news' href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·\n";
echo $info['news_reads'].$locale['044']." · <a class='news' href='print.php?type=N&item_id=".$info['news_id']."'>".$locale['045']."</a>";
if (checkrights("N"))
echo" · <form style='display:inline' name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php?news_id=".$info['news_id']."'><input type='hidden' name='edit' value='edit'><a class='news' href='javascript:document.editnews".$info['news_id'].".submit();'>".$locale['048']."</a></form>
";
echo"
</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'>
<tr>
<td class='news-footer'>
".$locale['040']."<a class='news' 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 class='news' href='print.php?type=A&item_id=".$info['article_id']."'>".$locale['045']."</a>";
echo"</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='455' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>Test $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>\n";
}
function openside($title) {
echo "<table width='100%' 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>\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='scapmain'>$title</td>
<td class='scapmain' 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>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td height='8'></td>
</tr>
</table>\n";
}
echo "</TR></TABLE>";
?>
Pozdrawiam i czekam na pomoc!
Najpierw stopka, później pomoc - Milka
Edytowane przez Milka dnia 11.11.2007 15:09:16
|