<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/*       Bu blok Köşe Yazıları bölümü için özel yapılmıştır.            */
/*        İstediğiniz gibi kullanabilir editleyerek başka bir           */
/*              modüle uyarlayabilirsiniz                               */
/*  Bloğu Yazan      www.bankaciyiz.biz                                 */
/*  email adresi:   webmaster@bankaciyiz.biz                            */
/************************************************************************/


global $prefix, $db;
$result = $db->sql_query("select secid, secname, image from ${prefix}_sections WHERE homepage = '1' order by secname ASC");
$content .= "<table cellpadding=\"0\" cellspacing=\"0\">";
while (list($secid, $secname, $image) = $db->sql_fetchrow($result)) {
{$content .= "<tr>";}
$cresult = $db->sql_query("select artid, title from ${prefix}_seccont WHERE secid=$secid ORDER BY artid DESC limit 1");
while (list($artid, $title) = $db->sql_fetchrow($cresult))

$content .= "<td><table><tr><td width=\"70\"><a href=\"modules.php?name=Kose_Yazilari&op=listarticles&secid=$secid\"title=\"$secname\"><img src=\"images/sections/$image\" border=\"0\" width=\"60\" height=\"60\"><br><left>$secname</left></td><td border=\"0\" Alt=\"$secname\"></a><font class=\"tiny\"><a href=\"modules.php?name=Kose_Yazilari&op=viewarticle&artid=$artid\"title=\"$title\">$title</a></font></td><tr></table><hr>";
{$content .= "</tr>";}
$content .= "</td>";}
$content .= "</table>";
?>