Zmiana wielkości banera i szerokości strony w theme "Aero 2"
|
bezel85 |
Dodany dnia 15.08.2008 20:10:26
|
Przedszkolak
Postów: 10 Ostrzeżeń: 2
Data rejestracji: 17.04.2008 00:46
|
Witam,
Chciałbym wstawić baner większy niż oryginalny. Baner oryginalny ma wymiary 500x60 i nie mogę wstawić nic większego.
Wymiar, który mnie interesuje to 650x200.
Z góry dziękuje za zainteresowanie :)
theme.php Aero 2 :
<?php
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Aero 2 Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: Itanium © 2007 |
| web: http://www.itanium-power.com |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#EFEFEF"; //backup
$theme_width = "900"; //!important! - !ne spreminjaj!
$theme_width_l = "165";
$theme_width_r = "165";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
echo "<tr><td width='21' height='82'><img src='".THEME."images/header_left.png' width='21' height='82'></td>";
echo "<td valign='middle' height='82' style='background-image:url(".THEME."images/center.png)'>";
echo "<a href='".BASEDIR."index.php'><img src='".THEME."icon.png'></a>"."</td>";
// Banner fild
echo "<td align='center' style='background-image:url(".THEME."images/center.png)'>".""/*med "" vnesite kodo za oglase*/."</td>";
echo "<td align='right' width='10%' height='82' style='background-image:url(".THEME."images/center.png)'>";
// Search script //
echo "<form name='search' method='post' action='".BASEDIR."search.php?stype=n'><span class='side-small'><b>Search News: </b></span>";
echo "<input type='textbox' value='Enter search here...' name='stext' class='textbox' style='width:130px' onBlur=\"if(this.value=='') this.value='Enter search here...';\" onFocus=\"if(this.value=='Enter search here...') this.value='';\"> ";
echo "<input type='submit' name='search' value='Find' class='button'></form></td>";
// Search script end //"</td>";
echo "<td width='21' height='82'><img src='".THEME."images/header_right.png' width='21' height='82'></td></tr></table>";
echo "<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'>";
echo "<tr>"."<td class= 'navigacija' align='center'>".showsublinks("·","white")."</td>"."</tr>"."<tr>";
echo "<td 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='42' height='29'><img src='".THEME."images/nav_left.png' width='42' height='29'></td>";
echo "<td align='left' width='38%' height='29' style='background-image:url(".THEME."images/nav_center.png)'>";
require_once THEME."owerflow.php";
$noga = "Powered by <a href='http://www.php-fusion.co.uk' target='_blank' class='white'>PHP-Fusion</a> © 2003-2006";
if ($noga == $a) {
echo $noga;
} else {
echo $license;
}
echo "</td>";
echo "<td align='center' width='32%' style='background-image:url(".THEME."images/nav_center.png)'>";
$podpis = "Aero 2 by: <a href='http://www.itanium-power.com' target='_blank' class='white'>Itanium</a>";
if ($podpis == $b) {
echo $podpis;
} else {
echo $license2;
}
echo "</td>";
echo "<td align='right' width='30%' style='background-image:url(".THEME."images/nav_center.png)'>";
echo "<strong>".$settings['counter']." </strong>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td>";
echo "<td width='42'><img src='".THEME."images/nav_right.png' width='42' height='29'></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' 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='11' height='28' 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='7' 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'>".newsposter($info)."</td>";
echo "<td align='right' class='infobar2'>";
echo openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td></tr></table></div></td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'>";
echo "</td></tr><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' 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='11' height='28' 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='11' height='28' 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='7' 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'>".articleposter($info)."</td>";
echo "<td align='right' class='infobar2'>";
echo openform("A",$info['article_id']).articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td></tr></table></div></td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>";
echo "</tr><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' 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='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$title</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='11' height='28' 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='7' 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='7' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' 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='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$title</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='11' height='28' 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='7' 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='7' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' 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='11' height='28' 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='11' height='28' 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='7' 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='7' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' 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";
}
?>
Edytowane przez Pieka dnia 16.08.2008 15:08:39
|
|
|
|
Wścibski Gość |
Dodany dnia 22.12.2024 02:47:16
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
piotrek199214 |
Dodany dnia 15.08.2008 20:17:07
|
Bywalec
Postów: 977 Pomógł: 168
v7.01.05 Data rejestracji: 17.12.2007 21:05
|
Ja zrobiłem tak lecz nie ma tych bocznych lewych i prawych obrazkówm, tylko sam obrazek bez obramowania:
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
echo "<tr><td><a href='".BASEDIR."index.php'><img src='".THEME."icon.png'></a>"."</td>";
// Banner fild
echo "<td align='right' width='5%'><form name='search' method='post' action='".BASEDIR."search.php?stype=n'><span class='side-small'><b>Search News: </b></span>";
echo "<input type='textbox' value='Enter search here...' name='stext' class='textbox' style='width:130px' onBlur=\"if(this.value=='') this.value='Enter search here...';\" onFocus=\"if(this.value=='Enter search here...') this.value='';\"> ";
echo "<input type='submit' name='search' value='Find' class='button'></form></td>";
// Search script end //"</td>";
echo "</td></tr></table>";
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>\n<tr>\n";
} - zamień całą funkcje render_header.
Edytowane przez Pieka dnia 16.08.2008 15:09:24
Pomogłem Ci? Wystarczy podziękować i oznaczyć post jako pomocny
Tanie tworzenie wtyczek, masz problem napisz.
|
|
|
|
bezel85 |
Dodany dnia 15.08.2008 20:57:29
|
Przedszkolak
Postów: 10 Ostrzeżeń: 2
Data rejestracji: 17.04.2008 00:46
|
No i nic.....
Podmieniłem cały kod.
Podmieniłem także plik, nadając mu taką samą nazwę i ten sam format, ale o znacznie większych rozmiarach i też nic
Edytowane przez Pieka dnia 16.08.2008 15:10:00
|
|
|
|
piotrek199214 |
Dodany dnia 16.08.2008 09:38:39
|
Bywalec
Postów: 977 Pomógł: 168
v7.01.05 Data rejestracji: 17.12.2007 21:05
|
Dam ci załącznik pliku theme.php i pliku z obrazkiem o rozdzielczości 650x200 i nazwie icon.png. I działa zaraz dodam screena.
piotrek199214 dodał/a następującą plik:
Edytowane przez Pieka dnia 16.08.2008 15:10:42
Pomogłem Ci? Wystarczy podziękować i oznaczyć post jako pomocny
Tanie tworzenie wtyczek, masz problem napisz.
|
|
|
|
bezel85 |
Dodany dnia 16.08.2008 14:54:16
|
Przedszkolak
Postów: 10 Ostrzeżeń: 2
Data rejestracji: 17.04.2008 00:46
|
Super !
Bezapelacyjnie -> POMÓGŁ ;)
Czy mógłbyś mi jeszcze pomóc w jednej sprawie ?
Otóż zmieniłem następującą linijkę :
$theme_width = "900" (standardowe ustawienie)
na:
$theme_width = "1020"
i uzyskałem następujący efekt :
W jaki sposób mogę pozbyć się tego przezroczystego elementu ?
Edytowane przez Pieka dnia 16.08.2008 15:11:23
|
|
|
|
piotrek199214 |
Dodany dnia 16.08.2008 20:30:27
|
Bywalec
Postów: 977 Pomógł: 168
v7.01.05 Data rejestracji: 17.12.2007 21:05
|
Nie sprawdzałem lecz zrób tak, znajdź w linii ok. 53:
echo "<tr>"."<td class= 'navigacija' align='center'>".showsublinks("·","white")."</td>"."</tr>"."<tr>";
i zamień na:
echo "<tr>"."<td align='center'>".showsublinks("·","white")."</td>"."</tr>"."<tr>";
Powinno działać skasowałem klase dla tego pola.
Edytowane przez piotrek199214 dnia 16.08.2008 20:33:01
Pomogłem Ci? Wystarczy podziękować i oznaczyć post jako pomocny
Tanie tworzenie wtyczek, masz problem napisz.
|
|
|
|
bezel85 |
Dodany dnia 19.08.2008 22:26:38
|
Przedszkolak
Postów: 10 Ostrzeżeń: 2
Data rejestracji: 17.04.2008 00:46
|
Kurczaki pieczone, stronę robiłem pod moją rozdzielczość, ale dopiero teraz przypomniałem sobie, że najpopularniejszą rozdzielczością jest 1024x768 i tak jak myślałem - mam problem.
Po ustawieniu tej właśnie rozdziałki przy standardowych ustawieniach thema otrzymałem taki oto efekt :
Pasek z informacjami o autorze news`a, odnośnikiem do komentarzy itp wychodzi poza środkowy blok.
W jaki sposób mogę się pozbyć całkowicie tego paska ?
Edytowane przez bezel85 dnia 19.08.2008 22:31:17
|
|
|
|
proton |
Dodany dnia 19.08.2008 22:42:32
|
Bywalec
Postów: 945 Pomógł: 22
Data rejestracji: 10.11.2005 18:29
|
Jeśli chcesz usunąć całkiem ten pasek no to wstaw taki kod do render_news (zastepując tamten):
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' 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='11' height='28' 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='7' 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 "</div></td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'>";
echo "</td></tr><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
|
|
|
|
micko3 |
Dodany dnia 27.09.2008 15:59:36
|
Przedszkolak
Postów: 17 Ostrzeżeń: 2
Data rejestracji: 05.05.2006 19:32
|
Witam!
Ja mam podobny problem. Nie mogę wydłużyc mojego banera. Chciałbym dodatkowo troche go porzerzyć. Próbowałem modyfikacji zamiszczonych w tym wątku, ale wtedy wszystko sie rozsypuje. Proszę pomóżcie nie mam już sił. Adres strony http://www.eko-ib...
<?php
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Aero 2 Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: Itanium © 2007 |
| web: http://www.itanium-power.com |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#EFEFEF"; //backup
$theme_width = "900"; //!important! - !ne spreminjaj!
$theme_width_l = "165";
$theme_width_r = "165";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
echo "<tr><td width='21' height='82'><img src='".THEME."images/header_left.png' width='21' height='82'></td>";
echo "<td valign='middle' height='82' style='background-image:url(".THEME."images/center.png)'>";
echo "<a href='".BASEDIR."index.php'><img src='".THEME."icon.png'></a>"."</td>";
// Banner fild
echo "<td align='right' style='background-image:url(".THEME."images/center.png)'>"."";
//---------------------------------------------------------------------
/* echo "<a href='".BASEDIR."downloads.php'><img border='0' src='".THEME."images/downloads.jpg' alt='Produkty'></a>";
if (iMEMBER) {
echo "<a href='".BASEDIR."edit_profile.php'><img border='0' src='".THEME."images/profile.jpg' alt='Your Account'></a><br>";
}else{
echo "";
}
echo "<a href='".BASEDIR."forum/index.php'><img border='0' src='".THEME."images/forum.jpg' alt='Forums'></a>";
if (iADMIN) {
echo "<a href='".ADMIN."index.php"."?aid=".iAUTH."'><img border='0' src='".THEME."images/admin.jpg' alt='Administration Tools'></a>";
}else{
echo "";
}*/
//---------------------------------------------------------------------
echo ""."</td>";
echo "<td align='right' width='10%' height='82' style='background-image:url(".THEME."images/center.png)'>";
// Search script //
echo "<form name='search' method='post' action='".BASEDIR."search.php?stype=n'><span class='side-small'><b> </b></span>";
/*echo "<input type='textbox' value='Szukaj...' name='stext' class='textbox' style='width:130px' onBlur=\"if(this.value=='') this.value='Szukaj...';\" onFocus=\"if(this.value=='Enter search here...') this.value='';\"> ";
echo "<input type='submit' name='search' value='Znajdź' class='button'></form></td>";*/
// Search script end //"</td>";
echo "<td width='21' height='82'><img src='".THEME."images/header_right.png' width='21' height='82'></td></tr></table>";
echo "<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'>";
echo "<tr>"."<td class= 'navigacija' align='center'>".showsublinks("·","white")."</td>"."</tr>"."<tr>";
echo "<td 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='42' height='29'><img src='".THEME."images/nav_left.png' width='42' height='29'></td>";
echo "<td align='left' width='38%' height='29' style='background-image:url(".THEME."images/nav_center.png)'>";
echo "Powered by Michale ©";
echo "</td>";
echo "<td align='center' width='32%' style='background-image:url(".THEME."images/nav_center.png)'>";
//echo "Aero 2 blank by: <a href='http://www.itanium-power.com' target='_blank' class='white'>Itanium</a>";//
echo "</td>";
echo "<td align='right' width='30%' style='background-image:url(".THEME."images/nav_center.png)'>";
echo "<strong>".$settings['counter']." </strong>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td>";
echo "<td width='42'><img src='".THEME."images/nav_right.png' width='42' height='29'></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' 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='11' height='28' 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='7' 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'>".newsposter($info)."</td>";
echo "<td align='right' class='infobar2'>";
echo openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td></tr></table></div></td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'>";
echo "</td></tr><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' 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='11' height='28' 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='11' height='28' 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='7' 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'>".articleposter($info)."</td>";
echo "<td align='right' class='infobar2'>";
echo openform("A",$info['article_id']).articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td></tr></table></div></td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>";
echo "</tr><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' 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='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$title</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='11' height='28' 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='7' 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='7' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' 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='panel-left'><img src='".THEME."images/blank.gif' width='11' height='28' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$title</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='11' height='28' 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='7' 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='7' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' 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='11' height='28' 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='11' height='28' 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='7' 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='7' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='7' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='7' height='7' 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";
}
?>
Edytowane przez Pieka dnia 27.09.2008 16:07:56
|
|
|