Czemu rozjezdza mi sie centralna czesc strony?
Wyglada to tak:
poniżej mój plik theme.php:
<?
/*--------------------------------------------+
| PHP-Fusion 6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| 247 Portal Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: PHP-Fusion Themes - Shedrock © 2005 |
| web: http://phpfusion.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
// Theme settings
$body_text = "#000000";
$body_bg = "#FFFFFF";
$theme_width = "760";
$theme_width_l = "150";
$theme_width_r = "150";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table width='760' border='0' align='center' cellpadding='0' cellspacing='0'>";
echo "<tr><td><img src='".THEME."images/space.gif' width='760' height='1'></td></tr>";
echo "<table align='center' height='333' width='760' border='0' cellpadding='0' cellspacing='0' background='".THEME."images/header.png'>";
echo "<tr><td></td>";
echo "</tr></table></table>";
echo "";
//Search Script
echo "";
//End Search Script
echo "<table cellpadding='0' cellspacing='0' align='center'><tr><td background='".THEME."images/nav.png' height='54' width='760'>";
$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/divider.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." class='nav'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='nav'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td></tr></table></td></tr></table></td>";
echo "</tr></table>";
echo "<table width='760' border='0' align='center' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='11' height='25' background='".THEME."images/border_left.jpg'></td>";
echo "<td height='25' bgcolor='#ECEBD9' style='border-bottom: 1px solid #BCB778; border-top: 5px solid #FFFFFF;'></td>";
echo "<td height='25' align='right' bgcolor='#ECEBD9' style='border-bottom: 1px solid #BCB778; border-top: 5px solid #FFFFFF;'>";
// Clock Script
echo "<div class='date' id='Clock'></div>";
echo "<script type='text/javascript'>
<!--
var DayNam = new Array(
'Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var MnthNam = new Array(
'January','February','March','April','May','June','July','August','September','October','November','December');
//-->
</script>";
echo "<script type='text/javascript' src='".THEME."/clock.js'></script>";
echo "</div></td>";
// Clock Script Ends
echo "<td width='11' height='25' align='right' background='".THEME."images/border_right.jpg'> </td></tr></table>";
echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><tr>";
echo "<td valign='top' align='left' class='left' width='11' background='".THEME."images/border_left.jpg'> </td>";
echo "<td valign='top'>";
echo "<table width='100%' cellpadding='5' cellspacing='0' border='0' align='center'>";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</td></tr></table><td align='right' width='11' class='right' valign='top'> </td></tr></table>\n";
echo "<table width='760' align='center' border='0' cellpadding='0' cellspacing='0' background='".THEME."images/footer_main.jpg'>";
echo "<tr><td width='26'><img src='".THEME."images/footer_left.jpg' width='26' height='92'></td>";
echo "<td><table width='760' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='30' align='left'><a href='#top'>";
echo "<img src='".THEME."images/top.gif' title='Scroll up!' border='0' width='30' height='20'></a></td>";
echo "<td align='center'><div class='footer'><div align='center'>".stripslashes($settings['footer'])."</div>";
echo "<div align='center'><div class='footer'>";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'>PHP-Fusion</a> v".$settings['version']." © 2003-2005";
}
echo " | <b><font color='yellow'>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo " | 247 Portal - A Mambo Template Design - Redesigned by: <a target='_blank' href='http://phpfusion.org'>PHP-Fusion Themes</a></div><br></td>";
echo "<td width='30' align='right'><a href='#top'>";
echo "<img src='".THEME."images/top.gif'title='Scroll up!' border='0' width='30' height='20'></a></td></tr></table></td>";
echo "<td width='26'><img src='".THEME."images/footer_right.jpg' width='26' height='92'>";
echo "</td></tr></table></div></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #BCB778' cellspacing='1' width='100%' cellpadding='1'><tr>";
echo "<td class='tablehead' height='18'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
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></td></tr></table><br>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #BCB778' cellspacing='1' width='100%' cellpadding='1'><tr>";
echo "<td class='tablehead' height='18'>$subject</td>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
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></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table width='100%' cellpadding='1' cellspacing='1' style='border: 1px solid #BCB778'>";
echo "<tr><td bgcolor='#F2F1E6' height='18' class='tablehead'>$title</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='4' cellspacing='0' class='border2'><tr>";
echo "<td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table><br>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td><table width='100%' cellpadding='0' cellspacing='4'>";
echo "<tr><td class='paneltext2'>$title</td></tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td class='side-body'>\n";
}
function closeside() {
echo "</td></tr></table><hr>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td><table width='100%' cellpadding='0' cellspacing='4'>";
echo "<tr>";
echo "<td class='paneltext2'><img align='right' onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' src='".THEME."images/panel_$box_img.gif'>$title</td>";
echo "</tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td class='side-body'>\n";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</td></tr></table><hr>\n";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
PW od moderatora:
- Przeniesienie tematu - Pieka 17.06 - 10:28
Edytowane przez Pieka dnia 17.06.2008 10:27:57
|