Przedszkolak
Postów: 78 Pomógł: 7 Ostrzeżeń: 1
Data rejestracji: 11.08.2009 14:36
|
Odkopię temat, bo próbuję zrobić wyróżnienie niusa, ale nie umiem sobie poradzić z obejściem jednej rzeczy. Tutaj mam fragment tego co już zrobiłem:
function render_news($subject, $news_news, $news_info) {
global $locale, $data;
if ($data['news_sticky']==1) {
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr>";
echo "</tr>\n";
echo "<tr>";
echo "<td class='main-body'><img src=".$data['news_obrazek']." />";
echo" <h2><a href='#' >".$data['news_subject']."</a></h2>
<p>".stripslashes(substr($data['news_news'], 0,45))."...<a href='news.php?readmore=".$data['news_id']."'><b>[więcej]</b></a></p>";
echo" </td></tr>\n";
echo "</table>";
} else {
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr>";
echo "<td background='".THEME."images/capmain_przykl.gif' class='capmain'>
<table border='0' width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td width='90%' align='left'> ".$subject."</td>";
echo "<td width='10%' align='left' class='news-footer_aa'>";
echo "</td>
</tr>
</table>
</td></tr>\n";
echo "<tr>";
echo "<td background='".THEME."images/newsmain_przykl.gif' class='main-body'>".$news_news."<br>";
echo"<a href='news.php?readmore=".$data['news_id']."' ><img src='".THEME."images/xxx.png' width='65' height='25' align='right' ></a>";
echo "</td>";
echo "<tr>";
echo "<td align='center' class='news-footer middle-border'>
<table border='0' width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td width='70%' align='left'>";
echo" Dodane przez: <a href='profile.php?lookup=".$news_info['user_id']."'>".$news_info['user_name']."</a>";
echo" Dnia: ".showdate("longdate", $news_info['news_date']).itemoptions("N",$news_info['news_id']);
echo "</td>";
echo "<td width='30%' align='left' class='news-footer_aa'>";
echo "Komentarzy: [<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."#comments'>".$news_info['news_comments']."</a>]";
echo " Czytań: ";echo"[";echo $news_info['news_reads'];echo"]";
echo "</td>
</tr>
</table>\n";
echo "</td></tr>\n";
echo "</table>";
} }
Kliknij i zaczekaj na załadowanie kodu ...
Co dodać żeby wygląd niusa po "rozwinięciu" był inny niż ten na pierwszej stronie? Bo teraz po przejściu do rozwinięcia niusa mam tą samą treść który jest na wierzchu, a chciałbym żeby nius przyklejony na pierwszej stronie był "zmodyfikowany", a gdy go rozwiniemy był już w normalnej formie.
Męczyłem się z funkcjami w news.php, ale nie widzę rezultatu. Czy można jeszcze w Theme.php dodać dodatkowe 2 parametry odpowiadające za wygląd niusa? I jak się z tym problemem uporać?
Przykład z innej strony: http://imrahil.li...u/news.php
Edytowane przez karoldinho dnia 26.03.2010 09:41:41
|
Początkujący
Postów: 105 Ostrzeżeń: 2
v7.02.07 Data rejestracji: 05.12.2008 17:27
|
Witam, chciałbym wyróżnić swojego newsa troszeczkę inaczej ale nie udaje mi się wstawić mojego kodu aby wyświetlał się dobrze. Chciałbym alby newsy wyglądały tak jak na fcbarca.com nie chcę używać rotatora do głównych newsów mam taki kod: <?php
global $aidlink;
$result = dbquery("SELECT news_subject, news_news, news_id, news_reads, news_image, news_datestamp, news_name FROM fusionda41f_news WHERE news_sticky='1'");
$data = mysql_fetch_array($result);
$result2 = dbquery("SELECT user_name, user_id, user_status FROM fusionda41f_users WHERE user_id='".$data['news_name']."'");
$data2 = mysql_fetch_array($result2);
$skrot= substr($data['news_news'],0,130);
if ($data['news_image'] != "") {
echo "<table><tr><td><center><table width='450px' height='338px' cellpadding='0' cellspacing='0'><tr><td><a href='/index.php?readmore=".$data['news_id']."&c_start=0'><img src='/images/news/".$data['news_image']."' width='450px' height='338px'></a></td></tr></table>\n";
} else {
echo "<table><tr><td><center><table width='450px' height='338px' cellpadding='0' cellspacing='0'><tr><td><a href='/index.php?readmore=".$data['news_id']."&c_start=0'><img src='/images/newsy.png' width='450px' height='338px'></a></td></tr></table>\n";
}
echo "<img src='/images/tlozdjecie.png' width='450px' height='80px' style='position: relative; z-index: 1; bottom: 80px;'></center>
<div style='position: relative; bottom: 152px; z-index: 2; margin-left: 6px; margin-right: 6px;'><a href='/index.php?readmore=".$data['news_id']."&c_start=0'><font color='yellow' size='4'><b>".$data['news_subject']."</b></font><br>
<font color='white'>".$skrot."...</span></strong></font></a><br><br>";
echo "<span style='vertical-align: middle;border:0;'><img src='/themes/Orange_Slush/images/icons/autor.png'></span> ".profile_link($data2['user_id'], $data2['user_name'], $data2['user_status']);
echo " <font color='white'>•</font> <span style='vertical-align: middle;border:0;'><img src='/themes/Orange_Slush/images/icons/data.png'></span> ".showdate("<font color='white'> %d.%m.%Y • </font>", $data['news_datestamp']);
echo "<span style='vertical-align: middle;border:0;'><img src='/themes/Orange_Slush/images/icons/czytan.png'></span> <font color='white'>Czytań: ".$data['news_reads']." •</font>
<span style='vertical-align: middle;border:0;'><img src='/themes/Orange_Slush/images/icons/komentarze.png'></span> <a href='/index.php?readmore=".$data['news_id']."&c_start=0#comments'><font color='white'>Komentarze</font></a>";
if (iADMIN) {
echo " <font color='white'>•</font> <a href='".ADMIN."news.php".$aidlink."&action=edit&news_id=".$data['news_id']."'><span style='vertical-align: middle;border:0;'><img src='/images/edit.png'></span></a></div>";
} else {
echo "";
}
echo "
<div style='margin-top: -140px;'></div>
</td></tr></table>";
?>
Wstawiam go w theme.php ale wyświetla mi się obok każdego newsa a chciałbym aby z lewej strony był news główny a z prawej pozostałe newsy próbowałem już różnych opcji z divami oraz z tabelą lecz nie mogę sobie poradzić. Dołączam jeszcze kod pliku theme.php i proszę o pomoc.
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'>·</span>");
define("THEME_WIDTH", "998px");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style, $locale, $userdata;
//Header
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
echo "<td class='full-header'>\n<center>\n".showbanners()."</center>\n</td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
echo "<td class='sub-header-left'></td>\n";
echo "<td background='http://mglks.pl/infusions/deluxe_dropdown_menu/templates/Light_Yellow/bg.png'>";
include INFUSIONS."deluxe_dropdown_menu/menu.php";
echo "</td>\n";
echo "<td align='right' class='sub-header'><b><font color='#ffffff'>";
echo "<div id='Clock'></div>";
echo "<script type='text/javascript'>
<!--
var DayNam = new Array(
'','','','','','','');
var MnthNam = new Array(
'styczeń','luty','marzec','kwiecień','maj','czerwiec','lipiec','sierpień','wrzesień','październik','listopad','grudzień');
//-->
</script>";
echo "<script type='text/javascript' src='".THEME."/clock/clock.js'></script></font></b></td>\n";
echo "<td class='sub-header-right'></td>\n";
echo "</tr>\n</table>\n";
//Nasi herby
echo "<table cellpadding='1' cellspacing='1' align='center' bgcolor='#ffef80' width='998px' frame='below'>\n<tr>\n";
echo "
<td width='62px'><center>
<img src='/herby/aleksandrow.png' title='Sokół II Aleksandrów' border='0' />
</td>
<td>
<img src='/images/listwa.png'>
</td>
<td width='62px'><center>
<img src='/herby/andrzejow.png' title='Polonia Andrzejów' border='0' />
</td>
<td>
<img src='/images/listwa.png'>
</td>
<td width='62px'><center>
<img src='/herby/dlutow.png' title='GLKS Dłutów' border='0' />
</td>
<td>
<img src='/images/listwa.png'>
</td>
<td width='62px'><center>
<img src='/herby/rozyca.png' title='LKS Różyca' border='0' />
</td>
<td>
<img src='/images/listwa.png'>
</td>
<td width='62px'><center>
<img src='/herby/glowno.png' title='Stal Głowno' border='0' />
</td>
<td>
<img src='/images/listwa.png'>
</td>
<td width='62px'><center>
<img src='/herby/koluszki.png' title='KKS Koluszki' border='0' />
</td>
<td>
<img src='/images/listwa.png'>
</td>
<td width='62px'><center>
<img src='/herby/rosanow.png' title='LKS Rosanów' border='0' />
</td>
<td>
<img src='/images/listwa.png'>
</td>
<td width='62px'><center>
<img src='/herby/krosniewice.png' title='Expom Krośniewice' border='0' />
</td>
<td>
<img src='/images/listwa.png'>
</td>
<td width='62px'><center>
<img src='/herby/konstantynow.png' title='Włókniarz Konstantynów' border='0' />
</td>
<td>
<img src='/images/listwa.png'>
</td>
<td width='62px'><center>
<img src='/herby/logomglks.png' title='MGLKS Termy Uniejów' border='0' />
</td>
<td>
<img src='/images/listwa.png'>
</td>
<td width='62px'><center>
<img src='/herby/pabianice.png' title='PTC Pabianice' border='0' />
</td>
<td>
<img src='/images/listwa.png'>
</td>
<td width='62px'><center>
<img src='/herby/parzeczew.png' title='Orzeł Parzęczew' border='0' />
</td>
<td>
<img src='/images/listwa.png'>
</td>
<td width='62px'><center>
<img src='/herby/justynow.png' title='LZS Justynów' border='0' />
</td>
<td>
<img src='/images/listwa.png'>
</td>
<td width='62px'><center>
<img src='/herby/rogow.png' title='Pogoń Rogów' border='0' />
</td>
<td>
<img src='/images/listwa.png'>
</td>
<td width='62px'><center>
<img src='/herby/rzgow.png' title='Zawisza II Rzgów' border='0' />
</td>
<td>
<img src='/images/listwa.png'>
</td>
<td width='62px'><center>
<img src='/herby/wisniowa.png' title='Andrespolia Wiśniowa Góra' border='0' />
</td>\n";
echo "</tr>\n</table>\n";
$result321 = dbquery("SELECT belka_kolejka FROM edycja_belka");
$data321 = mysql_fetch_assoc($result321);
if (iADMIN) {
echo "<table bgcolor='#ffef80' width='998px' align='center'><tr><td><a href='/viewpage.php?page_id=218'><img src='/images/edit.png' style='display: block; width: 12px; height: 12px;' title='Edytuj Wyniki'></a></td><td><marquee direction='left' scrollamount='5' onmouseover='this.stop()' onmouseout='this.start()'><font size='2'><b>".$data321["belka_kolejka"].". Kolejka Klasy Okręgowej: </b></font>";
} else {
echo "<table bgcolor='#ffef80' width='998px' align='center'><tr><td><marquee direction='left' scrollamount='5' onmouseover='this.stop()' onmouseout='this.start()'><font size='2'><b>".$data321["belka_kolejka"].". Kolejka Klasy Okręgowej: </b></font>";
}
$result123 = dbquery("SELECT * FROM terminarz WHERE liga='seniorzy' AND kolejka='".$data321["belka_kolejka"]."'");
if (dbrows($result123) != 0) {
echo "";
while ($data123 = dbarray($result123)) {
echo "<font size='2'><b><font color='red'>".$data123['dzien']." ".$data123['godzina']."</font> ".$data123['dom']." <font color='red'>".$data123['wynikdom']."-".$data123['wynikwyjazd']."</font> ".$data123['wyjazd']."</b></font> ";
}
echo "</marquee></td></tr></table><table align='center' background='/images/reklamatlo.png' width='".THEME_WIDTH."' cellpadding='0' cellspacing='0' frame='above'>
<tr>
<td align='center' valign='middle'>
<center><script type='text/javascript'><!--
google_ad_client = 'ca-pub-8696411718222642';
/* Banner Pod */
google_ad_slot = '3617372542';
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script></center>
</td>
</tr>
</table>";
} else {
echo "<center>Brak zawodników</center>";
}
//Content
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center' class='$main_style'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
//Footer
//Najlepsi strzelcy
echo "<table align='center' bgcolor='#FFFFFF' width='".THEME_WIDTH."' cellspacing='0'><tr bgcolor='#f1f1f1'>
<td>
<center><b>Najlepsi strzelcy<br>";
if (iADMIN) {
echo "<a href='/viewpage.php?page_id=252&rowstart=2'>Edytuj</a>";
} else {
echo "";
}
echo "</b></center>
</td>
</tr>
<tr><td>";
$result40 = dbquery("SELECT id, zawodnik, zdjecie, bramki FROM edycja_strzelcy ORDER BY bramki DESC LIMIT 5");
if (dbrows($result40) != 0) {
$i = 0;
echo "
<table cellspacing='0' width='100%' align='center'>
<tr>
";
while ($data20 = dbarray($result40)) {
echo "<td><table align='center' cellspacing='0' cellpadding='0'>
<tr>
<td width='199px' style='border-radius: 20px 20px 20px 20px;' background='/themes/Orange_Slush/images/side2.png'><center><font size='2' color='#ffffff'><strong>".$data20['zawodnik']."</strong></font></center></td>
</tr>
<tr>
<td style='background: url(/images/bramki.png); background-position: center top; background-repeat: no-repeat;'><center><img src='/zawodnicy/".$data20['zdjecie']."' width='90px' height='120px'></center></td>
</tr>
<tr>
<td width='199px' style='border-radius: 20px 20px 20px 20px;' background='/themes/Orange_Slush/images/side2.png'>
<center><font size='2' color='#ffffff'><b>Bramek: ".$data20['bramki']."</b></font></center>
</td>
</tr>
</table></td>";
}
echo "</tr></table><br>
<center><a href='/viewpage.php?page_id=67' target='_blank'><font size='2'><b>Kliknij i zobacz wszystkich strzelców</b></a></center>";
} else {
echo "<center>Brak zawodników</center>";
}
echo "</td></tr></td>";
//Najlepsi Strzelcy
echo "<table align='center' bgcolor='#FFFFFF' width='".THEME_WIDTH."' cellspacing='0'>
<tr bgcolor='#f1f1f1'>
<td>
<b><center>mglks.pl - Partnerzy</center></b>
</td>
</tr>
<tr><td>
<center>
<a href='http://adams16.vot.pl' title='Przejdź do Portfolio' target='_blank'>
<img style='margin-bottom:5px; margin-left:5px; margin-right:5px; margin-top:5px;' src='/images/buttony/portfolio.png' border='0'></a>
<a href='http://www.lodzkifutbol.pl' target='blank' title='Przejdź do strony Łódzkiego Futbolu http://www.lodzkifutbol.pl'><img style='margin-bottom:5px; margin-left:5px; margin-right:5px; margin-top:5px;' src='/images/buttony/lodz.jpg' border='0' width='150' height='50'></a>
<a href='http://startbrzeziny.futbolowo.pl/' title='Przejdź do strony Startu Brzeziny' target='_blank'>
<img style='margin-bottom:5px; margin-left:5px; margin-right:5px; margin-top:5px;' style='margin-bottom:5px; margin-left:5px; margin-right:5px; margin-top:5px;' src='/images/buttony/brzeziny.jpg' border='0'></a>
<a href='http://www.uniejow.net.pl' target='blank' title='Przejdź do strony Uniejowa http://www.uniejow.net.pl'><img style='margin-bottom:5px; margin-left:5px; margin-right:5px; margin-top:5px;' src='/images/buttony/miglanc.jpg' border='0'></a>
<a href='http://www.pizzeriatwister.pl' target='blank' title='Przejdź do strony Pizzerii Twister http://www.pizzeriatwister.pl'><img style='margin-bottom:5px; margin-left:5px; margin-right:5px; margin-top:5px;' src='/images/buttony/twister.png' border='0'></a>
<a href='http://www.kasztelanzarnow.eu/' target='_blank' title='Kasztelan Żarnów'><img style='margin-bottom:5px; margin-left:5px; margin-right:5px; margin-top:5px;' src='/images/buttony/zarnow.gif' border='0' alt='www.lkszarnow.pl' width='150' height='50'></a>
<a href='http://gornikleczyca.futbolowo.pl' target='blank' title='Górnik Łęczyca'><img style='margin-bottom:5px; margin-left:5px; margin-right:5px; margin-top:5px;' alt='Górnik Łęczyca' border='0' hspace='' src='/images/buttony/leczyca.gif' width='150' height='50'vspace='' /></a>
<a href='http://jawornikgorzkow.futbolowo.pl/' title='Jawornik Gorzków' target='blank'><img style='margin-bottom:5px; margin-left:5px; margin-right:5px; margin-top:5px;' src='/images/buttony/jawornik.gif' border='0' width='150' height='50'></a>
</td></tr>
<tr bgcolor='#f1f1f1'>
<td>
<center><b>mglks.pl - Partnerzy (Linki)</b></center>
</td>
</tr>
<tr>
<td>
<center>
<a href='http://www.livescore.in/pl/' title='Piłka nożna Livescore' target='_blank'>Piłka nożna Livescore</a>
|
<a href='http://www.wyniki.com' title='Wyniki na żywo' target='_blank'>Wyniki na żywo</a>
</center>
</td>
</tr>
</table>";
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
echo "<td class='sub-header-left'></td>\n";
echo "<td align='left' class='sub-header'><b><font color='#ffffff'>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</font></b></td>\n";
echo "<td align='right' class='sub-header'><b><font color='#ffffff'>".showcounter()."</font></b></td>\n";
echo "<td class='sub-header-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
echo "<td align='center' class='main-footer'><b><div style='text-align:center'>Copyright <a href='http://s76.vdl.pl/roundcube/' target='_blank'><font color='#896a4c'>©</font></a> 2010 - ".date("Y")." by <a href='http://www.adams16.vot.pl' target='blank' title='Przejdź do Portfolio'>Adam Grabarczyk</b></a> <br><b>Wszystkie prawa zastrzeżone </b></div><a href='http://www.adams16.vot.pl' target='blank' title='Przejdź do Portfolio'><img src='/images/ag.png' border='0'></a><br>
<b>Najlepiej działa z przeglądarką:</b><br>
<img src='/images/firefox.gif' alt='Firefox' title='Mozilla Firefox'><br><b>MGLKS znajdziesz na:</b><br>
<center><a href='http://nk.pl/#profile/37663642' target='blank' title='Przejdź do profilu na Naszej-Klasie'><img src='/images/nk.png' border='0'></a> <a href='http://www.facebook.com/pages/MGLKS-Uniej%C3%B3wOstrowsko/209560799059483' target='blank' title='Przejdź do profilu na Facebooku'><img src='/images/facebook.png' border='0'></a> <a href='http://www.youtube.com/user/TVBaszta' target='blank' title='Przejdź do BasztaTV'><img src='/images/youtube.png' border='0'></a></center>";
echo "<center>";
if (dbcount("(online_user)", DB_ONLINE, (iMEMBER ? "online_user='".$userdata['user_id']."'" : "online_user='0' AND online_ip='".USER_IP."'")) == 1) {
$result = dbquery(
"UPDATE ".DB_ONLINE." SET online_lastactive='".time()."', online_ip='".USER_IP."'
WHERE ".(iMEMBER ? "online_user='".$userdata['user_id']."'" : "online_user='0' AND online_ip='".USER_IP."'"));
} else {
$result = dbquery(
"INSERT INTO ".DB_ONLINE." (online_user, online_ip, online_ip_type, online_lastactive)
VALUES ('".(iMEMBER ? $userdata['user_id'] : 0)."', '".USER_IP."', '".USER_IP_TYPE."', '".time()."')");
}
$result = dbquery("DELETE FROM ".DB_ONLINE." WHERE online_lastactive<".(time()-60)."");
$result = dbquery(
"SELECT ton.online_user, tu.user_id, tu.user_name, tu.user_status FROM ".DB_ONLINE." ton
LEFT JOIN ".DB_USERS." tu ON ton.online_user=tu.user_id"
);
$guests = 0; $members = array();
while ($data = dbarray($result)) {
if ($data['online_user'] == "0") {
$guests++;
} else {
$members[] = array($data['user_id'], $data['user_name'], $data['user_status']);
}
}
echo THEME_BULLET." ".$locale['global_011'].": <b>".$guests."</b><br />\n";
echo THEME_BULLET." ".$locale['global_012'].": <b>".count($members)."</b><br>\n";
if (count($members)) {
$i = 1;
while (list($key, $member) = each($members)) {
echo "<span class='side'>".profile_link($member[0], $member[1], $member[2])."</span>";
if ($i != count($members)) { echo ",\n"; } else { echo "\n"; }
$i++;
}
}
echo "</center>";
if (!$license) { echo "<br />\n".showcopyright(); }
echo "</td>\n";
echo "</tr>\n</table>\n";
/*foreach ($mysql_queries_time as $query) {
echo $query[0]." QUERY: ".$query[1]."<br />";
}*/
}
/* New in v7.02 - render comments */
function render_comments($c_data, $c_info){
global $locale, $settings;
opentable($locale['c100']);
if (!empty($c_data)){
echo "<div class='comments floatfix'>\n";
$c_makepagenav = '';
if ($c_info['c_makepagenav'] !== FALSE) {
echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>".$c_info['c_makepagenav']."</div>\n";
}
foreach($c_data as $data) {
$comm_count = "<a href='".FUSION_REQUEST."#c".$data['comment_id']."' id='c".$data['comment_id']."' name='c".$data['comment_id']."'>#".$data['i']."</a>";
echo "<div class='tbl2 clearfix floatfix'>\n";
if ($settings['comments_avatar'] == "1") { echo "<span class='comment-avatar'>".$data['user_avatar']."</span>\n"; }
echo "<span style='float:right' class='comment_actions'>".$comm_count."\n</span>\n";
echo "<span class='comment-name'>".$data['comment_name']."</span>\n<br />\n";
echo "<span class='small'>".$data['comment_datestamp']."</span>\n";
if ($data['edit_dell'] !== false) { echo "<br />\n<span class='comment_actions'>".$data['edit_dell']."\n</span>\n"; }
echo "</div>\n<div class='tbl1 comment_message'>".$data['comment_message']."</div>\n";
}
echo $c_makepagenav;
if ($c_info['admin_link'] !== FALSE) {
echo "<div style='float:right' class='comment_admin'>".$c_info['admin_link']."</div>\n";
}
echo "</div>\n";
} else {
echo $locale['c101']."\n";
}
closetable();
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
if ($info['news_sticky'] == "1") {
echo "<td class='capmain-sticky'>".$subject."</td>\n";
} else {
echo "<td class='capmain'>".$subject."</td>\n";
}
if ($info['news_sticky'] == "1") {
echo "<td class='capmain-right-sticky'></td>\n";
} else {
echo "<td class='capmain-right'></td>\n";
}
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td align='center' class='news-header middle-border'>\n";
echo "<font style='vertical-align:middle;'>Poleć tego newsa na Facebooku:</font> <a href='http://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fmglks.pl%2Findex.php%3Freadmore%3D".$info['news_id']."%26c_start%3D0%23.UPWNpXOgqqk.facebook' target='_blank'><img src='http://mglks.pl/images/facebooknews.png' style='vertical-align:middle;'></a> <font style='vertical-align:middle;'>lub Twitterze:</font> <a href='http://twitter.com/intent/tweet?text=MGLKS+Termy+Uniej%C3%B3w+-+Oficjalna+Strona+Internetowa&url=http%3A%2F%2Fmglks.pl%2Findex.php%3Freadmore%3D".$info['news_id']."%26c_start%3D0%23&related=' target='_blank'><img src='http://mglks.pl/images/twitternews.png' style='vertical-align:middle;'></a>";
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td class='main-body middle-border'>".$info['cat_image'].parseubb($news)."
<div style='margin-top:-11px;'></div></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td align='center' class='news-footer middle-border'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td style='height:5px;background-color:#0047d8;'></td>\n";
echo "</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td style='height:5px;background-color:#0047d8;'></td>\n";
echo "</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='scapmain-left'></td>\n";
echo "<td class='scapmain'>$title</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td class='scapmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer2'>\n<tr>\n";
echo "<td class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";
}
?>
|