Jak usunąć ze strony to puste pole ??
|
Bananas |
Dodany dnia 15.03.2007 17:49:36
|
Początkujący
Postów: 111
Data rejestracji: 15.12.2006 16:45
|
Chodzi mi oto żeby usunąć ta czarna przerwę spomiędzy Panlelu nawigacj w moim przypadku New_Navigation_Panel_v3_1 a tym paskiem u góry. To adres do strony www.ndl.yoyo.pl. Bardzo prosze o pomoc. |
|
|
|
Wścibski Gość |
Dodany dnia 12.01.2025 11:03:45
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
MeTeo |
Dodany dnia 15.03.2007 18:57:25
|
Bywalec
Postów: 880 Pomógł: 23 Ostrzeżeń: 2
Data rejestracji: 14.12.2005 19:38
|
ten pasek u góry to twój nagłówek panelu... Zdefiniuj nową klasę w styles.css w której nie będzie nagłówka... i po kłopocie... poza tym każdy obraz dodany w new_nawigatio_panel (z tego co wiem) ma dodany align... a to nieco obniża jego wysokość... generalnie twoje obrazy są szerokie więc nie potrzeba nadawania miejsca po tych czynnościach nie będziesz miał tego "czarnego paska" |
|
|
|
Bananas |
Dodany dnia 15.03.2007 19:28:37
|
Początkujący
Postów: 111
Data rejestracji: 15.12.2006 16:45
|
A jak dodac ta nowo klase?? i jak ten algin zmienic ?? |
|
|
|
MeTeo |
Dodany dnia 15.03.2007 19:30:04
|
Bywalec
Postów: 880 Pomógł: 23 Ostrzeżeń: 2
Data rejestracji: 14.12.2005 19:38
|
wstaw tu kod openside z theme.php... |
|
|
|
Bananas |
Dodany dnia 15.03.2007 20:39:47
|
Początkujący
Postów: 111
Data rejestracji: 15.12.2006 16:45
|
Czy chodzi oto z mojej skórki ??
<?
// theme settings
$body_text = "#ffffff";
$body_bg = "#383c3b";
$theme_width = "100%";
$theme_width_l = "180";
$theme_width_r = "180";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td class='leftside' valign=top></td>
<td>
</td>
<td>
<table width='100%' align='center' cellspacing='0' cellpadding='0'>
<tr>
<td width='100%' height='225' class='top-t'><center><img src='".THEME."images/logo.jpg'></center></td>
</tr>
<tr>
<td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='sub-l' > <img src='".THEME."images/bulletml.gif'> ";
$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 "<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>";
}
}
if ($i != dbrows($result)) { echo " <img src='".THEME."images/bulletms.gif'> \n"; } else { echo "\n"; } $i++;
}
}
echo " <img src='".THEME."images/bulletmp.gif'></td>
<td class='sub-m' > </td>
<td class='sub-r' align='right' width='25%'>".ucwords(showdate($settings['subheaderdate'], time()))." </td>
</tr>
</table>
</td>
</tr>
<tr>
<td align=center>
</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td><center><table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td class='sidi-top-left'> </td>
<td class='sidi-top-main' > </td>
<td class='sidi-top-right'> </td>
</tr>
<tr>
<td class='sidi-left'> </td>
<td class='side-body' ><center><table border='0'>
<tr>
<td class='side-body' width='100%'><center><b><a href='http://www.php-fusion.co.uk'>PHP-Fusion</a> v".$settings['version']."</b><br>
<tr>
<td class='side-body' width='100%'><center><b>Best Resolution : 1280 x 1024</b><br>
<tr>
<td class='side-body' width='100%'><center><b>Design & Copyright 2005 by ANUBIS</b><br>
</b></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td><center>
<br>
\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo " \n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <b>::</b>\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 ? " " : "")."
</center></td>
</tr>
</table></td>
<td class='sidi-right'> </td>
</tr>
<tr>
<td class='border-dol'> </td>
<td class='border-dos'> </td>
<td class='border-dor'> </td>
</tr>
</table></center>
</td>
</tr>
</table>
</td>
<td class='rightside' valign='top'></td>
</td>
</tr>
</table>
<center><table cellpadding='0' cellspacing='0'><tr><td class='leftside'></td><td width='100%' height='24' class='vudel-d'></td><td class='rightside'></td></tr></table></center>
\n";
}
function render_news($subject, $news, $info) {
global $settings;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
<td width='100%' class='sidi-top-main'>$subject</td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'>
<div style='width:100%;vertical-align:top;'>$news</div>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='infobar'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."
</td>
<td align='right' class='infobar'>
".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·
".$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>
</div>
</td>
<td class='sidi-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-dol'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
<td class='border-dos'><img src='".THEME."images/blank.gif' width='1' height='24' alt='' style='display:block'></td>
<td class='border-dor'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
<td width='100%' class='sidi-top-main'><b>$subject</b></td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'>
<div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='infobar'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."
</td>
<td align='right' class='infobar'>
<a href='readarticle.php?article_id=".$info['article_id']."'>".$info['article_comments'].$locale['043']."</a> ·
".$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>
</div>
</td>
<td class='sidi-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-dol'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
<td class='border-dos'><img src='".THEME."images/blank.gif' width='1' height='24' alt='' style='display:block'></td>
<td class='border-dor'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
<td width='100%' class='sidi-top-main'>$title</td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
<td class='sidi-right' ><img src='".THEME."images/blank.gif' width='14' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-dol'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-dos'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-dor'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
<td width='100%' class='sidi-top-main'>$title</td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='14' height='24' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
<td class='sidi-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-dol'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-dos'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-dor'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
<td class='sidi-top-main'>$title</td>
<td align='right' class='sidi-top-main'><img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'></td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='side-body'>
<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>
<td class='border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-bleft'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-bright'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='5'></td></tr>
</table>\n";
}
?>
|
|
|
|
szer |
Dodany dnia 15.03.2007 20:53:39
|
Zaawansowany
Postów: 1139 Pomógł: 4
Data rejestracji: 13.11.2004 23:06
|
Eh i po co? Po co podajesz dużo trudniejszy sposób? Już dużo łatwiej jest zrobić tak, by w theme.php w sekcji function openside(); zamiast nazwy panelu dać obrazek. Definiujesz wtedy kod że pobiera np. obrazek o numerze takim, jakie id ma panel. I gotowe. A jeżeli tak nie chce to wchodzisz w swój panel nawigacji i zamieniasz tam openside(); na <table><tr><td>
|
|
|
|
Bananas |
Dodany dnia 15.03.2007 20:57:00
|
Początkujący
Postów: 111
Data rejestracji: 15.12.2006 16:45
|
w PA ?? |
|
|
|
szer |
Dodany dnia 15.03.2007 21:00:32
|
Zaawansowany
Postów: 1139 Pomógł: 4
Data rejestracji: 13.11.2004 23:06
|
Jakim panelu admina? Ta wtyczka jest zapisana w pliku. Pomyśl troche, poszukaj... Napewno trafisz |
|
|
|
Bananas |
Dodany dnia 15.03.2007 22:59:34
|
Początkujący
Postów: 111
Data rejestracji: 15.12.2006 16:45
|
to gzdieś tam infusions>new panel navigation na serwerze ?? |
|
|
|
szer |
Dodany dnia 15.03.2007 23:19:52
|
Zaawansowany
Postów: 1139 Pomógł: 4
Data rejestracji: 13.11.2004 23:06
|
Na serwerze masz folder infusions/ I tam masz folder tej wtyczki. Jest to nawigacja. Nie wiem jaką masz. I tam to zmień |
|
|
|
Bananas |
Dodany dnia 16.03.2007 14:31:50
|
Początkujący
Postów: 111
Data rejestracji: 15.12.2006 16:45
|
W pliku infusions>new_navigation_panel>new_navigation_panel.php nie znalazłem zdnego openside(); tylko jakiś openside($locale['001']); a ten drugi sposób tez jaet jakiś dziwny bo w theme.php nie znalazłem żadnego function openside(); tylko jakieś function openside($title). Co zrobić ?? |
|
|
|
szer |
Dodany dnia 16.03.2007 18:18:02
|
Zaawansowany
Postów: 1139 Pomógł: 4
Data rejestracji: 13.11.2004 23:06
|
Nie no prosze Cię nie dobijaj mnie, bo zaraz zablokuje temat!
Chodzi o:
openside($locale['001']);
a napisałem openside(); by Ci pokazaćo jaką funkcje chodzi.... Trudne? Nie, wystarczy pomyśleć troche... |
|
|
|
Therror |
Dodany dnia 16.03.2007 18:47:17
|
Początkujący
Postów: 222
Data rejestracji: 24.01.2006 14:08
|
Niektórym bozia nie dała ani kawałeczka rozumu...
Macie zlecenia na wtyczki i themy do PHP-Fusion?
Pisać na PW
|
|
|
|
Bananas |
Dodany dnia 16.03.2007 20:52:00
|
Początkujący
Postów: 111
Data rejestracji: 15.12.2006 16:45
|
Wyskakuje mi jakiś bład sami zobaczcie www.ndl.yoyo.pl Co zrobić ??
Mimo 78 postow, Ty nadal nie wiesz dlaczego znikaja Twoje? KOD w CODE!!/Pieka
Edytowane przez Pieka dnia 16.03.2007 20:56:05
|
|
|
|
szer |
Dodany dnia 16.03.2007 21:25:32
|
Zaawansowany
Postów: 1139 Pomógł: 4
Data rejestracji: 13.11.2004 23:06
|
~Bananas: Nie no nie dołuj mnie. Przy takich jak Ty odechciewa mi się pomagać i wogóle być na supporcie :|.
Jest wiele tematów na temat tego co zrobiłes. Poszukaj tematu o panelach. Dowiesz sięw czym jest bład. Podpowiem:
echo "";
|
|
|
|
Bananas |
Dodany dnia 17.03.2007 10:53:22
|
Początkujący
Postów: 111
Data rejestracji: 15.12.2006 16:45
|
Szer bardzo przepraszam za moja głupote. Niestety nic to niedało nadal jest ten odstęp tylko że nie czarny a linki w nawgiacji nie sa juz na czarnym tle ;/ zobaczcie www.ndl.yoyo.pl |
|
|
|
szer |
Dodany dnia 17.03.2007 10:56:58
|
Zaawansowany
Postów: 1139 Pomógł: 4
Data rejestracji: 13.11.2004 23:06
|
Ah wklej tutaj swój kod funkcji openside(); to Ci ją przerobie i podam kod który masz wstawić w swoim panelu nawigacji... |
|
|
|
Bananas |
Dodany dnia 17.03.2007 11:14:53
|
Początkujący
Postów: 111
Data rejestracji: 15.12.2006 16:45
|
Czy chodzi o to ??
function openside($title) {
echo "<table width='100%' border='0' cellspacing='0' cellpadding='3'><tr><td>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='30' height='25' background='".THEME."images/darkSilverHeader_01.gif'></td>";
echo "<td height='25' background='".THEME."images/darkSilverHeader_03.gif'><div align='center'><font class='block-title'><strong>$title</strong></font></div></td>";
echo "<td width='30' height='25' background='".THEME."images/darkSilverHeader_05.gif'></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_05.gif'></td>";
echo "<td bgcolor='#000000'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='4'><td><tr>";
echo "<td class='side-body'></td></table>";
|
|
|
|
szer |
Dodany dnia 18.03.2007 13:30:11
|
Zaawansowany
Postów: 1139 Pomógł: 4
Data rejestracji: 13.11.2004 23:06
|
Zamiast openside(); w pliku nawigacji wkej:
echo "<table width='100%' border='0' cellspacing='0' cellpadding='4'><td><tr>";
echo "<td class='side-body'>";
a zamiast closesie(); wstaw to:
echo "</td></tr><table>";
Edytowane przez szer dnia 18.03.2007 17:02:51
|
|
|
|
Bananas |
Dodany dnia 18.03.2007 15:26:47
|
Początkujący
Postów: 111
Data rejestracji: 15.12.2006 16:45
|
Cos nie tak jest www.ndl.yoyo.pl
Pozamieniałem to w pliku new_navigation_panel.php
Oto kod z zamienieniem, tam gdzie pogrubione jest to zamienione:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| 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
+----------------------------------------------------*/
//version:3.0
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
$config = dbarray(dbquery("SELECT link_display_type FROM ".DB_PREFIX."site_links_new_config LIMIT 1"));
$nnp_style = $config['link_display_type'];
$table_start="<table cellpadding='0' cellspacing='0' width='100%'><tr><td width='90%' class='side-label'>";
$table_mid="</td><td width='10%' class='side-label'>";
$table_end="</td></tr></table>";
[b]echo "<table width='100%' border='0' cellspacing='0' cellpadding='4'><td><tr>";
echo "<td class='side-body'>";
[/b]
$result = dbquery("SELECT * FROM ".$db_prefix."site_links_new WHERE link_position<='2' ORDER BY link_order");
$rows = dbrows($result);
if ($rows != 0) {
switch ($nnp_style) {
case "images_pull":
echo "\n<!-- NEW NAVIGATION -->\n";
while($data = dbarray($result)) {
$contens++;
if (checkgroup($data['link_visibility'])) {
if ($data['link_name'] != "---" && $data['link_url'] == "---") {
if ($data['link_subgroup']!=0) {
$subgroup=true;
$sub = " ";
} else {
$sub = "";
}
$box = ($data['link_open']==1 ? "off" : "on");
$box_img = ($data['link_open']==0 ? "off" : "on");
$group_name = 'NNP_'.$data['link_id'];
$group_open=true;
$group_count++;
if ($data['link_img']!="null.gif") {
echo $table_start.$sub.($data['link_img']!=""?"<img style='border:none;vertical-align:middle' src='".INFUSIONS."new_navigation_panel/images/".$data['link_img']."' alt=''>":"")." <b>".$data['link_name']."</b>".$table_mid."<img onClick=\"javascript:flipBox('$group_name')\" name='b_$group_name' style='border:none' src='".THEME."images/panel_$box_img.gif' alt='$box_img' ><br>".$table_end."\n";
} else {
echo $table_start.$sub."<b>".$data['link_name']."</b> <img style='border:none;vertical-align:middle' src='".INFUSIONS."new_navigation_panel/images/null.gif' alt=''>".$table_mid."<img onClick=\"javascript:flipBox('$group_name')\" name='b_$group_name' style='border:none' alt='$box_img' src='".THEME."images/panel_$box_img.gif'><br>".$table_end."\n";
}
} else if ($data['link_name'] == "---" && $data['link_url'] == "---") {
echo "$sub<hr class='side-hr'>\n";
} else {
if ($group_open) {
echo "<div id='box_$group_name'".($box=="off" ? " style='display:none'" : " style='display:block'").">\n";
$group_open=false;
}
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "$sub<img src='".THEME."images/bullet.gif' style='border:none' alt='bullet'> <a href='".$data['link_url']."'".$link_target." class='side'>".parseubb($data['link_name'])."</a><br>\n";
} else {
echo "$sub<img src='".THEME."images/bullet.gif' style='border:none' alt='bullet'> <a href='".BASEDIR.$data['link_url']."'".$link_target." class='side'>".parseubb($data['link_name'])."</a><br>\n";
}
$result2 = dbquery("SELECT * FROM ".$db_prefix."site_links_new WHERE link_position<='2' AND link_order>'".$data['link_order']."' ORDER BY link_order LIMIT 1");
$data2=dbarray($result2);
if ($group_count!=0 && $data2['link_name']!="---" && $data2['link_url']=="---" && $data2['link_subgroup']!=1) {
echo "</div>\n";
}
if ($data2['link_name']!="---" && $data2['link_url']=="---" && $subgroup==true && $group_open==false) {
echo "</div>\n";
$subgroup=false;
}
}
if ($contens==$rows && $group_count!=0) {
echo "</div>";
}
}
} //while
echo "<!-- NEW NAVIGATION -->\n";
break;
case "images":
echo "\n<!-- NEW NAVIGATION -->\n";
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_name'] != "---" && $data['link_url'] == "---") {
if ($data['link_subgroup']!=0) {
$subgroup=true;
$sub = " ";
} else {
$sub = "";
}
if ($data['link_img']!="null.gif") {
echo "<br>$sub".($data['link_img']!=""?"<img style='border:none;vertical-align:middle' src='".INFUSIONS."new_navigation_panel/images/".$data['link_img']."' alt=''>":"")." <b>".$data['link_name']."</b><br>\n";
} else {
echo "<br>$sub<b>".$data['link_name']."</b><img style='border:none;vertical-align:middle' src='".INFUSIONS."new_navigation_panel/images/null.gif' alt=''><br>\n";
}
} else if ($data['link_name'] == "---" && $data['link_url'] == "---") {
echo "$sub<hr class='side-hr'>\n";
} else {
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "$sub<img style='border:none' src='".THEME."images/bullet.gif' alt=''> <a href='".$data['link_url']."'".$link_target." class='side'>".parseubb($data['link_name'])."</a><br>\n";
} else {
echo "$sub<img style='border:none' src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR.$data['link_url']."'".$link_target." class='side'>".parseubb($data['link_name'])."</a><br>\n";
}
}
}
}
echo "<!-- NEW NAVIGATION -->\n";
break;
case "classic_pull":
echo "\n<!-- NEW NAVIGATION -->\n";
while($data = dbarray($result)) {
$contens++;
if (checkgroup($data['link_visibility'])) {
if ($data['link_name'] != "---" && $data['link_url'] == "---") {
if ($data['link_subgroup']!=0) {
$subgroup=true;
$sub = " ";
} else {
$sub = "";
}
$box = ($data['link_open']==1 ? "off" : "on");
$box_img = ($data['link_open']==0 ? "off" : "on");
$group_name = 'NNP_'.$data['link_id'];
echo $table_start."<div class='side-label'>$sub<b>".$data['link_name']."</b></div>".$table_mid."<img onClick=\"javascript:flipBox('$group_name')\" name='b_$group_name' style='border:none' alt='$box_img' src='".THEME."images/panel_$box_img.gif'>".$table_end."\n";
$group_open=true;
$group_count++;
} else if ($data['link_name'] == "---" && $data['link_url'] == "---") {
echo "$sub<hr class='side-hr'>\n";
} else {
if ($group_open) {
echo "<div id='box_$group_name'".($box=="off" ? " style='display:none'" : " style='display:block'").">\n";
$group_open=false;
}
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "$sub<img style='border:none' src='".THEME."images/bullet.gif' alt=''> <a href='".$data['link_url']."'".$link_target." class='side'>".parseubb($data['link_name'])."</a><br>\n";
} else {
echo "$sub<img style='border:none' src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR.$data['link_url']."'".$link_target." class='side'>".parseubb($data['link_name'])."</a><br>\n";
}
$result2 = dbquery("SELECT * FROM ".$db_prefix."site_links_new WHERE link_position<='2' AND link_order>'".$data['link_order']."' ORDER BY link_order LIMIT 1");
$data2=dbarray($result2);
if ($group_count!=0 && $data2['link_name']!="---" && $data2['link_url']=="---" && $data2['link_subgroup']!=1) {
echo "</div>\n";
}
if ($data2['link_name']!="---" && $data2['link_url']=="---" && $subgroup==true && $group_open==false) {
echo "</div>\n";
$subgroup=false;
}
}
if ($contens==$rows && $group_count!=0) {
echo "</div>";
}
}
}
echo "<!-- NEW NAVIGATION -->\n";
break;
case "classic":
echo "\n<!-- NEW NAVIGATION -->\n";
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_name'] != "---" && $data['link_url'] == "---") {
$subgroup=false;
if ($data['link_subgroup']!=0) {
$subgroup=true;
$sub = " ";
} else {
$sub = "";
}
echo "<div class='side-label'>$sub<b>".$data['link_name']."</b></div>\n";
} else if ($data['link_name'] == "---" && $data['link_url'] == "---") {
echo "$sub<hr class='side-hr'>\n";
} else {
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "$sub<img style='border:none' src='".THEME."images/bullet.gif' alt=''> <a href='".$data['link_url']."'".$link_target." class='side'>".parseubb($data['link_name'])."</a><br>\n";
} else {
echo "$sub<img style='border:none' src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR.$data['link_url']."'".$link_target." class='side'>".parseubb($data['link_name'])."</a><br>\n";
}
}
}
}
echo "<!-- NEW NAVIGATION -->\n";
break;
}
} else {
echo $locale['002'];
}
[b]echo "</td></tr><table>";[/b]
?>
Edytowane przez szer dnia 18.03.2007 17:03:20
|
|
|