Witam.
Mam taki problem. Kolega zrobił mi Theme do v6.01 który pod Firefox działa elegancko, a pod Explorerem tabelki są porozrzucane. Z PHP jestem ciemny więc proszę was o pomoc bo kolega nie może jego rozwiązać :( Poniżej zamieszczam zawartość theme.php:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
$body_text = "#c4c4c4";
$body_bg = "#000000";
$theme_width = "990";
$theme_width_l = "196";
$theme_width_r = "196";
function render_header($header_content) {
echo"<div id='PAGE'>
<div id='TOP'>
<div id='LOGO1' onclick=\"document.location.href = '".BASEDIR."index.php'\"></div>
<div id='LOGO2'></div>
</div>
<div id='MENU'>
<ul>
<li><a href='".BASEDIR."index.php' title='Strona Główna'>Strona Główna</a></li>
<li class='line'></li>
<li><a href='".BASEDIR."downloads.php' title='Download'>Download</a></li>
<li class='line'></li>
<li><a href='".BASEDIR."articles.php' title='Artykuły'>Artykuły</a></li>
<li class='line'></li>
<li><a href='".BASEDIR."contact.php' title='Kontakt'>Kontakt</a></li>
<li class='line'></li>
<li class='last'>
<form name='search_form' method='get' action='".BASEDIR."search.php?stype=a'>
<input type='text' name='stext' class='search_txt' value=''>
<input type='submit' name='search' class='search_btn' value=''>
</form>
</li>
</ul>
<div id='menu-line1'></div>
<div id='menu-line2'></div>
</div>
<div id='CONTENT'>";
}
function render_footer($license=false) {
echo"</div>
</div>
<div id='FOOTER'>
<div id='footer-l'></div>
<div id='footer-c'>
<span class='footer-txt1'>Copyrights by popak20 | </span>
<span class='footer-txt2'>Powered by PHP-Fusion copyright © 2002 - 2008 by Nick <a href='http://www.php-fusion.co.uk' title='Powered by PHP-Fusion copyright © 2002 - 2008 by Nick Jones.'>Powered by PHP-Fusion copyright © 2002 - 2008 by Nick Jones.</a></span>
<span class='footer-txt2'>Strona znajduję się na serwerze <a href='http://strona.net' title='strona.net'>www.strona.net </a></span>
<span class='footer-txt3'>".showcounter()."</span>
</div>
<div id='footer-r'></div>
</div>";
}
function render_news($subject, $news, $info) {
opentable($subject);
echo $news.(!isset($_GET['readmore']) && ($info['news_ext'] == "y" || $info['news_allow_comments']) ? " <a href='".BASEDIR."news.php?readmore=".$info['news_id']."' title='Czytaj dalej' class='more'>Czytaj dalej</a>" : "");
echo"</div>
</div>
<div class='page-panel-b'>
<span class='page-panel-b1'>Dodał <a href='".BASEDIR."profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> dnia ".showdate("longdate", $info['news_date'])."</span>
<span class='page-panel-b2'>".$info['news_comments']." komentarz".($info['news_comments'] <> '1' ? "y" : "")." : ".$info['news_reads']." czytań</span>
</div>
</div>";
tablebreak();
}
function render_article($subject, $article, $info) {
opentable($subject);
echo ($info['article_breaks'] == "y" ? nl2br($article) : $article);
echo"</div>
</div>
<div class='page-panel-b'>
<span class='page-panel-b1'>Dodał <a href='".BASEDIR."profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> dnia ".showdate("longdate", $info['article_date'])."</span>
<span class='page-panel-b2'>".$info['article_comments']." komentarz".($info['article_comments'] <> '1' ? "y" : "")." : ".$info['article_reads']." czytań</span>
</div>
</div>";
tablebreak();
}
function opentable($title) {
echo"<div class='page-panel'>
<div class='page-panel-t'>
<div class='page-panel-t1'></div>
<div class='page-panel-t2'><img src='".THEME."images/icon1.gif' class='top' alt=''> ".$title."</div>
<div class='page-panel-t3'></div>
</div>
<div class='page-panel-c'>
<div class='page-panel-c1'>";
}
function closetable() {
echo"</div>
</div>
</div>";
tablebreak();
}
function openside($title) {
opentable($title);
}
function closeside() {
closetable();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$title = $title." ".panelbutton($open,$boxname);
opentable($title);
echo"<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">";
}
function closesidex() {
echo"</div>";
closetable();
}
function tablebreak() {
echo"<div class='tablebreak'></div>";
}
?> Kliknij i zaczekaj na załadowanie kodu ...
Za pomoc bardzo dziękuję :)
Pozdrawiam.
PW od moderatora:
- Przeniesienie tematu - Pieka 09.12 - 22:28
- Brak Stopki! - Pieka 09.12 - 22:28
Edytowane przez Pieka dnia 20.12.2008 22:13:23
|