При ИЕ излиза както го правя в Dreamweaver, a с Мозила ги издърпва надолу.
index.php
know.php
news.php
Проблема идва от know.php и news.php които са инклуднати файлове, точно тях издърпва надолу.
index.php
Код:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="SHORTCUT ICON" href="http://www.akvashow.info/images/favicon.ico" >
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Акваристика за любители</title>
<style type="text/css">
</style></head>
<body>
<center>
<p><img src="images/banner_header.jpg" width="890" height="177" /></p>
<table width="100%" height="30">
<tr>
<th bgcolor="#99CC66" scope="col"><span class="style82">НАЧАЛО | АКВАРИУМИ | РИБИ | РАСТЕНИЯ | БОЛЕСТИ | ХРАНИ | СТАТИИ | ФОРУМ </span></th>
</tr>
</table>
<p> </p>
<table width="100%">
<tr>
<td width="17%" align="center" valign="top" scope="col"><p><br />
<?php
include 'know.php';
?>
<br />
</p>
</td>
<td align="center" valign="top" scope="col"><br />
<table width="90%" align="center">
<tr>
<th class="style81" scope="col"><img src="images/forum.png" width="240" height="41" /></th>
<th class="style81" scope="col"><img src="images/notices.png" width="240" height="41" /></th>
</tr>
<tr>
<td><div align="left">
<?php
// ############ Edit below ########################################
$topic_length = '45'; // length of topic title
$topic_limit = '10'; // limit of displayed topics
$special_forums = '0'; // specify forums ('0' = no; '1' = yes)
$forum_ids = ''; // IDs of forums; separate them with a comma
$config_path = '/forum/'; // path to config.php
$root_path = '/forum/'; // link path
// ############ Edit above ########################################
$path = dirname(__FILE__);
include_once($path.$config_path .'config.php');
mysql_connect($dbhost, $dbuser, $dbpasswd) OR die('Unable to select server.');
mysql_select_db($dbname) OR die('Unable to select database.');
// ############## output ##############
echo '<table width="100%" cellpadding="1" cellspacing="1" border="0" align="center">
<tr>
</tr>';
// ############## output ##############
$where_forums = ( $special_forums == '0' ) ? '' : 't.forum_id IN ('. $forum_ids .') AND ';
$sql = "SELECT t.*, f.forum_id, f.forum_name, u.username AS first_poster, u.user_id AS first_poster_id, u2.username AS last_poster, u2.user_id AS last_poster_id, p.post_username AS first_poster_name, p2.post_username AS last_poster_name, p2.post_time
FROM ". $table_prefix ."topics t, ". $table_prefix ."forums f, ". $table_prefix ."users u, ". $table_prefix ."posts p, ". $table_prefix ."posts p2, ". $table_prefix ."users u2
WHERE $where_forums t.topic_poster = u.user_id AND f.forum_id = t.forum_id AND p.post_id = t.topic_first_post_id AND p2.post_id = t.topic_last_post_id AND u2.user_id = p2.poster_id
ORDER BY t.topic_last_post_id DESC LIMIT $topic_limit";
$result = mysql_query($sql);
if( !$result )
{
die('SQL Statement Error: '. mysql_error());
exit();
}
$line = array();
while( $row = mysql_fetch_array($result) )
{
$line[] = $row;
}
for( $i = 0; $i < count($line); $i++ )
{
$forum_id = $line[$i]['forum_id'];
$topic_id = $line[$i]['topic_id'];
$topic_url = $root_path .'viewtopic.php?t='. $topic_id;
$topic_title = ( strlen($line[$i]['topic_title']) < $topic_length ) ? $line[$i]['topic_title'] : substr(stripslashes($line[$i]['topic_title']), 0, $topic_length) .'...';
$views = $line[$i]['topic_views'];
$replies = $line[$i]['topic_replies'];
$first_author = ( $line[$i]['first_poster_id'] != '-1' ) ? '<a href="'. $root_path .'profile.php?mode=viewprofile&u='. $line[$i]['first_poster_id'] .'">'. $line[$i]['first_poster'] .'</a>' : ( ($line[$i]['first_poster_name'] != '' ) ? $line[$i]['first_poster_name'] : 'guest' );
$last_author = ( $line[$i]['last_poster_id'] != '-1' ) ? $line[$i]['last_poster'] : ( ($line[$i]['last_poster_name'] != '' ) ? $line[$i]['last_poster_name'] : 'guest' );
$last_url = '<a href="'. $root_path .'viewtopic.php?p='. $line[$i]['topic_last_post_id'] .'#'. $line[$i]['topic_last_post_id'] .'">'. $last_author .'</a>';
// ############## output ##############
echo '<tr>
<td valign="top" nowrap="nowrap">'. $topic_type .'<a style="text-decoration:" href="'. $topic_url .'"><img src="images/arrow.gif" border="0"> '. $topic_title .'</a></td>
</tr>
<tr>
</tr>';
// ############## output ##############
}
echo '</table>';
mysql_close();
?>
<br />
</div>
<hr /></td>
<td><div align="left">
<?php
// ############ Edit below ########################################
$topic_length = '45'; // length of topic title
$topic_limit = '10'; // limit of displayed topics
$special_forums = '1'; // specify forums ('0' = no; '1' = yes)
$forum_ids = '16'; // IDs of forums; separate them with a comma
$config_path = '/forum/'; // path to config.php
$root_path = '/forum/'; // link path
// ############ Edit above ########################################
$path = dirname(__FILE__);
include_once($path.$config_path .'config.php');
mysql_connect($dbhost, $dbuser, $dbpasswd) OR die('Unable to select server.');
mysql_select_db($dbname) OR die('Unable to select database.');
// ############## output ##############
echo '<table width="100%" cellpadding="1" cellspacing="1" border="0" align="center">
<tr>
</tr>';
// ############## output ##############
$where_forums = ( $special_forums == '0' ) ? '' : 't.forum_id IN ('. $forum_ids .') AND ';
$sql = "SELECT t.*, f.forum_id, f.forum_name, u.username AS first_poster, u.user_id AS first_poster_id, u2.username AS last_poster, u2.user_id AS last_poster_id, p.post_username AS first_poster_name, p2.post_username AS last_poster_name, p2.post_time
FROM ". $table_prefix ."topics t, ". $table_prefix ."forums f, ". $table_prefix ."users u, ". $table_prefix ."posts p, ". $table_prefix ."posts p2, ". $table_prefix ."users u2
WHERE $where_forums t.topic_poster = u.user_id AND f.forum_id = t.forum_id AND p.post_id = t.topic_first_post_id AND p2.post_id = t.topic_last_post_id AND u2.user_id = p2.poster_id
ORDER BY t.topic_last_post_id DESC LIMIT $topic_limit";
$result = mysql_query($sql);
if( !$result )
{
die('SQL Statement Error: '. mysql_error());
exit();
}
$line = array();
while( $row = mysql_fetch_array($result) )
{
$line[] = $row;
}
for( $i = 0; $i < count($line); $i++ )
{
$forum_id = $line[$i]['forum_id'];
$topic_id = $line[$i]['topic_id'];
$topic_url = $root_path .'viewtopic.php?t='. $topic_id;
$topic_title = ( strlen($line[$i]['topic_title']) < $topic_length ) ? $line[$i]['topic_title'] : substr(stripslashes($line[$i]['topic_title']), 0, $topic_length) .'...';
$views = $line[$i]['topic_views'];
$replies = $line[$i]['topic_replies'];
$first_author = ( $line[$i]['first_poster_id'] != '-1' ) ? '<a href="'. $root_path .'profile.php?mode=viewprofile&u='. $line[$i]['first_poster_id'] .'">'. $line[$i]['first_poster'] .'</a>' : ( ($line[$i]['first_poster_name'] != '' ) ? $line[$i]['first_poster_name'] : 'guest' );
$last_author = ( $line[$i]['last_poster_id'] != '-1' ) ? $line[$i]['last_poster'] : ( ($line[$i]['last_poster_name'] != '' ) ? $line[$i]['last_poster_name'] : 'guest' );
$last_url = '<a href="'. $root_path .'viewtopic.php?p='. $line[$i]['topic_last_post_id'] .'#'. $line[$i]['topic_last_post_id'] .'">'. $last_author .'</a>';
// ############## output ##############
echo '<tr>
<td valign="top" nowrap="nowrap">'. $topic_type .'<a style="text-decoration:" href="'. $topic_url .'"><img src="images/arrow.gif" border="0"> '. $topic_title .'</a></td>
</tr>
<tr>
</tr>';
// ############## output ##############
}
echo '</table>';
mysql_close();
?>
<br />
</div>
<hr /></td>
</tr>
</table>
<br />
<table width="90%" align="center">
<tr>
<th class="style81" scope="col"><img src="images/anons.png" width="476" height="41" /></th>
</tr>
<tr>
<td height="307"><p align="left"><font color="#003300" size="3"><br />
<strong>Добре
дошли в Akvashow.info</strong></font></p>
<p align="justify">Здравейте на всички, ако искате да опознаете прекрасния свят на акваристиката, да изберете най-подходящия аквариум, декориран с екзотични растения и красиви рибки, да научите повече за начина на хранене и размножаване, за болестите по аквариумните рибки и как да ги предпазвате от тях, вие можете да проникните в тайните на водната флора и фауна с помощта на Акваристика за любители. </p>
<p align="left"><strong><font color="#003300" size="3">Заповядайте във Форума</font></strong></p>
<p align="justify">Освен статии на страницата ще намерите и полезен форум. В него може да получите отговор на въпросите си свързани с акваристиката. Също така може да потърсите решение на проблем, или да дадете съвет , както и да да помогнете с ценна информация. Този форум е създаден за начинаещи и за дългогодишни любители на аквариумни рибки и за всички, чиито интереси са свързани с акваристиката.<br />
</p>
<hr />
<p><br />
</p></td>
</tr>
</table> </td>
<td width="17%" align="center" valign="top" scope="col"><p>
<br />
<?php
include 'news.php';
?> </p> </td>
</tr>
</table>
<div id="footer"></div>
Akvashow.info Всички права запазени 2011
</center>
</body>
</html>
know.php
Код:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Untitled Document</title>
<style type="text/css">
</style>
</head>
<body>
<table width="180" bordercolorlight="#99CC66" bordercolordark="#99CC66" bgcolor="#FFFFFF">
<tr>
<td><img src="images/konw.png" width="176" height="41" /></td>
</tr>
<tr>
<td width="170" height="24" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="justify">
<table bordercolorlight="#99cc66" bordercolordark="#99cc66" width="170" bgcolor="#ffffff" align="center">
<tbody>
<tr>
<td bgcolor="#ffffff" height="16" valign="top" bordercolor="#ffffff" width="170"><p align="justify"><strong>Колко големи растения да се закупуват</strong><br />
При изскубването на растенията по правило корените се повреждат и важните за живота на растението фини коренови власинки се унищожават. И макар че растенията, които се купуват на пръв поглед са с добре развити здрави корени, трябва да знаем, че те ще изгният и постепенно ще израстнат нови. При пресаждането на големите растения със значителна листна площ новообразуваните корени не са...Виж повече.<br />
</p>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</table>
<br />
<br />
<p><img src="images/facebook.png" width="31" height="41" /><img src="images/reklama.png" width="31" height="41" /><img src="images/terms.png" width="31" height="41" /></p>
</body>
</html>
Код:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Untitled Document</title>
<style type="text/css">
</style>
</head>
<body>
<table width="180" bordercolorlight="#99CC66" bordercolordark="#99CC66" bgcolor="#FFFFFF">
<tr>
<td><img src="images/news.png" width="176" height="41" /></td>
</tr>
<tr>
<td width="170" height="33" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="justify">
<table bordercolorlight="#99cc66" bordercolordark="#99cc66" width="170" bgcolor="#ffffff" align="center">
<tbody>
<tr>
<td bgcolor="#ffffff" height="22" valign="top" bordercolor="#ffffff" width="170"><p align="justify"><strong>19.05.2011</strong><br />
Връща се старата функионалност на сайта и форума и отново Akvashow.info e с некомерсиална цел!
</p>
<p align="justify"><strong>09.04.2011</strong><br />
Условия на ползване на сайт Akvashow.info на следния адрес <a href="http://akvashow.info/copyright.php">link</a></p>
<p align="justify"><strong>02.06..2010</strong><br />
Автора на Akvashow.info търси подходящи хора желаещи да бъдат Модератори във форума на сайта. За контакт използвайте имейл адреса на сайта: <a href="mailto:team@akvashow.info">team@akvashow.info</a></p>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</table>
<br />
<br />
<table width="180" bordercolorlight="#99CC66" bordercolordark="#99CC66" bgcolor="#FFFFFF">
<tr>
<td><img src="images/contact.png" width="176" height="41" /></td>
</tr>
<tr>
<td width="170" height="33" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="justify">
<table bordercolorlight="#99cc66" bordercolordark="#99cc66" width="170" bgcolor="#ffffff" align="center">
<tbody>
<tr>
<td bgcolor="#ffffff" height="22" valign="top" bordercolor="#ffffff" width="170"><p align="justify">Сергей Джамбазов<br />
София, България<br />
тел. 0887 864 857<br />
team@akvashow.info<br />
sdjambazov@gmail.com </p>
</td>
</tr>
</tbody>
</table>
</div></td></tr>
</table>
</body>
</html>
Проблема идва от know.php и news.php които са инклуднати файлове, точно тях издърпва надолу.