Zast?pienie górnej belki (nawigacji poziomej) innym elementem (skryptem)
|
Margos |
Dodany dnia 11.02.2007 16:26:49
|

Przedszkolak

Postów: 17
Data rejestracji: 30.01.2007 00:40
|
W którym pliku i co trzeba zmieni?, ?eby zast?pi? górn? belk? (nawigacj? poziom?) lub te? wstawi? zaraz nad ni? obiekt typu "neon"? :>
Edytowane przez Pieka dnia 08.11.2008 11:39:55
---===PEACE===---
|
|
|
|
W?cibski Go?? |
Dodany dnia 07.09.2025 22:14:55
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
zezol |
Dodany dnia 11.02.2007 16:42:35
|

Bywalec

Postów: 593 Pomógł: 34
Data rejestracji: 09.12.2006 22:16
|
W pliku theme.php. "Obiekt typu neon", czyli co?
|
|
|
|
Margos |
Dodany dnia 11.02.2007 20:56:51
|

Przedszkolak

Postów: 17
Data rejestracji: 30.01.2007 00:40
|
No tekst ruchomy w html-u okre?lony przez <marque> 
A który fragment kodu jest odpowiedzialny za nawigacj? poziom? (belk? górn?)?
Edytowane przez Margos dnia 11.02.2007 20:58:14
---===PEACE===---
|
|
|
|
as |
Dodany dnia 12.02.2007 06:54:33
|

Zaawansowany

Postów: 1509
Data rejestracji: 25.01.2005 21:55
|
Dla przyk?adu rozbior? Ci na czynniki pierwsze plik theme.php, ze skóry o nazwie Insecure. Poni?szy kod, to w?a?nie belka górna w której znajduj? si? linki poziome:
<table width='100%' cellspacing='0' cellpadding='0'><tr><td class='menu_left'><img src='".THEME."images/menu/menu_left.gif' alt=''></td><td class='menu_center'><center><img src='".THEME."images/bullet.gif' alt=''> | ";
$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/bullet.gif' alt=''> "; } 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='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")." | <img src='".THEME."images/bullet.gif' alt=''></center></td><td class='menu_right'><img src='".THEME."images/menu/menu_right.gif' alt=''></td></tr></table>
Ja skopiowa?em ten kod i wklei?em go bezpo?rednio nad... i tak otrzyma?em dwie belki górne. T? skopiowan? troch? jednak podrasowa?em (czyt. zmieni?em w niej kod) aby uzyska? efekt p?ynnego przewijania si? tre?ci w poziomie:
<table width='100%' cellspacing='0' cellpadding='0'><tr><td class='menu_left'><img src='".THEME."images/menu/menu_left.gif' alt=''></td><td class='menu_center'>[color=blue][b]<center><APPLET CODE='TextScroll.class' ARCHIVE='TextScroll.jar' WIDTH='750' HEIGHT='15'>
<PARAM NAME='bordercolor' VALUE='676767'>
<PARAM NAME='scrollbgcolor' VALUE='676767'>
<PARAM NAME='fontcolor' VALUE='CCA908'>
<PARAM NAME='hovercolor' VALUE='990000'>
<PARAM NAME='linkcolor' VALUE='0000ff'>
<PARAM NAME='dragging' VALUE='on'>
<PARAM NAME='brakes' VALUE='20'>
<PARAM NAME='fontface' VALUE='Arial'>
<PARAM NAME='fontstyle' VALUE='plain'>
<PARAM NAME='fontbold' VALUE='on'>
<PARAM NAME='fontsize' VALUE='12'>
<PARAM NAME='textfile' VALUE='off'>
<PARAM NAME='text' VALUE='Zarejestruj si? ---> B?d±c zarejestrowanym zyskasz dost?p do dodatkowych opcji mojej strony np. download, newsy, artyku?y, forum i wiele innych atrakcji *** Wype?nij ankiet? *** Napisz artyku? lub newsa *** Wpisz si? do Ksi?gi Go¶ci *** Zabierz g?os w dyskusji na forum *** Pobierz pliki w plikowni *** Napisz do mnie i zg?o¶ swoje uwagi, lub wy?al si? w Shoutbox <--- Zapraszam'>
<PARAM NAME='target' VALUE='_self'>
</APPLET>[/b][/color]</center></td><td class='menu_right'><img src='".THEME."images/menu/menu_right.gif' alt=''></td></tr></table>
Jak wida? efekt przewijania tekstu zosta? tu osi?gni?ty za pomoc? apletu javy... idealnie p?ynne przewijanie, bez efektu skokowego, który wyst?puje w marquee.
No ale Ty chcia?e? zast?pi? linki w belce górnej efektem marquee, a nie p?czkowa? belk? górn?. W zwi?zku z tym kod takiej belki górnej z przyk?adowym efektem marquee b?dzie wygl?da? np. tak:
<table width='100%' cellspacing='0' cellpadding='0'><tr><td class='menu_left'><img src='".THEME."images/menu/menu_left.gif' alt=''></td><td class='menu_center'>
<center>
[color=blue][b]<marquee style='background-color:EE2222; border: 2px dashed CCFF22; color:AAEE22; font-family:arial; width:500px; height:50px;' direction='left' behavior='scroll' scrollamount='8' >
Jestem ~Margos'em i nie brzydz? si? donosem !
</marquee>[/b][/color]
</center></td><td class='menu_right'><img src='".THEME."images/menu/menu_right.gif' alt=''></td></tr></table>
Je?li nie bardzo radzisz sobie z kodowaniem HTML i efekt marquee jest Tobie obcym, to zawsze mo?esz skorzysta? z generatora efektu marquee, który znajduje si? np. TU
Mi?ego rozbioru i analizy kodu ?ycz? oraz wytrwa?o?ci i cierpliwo?ci w i?cie Benedykty?skim stylu...
Edytowane przez as dnia 12.02.2007 10:11:21
as
|
|
|
|
Margos |
Dodany dnia 12.02.2007 10:08:49
|

Przedszkolak

Postów: 17
Data rejestracji: 30.01.2007 00:40
|
Heheheh Nie jest znowu tak benedykty?sko Dzi?ki serdeczne
---===PEACE===---
|
|
|
|
rabit7 |
Dodany dnia 16.02.2008 17:04:29
|

Przedszkolak

Postów: 57 Ostrzeżeń: 1
Data rejestracji: 02.02.2008 08:21
|
<table width='100%' cellspacing='0' cellpadding='0'><tr><td class='menu_left'><img src='".THEME."images/menu/menu_left.gif' alt=''></td><td class='menu_center'><center><img src='".THEME."images/bullet.gif' alt=''> | ";
$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/bullet.gif' alt=''> "; } 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='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")." | <img src='".THEME."images/bullet.gif' alt=''></center></td><td class='menu_right'><img src='".THEME."images/menu/menu_right.gif' alt=''></td></tr></table>
Ja nie mam tego w theme.php
Edytowane przez rabit7 dnia 16.02.2008 17:51:17
|
|
|
|
bartek124 |
Dodany dnia 16.02.2008 17:10:28
|

