Witam,
Robie skorke od podstaw nie w taelkach ale w divach i mam problem
Mianowicie, a zreszta dam zrodlo:
<?php
/*--------------------------------------------+
| PHP-Fusion v6 - 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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Azara 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) |
+--------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
/* Theme Settings */
$body_text = "#000000";
$body_bg = "#3A3A3A";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
echo "<center><div class='b'>";
echo "<div class='top'></div>";
echo "<div class='logo'><div class='logo1'></div><div class='logo2'></div><div class='logo3'></div></div>";
echo "<div class='underlogo'></div>";
echo "<div class='menu'><div class='menul'></div>";
echo "<div class='menusg'><a href='#'><img src='".THEME."images/menusg.gif'></a></div>";
echo "<div class='menuf'><a href='#'><img src='".THEME."images/menuf.gif'></a></div>";
echo "<div class='menua'><a href='#'><img src='".THEME."images/menua.gif'></a></div>";
echo "<div class='menud'><a href='#'><img src='".THEME."images/menud.gif'></a></div>";
echo "<div class='menuk'><a href='#'><img src='".THEME."images/menuk.gif'></a></div>";
echo "<div class='menuli'><a href='#'><img src='".THEME."images/menuli.gif'></a></div>";
echo "<div class='menug'><a href='#'><img src='".THEME."images/menug.gif'></a></div>";
echo "<div class='menufi'><a href='#'><img src='".THEME."images/menufi.gif'></a></div>";
echo "<div class='menuga'><a href='#'><img src='".THEME."images/menuga.gif'></a></div>";
echo "<div class='menucz'><a href='#'><img src='".THEME."images/menucz.gif'></a></div>";
echo "<div class='menur'></div></div>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "<div class='footer'></div>";
echo "</div></center>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table bgcolor='#ABA8A0' class='border2' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panel'><img align='right' border='0' src='".THEME."images/bevel.gif'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' 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'> ".newsposter($info)."</td>";
echo "<td height='24' align='right' class='news-footer'>";
echo openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table bgcolor='#ABA8A0' class='border2' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panel'><img align='right' border='0' src='".THEME."images/bevel.gif'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' 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'>".articleposter($info)."</td>";
echo "<td height='24' align='right' class='news-footer'>";
echo openform("A",$info['article_id']).articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<div class='block'>";
echo "";
echo "$title";
echo "";
echo "\n";
}
// Close table end
function closetable() {
echo "</div>\n";
}
function openside($title) {
echo "<div class='block'>";
echo "<div class='blockt'>$title</div>";
}
function closeside() {
echo "<div class='blockb'></div>";
echo "</div>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "a<table bgcolor='#ABA8A0' border='0' style='border: 1px solid #8A8573' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td width='100%' class='panel'>";
echo "<img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title";
echo "</td></tr>";
echo "<tr><td bgcolor='#BAB7AE' class='side-body' width='100%'>";
echo "<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
tylko to nie jest jeszcze dokonczone ale nie wiem jak sobie poradzic..
i CSS jeszcze:
.b {
width: 950px;
height: 100%;
}
.top {
width: 950px;
height: 29px;
background-image: url(images/top.gif);
display: block;
}
.logo {
width: 950px;
height: 197px;
display: block;
}
.logo1 {
width: 393px;
height: 197px;
background-image: url(images/logo1.gif);
display: inline;
float: left;
}
.logo2 {
width: 298px;
height: 197px;
background-image: url(images/logo2.gif);
display: inline;
float: left;
}
.logo3 {
width: 259px;
height: 197px;
background-image: url(images/logo3.gif);
display: inline;
float: left;
}
.underlogo {
width: 950px;
height: 37px;
background-image: url(images/underlogo.gif);
display: block;
}
.menu {
width: 950px;
height: 43px;
display: block;
margin-bottom: 10px;
}
.menul {
width: 80px;
height: 43px;
background-image: url(images/menul.gif);
display: inline;
float: left;
}
.menur {
width: 76px;
height: 43px;
background-image: url(images/menur.gif);
display: inline;
float: left;
}
.menusg {
width: 122px;
height: 43px;
display: inline;
float: left;
}
.menuf {
width: 74px;
height: 43px;
display: inline;
float: left;
}
.menua {
width: 84px;
height: 43px;
display: inline;
float: left;
}
.menud {
width: 95px;
height: 43px;
display: inline;
float: left;
}
.menuk {
width: 64px;
height: 43px;
display: inline;
float: left;
}
.menuli {
width: 60px;
height: 43px;
display: inline;
float: left;
}
.menug {
width: 99px;
height: 43px;
display: inline;
float: left;
}
.menufi {
width: 67px;
height: 43px;
display: inline;
float: left;
}
.menuga {
width: 74px;
height: 43px;
display: inline;
float: left;
}
.menucz {
width: 55px;
height: 43px;
display: inline;
float: left;
}
.footer {
width: 942px;
height: 46px;
background-image: url(images/footer.gif);
display: block;
}
.block {
width: 182px;
dipsplay: block;
background: #4D4C4C;
}
.blockt {
width: 182px;
height: 33px;
background-image: url(images/blocktop.gif);
}
.blockb {
width: 182px;
height: 22px;
background-image: url(images/blockbottom.gif);
}
|