Witam serdecznie!
Mam problem z wyświetlaniem strony w nieszczęsnej przeglądarce Internet Explorer .
Problem tyczy się mojej strony - http://webcash24.eu . W Firefoxie i Operze strona wyświetlana jest poprawnie natomiast w Internet Explorerze panele z newsami zjeżdżają pod ostatni panel z lewej strony. Przy plikach html strona wyświetlała się w porządku w każdej przeglądarce. Po wrzuceniu kodu do plików php pojawił się właśnie wspomniany problem. Jeśli ktoś byłby w stanie mi pomóc, proszę o odpowiedzi.
A oto kod z pliku theme.php :
<?php
function render_header($header_content) {
global $settings, $userdata, $db_prefix, $locale, $aidlink, $uidlink;
if (file_exists(INFUSIONS."info_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."info_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."info_panel/locale/English.php";
}
$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
if (dbrows($result) != 0) {
$result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
} else {
$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
$result = dbquery("INSERT INTO ".$db_prefix."online (online_user, online_ip, online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
$result = dbquery("SELECT * FROM ".$db_prefix."online");
$online = dbrows($result);
$zarejestrowanych = dbcount("(user_id)", "users", "user_status<='1'");
$result = dbquery(
"SELECT tf.*, tt.* FROM ".$db_prefix."forums tf
INNER JOIN ".$db_prefix."threads tt USING(forum_id)
ORDER BY thread_lastpost DESC LIMIT 0,10");
while ($data = dbarray($result)) {
$reply_count = $data['thread_replies']+1;
$rstart = ($reply_count > 20 ? "rowstart=".((ceil($reply_count / 20)-1)*20)."&" : "");
$data2 = dbarray(dbquery("SELECT post_id FROM ".$db_prefix."posts WHERE thread_id='".$data['thread_id']."' ORDER BY post_id DESC LIMIT 1"));
$ostatnie_posty .= "<a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."'>".trimlink(str_replace("'", "", $data['thread_subject']), 45)."</a><br/>";
}
$result=dbquery("SELECT * FROM ".$db_prefix."users ORDER BY user_lastvisit DESC LIMIT 0,10");
while($data=dbarray($result)){
$lastseen=time()-$data['user_lastvisit'];
$iW=sprintf("%2d",floor($lastseen/604800));
$iD=sprintf("%2d",floor($lastseen/(60*60*24)));
$iH=sprintf("%02d",floor((($lastseen%604800)%86400)/3600));
$iM=sprintf("%02d",floor(((($lastseen%604800)%86400)%3600)/60));
$iS=sprintf("%02d",floor((((($lastseen%604800)%86400)%3600)%60)));
if($lastseen<60){
$lastseen="<nobr><font color='green'><b>OnLine</b></font></NOBR>";
}elseif($lastseen<360){
$lastseen="<nobr><font color='red'><b>OffLine</b></font></NOBR>";
}elseif($iW>0){
if($iW==1) $Text="".$locale['XXX_007']."";
elseif($iW==2 || $iW==3 || $iW==4) $Text="".$locale['XXX_011']."";
else $Text="".$locale['XXX_008']."";
$lastseen="<nobr>$iW $Text</NOBR>";
}elseif($iD>0){
if($iD==1) $Text="".$locale['XXX_009']."";
else $Text="".$locale['XXX_010']."";
$lastseen="<NOBR>$iD $Text</NOBR>";
}else{
$lastseen="$iH:$iM:$iS";
}
$ostatnio_na_stronie .= "<table width='100%' cellpadding='0' cellspacing='0'><tr><td class='small'><a href='".BASEDIR."profile.php?lookup=$data[user_id]' style='color:#".$data['user_color']."'>".$data['user_prefix'].$data['user_name']."</a><td class='small' align='right'>$lastseen</td></tr></table>";
}
if (!iMEMBER) {
$panel_logowania = " <div class='panel_logowania'><form action='".BASEDIR."setuser.php' method='post'>
<input type=\"text\" name='user_name' class=\"nickbox\" value=\"Nick\" onblur=\"if(this.value=='')
this.value='Nick'\"
onfocus=\" if(this.value=='Nick')this.value=''\"/>
<input type=\"password\" name='user_pass' class=\"passbox\" value=\"Hasło\" onblur=\"if(this.value=='')
this.value='Hasło'\"
onfocus=\"if(this.value=='Hasło')this.value=''\"/>
<input type=\"checkbox\" name=\"remember_me\" class='rememberme' value=\"y\" />Zapamiętaj mnie
<input type=\"submit\" class=\"zaloguj\" name=\"login\" value=\"Zaloguj\" />
</form>
</div>
<div class='rejestracja_zapomniane'><a href='http://www.webcash24.eu/register.php'>Zarejestruj się</a> | <a href='http://www.webcash24.eu/lostpassword.php'>Zapomniałem hasła</a>
</div>
";
} else {
if (file_exists(INFUSIONS."user_info_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."user_info_panel/locale/English.php";
}
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($userdata['user_avatar']) {
$avatar = "<img src='".IMAGES."avatars/$userdata[user_avatar]' align='left'>";
} else {
$avatar = "<img src='".FORUM."images/brak.gif' align='left'>";
}
$panel_logowania .= "<div class='panellog'>$avatar";
if ($msg_count > "0") {
$panel_logowania .= "<b><a href='".BASEDIR."messages.php?folder=inbox' class='side'><center><img border='0' src='".BASEDIR."infusions/user_info_panel/images/newpm.gif'></a></b></center><br/>\n";
$panel_logowania .= "<center><b>".$userdata['user_name']."</b>, ".$locale['on129']."<br/>[<b>";
$panel_logowania .= "<a href='".BASEDIR."messages.php?folder=inbox' class='side'>";
$panel_logowania .= "".sprintf($locale['on132'], $msg_count).($msg_count == 1 ? $locale['on134'] : $locale['on135'])."</a></b>] ".$locale['on130']."";
// Get folder size restrictions (room for future option to restrict number of pm's for a specific user)
$pw_user = $userdata['user_id'];
$limit = dbarray(dbquery("SELECT * FROM ".$db_prefix."messages_options WHERE user_id='0'"));
$limit_inbox = $limit['pm_inbox'];
// Set display of top bar
$how = dbquery("SELECT count(message_to) FROM ".$db_prefix."messages WHERE message_to='$pw_user' AND message_folder='0'");
if ($limit_inbox != "0") { $inbox_display = " <span class='small'>".$locale['on133']." [<b>".dbresult($how, 0)." / ".$limit_inbox."</b>]</span>"; } else { $inbox_display = " (".$cnt_inbox.")"; }
$panel_logowania .= " <b><a href='".BASEDIR."messages.php?folder=inbox'>".$locale['on131']."</a></b><br/>".$locale['on136']." <b> ".$inbox_display."</b></center>";
}
$panel_logowania .= "<div class='wlasne_menu'>
<img src='".INFUSIONS."user_info_panel/images/icon_members.gif' alt=''> <b>".$locale['WWOLD_002']."</b><br/><img src='".THEME."images/bullet.gif' alt=''/>
<a href='".BASEDIR."edit_profile.php'>".$locale['080']."</a><br/><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php'>".$locale['081']."</a><br/><img src='".THEME."images/bullet.gif' alt=''> <a href='".FORUM."my_followed_threads.php'>".$locale['on137']."</a><br/><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php'>".$locale['082']."</a><br/>";
$panel_logowania .= "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."userphotoalbums.php".$uidlink."' class='side'>Administracja albumem</a><br/>";
if (iADMIN) {
$panel_logowania .= "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php$aidlink'>".$locale['083']."</a><br/>\n";
}
$panel_logowania .= "<a href=\"javascript:show_hide(ShowHide001)\">
<img src='".THEME."images/bullet.gif' border='0' alt=''> <span>".$locale['WWOLD_101']."</span></a>
<div id='ShowHide001'> <img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."submit.php?stype=n' class='side'>".$locale['WWOLD_102']."</a><br/> <img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."submit.php?stype=l' class='side'>".$locale['WWOLD_103']."</a><br/> <img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."submit.php?stype=a' class='side'>".$locale['WWOLD_104']."</a></div><script type='text/javascript'>show_hide(ShowHide001)</script></div><br/><br/>";
$panel_logowania .= "<div class='twoje_staty'><img src='".INFUSIONS."user_info_panel/images/icon_docs.gif' alt=''> <b>".$locale['WWOLD_004']."</b><br/>";
if (EPS) {
$panel_logowania .= "<img src='".THEME."images/bullet.gif' border='0' alt=''> ".$locale['560']." ".check_rang($userdata['user_id'])."<br/>
<img src='".THEME."images/bullet.gif' border='0' alt=''> ".$locale['561']." ".show_points($userdata['user_id'])."<br/>\n";
}
$c_count = dbcount("(id)", "cautions", "user_id=".$userdata['user_id']);
$panel_logowania .= "<img src='".THEME."images/bullet.gif' border='0' alt=''> ".$locale['on138']." ".$c_count."</div><br/>";
$panel_logowania .= "<div class='wyloguj'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'> <span>".$locale['084']." </span></a> <img src='".THEME."images/bulletb.gif' alt=''></div></div>\n";
}
echo "<div class='site' align='center'>
<!--GÓRA-->
<div class='topsite'>
<div id='p1'></div>
<div id='p2'></div>
<div id='p3'></div>
<div class='p4' style='width:996px'>
<div class='panelonline'>
<div class='online'> Zarejestrowanych: $zarejestrowanych Online: $online</div>
</div>
<div class=\"wyszukiwarka\">
<form action=\"".BASEDIR."search.php#2\" method=\"post\">
<input type=\"text\" class=\"polesz\" name='phrase' value=\"Szukaj\" onblur=\"if(this.value=='')this.value='Szukaj'\" onfocus=\"if(this.value=='Szukaj')this.value=''\"/>
<input type=\"submit\" class=\"szukaj\" value=\"Szukaj\" name='search'/>
</form>
</div>
</div>
<div class='home'><a href=\"http://webcash24.eu/index.php\"></a></div>
<div class='download'><a href=\"http://webcash24.eu/download.php\"></a></div>
<div class='articles'><a href=\"http://webcash24.eu/articles.php\"></a></div>
<div class='faq'><a href=\"http://webcash24.eu/faq.php\"></a></div>
<div class='forum'><a href=\"http://webcash24.eu/forum/index.php\"></a></div>
<div class='contact'><a href=\"http://webcash24.eu/contact.php\"></a></div>
<div class='weblinks'><a href=\"http://webcash24.eu/weblinks.php\"></a></div>
<div id='p6'>
<div class='lastpays'>
".stripslashes($settings['ostatnie_wplaty'])."
</div>
</div>
<div id='p7'>
<div class='lastposts'>
$ostatnie_posty
</div>
</div>
<div id='p8'>
<div class='onlineonsite'>
$ostatnio_na_stronie
</div>
</div>
<div id='logowanie'".(iMEMBER ? " " : "").">
$panel_logowania
</div>
</div>
<div class='colsite'>
<div class='toppanele'>
<div class='promopanel'>
<div class='o1'></div>
<h2 class='o2' style='width:317px'> PANEL PROMOCYJNY</h2>
<div class='o3'></div>
<div class='o4'></div>
<div class='p_tlo' style='height:230px'><div class='p_main' >
".stripslashes($settings['panel_promocyjny'])."
</div></div>
<div class='n6'></div>
<div class='n7' style='width:309px'></div>
<div class='n8'></div>
</div>
<div class='promopanel2'>
<div class='o1'></div>
<div class='o2' style='width:661px'> PANEL DODATKOWY</div>
<div class='o3'></div>
<div class='n4'></div>
<div class='n_tlo' style='height:230px'><div class='n_main' >
".stripslashes($settings['panel_dodatkowy'])."
<div class='k1'></div>
</div>
</div>
<div class='n6'></div>
<div class='n7' style='width:653px'></div>
<div class='n8'></div>
</div>
";
}
function render_footer($cos_tam) {
global $settings;
echo "
<div id='footer'>
Powered by PHP-Fusion || EP IV by eXtreme Crew || Theme by: <a href='http://webcash24.eu'><b>Kilbil</b></a>
<br/>
Zabrania się kopiowania i umieszczania materiałów pochodz±cych z serwisu WebCash24.eu na innych stronach
<br/>
$settings[counter] Unikalnych wizyt
<br/>
Copyright © 2008
<br/>
</div>
<!--STOPKA KONIEC-->
</div>
</div>
";
}
function openside($title) {
echo " <div class='dodpanel'>
<div class='r1'></div>
<div class='s1' style='width:218px;text-align:center;'>$title</div>
<div class='r2'></div>
<div class='tlo_paneli' ><div class='tlo_paneli_main'>";
}
function closeside() {
echo " </div></div>
<div class='r5'></div>
</div>";
}
function render_news($subject, $news, $info) {
global $locale;
$inne .= "<img src='".THEME."images/bullet.gif'> ";
$inne .= "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
$inne .= "".$locale['041'].showdate("longdate", $info['news_date'])."";
$inne .= "".($info['news_ext'] == "y" ? " <b>·</b> <a href='index.php?readmore=".$info['news_id']."'>".$locale['042']."</a> " : "")." <b>·</b> ";
$inne .= "<a href='index.php?readmore=".$info['news_id']."'>" .$info['news_comments'].$locale['043']."</a> <b>·</b> ";
$inne .= " ".$info['news_reads'].$locale['044']." <b>-</b> ";
$inne .= "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle'/></a>";
echo "<div class='welcomepanel'>
<div class='r1'></div>
<div class='s1' style='width:746px;'>$subject</div>
<div class='r2'></div>
<div class='b1' ><div class='b1_main'>
$news
<div class='k2'></div>$inne</div>
</div>
<div class='dol'></div>
</div>";
$inne = "";
}
function render_article($subject, $article, $inf) {
echo "<div class='infopanel'>
<div class='r1'></div>
<div class='s1' style='width:746px;'>$subject</div>
<div class='r2'></div>
<div class='b1'><div class='b1_main'>
$article</div></div>
<div class='dol'></div>
</div>";
}
function render_game($subject, $game, $info) {
global $locale;
include LOCALE.LOCALESET."games.php";
echo "<div class='infopanel'>
<div class='r1'></div>
<div class='s1' style='width:746px;'>$subject</div>
<div class='r2'></div>
<div class='b1'><div class='b1_main' align='center'>
<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' WIDTH='550' HEIGHT='400' id='grgame' name='grgame'>
<PARAM NAME=movie VALUE='$game'>
<param name='menu' value='false'>
<param name='quality' value='high'>
<param name='FlashVars' value='gcode=482CD697'>
<embed src='$game' flashvars='gcode=482CD697' menu=false quality=high WIDTH='550' HEIGHT='400' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' id='grgame' name='grgame'></embed>
</object>
<div align='center' style='font-size: 14px;'><a href='javascript:history.go(-1)' title='Wstecz'><img src='".IMAGES."up/powrot.gif' border='0' height='35' alt='Powrót'></a></div>
<div align='right' class='infobar'>\n";
if ($info['game_allow_comments']) echo $info['game_comments'].$locale['043']." \n";
echo "".$locale['407']." ".$info['game_reads']." ".$locale['406']."
</div>
</div>
</div><div class='dol'></div></div>
";
}
function render_movie($subject, $movie, $info) {
global $locale;
include LOCALE.LOCALESET."movies.php";
opentable($subject);
echo "<div align='center'><table cellpadding='0' cellspacing='0' style='border-collapse: collapse; background-color:#;' width='100%' class='border'>";
$r = substr($movie, -3, 3);
if ($r=="wmv") {
echo "<div align='center'>";
echo "<br/><br/><embed src='$movie' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br/><br/>";
}elseif ($r=="mpg") {
echo "<div align='center'>";
echo "<br/><br/><embed src='$movie' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br/><br/></div>";
}elseif ($r=="avi") {
echo "<div align='center'>";
echo "<br/><br/><embed src='$movie' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br/><br/></div>";
}elseif ($r=="swf") {
echo "<div align='center'>";
echo"<br/><br/><OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'codebase='http://download.macromedia.com/pub/shckwave/cabs/flash/swflash.cab#version=5,0,0,0' WIDTH='550' HEIGHT='400' id='grmovie' name='grmovie'>
<PARAM NAME=movie VALUE='$movie'>
<param name='menu' value='false'>
<param name='quality' value='high'>
<param name='FlashVars' value='gcode=482CD697'>
<embed src='$movie' flashvars='gcode=482CD697' menu=false quality=high WIDTH='550' HEIGHT='400' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' id='grmovie' name='grmovie'></embed></object><br/><br/></div>";
}elseif ($r=="mp3") {
echo "<div align='center'>";
echo "<br/><br/><embed src='$movie' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/ ' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0' height='70' width='300'></embed><br/><br/>";
}elseif ($r=="wma") {
echo "<div align='center'>";
echo "<br/><br/><embed src='$movie' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/ ' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0' height='70' width='300'></embed><br/><br/></div>";
}elseif ($r=="mov") {
echo "<div align='center'>";
echo "<br/><br/><embed type='video/quicktime' src='$movie' controller='true' target='myself' pluginspage='http://www.apple.com/quicktime/download/' loop='FALSE' autoplay='true' border='1' height='380' width='460'></embed><br/><br/></div>";
}elseif ($r=="txt") {
echo "<div align='left'><br/><br/>";
$buff = nl2br(file_get_contents($movie));
echo $buff."</div><br/><br/>";
}else{
echo "<div align='center'>";
echo "<br/><br/><embed src='$movie' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' height='372' width='416'><br/><br/>";
}
echo "</table></div>";
closetable();
}
function opentable($title) {
echo "<div class='infopanel'>
<div class='r1'></div>
<div class='s1' style='width:746px;'>$title</div>
<div class='r2'></div>
<div class='b1' ><div class='b1_main' >";
}
function closetable() {
echo "</div></div>
<div class='dol'></div>
</div>
";
}
function nawigacja_start() {
echo "
<div class='navpanel'>
<div class='topnawigacji'></div>
<div class='tlo_paneli' >
<div class='menulink'><div class='tlo_paneli_main'>";
}
function nawigacja_koniec() {
echo "</div>
</div></div>
<div class='r5' ></div>
</div>";
}
function tablebreak() {
echo "<div style='width:100%;margin:0; padding:0' ><div><div style='height: 3px;'></div></div></div>\n";
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
I oczywiście plik styli: http://webcash24....styles.css
Dzięki z góry za pomoc.
PW od moderatora:
- Odświeżenie Tematu - Pieka 12.02 - 21:57
Edytowane przez Pieka dnia 06.02.2009 21:05:44
|