Efektowne menu w DHTML jak na Supporcie
|
Goferek |
Dodany dnia 12.03.2008 14:10:53
|
Przedszkolak
Postów: 43
Data rejestracji: 25.07.2005 17:57
|
Czy zastosowanie tej modyfikacji - powoduje brak rozdzielenia wyświetlania danego elementu menu na belce górnej lub menu pionowym ??
Kto CHCE - szuka sposobów;
Kto NIE CHCE - szuka powodów.
|
|
|
|
Wścibski Gość |
Dodany dnia 22.11.2024 20:47:15
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
piwowar |
Dodany dnia 19.03.2008 01:45:02
|
Przedszkolak
Postów: 33
Data rejestracji: 03.09.2006 13:52
|
Witam! Mam problem co do tego menu i wyświetlania w nim kolorowych linków. Na suporcie wszystko jest git a u mnie nie. U mnie sprawa wygląda tak:
Dodam że korzystam z Menu pionowego by Wooya wersja 3.2, w poprzedniej tak samo miałem. Gdyby co adres mojej strony to: virtual-money.bo.pl |
|
|
|
bartek124 |
Dodany dnia 19.03.2008 14:44:53
|
Weteran
Postów: 3264 Pomógł: 236
v7.02.06 Data rejestracji: 26.05.2007 12:25
|
function render_tiny_menu() {
global $theme_width, $locale;
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links_new WHERE link_url='---' AND link_name!='---' ORDER BY link_order");
$tabsrows = dbrows($result);
$i=0;
if ($tabsrows>0) echo "<div class='tabs'>\n<ul>\n";
while ($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
echo "<li id='menutab_".$data['link_id']."'".($i==0?" class='current'":"")."><span><a href=\"javascript:wooyaTabs.displayTab('menutab_".$data['link_id']."','menupanel_".$data['link_id']."');\" onmousedown=\"return false;\">".($data['link_img']!=''?"<img src='".INFUSIONS."new_navigation_panel/images/".$data['link_img']."' alt='' border='0' style='width:14px;height:14px;vertical-align:middle'> ":"").parseubb($data['link_name'])."</a></span></li>\n";
}
$i++;
}
if ($tabsrows>0) echo "</ul>\n</div>\n";
if ($tabsrows>0) {
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links_new WHERE link_name!='---' ORDER BY link_order");
} else {
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links_new WHERE link_position>='2' ORDER BY link_order");
}
$rows = dbrows($result);
$i=0; $j=0; $sep = "<img src='".THEME."images/bullet.gif' alt='0' border='0'>";
echo "<div class='panel_wrapper'>\n";
while ($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']=='---' && $i!=0) { echo "</div>\n"; $j=0; }
if ($data['link_url']=='---') echo "<div id='menupanel_".$data['link_id']."' class='".($i==0?"panel current":"panel")."'>";
if ($data['link_url']!="---") {
if ($i != 0 && $j!=0) { echo " ".$sep."\n"; } else { echo "\n"; }
$link_target = $data['link_window'] == "1" ? " target='_blank'" : "";
$link_class = $class ? " class='$class'" : "";
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target.$link_class.">".parseubb($data['link_name'])."</a>\n";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target.$link_class.">".parseubb($data['link_name'])."</a>\n";
}
$i++; $j++;
}
}
}
if ($tabsrows>0) echo "</div>";
echo "</div>";
}
Zamień swoją funkcję render_tiny_menu() na powyższą. Wystarczyło dodać parseubb ;).
Nie pomagam na komunikatorach oraz PW!
|
|
|
|
piwowar |
Dodany dnia 19.03.2008 17:10:52
|
Przedszkolak
Postów: 33
Data rejestracji: 03.09.2006 13:52
|
Wielki dzięki! Właśnie o to mi chodziło
Edytowane przez ICEK dnia 19.03.2008 18:16:35
|
|
|
|
Dagobah |
Dodany dnia 21.03.2008 18:21:00
|
Początkujący
Postów: 160
Data rejestracji: 15.08.2006 10:46
|
Ja mam w sumie uwagę, a za razem prośbę
Gdy stosuje menu by Wooy'a pod Mozillą wszystko jest idealnie, ładnie i składnie i wygląda dobrze. Natomiast stosują IE pojawia się pewien błąd, który psuje trochę estetykę tego menu. Na zdjęciu poniżej screen tego, o co mi chodzi.
Pod IE nie widać linii rozdzielającej np. Zakładkę Komunikacja, a tego co jest pod nią (czyli Forum ,Współpraca, Partnerzy, Zasłużeni, Ekipa, Kontakt). Pod FF/Mozilla działa to bez zarzutu....
Czy da się to jakoś zrobić, żeby także pod IE się poprawnie wyświetlało?
|
|
|
|
Pieka |
Dodany dnia 21.03.2008 20:05:11
|
Postów: 19882 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Wybacz, ze odpowiem pytaniem na pytanie..
Gdyby to bylo takie proste, to myslisz, ze Supportowe menu nadal byloby w stanie zaprezentowanym na screenie?
Jestem jaki jestem
|
|
|
|
jasq |
Dodany dnia 21.06.2008 15:16:46
|
Przedszkolak
Postów: 28
Data rejestracji: 27.03.2008 22:48
|
Próbuje to na skórce Prime z oryginalnego php-Fusiona. Co jest źle?
function render_tiny_menu() {
global $theme_width, $locale;
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links_new WHERE link_url='---' AND link_name!='---' ORDER BY link_order");
$tabsrows = dbrows($result);
$i=0;
if ($tabsrows>0) echo "<div class='tabs'>\n<ul>\n";
while ($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
echo "<li id='menutab_".$data['link_id']."'".($i==0?" class='current'":"")."><span><a href=\"javascript:wooyaTabs.displayTab('menutab_".$data['link_id']."','menupanel_".$data['link_id']."');\" onmousedown=\"return false;\">".($data['link_img']!=''?"<img src='".INFUSIONS."new_navigation_panel/images/".$data['link_img']."' alt='' border='0' style='width:14px;height:14px;vertical-align:middle'> ":"").$data['link_name']."</a></span></li>\n";
}
$i++;
}
if ($tabsrows>0) echo "</ul>\n</div>\n";
if ($tabsrows>0) {
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links_new WHERE link_name!='---' ORDER BY link_order");
} else {
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links_new WHERE link_position>='2' ORDER BY link_order");
}
$rows = dbrows($result);
$i=0; $j=0; $sep = "<img src='".THEME."images/bullet.gif' alt='0' border='0'>";
echo "<div class='panel_wrapper'>\n";
while ($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']=='---' && $i!=0) { echo "</div>\n"; $j=0; }
if ($data['link_url']=='---') echo "<div id='menupanel_".$data['link_id']."' class='".($i==0?"panel current":"panel")."'>";
if ($data['link_url']!="---") {
if ($i != 0 && $j!=0) { echo " ".$sep."\n"; } else { echo "\n"; }
$link_target = $data['link_window'] == "1" ? " target='_blank'" : "";
$link_class = $class ? " class='$class'" : "";
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target.$link_class.">".$data['link_name']."</a>\n";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target.$link_class.">".$data['link_name']."</a>\n";
}
$i++; $j++;
}
}
}
if ($tabsrows>0) echo "</div>";
echo "</div>";
}
function render_header($header_content) {
global $theme_width;
?>
<script type="text/javascript">
/**
* $RCSfile: mctabs.js,v $
* $Revision: 1.2 $
* $Date: 2006/02/06 20:11:09 $
*
* Moxiecode DHTML Tabs script.
*
* @author Moxiecode
* @copyright Copyright Š 2004-2006, Moxiecode Systems AB, All rights reserved.
* @modified by Wooya
*/
function WooyaTabs() {
this.settings = new Array();
};
WooyaTabs.prototype.init = function(settings) {
this.settings = settings;
};
WooyaTabs.prototype.getParam = function(name, default_value) {
var value = null;
value = (typeof(this.settings[name]) == "undefined") ? default_value : this.settings[name];
// Fix bool values
if (value == "true" || value == "false")
return (value == "true");
return value;
};
WooyaTabs.prototype.displayTab = function(tab_id, panel_id) {
var panelElm = document.getElementById(panel_id);
var panelContainerElm = panelElm ? panelElm.parentNode : null;
var tabElm = document.getElementById(tab_id);
var tabContainerElm = tabElm ? tabElm.parentNode : null;
var selectionClass = this.getParam('selection_class', 'current');
if (tabElm && tabContainerElm) {
var nodes = tabContainerElm.childNodes;
// Hide all other tabs
for (var i=0; i<nodes.length; i++) {
if (nodes[i].nodeName == "LI")
nodes[i].className = '';
}
// Show selected tab
tabElm.className = 'current';
}
if (panelElm && panelContainerElm) {
var nodes = panelContainerElm.childNodes;
// Hide all other panels
for (var i=0; i<nodes.length; i++) {
if (nodes[i].nodeName == "DIV")
nodes[i].className = 'panel';
}
// Show selected panel
panelElm.className = 'current';
}
};
WooyaTabs.prototype.getAnchor = function() {
var pos, url = document.location.href;
if ((pos = url.lastIndexOf('#')) != -1)
return url.substring(pos + 1);
return "";
};
// Global instance
var wooyaTabs = new WooyaTabs();
</script>
<?
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo show_tiny_menu();"<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='white-header'>".showsublinks("·","white")."</td>
<td align='right' class='white-header'>".showsubdate()."</td></td>
</tr>
</table>\n";
tablebreak();
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
|
|
|
|
EminemInfo |
Dodany dnia 29.08.2008 17:17:49
|
Przedszkolak
Postów: 29 Pomógł: 1 Ostrzeżeń: 3
Data rejestracji: 28.08.2008 14:55
Złamana licencja
|
Witam. Próbowałem ten mod zrobić już trzy razy i nie mogę sobie z nim poradzić. Za każdym razem mi nie wychodzi. Robię to na skórce Phoenix.
To mój kod theme.php przed modyfikacją:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "white";
$body_bg = "black";
$theme_width = "900";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='white-header'><b>".showsublinks("·","white")."</b></td>
<td align='right' class='white-header'>".showsubdate()."</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer'>".stripslashes($settings['footer'])."<br>\n";
if (!$license) { echo showcopyright("white")."<br><br>\n"; } echo showcounter()."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info,"").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info,"<br>").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
A to po:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "white";
$body_bg = "black";
$theme_width = "900";
$theme_width_l = "175";
$theme_width_r = "175";
function render_tiny_menu() {
global $theme_width, $locale;
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_url='---' AND link_name!='---' ORDER BY link_order");
$tabsrows = dbrows($result);
$i=0;
if ($tabsrows>0) echo "<div class='tabs'>\n<ul>\n";
while ($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
echo "<li id='menutab_".$data['link_id']."'".($i==0?" class='current'":"")."><span><a href=\"javascript:wooyaTabs.displayTab('menutab_".$data['link_id']."','menupanel_".$data['link_id']."');\" onmousedown=\"return false;\">".$data['link_name']."</a></span></li>\n";
}
$i++;
}
if ($tabsrows>0) echo "</ul>\n</div>\n";
if ($tabsrows>0) {
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_name!='---' ORDER BY link_order");
} else {
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
}
$rows = dbrows($result);
$i=0; $j=0; $sep = "<img src='".THEME."images/bullet.gif' alt='0' border='0'>";
echo "<div class='panel_wrapper'>\n";
while ($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']=='---' && $i!=0) { echo "</div>\n"; $j=0; }
if ($data['link_url']=='---') echo "<div id='menupanel_".$data['link_id']."' class='".($i==0?"panel current":"panel")."'>";
if ($data['link_url']!="---") {
if ($i != 0 && $j!=0) { echo " ".$sep."\n"; } else { echo "\n"; }
$link_target = $data['link_window'] == "1" ? " target='_blank'" : "";
$link_class = $class ? " class='$class'" : "";
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target.$link_class.">".$data['link_name']."</a>\n";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target.$link_class.">".$data['link_name']."</a>\n";
}
$i++; $j++;
}
}
}
if ($tabsrows>0) echo "</div>";
echo "</div>";
}
function render_header($header_content) {
global $theme_width,$settings;
?>
<script type="text/javascript">
/**
* $RCSfile: mctabs.js,v $
* $Revision: 1.2 $
* $Date: 2006/02/06 20:11:09 $
*
* Moxiecode DHTML Tabs script.
*
* @author Moxiecode
* @copyright Copyright Š 2004-2006, Moxiecode Systems AB, All rights reserved.
* @modified by Wooya
*/
function WooyaTabs() {
this.settings = new Array();
};
WooyaTabs.prototype.init = function(settings) {
this.settings = settings;
};
WooyaTabs.prototype.getParam = function(name, default_value) {
var value = null;
value = (typeof(this.settings[name]) == "undefined") ? default_value : this.settings[name];
// Fix bool values
if (value == "true" || value == "false")
return (value == "true");
return value;
};
WooyaTabs.prototype.displayTab = function(tab_id, panel_id) {
var panelElm = document.getElementById(panel_id);
var panelContainerElm = panelElm ? panelElm.parentNode : null;
var tabElm = document.getElementById(tab_id);
var tabContainerElm = tabElm ? tabElm.parentNode : null;
var selectionClass = this.getParam('selection_class', 'current');
if (tabElm && tabContainerElm) {
var nodes = tabContainerElm.childNodes;
// Hide all other tabs
for (var i=0; i<nodes.length; i++) {
if (nodes[i].nodeName == "LI")
nodes[i].className = '';
}
// Show selected tab
tabElm.className = 'current';
}
if (panelElm && panelContainerElm) {
var nodes = panelContainerElm.childNodes;
// Hide all other panels
for (var i=0; i<nodes.length; i++) {
if (nodes[i].nodeName == "DIV")
nodes[i].className = 'panel';
}
// Show selected panel
panelElm.className = 'current';
}
};
WooyaTabs.prototype.getAnchor = function() {
var pos, url = document.location.href;
if ((pos = url.lastIndexOf('#')) != -1)
return url.substring(pos + 1);
return "";
};
// Global instance
var wooyaTabs = new WooyaTabs();
</script>
<?
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='white-header'><b>"; render_tiny_menu(); echo"</b></td>
<td align='right' class='white-header'>".showsubdate()."</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer'>".stripslashes($settings['footer'])."<br>\n";
if (!$license) { echo showcopyright("white")."<br><br>\n"; } echo showcounter()."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info,"").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info,"<br>").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
Oraz plik styles.css przed modyfikacją:
a {
color : #3399FF;
text-decoration : none;
}
a:hover {
color : #3399FF;
text-decoration : underline;
}
a.side {
color : #3399FF;
text-decoration : none;
}
a:hover.side {
color : #3399ff;
text-decoration : underline;
}
a.white {
color : #3399ff;
text-decoration : none;
}
a:hover.white {
color : #3399ff;
text-decoration : underline;
}
body {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
margin : 0px;
background-color : black;
background-image: url(images/tlo.png);
}
form {
margin : 0px;
}
hr {
height : 1px;
border : 1px solid #333333;
}
hr.side-hr {
height : 1px;
border : 1px solid #333333;
}
td {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
pre {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
.alt {
color : #555;
}
.white-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #3399FF;
background-color : black;
border-bottom : 1px solid #333333;
padding : 5px;
}
.full-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #3399FF;
background-color : black;
border-top : 1px solid #333333;
border-bottom : 1px solid #333333;
border-left : 1px solid #333333;
border-right : 1px solid #333333;
padding : 5px;
}
.footer {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #3399cc;
background-color : black;
background-image: url(images/stopka.jpg);
border-bottom : 1px solid #333333;
border-left : 1px solid #333333;
border-right : 1px solid #333333;
padding : 5px;
}
.button {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #3399FF;
background-color : black;
height : 20px;
border : 1px solid #6699FF;
margin-top : 2px;
}
.textbox {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : white;
background-color : black;
border : 1px solid #333333;
}
.main-body {
font-size : 11px;
color : white;
background-color : black;
padding : 4px 4px 5px 4px;
}
.side-body {
font-size : 10px;
color : white;
background-color : black;
background-image: url(images/paneltlo.jpeg);
border-left : 1px solid #333333;
padding : 4px;
}
.main-bg {
color : white;
background-color : black;
border-right : 1px solid #333333;
border-left : 1px solid #333333;
padding : 5px;
}
.border {
border : 1px solid #333333;
}
.side-border-left {
color : #333333;
background-color : black;
}
.side-border-right {
color : #333333;
background-color : black;
}
.news-footer {
font-size : 10px;
color : white;
background-color : black;
border-top : 1px dashed #333333;
padding : 3px 4px 4px 4px;
}
.capmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
font-weight : bold;
color : #3399cc;
background-color : black;
background-image: url(images/panel.jpg);
border-bottom : 1px solid #333333;
padding : 2px 4px 4px 4px;
}
.scapmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
font-weight : bold;
color : #3399cc;
background-color : black;
background-image: url(images/panelbok.jpg);
border-left : 1px solid #333333;
border-right : 1px solid #333333;
border-bottom : 1px solid #333333;
padding : 4px;
}
.tbl-border {
color : #333333;
background-color : black;
}
.tbl {
font-size : 11px;
color : white;
background-color : black;
border-bottom : 1px solid #333333;
border-top : 1px solid #333333;
border-left : 1px solid #333333;
border-right : 1px solid #333333;
padding : 4px;
}
.tbl1 {
font-size : 11px;
color : white;
background-color : black;
border-bottom : 1px solid #333333;
border-top : 1px solid #333333;
border-left : 1px solid #333333;
border-right : 1px solid #333333;
padding : 4px;
}
.tbl2 {
font-size : 11px;
color : white;
background-color : black;
border-bottom : 1px solid #333333;
border-top : 1px solid #333333;
border-left : 1px solid #333333;
border-right : 1px solid #333333;
padding : 4px;
}
.forum-caption {
font-size : 11px;
font-weight : bold;
color : white;
background-color : black;
border-bottom : 1px solid #333333;
border-top : 1px solid #333333;
border-left : 1px solid #333333;
border-right : 1px solid #333333;
padding : 2px 4px 4px 4px;
}
.code {
font-size : 11px;
color : #000;
background-color : #eee;
padding : 4px;
margin : 0 20px;
border : 1px solid #bbb;
}
.poll {
height : 12px;
border : 1px solid #333333;
}
.comment-name {
font-weight : bold;
color : #3399FF;
}
.shoutboxname {
font-weight : bold;
color : #55aaff;
background-color : black;
}
.shoutbox {
color : white;
background-color : black;
}
.shoutboxdate {
font-size : 9px;
color : white;
background-color : black;
}
.small {
font-size : 10px;
font-weight : normal;
}
.small2 {
font-size : 10px;
font-weight : normal;
color : white;
}
.side-small {
font-size : 10px;
font-weight : normal;
color : #aaa;
background-color : #444;
}
.side-label {
color : #aaa;
background-color : #333;
padding : 2px 2px 3px 2px;
}
I po modyfikacji:
/* This file contains the CSS data for all popups in TinyMCE */
/* Tabs classes */
.tabs {
float: left;
width: 100%;
line-height: normal;
background-image: url("images/tabs/tabs_bg.gif");
}
.tabs ul {
margin: 0;
padding: 0 0 0;
list-style: none;
}
.tabs li {
float: left;
background: url("images/tabs/tab_bg.gif") no-repeat left top;
margin: 0;
margin-left: 0;
margin-right: 2px;
padding: 0 0 0 10px;
line-height: 18px;
}
.tabs li.current {
background: url("images/tabs/tab_sel_bg.gif") no-repeat left top;
margin-right: 2px;
}
.tabs span {
float: left;
display: block;
background: url("images/tabs/tab_end.gif") no-repeat right top;
padding: 0px 10px 0 0;
}
.tabs .current span {
background: url("images/tabs/tab_sel_end.gif") no-repeat right top;
}
.tabs a {
text-decoration: none;
font-family: Verdana, Arial;
font-size: 11px;
}
.tabs a:link, .tabs a:visited, .tabs a:hover {
color: black;
}
.tabs a:hover {
}
.tabs .current {
}
.tabs .current a, .tabs .current a:link, .tabs .current a:visited {
}
.panel_wrapper div.panel {
display: none;
}
.panel_wrapper div.current {
display: block;
width: 100%;
overflow: visible; /* Should be auto but that breaks Safari */
}
.panel_wrapper {
border: 1px solid #919B9C;
border-top: 0px;
padding: 10px;
padding-top: 5px;
clear: both;
background-color: white;
}
fieldset {
border: 1px solid #919B9C;
font-family: Verdana, Arial;
font-size: 11px;
padding: 0;
margin: 0;
padding: 4px;
}
legend {
color: #2B6FB6;
font-weight: bold;
}
.properties {
width: 100%;
}
.properties .column1 {
}
.properties .column2 {
text-align: left;
}
#plugintable thead {
font-weight: bold;
background-color: #DDDDDD;
}
#plugintable, #about #plugintable td {
border: 1px solid #919B9C;
}
#plugintable {
width: 99%;
margin-top: 10px;
}
#pluginscontainer {
height: 290px;
overflow: auto;
}
/* MSIE Specific styles */
* html .panel_wrapper {
width: 100%;
}
.column {
float: left;
}
h1, h2, h3, h4 {
color: #2B6FB6;
margin: 0;
padding: 0;
padding-top: 5px;
}
h3 {
font-size: 12px;
}
#link .panel_wrapper, #link div.current {
height: 125px;
}
#image .panel_wrapper, #image div.current {
}
/* Disables the advanced tab in the table plugin. */
/*
#table #advanced_tab {
display: none;
}
*/
/* Disables the border input field and label in the table plugin. */
/*
#table #border, #table #borderlabel {
display: none;
}
*/
a {
color : #3399FF;
text-decoration : none;
}
a:hover {
color : #3399FF;
text-decoration : underline;
}
a.side {
color : #3399FF;
text-decoration : none;
}
a:hover.side {
color : #3399ff;
text-decoration : underline;
}
a.white {
color : #3399ff;
text-decoration : none;
}
a:hover.white {
color : #3399ff;
text-decoration : underline;
}
body {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
margin : 0px;
background-color : black;
background-image: url(images/tlo.png);
}
form {
margin : 0px;
}
hr {
height : 1px;
border : 1px solid #333333;
}
hr.side-hr {
height : 1px;
border : 1px solid #333333;
}
td {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
pre {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
.alt {
color : #555;
}
.white-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #3399FF;
background-color : black;
border-bottom : 1px solid #333333;
padding : 5px;
}
.full-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #3399FF;
background-color : black;
border-top : 1px solid #333333;
border-bottom : 1px solid #333333;
border-left : 1px solid #333333;
border-right : 1px solid #333333;
padding : 5px;
}
.footer {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #3399cc;
background-color : black;
background-image: url(images/stopka.jpg);
border-bottom : 1px solid #333333;
border-left : 1px solid #333333;
border-right : 1px solid #333333;
padding : 5px;
}
.button {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #3399FF;
background-color : black;
height : 20px;
border : 1px solid #6699FF;
margin-top : 2px;
}
.textbox {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : white;
background-color : black;
border : 1px solid #333333;
}
.main-body {
font-size : 11px;
color : white;
background-color : black;
padding : 4px 4px 5px 4px;
}
.side-body {
font-size : 10px;
color : white;
background-color : black;
background-image: url(images/paneltlo.jpeg);
border-left : 1px solid #333333;
padding : 4px;
}
.main-bg {
color : white;
background-color : black;
border-right : 1px solid #333333;
border-left : 1px solid #333333;
padding : 5px;
}
.border {
border : 1px solid #333333;
}
.side-border-left {
color : #333333;
background-color : black;
}
.side-border-right {
color : #333333;
background-color : black;
}
.news-footer {
font-size : 10px;
color : white;
background-color : black;
border-top : 1px dashed #333333;
padding : 3px 4px 4px 4px;
}
.capmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
font-weight : bold;
color : #3399cc;
background-color : black;
background-image: url(images/panel.jpg);
border-bottom : 1px solid #333333;
padding : 2px 4px 4px 4px;
}
.scapmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
font-weight : bold;
color : #3399cc;
background-color : black;
background-image: url(images/panelbok.jpg);
border-left : 1px solid #333333;
border-right : 1px solid #333333;
border-bottom : 1px solid #333333;
padding : 4px;
}
.tbl-border {
color : #333333;
background-color : black;
}
.tbl {
font-size : 11px;
color : white;
background-color : black;
border-bottom : 1px solid #333333;
border-top : 1px solid #333333;
border-left : 1px solid #333333;
border-right : 1px solid #333333;
padding : 4px;
}
.tbl1 {
font-size : 11px;
color : white;
background-color : black;
border-bottom : 1px solid #333333;
border-top : 1px solid #333333;
border-left : 1px solid #333333;
border-right : 1px solid #333333;
padding : 4px;
}
.tbl2 {
font-size : 11px;
color : white;
background-color : black;
border-bottom : 1px solid #333333;
border-top : 1px solid #333333;
border-left : 1px solid #333333;
border-right : 1px solid #333333;
padding : 4px;
}
.forum-caption {
font-size : 11px;
font-weight : bold;
color : white;
background-color : black;
border-bottom : 1px solid #333333;
border-top : 1px solid #333333;
border-left : 1px solid #333333;
border-right : 1px solid #333333;
padding : 2px 4px 4px 4px;
}
.code {
font-size : 11px;
color : #000;
background-color : #eee;
padding : 4px;
margin : 0 20px;
border : 1px solid #bbb;
}
.poll {
height : 12px;
border : 1px solid #333333;
}
.comment-name {
font-weight : bold;
color : #3399FF;
}
.shoutboxname {
font-weight : bold;
color : #55aaff;
background-color : black;
}
.shoutbox {
color : white;
background-color : black;
}
.shoutboxdate {
font-size : 9px;
color : white;
background-color : black;
}
.small {
font-size : 10px;
font-weight : normal;
}
.small2 {
font-size : 10px;
font-weight : normal;
color : white;
}
.side-small {
font-size : 10px;
font-weight : normal;
color : #aaa;
background-color : #444;
}
.side-label {
color : #aaa;
background-color : #333;
padding : 2px 2px 3px 2px;
}
A tak wygląda strona po modyfikacji: http://www.eminem...
Czy możecie mi pomóc? Proszę was bardzo. Zależy mi na tym.
PROSZĘ USUNĄĆ TEN POST
Edytowane przez EminemInfo dnia 31.08.2008 12:57:51
|
|
|
|
tomulus122 |
Dodany dnia 01.09.2008 20:03:33
|
Przedszkolak
Postów: 7 Ostrzeżeń: 3
v7.02.05 Data rejestracji: 29.09.2007 10:02
|
Zobaczcie... Czy tu jest coś źle?
theme.php:
<?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) |
+--------------------------------------------*/
/*--------------------------------------------+
| Fusion3 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 = "#577BAB";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
function render_tiny_menu() {
global $theme_width, $locale;
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links_new WHERE link_url='---' AND link_name!='---' ORDER BY link_order");
$tabsrows = dbrows($result);
$i=0;
if ($tabsrows>0) echo "<div class='tabs'>\n<ul>\n";
while ($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
echo "<li id='menutab_".$data['link_id']."'".($i==0?" class='current'":"")."><span><a href=\"javascript:wooyaTabs.displayTab('menutab_".$data['link_id']."','menupanel_".$data['link_id']."');\" onmousedown=\"return false;\">".($data['link_img']!=''?"<img src='".INFUSIONS."new_navigation_panel/images/".$data['link_img']."' alt='' border='0' style='width:14px;height:14px;vertical-align:middle'> ":"").$data['link_name']."</a></span></li>\n";
}
$i++;
}
if ($tabsrows>0) echo "</ul>\n</div>\n";
if ($tabsrows>0) {
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links_new WHERE link_name!='---' ORDER BY link_order");
} else {
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links_new WHERE link_position>='2' ORDER BY link_order");
}
$rows = dbrows($result);
$i=0; $j=0; $sep = "<img src='".THEME."images/bullet.gif' alt='0' border='0'>";
echo "<div class='panel_wrapper'>\n";
while ($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']=='---' && $i!=0) { echo "</div>\n"; $j=0; }
if ($data['link_url']=='---') echo "<div id='menupanel_".$data['link_id']."' class='".($i==0?"panel current":"panel")."'>";
if ($data['link_url']!="---") {
if ($i != 0 && $j!=0) { echo " ".$sep."\n"; } else { echo "\n"; }
$link_target = $data['link_window'] == "1" ? " target='_blank'" : "";
$link_class = $class ? " class='$class'" : "";
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target.$link_class.">".$data['link_name']."</a>\n";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target.$link_class.">".$data['link_name']."</a>\n";
}
$i++; $j++;
}
}
}
if ($tabsrows>0) echo "</div>";
echo "</div>";
}
function render_header($header_content) {
?>
<script type="text/javascript">
/**
* $RCSfile: mctabs.js,v $
* $Revision: 1.2 $
* $Date: 2006/02/06 20:11:09 $
*
* Moxiecode DHTML Tabs script.
*
* @author Moxiecode
* @copyright Copyright Š 2004-2006, Moxiecode Systems AB, All rights reserved.
* @modified by Wooya
*/
function WooyaTabs() {
this.settings = new Array();
};
WooyaTabs.prototype.init = function(settings) {
this.settings = settings;
};
WooyaTabs.prototype.getParam = function(name, default_value) {
var value = null;
value = (typeof(this.settings[name]) == "undefined") ? default_value : this.settings[name];
// Fix bool values
if (value == "true" || value == "false")
return (value == "true");
return value;
};
WooyaTabs.prototype.displayTab = function(tab_id, panel_id) {
var panelElm = document.getElementById(panel_id);
var panelContainerElm = panelElm ? panelElm.parentNode : null;
var tabElm = document.getElementById(tab_id);
var tabContainerElm = tabElm ? tabElm.parentNode : null;
var selectionClass = this.getParam('selection_class', 'current');
if (tabElm && tabContainerElm) {
var nodes = tabContainerElm.childNodes;
// Hide all other tabs
for (var i=0; i<nodes.length; i++) {
if (nodes[i].nodeName == "LI")
nodes[i].className = '';
}
// Show selected tab
tabElm.className = 'current';
}
if (panelElm && panelContainerElm) {
var nodes = panelContainerElm.childNodes;
// Hide all other panels
for (var i=0; i<nodes.length; i++) {
if (nodes[i].nodeName == "DIV")
nodes[i].className = 'panel';
}
// Show selected panel
panelElm.className = 'current';
}
};
WooyaTabs.prototype.getAnchor = function() {
var pos, url = document.location.href;
if ((pos = url.lastIndexOf('#')) != -1)
return url.substring(pos + 1);
return "";
};
// Global instance
var wooyaTabs = new WooyaTabs();
</script>
<?
global $theme_width,$settings;
echo "<table align='center' class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td width='29' nowrap='nowrap' class='lefttd'></td><td>";
// Start banner code
echo "<table width='100%' border='0' cellspacing='0' cellpadding='4'><tr>";
echo "<td width='60%' style='background-image:url(".THEME."images/logo_bg.gif)' height='80'>$header_content</td>";
echo "</tr></table>";
// End banner code
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td class='sub-header'><table width='100%' border='0' cellpadding='4' cellspacing='0' style='background-color: #6387B7; border-top: solid #3F5A7F; border-top-width: 1px; border-left: solid #3F5A7F; border-left-width: 1px; border-right: solid #CACACA; border-right-width:1px; border-bottom: solid #CACACA; border-bottom-width:1px;'><tr>";
echo "<td height='22' class='sub-header'> ".showsublinks("<img border='0' src='".THEME."images/divider.gif'>","white")."</td>";
echo "<td class='sub-header' width='250' height='22' nowrap><img align='right' border='0' src='".THEME."images/bevel.gif'><div align='right'><font class='date'><b>".showsubdate();
echo " </b></font></div>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr><td></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='4' bgcolor='#577BAB' cellspacing='0' border='0'><tr>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='2' cellspacing='0' width='$theme_width'><tr>";
echo "<td>".stripslashes($settings['footer'])."<br>";
echo "<table style='background-image:url(".THEME."images/cellpic.gif);border: 1px solid #3F5A7F' cellSpacing='0' cellPadding='2' width='100%' border='0'>";
echo "<tr><td width='35%' height='22' class='footer' align='left'><div align='left'>";
if ($license == false) {
echo "Powered by <a href='http://www.php-fusion.co.uk' target='_blank'>PHP-Fusion</a> © 2003-2006";
}
echo "</div></td>";
echo "<td class='footer' width='30%' height='22' align='center'>Fusion 3 by: <a href='http://www.phpfusion-themes.com' target='_blank'>PHP-Fusion Themes</a></td>";
echo "<td class='footer' width='35%' height='22' align='right'>";
echo "<font class='visits'><b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table></td>";
echo "</tr></table></td></tr></table>";
echo "<td width='29' nowrap='nowrap' class='righttd'></td></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table 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 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 "<table width='100%' cellpadding='2' cellspacing='0' class='border2'>";
echo "<tr><td class='panel'>";
echo "<img align='right' border='0' src='".THEME."images/bevel.gif'>$title</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table bgcolor='#8D8D8D' border='0' style='border: 1px solid #3F5A7F' cellspacing='0' width='100%' cellpadding='2'><tr>";
echo "<td width='100%' class='panel'>";
echo "<img align='right' border='0' src='".THEME."images/bevel.gif'>$title</td></tr>";
echo "<tr><td bgcolor='#AAAAAA' class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr><tr><td class='panel2' width='100%'>";
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table bgcolor='#8D8D8D' border='0' style='border: 1px solid #3F5A7F' 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='#AAAAAA' class='side-body'width='100%'>";
echo "<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div></td></tr><tr><td class='panel2' width='100%'>";
echo "</td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
styles.css:
/* The content of the posts (body of text) */
body {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
padding:0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
scrollbar-face-color:#577BAB;
scrollbar-shadow-color:#0B589B;
scrollbar-highlight-color:#76A5CB;
scrollbar-3dlight-color:#7795BC;
scrollbar-darkshadow-color:#111;
scrollbar-track-color:#6D88B5;
scrollbar-arrow-color:#C6C9CA;
}
.sub-header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#000;
padding: 4px;
}
/* General page style */
.bodyline {
background:#577BAB;
color:#000000;
border:1px solid #3F5A7F;
}
a {
color:#111;
text-decoration:none;
}
a:hover {
color:#CFCFCF;
text-decoration:underline;
}
a.side {
color:#111;
text-decoration:none;
}
a:hover.side {
color:#CFCFCF;
text-decoration:underline;
}
a.white {
color:#C6C9CA;
text-decoration:none;
font-weight:bold;
}
a:hover.white {
color:#111;
text-decoration:underline;
}
form {
margin:0px 0px 0px 0px;
}
hr {
height:0px;
border:solid #CCCCCC 1px;
border-top-width: 1px;
}
hr.side-hr {
height:0px;
border:solid #CCCCCC 0px;
border-top-width:1px;
}
td {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
}
pre {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
}
.alt {
color:#1C1C1C;
}
.white-header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#444;
background-color:#D4DDDE;
padding:4px;
border-top:#3F5A7F 1px solid;
border-bottom:#3F5A7F 1px solid;
}
.full-header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#111;
background-color:#D4DDDE;
}
.button {
background: #6387B7 url(images/cellpic.gif);
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#000000;
background-color:#D0D0D0;
border:1px #3F5A7F solid;
margin-top:2px;
}
.textbox {
background: #6387B7 url(images/bg_body.gif);
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#000000;
background-color:#6387B7;
border:1px #3F5A7F solid;
}
.visits {
color:#111;
text-decoration:none;
font-weight: bold;
font-size:10px;
}
.main-body {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px; color:#000;
background-color:#6387B7;
padding:3px 4px 3px 4px;
}
.side-body {
font-size:10px;
color:#CFCFCF;
padding:4px 4px 6px 4px;
background-color:#6387B7;
}
td.lefttd {
background-repeat: repeat-y;
background-image: url(images/leftside.gif);
}
td.righttd {
background-image: url(images/rightside.gif);
background-repeat: repeat-y;
}
.main-bg {
background-color:#577BAB;
}
.border {
border-width:0px 1px 1px 1px;
border-color:#3F5A7F;
border-style:solid;
}
.border2 {
border-width:1px 1px 0px 1px;
border-color:#3F5A7F;
border-style:solid;
}
.news-footer {
font-size:9px;
font-weight:normal;
color:#142000;
background-color:#799BC8;
padding:4px 4px 4px 4px;
}
.capmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
font-weight:bold;
border-width:1px 1px 1px 1px;
border-color:#3F5A7F;
border-style:solid;
color:#B78E00;
height:24px;
padding:2px 2px 2px 2px;
}
.panel {
background: #6387B7 url(images/cellpic.gif);
color: #1A1A1A;
font-weight: bold;
text-align: left;
height: 22px;
padding:0px 4px 0px 4px;
}
.panel2 {
background: #6387B7 url(images/cellpic2.gif);
color: #1A1A1A;
font-weight: bold;
text-align: left;
height: 5px;
padding:0px 4px 0px 4px;
}
.footer {
padding:0px 4px 0px 4px;
}
.date {
background: none;
color: #C6C9CA;
font-size: 10px;
font-weight: bold;
font-family: Verdana, Helvetica; text-decoration: none
}
img {
border: 0px;
}
.capleft {
width:2px;
height:20px;
}
.capright {
width:2px;
height:20px;
}
.scapmain {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
font-weight:bold;
color:#000;
height:19px;
padding:0px 2px 0px 2px;
border-width:1px 0px 1px 0px;
border-color:#3F5A7F #3F5A7F #3F5A7F #3F5A7F;
border-style:solid;
}
.tbl-border {
background-color:#3F5A7F;
}
.tbl {
font-size:11px;
padding:3px 4px 3px 4px;
}
.tbl1 {
font-size:11px;
color:#000;
background-color:#6387B7;
padding:4px;
}
.tbl2 {
font-size:11px;
color:#091609;
background-color:#7795BC;
padding:4px;
}
/* Forum header*/
.forum-caption {
font-size:10px;font-weight:bold;
color:#D0D0CC;
background-color:#6387B7;
height:24px;
padding:0px 4px 2px 4px;
background-image:url(images/forum_caption.gif);
background-repeat:repeat-x;
border-width:0px 0px 0px 0px;
border-color:#3F5A7F #3F5A7F #3F5A7F #3F5A7F;
border-style:solid;
}
/* Quote blocks */
.quote {
color:#2F2F2F;
background-color:#E1E3E6;
padding:2px;
margin:0px 20px 0px 20px;
border:1px #3F5A7F solid;
}
/* Voting Poll */
.poll {
height:12px;
border:1px #3F5A7F solid;
}
.comment-name {
font-weight:bold;
color:#DDCC88;
}
/* This is for the Shoutbox */
.shoutboxname {
font-weight:bold;
color:#007090;
}
.shoutbox {
color:#06070A;
}
.shoutboxdate {
font-size:9px;
color:#1C1C1C;
}
.small {
font-size:11px;
font-weight:normal;
color:#111;
}
.small2 {
font-size:10px;
font-weight:normal;
color:#1C1C1C;
}
.side-small {
font-size:9px;
font-weight:normal;
color:#111;
}
.side-label {
background-color:none;
font-weight:normal;
color:#DBDBDB;
padding:2px;
}
/* This file contains the CSS data for all popups in TinyMCE */
/* Tabs classes */
.tabs {
float: left;
width: 100%;
line-height: normal;
background-image: url("images/tabs/tabs_bg.gif");
}
.tabs ul {
margin: 0;
padding: 0 0 0;
list-style: none;
}
.tabs li {
float: left;
background: url("images/tabs/tab_bg.gif") no-repeat left top;
margin: 0;
margin-left: 0;
margin-right: 2px;
padding: 0 0 0 10px;
line-height: 18px;
}
.tabs li.current {
background: url("images/tabs/tab_sel_bg.gif") no-repeat left top;
margin-right: 2px;
}
.tabs span {
float: left;
display: block;
background: url("images/tabs/tab_end.gif") no-repeat right top;
padding: 0px 10px 0 0;
}
.tabs .current span {
background: url("images/tabs/tab_sel_end.gif") no-repeat right top;
}
.tabs a {
text-decoration: none;
font-family: Verdana, Arial;
font-size: 11px;
}
.tabs a:link, .tabs a:visited, .tabs a:hover {
color: black;
}
.tabs a:hover {
}
.tabs .current {
}
.tabs .current a, .tabs .current a:link, .tabs .current a:visited {
}
.panel_wrapper div.panel {
display: none;
}
.panel_wrapper div.current {
display: block;
width: 100%;
overflow: visible; /* Should be auto but that breaks Safari */
}
.panel_wrapper {
border: 1px solid #919B9C;
border-top: 0px;
padding: 10px;
padding-top: 5px;
clear: both;
background-color: white;
}
fieldset {
border: 1px solid #919B9C;
font-family: Verdana, Arial;
font-size: 11px;
padding: 0;
margin: 0;
padding: 4px;
}
legend {
color: #2B6FB6;
font-weight: bold;
}
.properties {
width: 100%;
}
.properties .column1 {
}
.properties .column2 {
text-align: left;
}
#plugintable thead {
font-weight: bold;
background-color: #DDDDDD;
}
#plugintable, #about #plugintable td {
border: 1px solid #919B9C;
}
#plugintable {
width: 99%;
margin-top: 10px;
}
#pluginscontainer {
height: 290px;
overflow: auto;
}
/* MSIE Specific styles */
* html .panel_wrapper {
width: 100%;
}
.column {
float: left;
}
h1, h2, h3, h4 {
color: #2B6FB6;
margin: 0;
padding: 0;
padding-top: 5px;
}
h3 {
font-size: 12px;
}
#link .panel_wrapper, #link div.current {
height: 125px;
}
#image .panel_wrapper, #image div.current {
}
/* Disables the advanced tab in the table plugin. */
/*
#table #advanced_tab {
display: none;
}
*/
/* Disables the border input field and label in the table plugin. */
/*
#table #border, #table #borderlabel {
display: none;
}
*/
Proszę pomóżcie! Muszę mieć ten pasek!
Do mojej strony --> thegry.cba.pl
Edytowane przez Pieka dnia 23.06.2009 14:22:43
|
|
|
|
maciek99 |
Dodany dnia 23.06.2009 14:04:33
|
Przedszkolak
Postów: 44
Data rejestracji: 02.02.2006 00:38
ZBANOWANY: Dożywotnio
|
Witam na wstępie przepraszam za odświeżenie tematu ale nie potrafię sobie poradzić z dodaniem tego menu.
Zrobiłem wszystko tak jak we wskazówkach i otrzymałem coś takiego:
http://i43.tinypi...dj6hr8.jpg
Jakby ktoś mógł rzucić na to okiem i powiedzieć co jest źle będę bardzo wdzięczny. Poniżej zamieszczam zmodyfikowane przeze mnie pliki theme.php i styles.css.
theme.php:
<?php
// theme settings
$body_text = "#113355";
$body_bg = "#000000";
$theme_width = "910";
$theme_width_l = "180";
$theme_width_r = "180";
function render_tiny_menu() {
global $theme_width, $locale;
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links_new WHERE link_url='---' AND link_name!='---' ORDER BY link_order");
$tabsrows = dbrows($result);
$i=0;
if ($tabsrows>0) echo "<div class='tabs'>\n<ul>\n";
while ($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
echo "<li id='menutab_".$data['link_id']."'".($i==0?" class='current'":"")."><span><a href=\"javascript:wooyaTabs.displayTab('menutab_".$data['link_id']."','menupanel_".$data['link_id']."');\" onmousedown=\"return false;\">".($data['link_img']!=''?"<img src='".INFUSIONS."new_navigation_panel/images/".$data['link_img']."' alt='' border='0' style='width:14px;height:14px;vertical-align:middle'> ":"").$data['link_name']."</a></span></li>\n";
}
$i++;
}
if ($tabsrows>0) echo "</ul>\n</div>\n";
if ($tabsrows>0) {
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links_new WHERE link_name!='---' ORDER BY link_order");
} else {
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links_new WHERE link_position>='2' ORDER BY link_order");
}
$rows = dbrows($result);
$i=0; $j=0; $sep = "<img src='".THEME."images/bullet.gif' alt='0' border='0'>";
echo "<div class='panel_wrapper'>\n";
while ($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']=='---' && $i!=0) { echo "</div>\n"; $j=0; }
if ($data['link_url']=='---') echo "<div id='menupanel_".$data['link_id']."' class='".($i==0?"panel current":"panel")."'>";
if ($data['link_url']!="---") {
if ($i != 0 && $j!=0) { echo " ".$sep."\n"; } else { echo "\n"; }
$link_target = $data['link_window'] == "1" ? " target='_blank'" : "";
$link_class = $class ? " class='$class'" : "";
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target.$link_class.">".$data['link_name']."</a>\n";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target.$link_class.">".$data['link_name']."</a>\n";
}
$i++; $j++;
}
}
}
if ($tabsrows>0) echo "</div>";
echo "</div>";
}
function render_header($header_content) {
global $theme_width,$settings,$locale;
?>
<script type="text/javascript">
/**
* $RCSfile: mctabs.js,v $
* $Revision: 1.2 $
* $Date: 2006/02/06 20:11:09 $
*
* Moxiecode DHTML Tabs script.
*
* @author Moxiecode
* @copyright Copyright Š 2004-2006, Moxiecode Systems AB, All rights reserved.
* @modified by Wooya
*/
function WooyaTabs() {
this.settings = new Array();
};
WooyaTabs.prototype.init = function(settings) {
this.settings = settings;
};
WooyaTabs.prototype.getParam = function(name, default_value) {
var value = null;
value = (typeof(this.settings[name]) == "undefined") ? default_value : this.settings[name];
// Fix bool values
if (value == "true" || value == "false")
return (value == "true");
return value;
};
WooyaTabs.prototype.displayTab = function(tab_id, panel_id) {
var panelElm = document.getElementById(panel_id);
var panelContainerElm = panelElm ? panelElm.parentNode : null;
var tabElm = document.getElementById(tab_id);
var tabContainerElm = tabElm ? tabElm.parentNode : null;
var selectionClass = this.getParam('selection_class', 'current');
if (tabElm && tabContainerElm) {
var nodes = tabContainerElm.childNodes;
// Hide all other tabs
for (var i=0; i<nodes.length; i++) {
if (nodes[i].nodeName == "LI")
nodes[i].className = '';
}
// Show selected tab
tabElm.className = 'current';
}
if (panelElm && panelContainerElm) {
var nodes = panelContainerElm.childNodes;
// Hide all other panels
for (var i=0; i<nodes.length; i++) {
if (nodes[i].nodeName == "DIV")
nodes[i].className = 'panel';
}
// Show selected panel
panelElm.className = 'current';
}
};
WooyaTabs.prototype.getAnchor = function() {
var pos, url = document.location.href;
if ((pos = url.lastIndexOf('#')) != -1)
return url.substring(pos + 1);
return "";
};
// Global instance
var wooyaTabs = new WooyaTabs();
</script>
<?php
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border:0px #444 solid'>
<tr>
<td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='header'>
<table width='910' height='230' cellspacing='0' cellpadding='0'>
<tr>
<td width='910' height='230' style='background-image: url(top.jpg); background-repeat: no-repeat;'>$header_content</td>
</tr>
<tr>
<td><table>
<tr>
<td>";
echo "<script type='text/javascript'><!--
google_ad_client = 'pub-9804821175938105';
/* 728x90, utworzono 08-04-07 */
google_ad_slot = '6877127066';
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script> </td>";
echo "<td><!-- SiteSearch Google -->
<form method='get' action='/search.php' target='_top'>
<table border='0' bgcolor='#5D1717' height='90'>
<tr><td nowrap='nowrap' valign='top' align='left' height='32'>
<input type='hidden' name='domains' value='mrks.czechowice.pl'></input>
<label for='sbi' style='display: none'>Wprowadź wyszukiwane hasła</label>
<input type='text' name='q' size='23' maxlength='255' value='' id='sbi'></input>
</td></tr>
<tr>
<td nowrap='nowrap'><table><tr><td>
<input type='radio' name='sitesearch' value='' checked id='ss0'></input>
<label for='ss0' title='Szukaj w Internecie'><font size='-2' color='#ffffff'>Web</font></label></td>
<td>
<input type='radio' name='sitesearch' value='mrks.czechowice.pl' id='ss1'></input>
<label for='ss1' title='Wyszukaj mrks.czechowice.pl'><font size='-2' color='#ffffff'>mrks.czechowice.pl</font></label></td>
</tr>
</table>
<label for='sbb' style='display: none'>Prześlij formularz wyszukiwania</label>
<input type='submit' name='sa' value='Szukaj z Google' id='sbb'></input>
<input type='hidden' name='client' value='pub-9804821175938105'></input>
<input type='hidden' name='forid' value='1'></input>
<input type='hidden' name='channel' value='9091229081'></input>
<input type='hidden' name='ie' value='ISO-8859-2'></input>
<input type='hidden' name='oe' value='ISO-8859-2'></input>
<input type='hidden' name='safe' value='active'></input>
<input type='hidden' name='cof' value='GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:11'></input>
<input type='hidden' name='hl' value='pl'></input>
</td></tr></table>
</form>
<!-- SiteSearch Google -->
</td></tr></table>";
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' style='border-top:1px #333 solid;border-bottom:1px #333 solid;'>\n<tr>
<td class='header2'>\n";
echo render_tiny_menu();
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer2'>
".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."<br><br>\n" : $locale['141']."<br><br>\n");
if ($license == false) {
echo "<font color='white'>Powered by </font><a href='http://www.php-fusion.co.uk/' target='_blank'><font color='white'>PHP-Fusion</font></a><font color='white'> || <font color='white'>Copyright 2006 - 2009 by </font><font color='red'><b>mrks.czechowice.pl</b></font><font color='white'> Design by </font><a href='mailto:'><font color='red'><b>maciek</b></font></a>\n";
}
echo "</td>
</tr>
</table>
</td>
</tr>
</table>
<table align='center' width='$theme_width' cellpadding='0' cellspacing='0' width='100%'>
<tr>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'>
<tr>
<td class='caption'><span style='color:white'><b> ".$subject."</b></span></td>
</tr>
<tr>
<td class='main-body'>
$news
</td>
</tr>
<tr>
<td class='infobar'>
".$locale['041'].showdate("longdate", $info['news_date'])."<br>
".($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> ·\n";
echo $info['news_reads'].$locale['044']."
<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>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'>
<tr>
<td class='caption'><span style='color:white'><b> ".$subject."</b></span></td>
</tr>
<tr>
<td class='main-body'>\n";
echo ($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td class='infobar'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."<br>\n";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
echo $info['article_reads'].$locale['044']."
<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>
</td>
</tr>
</table>\n";
}
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>";
}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>";
}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>";
}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>";
}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>";
}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 "</div></table></div>";
closetable();
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'>
<tr>
<td class='caption'><span style='color:white'><b> ".$title."</b></span></td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'>
<tr>
<td class='side-caption'><span style='color:white'><b> ".$title."</b></span></td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-caption'><span style='color:white'><b> ".$title."</b></span></td>
<td class='side-caption' align='right'>
<img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='side-body'>
<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='8'></td></tr>
</table>\n";
}
?>
styles.css:
a { color:#113355; text-decoration:none; }
a:hover { color:113355; text-decoration:none; }
a.side { color:#113355; text-decoration:none; }
a:hover.side { color:113355; text-decoration:none;; }
a.white { color:black; text-decoration:none; }
a:hover.white { color:113355; text-decoration:none; }
body {
font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:11px;
background-image:url('http://artpix.nazwa.pl/mrks/Victoria%20One%20Theme/images/bg.gif');
scrollbar-face-color:#F8F8F8;
scrollbar-shadow-color:#F8F8F8;
scrollbar-highlight-color:#F8F8F8;
scrollbar-3dlight-color:#d6daea;
scrollbar-darkshadow-color:#d6daea;
scrollbar-track-color:#F8F8F8;
scrollbar-arrow-color:#d6daea;
}
form { margin:0px 0px 0px 0px; }
hr { height:1px; color:black }
hr.side-hr { height:1px; color:black }
td { font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:11px; }
pre { font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; }
.alt { color:#666; }
.header {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:black;
background-color:#191919;
}
.header2 {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#F4F9FB; background-image:url('http://artpix.nazwa.pl/mrks/Victoria%20One%20Theme/images/header2.gif');
padding-left:4px; padding-right:4px; padding-top:4px; padding-bottom:5px
}
.footer {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:black; background-image:url('http://artpix.nazwa.pl/mrks/Victoria%20One%20Theme/images/stopka.jpg');
padding:10px
}
.footer2 {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#FFFFFF; background-image:url('http://artpix.nazwa.pl/mrks/Victoria%20One%20Theme/images/stopka.jpg');
padding:10px;
}
.button {
font-family:Tahoma,Arial,Verdana,Sans-Serif;
font-size:10px;
color:red; background-image:url('http://artpix.nazwa.pl/mrks/Victoria%20One%20Theme/images/header2.gif');
height:19px;
margin-top:2px; padding-left:2px; padding-right:2px; padding-top:0px; padding-bottom:0px
}
.textbox {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#113355; background-color:white;
border:1px #999 solid;
}
.main-bg { background-image:url('http://artpix.nazwa.pl/mrks/Victoria%20One%20Theme/images/bg.gif'); padding:10px; }
.side-border-left { background-image:url('http://artpix.nazwa.pl/mrks/Victoria%20One%20Theme/images/bg.gif'); padding:10px 0px 10px 10px; }
.side-border-right { background-image:url('http://artpix.nazwa.pl/mrks/Victoria%20One%20Theme/images/bg.gif'); padding:10px 10px 10px 0px; }
.main-body {
font-size:11px;
color:#333; background-color:#ffffff;
padding:3px 4px 3px 4px;
}
.side-body {
font-size:10px;
color:#333; background-image:url('http://artpix.nazwa.pl/mrks/Victoria%20One%20Theme/images/bgside.gif');
padding-left:4px; padding-right:4px; padding-top:4px; padding-bottom:6px
}
.border { background-color:#990000; border:1px #000 solid; }
.infobar {
font-size:9px;
color:#000; background-color:#ccc;
text-align:right;
padding:1px 4px 2px 4px;
}
.caption {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;
color:white; background-image:url('http://artpix.nazwa.pl/mrks/Victoria%20One%20Theme/images/cap.gif');
padding-left:4px; padding-right:4px; padding-top:2px; padding-bottom:4px
}
.side-caption {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px;text-align:center;
color:white; background-image:url('http://artpix.nazwa.pl/mrks/Victoria%20One%20Theme/images/cap.gif');
padding-left:4px; padding-right:4px; padding-top:2px; padding-bottom:4px
}
.tbl-border { background-color:#113355; }
.tbl { font-size:11px; padding:3px 4px 3px 4px; }
.tbl1 { font-size:11px; color:#000; background-color:#ffffff; padding:4px; }
.tbl2 { font-size:11px; color:#000; background-color:#ffffff; padding:4px; }
.forum-caption {
font-size:10px;
color:white; background-image:url('http://artpix.nazwa.pl/mrks/Victoria%20One%20Theme/images/cap.gif');
height:20px;
padding-left:4px; padding-right:4px; padding-top:0px; padding-bottom:2px
}
.quote {
color:#000; background-color:#F8F8F8;
padding:2px;
margin:0px 20px 0px 20px;
border:1px #F8F8F8 solid;
}
.poll { height:12px; border:1px #000 solid; }
.comment-name { font-weight:bold; color:#113355; }
.shoutboxname { font-weight:bold; color:#113355; }
.shoutbox { color:black; }
.shoutboxdate { font-size:9px; color:black; text-align:right; }
.small { font-size:10px; font-weight:normal; }
.small2 { font-size:10px; font-weight:normal; color:#666; }
.side-small { font-size:10px; font-weight:normal; color:#333; }
.side-label { background-color:#ccc; padding:2px; }
.gallery { padding: 16px 0px 8px 0px; }
.gallery img { border: 1px solid #ccc; filter: gray; }
.gallery:hover img { border: 1px solid red; filter: none; }
img.activegallery { border: 1px solid green; filter: none; }
a.admin {
color : purple;
text-decoration : bold;
}
a:hover.admin {
color: purple;
text-decoration: underline;
}
a.superadmin {
color: #f75013;
text-decoration: bold;
}
a:hover.superadmin {
color: #f75013;
text-decoration: underline;
}
a.moderator {
color: green;
text-decoration: bold;
}
a:hover.moderator {
color: green;
text-decoration: underline;
/* This file contains the CSS data for all popups in TinyMCE */
/* Tabs classes */
.tabs {
float: left;
width: 100%;
line-height: normal;
background-image: url("images/tabs/tabs_bg.gif");
}
.tabs ul {
margin: 0;
padding: 0 0 0;
list-style: none;
}
.tabs li {
float: left;
background: url("images/tabs/tab_bg.gif") no-repeat left top;
margin: 0;
margin-left: 0;
margin-right: 2px;
padding: 0 0 0 10px;
line-height: 18px;
}
.tabs li.current {
background: url("images/tabs/tab_sel_bg.gif") no-repeat left top;
margin-right: 2px;
}
.tabs span {
float: left;
display: block;
background: url("images/tabs/tab_end.gif") no-repeat right top;
padding: 0px 10px 0 0;
}
.tabs .current span {
background: url("images/tabs/tab_sel_end.gif") no-repeat right top;
}
.tabs a {
text-decoration: none;
font-family: Verdana, Arial;
font-size: 11px;
}
.tabs a:link, .tabs a:visited, .tabs a:hover {
color: black;
}
.tabs a:hover {
}
.tabs .current {
}
.tabs .current a, .tabs .current a:link, .tabs .current a:visited {
}
.panel_wrapper div.panel {
display: none;
}
.panel_wrapper div.current {
display: block;
width: 100%;
overflow: visible; /* Should be auto but that breaks Safari */
}
.panel_wrapper {
border: 1px solid #919B9C;
border-top: 0px;
padding: 10px;
padding-top: 5px;
clear: both;
background-color: white;
}
fieldset {
border: 1px solid #919B9C;
font-family: Verdana, Arial;
font-size: 11px;
padding: 0;
margin: 0;
padding: 4px;
}
legend {
color: #2B6FB6;
font-weight: bold;
}
.properties {
width: 100%;
}
.properties .column1 {
}
.properties .column2 {
text-align: left;
}
#plugintable thead {
font-weight: bold;
background-color: #DDDDDD;
}
#plugintable, #about #plugintable td {
border: 1px solid #919B9C;
}
#plugintable {
width: 99%;
margin-top: 10px;
}
#pluginscontainer {
height: 290px;
overflow: auto;
}
/* MSIE Specific styles */
* html .panel_wrapper {
width: 100%;
}
.column {
float: left;
}
h1, h2, h3, h4 {
color: #2B6FB6;
margin: 0;
padding: 0;
padding-top: 5px;
}
h3 {
font-size: 12px;
}
#link .panel_wrapper, #link div.current {
height: 125px;
}
#image .panel_wrapper, #image div.current {
}
/* Disables the advanced tab in the table plugin. */
/*
#table #advanced_tab {
display: none;
}
*/
/* Disables the border input field and label in the table plugin. */
/*
#table #border, #table #borderlabel {
display: none;
}
*/
Z góry dziękuję za pomoc. Pozdrawiam
Edytowane przez Pieka dnia 23.06.2009 14:23:42
|
|
|