Weteran

Postów: 3264 Pomógł: 236
v7.02.06 Data rejestracji: 26.05.2007 12:25
|
A co masz?
Nie pomagam na komunikatorach oraz PW!
|
|
|
|
rabit7 |
Dodany dnia 16.02.2008 17:56:22
|

Przedszkolak

Postów: 57 Ostrzeżeń: 1
Data rejestracji: 02.02.2008 08:21
|
<table width='100%' cellspacing='0' cellpadding='0'><tr><td class='menu_left'><img src='".THEME."images/menu/menu_left.gif' alt=''></td><td class='menu_center'><center><img src='".THEME."images/bullet.gif' alt=''> | ";
$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/bullet.gif' alt=''> "; } 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='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")." | <img src='".THEME."images/bullet.gif' alt=''></center></td><td class='menu_right'><img src='".THEME."images/menu/menu_right.gif' alt=''></td></tr></table>
Na pewno to jest theme.php ?
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2006 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions lub |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Theme WoW_Orc for PHP-Fusion v6 |
|---------------------------------------------|
| Designed By: Fusion-Themes © 2006 |
| Author: Dusty Edwards aka uctxs |
| web: http://fusion-themes.com |
| email: |
|---------------------------------------------|
| Released under the terms and conditions lub |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/************************/
/* Theme Settings */
/************************/
$body_text = "#888888";
$body_bg = "#141414";
$theme_width = "70%";
$theme_width_l = "160";
$theme_width_r = "160";
function render_header($header_content) {
global $theme_width,$settings;
echo "<td><div align='right' id='clockbar'><div class='clockbarcolor'>";
echo "<script type='text/javascript' src='http://www.otwieramy.pl/baner.js?p=135279'></script>
<table align='center' width='$theme_width' cellspacing='1' cellpadding='2' class='border'>
<tr>
<td>
<table width='100%' cellspacing='1' cellpadding='1'>
<tr>
<td class='full-header'style='padding:2px;'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td><center><img src='".THEME."images/banner.gif' alt=''' title='".$settings[sitename]."'></center></td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table width='110%' cellspacing='0' cellpadding='0'>\n<tr>
<td class='white-header'>\n";
[b]$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 " ·\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='white'>".$data['link_name']."</a>";
} else {
echo "<b><a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a></b>";
}
}
$i++;
}
}
}[/b]
echo "<td align='right' id='clockbar'><div class='white-header'><div id='Clock'></div>";
echo "<script type='text/javascript'>
<!--
var DayNam = new Array(
'<b>Niedziela</b>','<b>Poniedzialek</b>','<b>Wtorek</b>','<b>Sroda</b>','<b>Czwartek</b>','<b>Piatek</b>','<b>Sobota</b>');
var MnthNam = new Array(
'<b>Styczen</b>','<b>Luty</b>','<b>Marzec</b>','<b>Kwiecien</b>','<b>Maj</b>','<b>Czerwiec</b>','<b>Lipiec</b>','<b>Sierpien</b>','<b>Wrzesien</b>','<b>Pazdziernik</b>','<b>Listopad</b>','<b>Grudzien</b>');
//-->
</script>";
echo "<script type='text/javascript' src='".THEME."/clock/clock.js'></script></div></div>";
echo "<div align='right' id='pageheader'>";
echo ($i == 0 ? " " : "")."</td><td align='right' id='clockbar'><div class='white-header'></td>
</tr>
</table>\n";
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 class='full-header'>".stripslashes($settings['footer'])."</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left' class='footer'><b><font color='#888888'>
".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."<br></font></b><br>\n" : $locale['141']."\n");
if ($license == false) {
echo "<td align='center' class='footer'> <a href=http://www.fb-clan.yoyo.pl/readarticle.php?article_id=23>redakcja</a> <a href=http://www.fb-clan.yoyo.pl/readarticle.php?article_id=22>reklama</a> <a href=http://www.fb-clan.yoyo.pl/forum/index.php>forum</a> <a href=http://www.fb-clan.yoyo.pl/search.php>Szukaj</a> <a href=http://www.fb-clan.yoyo.pl/readarticle.php?article_id=31>Serwer</a> <a href=http://www.google.pl>Download</a> By Rabit <a href='http://www.fb-clan.yoyo.pl' target='_blank'><img src='".THEME."images/gtafurious2.JPG' alt='GTA-Furious' title='GTA-Furious' border='0' style='vertical-align:middle;'></a> SA_Orc by: <img src='".THEME."images/uctxsthemes.gif' alt='Fusion-Themes' title='UCTXs Creative Networks' border='0' style='vertical-align:middle;'><td align='right' class='footer'>Powered by <a href='http://www.php-fusion.co.uk' target='_blank'><img src='".THEME."images/fusion.gif' alt='PHP-Fusion' title='PHP-Fusion' border='0' style='vertical-align:middle;'></a> ".$settings['']."<br>\n";
}
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
$news
</td>
</tr>
<tr>
<td align='right' class='news-footer'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."' class='white'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])." ·
".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."' class='white'>".$locale['042']."</a> ·\n" : "");
if ($info['news_allow_comments']) echo "<a href='news.php?readmore=".$info['news_id']."' class='white'>".$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>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td class='news-footer'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."' class='white'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])." ·\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>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
<tr>
<td height='8' class='side-base'> </td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<td class='capmain'>$title</td>
<td class='capmain' align='right'>
<img onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'>
</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
<tr>
<td colspan='2' height='8' class='side-base'> </td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}
function openside0($obrazek, $title) {
$obrazek="<IMG SRC='".THEME."images/$obrazek'>";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$obrazek $title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='8'></td></tr>
</table>\n";
}
?>
Edytowane przez bartek124 dnia 16.02.2008 19:05:11
|
|
|
|
Pieka |
Dodany dnia 16.02.2008 18:36:51
|


Postów: 19887 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Oczywiscie, przeciez to jest nawigacja pozioma.
Jestem jaki jestem 
|
|
|
|
bartek124 |
Dodany dnia 16.02.2008 19:06:01
|

Weteran

Postów: 3264 Pomógł: 236
v7.02.06 Data rejestracji: 26.05.2007 12:25
|
A pogrubione to co?
Nie pomagam na komunikatorach oraz PW!
|
|
|
|
rabit7 |
Dodany dnia 16.02.2008 22:06:18
|

Przedszkolak

Postów: 57 Ostrzeżeń: 1
Data rejestracji: 02.02.2008 08:21
|
Dopiero teraz to widze he he, jednak nie mog? doda? tej belki z apletem java, a chcialbym zobaczy? jak to wygl?da ; ). A jak mo?na rozci?gn?? belke w poziomie ?

Jak to usun?? ?
<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>
<td class='white-header'>\n";
$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 " ·\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='white'>".$data['link_name']."</a>";
} else {
echo "<b><a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a></b>";
}
}
$i++;
}
}
}
Troch? dziwny problem nie ? : )
Tak?e rozwi?zany ; ]
Edytowane przez rabit7 dnia 17.03.2008 21:43:43
|
|
|
|
biki |
Dodany dnia 17.08.2008 12:11:31
|

Przedszkolak

Postów: 47 Ostrzeżeń: 5
Data rejestracji: 17.07.2008 09:44
|
Kto przerobi mi plik theme.php aby wy?wietla? zamiast górnej belki nawigacji na stronie www.goralent.cba.pl
TEN SKRYPT:
<HTML>
<head>
<title>Preview</title>
<script type="text/javascript" src="http://www.goralent.cba.pl/stmenu.js"></script>
<script type="text/javascript">
<!--
window.onerror=function(m,u,l)
{
window.status = "Java Script Error: "+m;
return true;
}
//-->
<body>
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="5" topmargin="5">
<script type="text/javascript">
<!--
stm_bm(["menu1a91",800,"","http://www.goralent.cba.pl/blank.gif",0,"","",0,0,250,0,1000,1,0,0,"","",0,0,1,2,"default","hand","www.goralent.cba.pl"],this);
stm_bp("p0",[0,4,0,0,0,7,5,0,100,"",-2,"",-2,50,0,0,"#999999","transparent","http://www.goralent.cba.pl/bg_01.gif",3,1,1,"#000000"]);
stm_ai("p0i0",[0,"Strona G?ówna","","",-1,-1,0,"http://www.goralent.cba.pl","_self","","","","",5,5,0,"","",0,0,0,1,1,"#FFFFF7",1,"#993333",1,"","http://www.goralent.cba.pl/bg_02.gif",1,1,0,0,"#FFFFF7","#000000","#FFFFFF","#FFFFFF","bold 9pt Arial","bold 9pt Arial",0,0],143,20);
stm_aix("p0i1","p0i0",[0,"Newsy","","",-1,-1,0,"http://www.goralent.cba.pl/news_cats.php","_self","","","","",5,5,0,"","",-1,-1],143,20);
stm_bpx("p1","p0",[1,4,0,2,0,5,0,0,80,"progid:dXImageTransform.Microsoft.Fade(overlap=.5,enabled=0,Duration=0.73)",-2,"progid:dXImageTransform.Microsoft.RandomDissolve(,enabled=0,Duration=0.73)",12,37,0,0,"#666666","#000000",""]);
stm_aix("p1i0","p0i0",[0,"Klub","","",-1,-1,0,"http://www.goralent.cba.pl/news_cats.php?cat_id=17","_self","","","","",0,0,0,"","",0,0,0,0,1,"#F9E0CA",1,"#666666",0,"","",3,1,0,0,"#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","9pt Arial","9pt Arial"],0,18);
stm_aix("p1i1","p1i0",[0,"PZUnihokeja","","",-1,-1,0,"http://www.goralent.cba.pl/news_cats.php?cat_id=19"],0,18);
stm_aix("p1i2","p1i0",[0,"IFF","","",-1,-1,0,"http://www.goralent.cba.pl/news_cats.php?cat_id=22"],0,18);
stm_aix("p1i3","p1i0",[0,"Reprezentacja Polski","","",-1,-1,0,"http://www.goralent.cba.pl/news_cats.php?cat_id=25"],0,18);
stm_aix("p1i4","p1i0",[0,"Turnieje","","",-1,-1,0,"http://www.goralent.cba.pl/news_cats.php?cat_id=24"],0,18);
stm_aix("p1i5","p1i0",[0,"Portal","","",-1,-1,0,"http://www.goralent.cba.pl/news_cats.php?cat_id=18"],0,18);
stm_aix("p1i6","p1i0",[0,"Typer","","",-1,-1,0,"http://www.goralent.cba.pl/news_cats.php?cat_id=23"],0,18);
stm_aix("p1i7","p1i0",[0,"Relacje Live","","",-1,-1,0,"http://www.goralent.cba.pl/news_cats.php?cat_id=27"],0,18);
stm_aix("p1i8","p1i0",[0,"Kibice","","",-1,-1,0,"http://www.goralent.cba.pl/news_cats.php?cat_id=26"],0,18);
stm_aix("p1i9","p1i0",[0,"Inne","","",-1,-1,0,"http://www.goralent.cba.pl/news_cats.php?cat_id=20"],0,18);
stm_ep();
stm_aix("p0i2","p0i1",[0,"Download","","",-1,-1,0,"http://www.goralent.cba.pl/downloads.php"],143,20);
stm_bpx("p2","p1",[1,4,0,2,0,5,0,0,80,"progid:dXImageTransform.Microsoft.RandomDissolve(,enabled=0,Duration=0.30)",12,"progid:dXImageTransform.Microsoft.RandomDissolve(,enabled=0,Duration=0.30)",12,80]);
stm_aix("p2i0","p1i0",[0,"Filmy","","",-1,-1,0,"http://www.goralent.cba.pl/downloads.php?cat_id=1"],135,0);
stm_aix("p2i1","p1i0",[0,"Gry","","",-1,-1,0,"http://www.goralent.cba.pl/downloads.php?cat_id=2"],135,0);
stm_aix("p2i2","p1i0",[0,"Tapety","","",-1,-1,0,"http://www.goralent.cba.pl/downloads.php?cat_id=3"],135,0);
stm_aix("p2i3","p1i0",[0,"Skróty meczów","","",-1,-1,0,"http://www.goralent.cba.pl/downloads.php?cat_id=4"],135,0);
stm_ep();
stm_aix("p0i3","p0i1",[0,"Linki","","",-1,-1,0,"http://www.goralent.cba.pl/weblinks.php"],143,20);
stm_bpx("p3","p2",[]);
stm_aix("p3i0","p1i0",[0,"Floorball24","","",-1,-1,0,"http://www.floorball24.pl","_blank"],135,0);
stm_aix("p3i1","p3i0",[0,"Sklep Floorball24","","",-1,-1,0,"http://sklep.floorball24.pl"],135,0);
stm_aix("p3i2","p3i0",[0,"Magazyn Hokej","","",-1,-1,0,"http://www.magazynhokej.pl"],135,0);
stm_aix("p3i3","p3i0",[0,"Florbalki.pl","","",-1,-1,0,"http://www.florbalki.pl"],135,20);
stm_aix("p3i4","p3i0",[0,"Podhale-Sport","","",-1,-1,0,"http://www.podhale-sport.pl"],135,0);
stm_aix("p3i5","p3i0",[0,"PZUnihokeja","","",-1,-1,0,"http://www.pzunihokeja.pl"],135,0);
stm_ep();
stm_aix("p0i4","p0i0",[0,"Forum","","",-1,-1,0,"http://goralent.p2a.pl"],143,20);
stm_aix("p0i5","p0i0",[0,"Kontakt","","",-1,-1,0,"http://www.goralent.cba.pl/contact.php"],143,20);
stm_ep();
stm_em();
//-->
</script>
</body>
</html>
A OTO MÓJ theme.php:
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fu... |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Fusion 6 Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: Design For You - Force © 2006 |
| web: http://d4u.hut2.ru/ |
| 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 = "860";
$theme_width_l = "165";
$theme_width_r = "165";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table style='background-image:url(".THEME."images/center.png)' align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
echo "<tr><td width='0' height='0'><img src='".THEME."' width='0' height='0'></td>";
// Start banner code
echo "<td width='100%' height='57'>$header_content</td>";
// End banner code
echo "<td width='0' height='0'><img src='".THEME."images/header_right.png' width='0' height='0'></td></tr></table>\n";
// echo "<img src='".THEME."images/pixel.gif' height='1'>";
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'><tr>";
// echo "<td width='21' height='48'><img src='".THEME."images/nav_left.png' width='21' height='48'></td>";
echo "<td width='100%' height='48' style='background-image:url(".THEME."images/nav_center.png)'>";
echo "<table align='left' border='0' cellpadding='0' cellspacing='0' width='5'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_visibility<='".iUSER."' AND link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 1;
while($data = dbarray($result)) {
if ($data['link_url']!="---") {
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<td width='30' height='48'><img src='".THEME."images/menu_button_l.png' width='30' height='48'></td>";
echo "<td align='center' height='48' style='background-image:url(".THEME."images/menu_button_c.png)'>";
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
// echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='5'>";
echo "<td width='30' height='48'><img src='".THEME."images/menu_button_l.png' width='30' height='48'></td>";
echo "<td align='center' height='48' style='background-image:url(".THEME."images/menu_button_c.png)'>";
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
if ($i != dbrows($result)) {
echo "</td>";
echo "<td width='30' height='48'><img src='".THEME."images/menu_button_r.png' width='30' height='48'></td>";
} else {
echo "</td>";
echo "<td width='30' height='48'><img src='".THEME."images/menu_button_r.png' width='30' height='48'></td>";
} $i++;
}
}
echo "</table></td>";
// echo "<td align='right' width='25%' height='48' style='background-image:url(".THEME."images/nav_center.png)'>";
// echo "".ucwords(showdate($settings['subheaderdate'], time()))."</td>";
echo "<td width='50' height='48'><img src='".THEME."images/nav_right.png' width='21' height='48'></td>";
echo "</tr></table><table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'><tr>";
echo "<td height='25' valign='top' background='".THEME."images/copy_bg.gif' style='background-repeat:repeat-x' class='header'>".stripslashes($settings['footer'])."</td></tr></table>\n";
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
echo "<tr><td width='46' height='33'><img src='".THEME."images/copyleft.png' width='46' height='33'></td>";
echo "<td align='left' width='25%' height='33'>";
if ($license == false) {
echo "Design by: <a target='_blank' href='http://d4u.hut2.ru/'>d4u.hut2.ru</a>";
}
echo "</td>";
echo "<td align='center' width='50%'>Powered by <a href='http://www.php-fusion.co.uk' target='_blank'>PHP-Fusion</a> © 2003-2005";
echo "</td>";
echo "<td align='right' width='25%'>";
echo "<strong>".$settings['counter']." </strong>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td>";
echo "<td width='33'><img src='".THEME."images/blank.gif' width='33'></td></tr></table>";
|
|
|
|
Szapko |
Dodany dnia 17.08.2008 12:30:22
|

Bywalec

Postów: 888 Pomógł: 66
Data rejestracji: 19.08.2007 19:49
|
Do subheader.php daj:
<script type=\"text/javascript\" src=\"http://www.goralent.cba.pl/stmenu.js\"></script>
<script type=\"text/javascript\">
<!--
window.onerror=function(m,u,l)
{
window.status = \"Java Script Error: \"+m;
return true;
}
//-->
</script>
A w theme.php zamiast:
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_visibility<='".iUSER."' AND link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 1;
while($data = dbarray($result)) {
if ($data['link_url']!="---") {
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
Daj:
<script type=\"text/javascript\">
<!--
stm_bm([\"menu1a91\",800,\"\",\"http://www.goralent.cba.pl/blank.gif\",0,\"\",\"\",0,0,250,0,1000,1,0,0,\"\",\"\",0,0,1,2,\"default\",\"hand\",\"www.goralent.cba.pl\"],this);
stm_bp(\"p0\",[0,4,0,0,0,7,5,0,100,\"\",-2,\"\",-2,50,0,0,\"#999999\",\"transparent\",\"http://www.goralent.cba.pl/bg_01.gif\",3,1,1,\"#000000\"]);
stm_ai(\"p0i0\",[0,\"Strona G?ówna\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl\",\"_self\",\"\",\"\",\"\",\"\",5,5,0,\"\",\"\",0,0,0,1,1,\"#FFFFF7\",1,\"#993333\",1,\"\",\"http://www.goralent.cba.pl/bg_02.gif\",1,1,0,0,\"#FFFFF7\",\"#000000\",\"#FFFFFF\",\"#FFFFFF\",\"bold 9pt Arial\",\"bold 9pt Arial\",0,0],143,20);
stm_aix(\"p0i1\",\"p0i0\",[0,\"Newsy\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php\",\"_self\",\"\",\"\",\"\",\"\",5,5,0,\"\",\"\",-1,-1],143,20);
stm_bpx(\"p1\",\"p0\",[1,4,0,2,0,5,0,0,80,\"progid:dXImageTransform.Microsoft.Fade(overlap=.5,enabled=0,Duration=0.73)\",-2,\"progid:dXImageTransform.Microsoft.RandomDissolve(,enabled=0,Duration=0.73)\",12,37,0,0,\"#666666\",\"#000000\",\"\"]);
stm_aix(\"p1i0\",\"p0i0\",[0,\"Klub\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=17\",\"_self\",\"\",\"\",\"\",\"\",0,0,0,\"\",\"\",0,0,0,0,1,\"#F9E0CA\",1,\"#666666\",0,\"\",\"\",3,1,0,0,\"#FFFFFF\",\"#FFFFFF\",\"#FFFFFF\",\"#FFFFFF\",\"9pt Arial\",\"9pt Arial\"],0,18);
stm_aix(\"p1i1\",\"p1i0\",[0,\"PZUnihokeja\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=19\"],0,18);
stm_aix(\"p1i2\",\"p1i0\",[0,\"IFF\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=22\"],0,18);
stm_aix(\"p1i3\",\"p1i0\",[0,\"Reprezentacja Polski\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=25\"],0,18);
stm_aix(\"p1i4\",\"p1i0\",[0,\"Turnieje\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=24\"],0,18);
stm_aix(\"p1i5\",\"p1i0\",[0,\"Portal\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=18\"],0,18);
stm_aix(\"p1i6\",\"p1i0\",[0,\"Typer\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=23\"],0,18);
stm_aix(\"p1i7\",\"p1i0\",[0,\"Relacje Live\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=27\"],0,18);
stm_aix(\"p1i8\",\"p1i0\",[0,\"Kibice\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=26\"],0,18);
stm_aix(\"p1i9\",\"p1i0\",[0,\"Inne\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=20\"],0,18);
stm_ep();
stm_aix(\"p0i2\",\"p0i1\",[0,\"Download\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/downloads.php\"],143,20);
stm_bpx(\"p2\",\"p1\",[1,4,0,2,0,5,0,0,80,\"progid:dXImageTransform.Microsoft.RandomDissolve(,enabled=0,Duration=0.30)\",12,\"progid:dXImageTransform.Microsoft.RandomDissolve(,enabled=0,Duration=0.30)\",12,80]);
stm_aix(\"p2i0\",\"p1i0\",[0,\"Filmy\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/downloads.php?cat_id=1\"],135,0);
stm_aix(\"p2i1\",\"p1i0\",[0,\"Gry\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/downloads.php?cat_id=2\"],135,0);
stm_aix(\"p2i2\",\"p1i0\",[0,\"Tapety\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/downloads.php?cat_id=3\"],135,0);
stm_aix(\"p2i3\",\"p1i0\",[0,\"Skróty meczów\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/downloads.php?cat_id=4\"],135,0);
stm_ep();
stm_aix(\"p0i3\",\"p0i1\",[0,\"Linki\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/weblinks.php\"],143,20);
stm_bpx(\"p3\",\"p2\",[]);
stm_aix(\"p3i0\",\"p1i0\",[0,\"Floorball24\",\"\",\"\",-1,-1,0,\"http://www.floorball24.pl\",\"_blank\"],135,0);
stm_aix(\"p3i1\",\"p3i0\",[0,\"Sklep Floorball24\",\"\",\"\",-1,-1,0,\"http://sklep.floorball24.pl\"],135,0);
stm_aix(\"p3i2\",\"p3i0\",[0,\"Magazyn Hokej\",\"\",\"\",-1,-1,0,\"http://www.magazynhokej.pl\"],135,0);
stm_aix(\"p3i3\",\"p3i0\",[0,\"Florbalki.pl\",\"\",\"\",-1,-1,0,\"http://www.florbalki.pl\"],135,20);
stm_aix(\"p3i4\",\"p3i0\",[0,\"Podhale-Sport\",\"\",\"\",-1,-1,0,\"http://www.podhale-sport.pl\"],135,0);
stm_aix(\"p3i5\",\"p3i0\",[0,\"PZUnihokeja\",\"\",\"\",-1,-1,0,\"http://www.pzunihokeja.pl\"],135,0);
stm_ep();
stm_aix(\"p0i4\",\"p0i0\",[0,\"Forum\",\"\",\"\",-1,-1,0,\"http://goralent.p2a.pl\"],143,20);
stm_aix(\"p0i5\",\"p0i0\",[0,\"Kontakt\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/contact.php\"],143,20);
stm_ep();
stm_em();
//-->
</script>
Nie testowane.
|
|
|
|
biki |
Dodany dnia 17.08.2008 13:02:58
|

Przedszkolak

Postów: 47 Ostrzeżeń: 5
Data rejestracji: 17.07.2008 09:44
|
Wklei?em to tak:
theme.php
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fu... |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Fusion 6 Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: Design For You - Force © 2006 |
| web: http://d4u.hut2.ru/ |
| 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 = "890";
$theme_width_l = "185";
$theme_width_r = "185";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table style='background-image:url(".THEME."images/center.png)' align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
echo "<tr><td width='0' height='0'><img src='".THEME."' width='0' height='0'></td>";
// Start banner code
echo "<td width='100%' height='57'>$header_content</td>";
// End banner code
echo "<td width='0' height='0'><img src='".THEME."images/header_right.png' width='0' height='0'></td></tr></table>\n";
// echo "<img src='".THEME."images/pixel.gif' height='1'>";
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'><tr>";
// echo "<td width='21' height='48'><img src='".THEME."images/nav_left.png' width='21' height='48'></td>";
echo "<td width='100%' height='48' style='background-image:url(".THEME."images/nav_center.png)'>";
echo "<table align='left' border='0' cellpadding='0' cellspacing='0' width='5'>";
<script type=\"text/javascript\">
<!--
stm_bm([\"menu1a91\",800,\"\",\"http://www.goralent.cba.pl/blank.gif\",0,\"\",\"\",0,0,250,0,1000,1,0,0,\"\",\"\",0,0,1,2,\"default\",\"hand\",\"www.goralent.cba.pl\"],this);
stm_bp(\"p0\",[0,4,0,0,0,7,5,0,100,\"\",-2,\"\",-2,50,0,0,\"#999999\",\"transparent\",\"http://www.goralent.cba.pl/bg_01.gif\",3,1,1,\"#000000\"]);
stm_ai(\"p0i0\",[0,\"Strona G?ówna\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl\",\"_self\",\"\",\"\",\"\",\"\",5,5,0,\"\",\"\",0,0,0,1,1,\"#FFFFF7\",1,\"#993333\",1,\"\",\"http://www.goralent.cba.pl/bg_02.gif\",1,1,0,0,\"#FFFFF7\",\"#000000\",\"#FFFFFF\",\"#FFFFFF\",\"bold 9pt Arial\",\"bold 9pt Arial\",0,0],143,20);
stm_aix(\"p0i1\",\"p0i0\",[0,\"Newsy\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php\",\"_self\",\"\",\"\",\"\",\"\",5,5,0,\"\",\"\",-1,-1],143,20);
stm_bpx(\"p1\",\"p0\",[1,4,0,2,0,5,0,0,80,\"progid:dXImageTransform.Microsoft.Fade(overlap=.5,enabled=0,Duration=0.73)\",-2,\"progid:dXImageTransform.Microsoft.RandomDissolve(,enabled=0,Duration=0.73)\",12,37,0,0,\"#666666\",\"#000000\",\"\"]);
stm_aix(\"p1i0\",\"p0i0\",[0,\"Klub\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=17\",\"_self\",\"\",\"\",\"\",\"\",0,0,0,\"\",\"\",0,0,0,0,1,\"#F9E0CA\",1,\"#666666\",0,\"\",\"\",3,1,0,0,\"#FFFFFF\",\"#FFFFFF\",\"#FFFFFF\",\"#FFFFFF\",\"9pt Arial\",\"9pt Arial\"],0,18);
stm_aix(\"p1i1\",\"p1i0\",[0,\"PZUnihokeja\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=19\"],0,18);
stm_aix(\"p1i2\",\"p1i0\",[0,\"IFF\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=22\"],0,18);
stm_aix(\"p1i3\",\"p1i0\",[0,\"Reprezentacja Polski\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=25\"],0,18);
stm_aix(\"p1i4\",\"p1i0\",[0,\"Turnieje\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=24\"],0,18);
stm_aix(\"p1i5\",\"p1i0\",[0,\"Portal\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=18\"],0,18);
stm_aix(\"p1i6\",\"p1i0\",[0,\"Typer\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=23\"],0,18);
stm_aix(\"p1i7\",\"p1i0\",[0,\"Relacje Live\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=27\"],0,18);
stm_aix(\"p1i8\",\"p1i0\",[0,\"Kibice\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=26\"],0,18);
stm_aix(\"p1i9\",\"p1i0\",[0,\"Inne\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/news_cats.php?cat_id=20\"],0,18);
stm_ep();
stm_aix(\"p0i2\",\"p0i1\",[0,\"Download\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/downloads.php\"],143,20);
stm_bpx(\"p2\",\"p1\",[1,4,0,2,0,5,0,0,80,\"progid:dXImageTransform.Microsoft.RandomDissolve(,enabled=0,Duration=0.30)\",12,\"progid:dXImageTransform.Microsoft.RandomDissolve(,enabled=0,Duration=0.30)\",12,80]);
stm_aix(\"p2i0\",\"p1i0\",[0,\"Filmy\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/downloads.php?cat_id=1\"],135,0);
stm_aix(\"p2i1\",\"p1i0\",[0,\"Gry\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/downloads.php?cat_id=2\"],135,0);
stm_aix(\"p2i2\",\"p1i0\",[0,\"Tapety\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/downloads.php?cat_id=3\"],135,0);
stm_aix(\"p2i3\",\"p1i0\",[0,\"Skróty meczów\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/downloads.php?cat_id=4\"],135,0);
stm_ep();
stm_aix(\"p0i3\",\"p0i1\",[0,\"Linki\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/weblinks.php\"],143,20);
stm_bpx(\"p3\",\"p2\",[]);
stm_aix(\"p3i0\",\"p1i0\",[0,\"Floorball24\",\"\",\"\",-1,-1,0,\"http://www.floorball24.pl\",\"_blank\"],135,0);
stm_aix(\"p3i1\",\"p3i0\",[0,\"Sklep Floorball24\",\"\",\"\",-1,-1,0,\"http://sklep.floorball24.pl\"],135,0);
stm_aix(\"p3i2\",\"p3i0\",[0,\"Magazyn Hokej\",\"\",\"\",-1,-1,0,\"http://www.magazynhokej.pl\"],135,0);
stm_aix(\"p3i3\",\"p3i0\",[0,\"Florbalki.pl\",\"\",\"\",-1,-1,0,\"http://www.florbalki.pl\"],135,20);
stm_aix(\"p3i4\",\"p3i0\",[0,\"Podhale-Sport\",\"\",\"\",-1,-1,0,\"http://www.podhale-sport.pl\"],135,0);
stm_aix(\"p3i5\",\"p3i0\",[0,\"PZUnihokeja\",\"\",\"\",-1,-1,0,\"http://www.pzunihokeja.pl\"],135,0);
stm_ep();
stm_aix(\"p0i4\",\"p0i0\",[0,\"Forum\",\"\",\"\",-1,-1,0,\"http://goralent.p2a.pl\"],143,20);
stm_aix(\"p0i5\",\"p0i0\",[0,\"Kontakt\",\"\",\"\",-1,-1,0,\"http://www.goralent.cba.pl/contact.php\"],143,20);
stm_ep();
stm_em();
//-->
</script>
echo "<td width='30' height='48'><img src='".THEME."images/menu_button_l.png' width='30' height='48'></td>";
echo "<td align='center' height='48' style='background-image:url(".THEME."images/menu_button_c.png)'>";
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
// echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='5'>";
echo "<td width='30' height='48'><img src='".THEME."images/menu_button_l.png' width='30' height='48'></td>";
echo "<td align='center' height='48' style='background-image:url(".THEME."images/menu_button_c.png)'>";
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
if ($i != dbrows($result)) {
echo "</td>";
echo "<td width='30' height='48'><img src='".THEME."images/menu_button_r.png' width='30' height='48'></td>";
} else {
echo "</td>";
echo "<td width='30' height='48'><img src='".THEME."images/menu_button_r.png' width='30' height='48'></td>";
} $i++;
}
}
echo "</table></td>";
// echo "<td align='right' width='25%' height='48' style='background-image:url(".THEME."images/nav_center.png)'>";
// echo "".ucwords(showdate($settings['subheaderdate'], time()))."</td>";
echo "<td width='50' height='48'><img src='".THEME."images/nav_right.png' width='21' height='48'></td>";
echo "</tr></table><table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'><tr>";
echo "<td height='25' valign='top' background='".THEME."images/copy_bg.gif' style='background-repeat:repeat-x' class='header'>".stripslashes($settings['footer'])."</td></tr></table>\n";
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
echo "<tr><td width='46' height='33'><img src='".THEME."images/copyleft.png' width='46' height='33'></td>";
echo "<td align='left' width='25%' height='44'>";
if ($license == false) {
echo "Design by: <a target='_blank' href='http://d4u.hut2.ru/'>d4u.hut2.ru</a>";
}
echo " Powered by <a href='http://www.php-fusion.co.uk' target='_blank'>PHP-Fusion</a> © 2003-2005";
echo "</td>";
echo "<td align='center' width='50%'> </td>";
echo "<td align='right' width='25%'>";
echo "<strong>".$settings['counter']." </strong>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td>";
echo "<td width='33'> </td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='bpanel-left'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
echo "<td width='100%' class='bpanel-main'>$subject</td>";
echo "<td class='bpanel-right'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>$news</div>";
echo "<div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar'><img src='".THEME."images/bullet.gif'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a><br> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])."</td>";
echo "<td align='right' class='infobar2'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> <br>\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> <br> ";
echo "".$info['news_reads'].$locale['044']." <b>-</b> ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></div></td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'>";
echo "</td></tr><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='9' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$subject</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>";
echo "<div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar'><img src='".THEME."images/bullet.gif'> ";
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 align='right' class='infobar2'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." <b>·</b> ";
echo "".$info['article_reads'].$locale['044']." <b>-</b> ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></div></td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
echo "</tr><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='9' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td class='apanel-left'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
echo "<td width='100%' class='apanel-main'>$title</td>";
echo "<td class='apanel-right'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='9' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='dpanel-left'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
echo "<td width='100%' class='dpanel-main'>$title</td>";
echo "<td class='dpanel-right'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
echo "<td class='side-body'>\n";
}
function closeside() {
echo "</td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='9' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
echo "<td class='panel-main'>$title</td>";
echo "<td align='right' class='panel-main'><img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\"></td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
echo "<td class='side-body'>";
echo "<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='9' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='5'>";
echo "</td></tr></table>\n";
}
?> Kliknij i zaczekaj na załadowanie kodu ...
Lecz nie wiem jak edytowa? subheader.php:
Jak ktos wie jak to :
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fu...
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: index.php"); exit; }
require_once THEME."theme.php";
if ($settings['maintenance'] == "1" && !iADMIN) fallback(BASEDIR."maintenance.php");
if (iMEMBER) $result = dbquery("UPDATE ".$db_prefix."users SET user_lastvisit='".time()."', user_ip='".USER_IP."' WHERE user_id='".$userdata['user_id']."'");
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<link rel=\"stylesheet\" href=\"".THEME."anylink.css\" type=\"text/css\">
<script type=\"text/javascript\" src=\"".THEME."anylink.js\"></script>
<title>".$settings['sitename']."</title>
<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."'>
<meta name='description' content='".$settings['description']."'>
<meta name='keywords' content='".$settings['keywords']."'>
<link rel='stylesheet' href='".THEME."styles.css' type='text/css'>
<link rel='shortcut icon' href='".IMAGES."favicon.ico'>
<script type='text/javascript' src='".INCLUDES."jscript.js'></script>
</head>
<body bgcolor='$body_bg' text='$body_text'>\n";
render_header("<center>
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0'
id='traktor' width='875' height='226'>
<param name='movie' value='http://www.goralent.cba.pl/images/logo.swf'>
<param name='quality' value='high'>
<param name='bgcolor' value='#FFFFFF'>
<embed name='traktor' src='http://www.goralent.cba.pl/images/logo.sw'
quality='high' bgcolor='#FFFFFF'
width='875' height='226'
type='application/x-shockwave-flash'
pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>
</object></center>
");
?> Kliknij i zaczekaj na załadowanie kodu ...
Edytowane przez Pieka dnia 08.11.2008 11:36:37
|
|
|
|
Szapko |
Dodany dnia 17.08.2008 13:41:18
|

Bywalec

Postów: 888 Pomógł: 66
Data rejestracji: 19.08.2007 19:49
|
Wklej po tym:
<script type='text/javascript' src='".INCLUDES."jscript.js'></script>
|
|
|
|
biki |
Dodany dnia 17.08.2008 14:04:50
|

Przedszkolak

Postów: 47 Ostrzeżeń: 5
Data rejestracji: 17.07.2008 09:44
|
Nie dzia?a...
Jak to wklejam i wrzucam na serwer wy?wietla si? pusta strona.
PW od moderatora:
- Od?wie?enie Tematu - Milka 23.08 - 10:14
Edytowane przez biki dnia 23.08.2008 17:11:22
|
|
|
|
GTW |
Dodany dnia 08.11.2008 10:20:22
|

Przedszkolak

Postów: 84 Ostrzeżeń: 6
Data rejestracji: 11.10.2007 17:43
|
Witam
Mam pro?b?.
Chcia?bym zrobi? tak? belke górnego menu jak ma kolega na www.goralent.cba.pl ale boj? si? sam za to zabiera?.
Czy mo?e mi kto? przerobi? mój theme.php ?eby by?a taka górna belka z tym, ?e jej kolor ma by?: #0000CC no i litery bia?e [#FFFFFF]
Jeszcze jedno pytanie - czy przy tej belce kategorie i podkategorie dodaje si? w Panelu Adm.?
Mój theme.php
<?php
// theme settings
$body_text = "#000000";
$body_bg = "#287AC6";
$theme_width = "880";
$theme_width_l = "0";
$theme_width_r = "310";
//You can enable one side's panels to be switched to the opposite side temporary
$disable_side = 0; //Disable a Panel column for 2 Column look? (1=left/2=right/0=no) EXPERIMENTAL
//Choose where to display the horizontal navigation
$topnavi_position = 2; // Position of the horizontal navigation? (1=Above Header/2=below header/3=both/0=off)
//Choose whether you want to show a additional navigation in the footer displaying the links of the top navigation
$footer_navigation = 1; //Enable the Horizontal Navigation to be shown in the footer, too? (1=yes/0=no)
//Disable the Header if you don't need it, here
$show_header = 1; //Show the Header? (1=yes/0=no)
//Setting this to 1 will disable the default header background image
$disable_background = 0; //Disable Background? (1=yes/0=no)
//Descide whether or not to show the date next to the top navigation
$show_date = 1; //Show date? (1=yes/0=no)
//If this is enabled, the Banner you set in Main Settings will be shown
//Elsewise the banner.jpg in the Theme folder is displayed
$default_banner = 0; //Whether or not to use the Banner set in Main Settings (1=yes/0=no)
//Enable this to show a cool CSS-based Rollover Navigation, replacing the default one temporary
$advanced_navigation = 1; //Fancy Navigation? (1=yes/0=no)
//If you want to have you php-fusion version displayed in the footer, set this to 1
$show_version = 0; //Show your php-fusion version? (1=yes/0=no)
function render_header($header_content) {
global $theme_width, $settings, $locale, $default_banner, $topnavi_position, $show_header, $navigation_table, $panel_ids, $disable_side, $show_date, $disable_background;
if($disable_side == 1 || $disable_side == 2){
$panel_query = dbquery("SELECT panel_id FROM ".DB_PREFIX."panels WHERE panel_side = ".($disable_side == 1 ? "1" : "3" )."");
$panel_ids = array();
while($panel_id = mysql_fetch_row($panel_query))
array_push($panel_ids, $panel_id[0]);
dbquery("UPDATE ".DB_PREFIX."panels SET panel_side = ".($disable_side == 1 ? "3" : "1" )." WHERE panel_side = ".($disable_side == 1 ? "1" : "3" )."");
}
if($show_header == 1){
$header_table = "
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='full-header' ".($disable_background == 1 ? "style='background-image:none;'" : "").">";
if($default_banner == 1)
$header_table .= $header_content;
else
$header_table .= "<img src='".THEME."banner.jpg' alt='".$settings['sitename']."'>";
$header_table .="</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}else{
$header_table = "";
}
$navigation_table =
"<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='white-header'>\n";
$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) { $navigation_table .= " ·\n"; } else { $navigation_table .= "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
$navigation_table .= "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
$navigation_table .= "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
$navigation_table .= ($i == 0 ? " " : "")."</td>";
if($show_date == 1)
$navigation_table .= "<td align='right' class='white-header' style='padding-right:6px;'>".ucwords(showdate("longdate", time()))."</td>";
$navigation_table .= "
</tr>
</table>\n";
echo "
<table style='margin:0px auto' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td align='right'><img src='".THEME."images/corner.jpg' alt=' '></td>
<td style='background-image: url(".THEME."images/bordertop.jpg); background-repeat: repeat-x;'></td>
<td><img src='".THEME."images/corner.jpg' alt=' '></td>
</tr>
<tr>
<td style='background-image: url(".THEME."images/borderleft.jpg); background-repeat: repeat-y; background-position: right; width: 10px;' align='right'> </td>
<td>
<table width='100%' class='border' cellspacing='0' cellpadding='0'>
<tr>
<td valign='top'>";
if($topnavi_position == 0)
echo $header_table;
elseif($topnavi_position == 1)
echo $navigation_table.$header_table;
elseif($topnavi_position == 3)
echo $navigation_table.$header_table.$navigation_table;
elseif($topnavi_position == 2)
echo $header_table.$navigation_table;
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr>\n";
}
function render_footer($license=false) {
global $theme_width, $settings, $locale, $footer_navigation, $show_version, $panel_ids, $disable_side;
echo "
</tr>
</table>\n";
if($footer_navigation == 1){
echo"
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='white-header' style='text-align:center;'>\n";
$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 " ·\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='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>
</table>\n";
}
echo "
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>".stripslashes($settings['footer'])."</td>
</tr>
<tr>
<td align='center' style='padding-bottom:5px;'>
".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."<br>\n" : $locale['141']."<br>\n");
if ($license == false) {
echo "Powered by <a href='http://www.php-fusion.co.uk' target='_blank'>PHP-Fusion</a> ".($show_version == 1 ? "v".$settings['version']." ©" : "" )."2003-2008 and\n";
}
echo "<a href='http://www.tylek.webd.pl/'>Tylek</a>";
echo "</td>
</tr>
<tr><td align='center' style='padding-bottom:5px;'>
<div class='sponsor'>ZAPRASZAMY NA FORUM:</div><br>
<a href='http://tylek.webd.pl/forum/index.php'><img src='".THEME."/images/ekk.jpg'></a>
</td></tr>
</table>
</td>
</tr>
</table>
</td>
<td align='left' style='background-image: url(".THEME."images/borderright.jpg); background-repeat: repeat-y; width: 10px;'> </td>
</tr>
<tr>
<td>
<img src='".THEME."images/corner.jpg' alt=' '>
</td>
<td style='background-image: url(".THEME."images/borderbottom.jpg); background-repeat: repeat-x;'>
</td>
<td>
<img src='".THEME."images/corner.jpg' alt=' '>
</td>
</tr>
</table>\n";
if($disable_side == 1 || $disable_side == 2){
foreach($panel_ids as $panel_id){
dbquery("UPDATE ".DB_PREFIX."panels SET panel_side = ".($disable_side == 1 ? "1" : "3" )." WHERE panel_id = ".$panel_id."");
}
}
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td>
<span class='news-date'><a class='news' href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['news_date'])."</span>
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>
$news
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='news-date'>\n";
if ($info['news_ext'] == "y") echo "<a class='news' href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n";
if ($info['news_allow_comments']) echo "<a class='news' href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·\n";
echo $info['news_reads'].$locale['044']." · <a class='news' href='print.php?type=N&item_id=".$info['news_id']."'>".$locale['045']."</a>";
if (checkrights("N"))
echo" · <form style='display:inline' name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php?news_id=".$info['news_id']."'><input type='hidden' name='edit' value='edit'><a class='news' href='javascript:document.editnews".$info['news_id'].".submit();'>".$locale['048']."</a></form>
";
echo"
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td>
<span class='news-date'><a class='news' href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['article_date'])."</span>
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='news-date'>\n";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
echo $info['article_reads'].$locale['044']."
· <a class='news' href='print.php?type=A&item_id=".$info['article_id']."'>".$locale['045']."</a>";
echo"
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$title</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function openside($title) {
global $advanced_navigation, $navigation_hidden, $p_data;
echo "
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapmain'>$title</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>\n";
if($advanced_navigation == 1 AND $p_data['panel_filename'] == 'navigation_panel'){
$query = dbquery("SELECT * FROM `".DB_PREFIX."panels` WHERE panel_name ='".$title."'");
if(dbrows($query) != 0){
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position<='2' ORDER BY link_order");
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_name'] != "---" && $data['link_url'] == "---") {
echo "
<div class='side-label2'><b>".$data['link_name']."</b></div>\n";
} else if ($data['link_name'] == "---" && $data['link_url'] == "---") {
echo "
<hr class='side-hr2'>\n";
} else {
$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='navigation'>".$data['link_name']."</a><br>\n";
} else {
echo "
<a href='".BASEDIR.$data['link_url']."'".$link_target." class='navigation'>".$data['link_name']."</a><br>\n";
}
}
}
}
echo "<div style='position: absolute; top:5px; height: 1px; width:1px; overflow:hidden;'>";
$navigation_hidden = 1;
}
}
}
function closeside() {
global $navigation_hidden , $advanced_navigation;
if($advanced_navigation == 1){
if($navigation_hidden == 1){
echo "</div>";
$navigation_hidden = 0;
}
}
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' 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>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>
<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\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";
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
Edytowane przez Pieka dnia 08.11.2008 11:37:50
www.e-Poniatowa.pl - widzisz b??dy ? ch?tnie przyjm? pomoc na PW - oczywi?cie $.
"Tu nie ma drogi Uzytkowniku demokracji, przykro mi..."
|
|
|
|
redips |
Dodany dnia 21.12.2008 01:04:07
|

Przedszkolak

Postów: 17 Ostrzeżeń: 2
Data rejestracji: 27.06.2006 11:22
Złamana licencja
|
Przy??czam si? do pro?by |
|
|