$res=mysql_query("SELECT ID,IDCateg,Title FROM News WHERE Activ=1 AND (TO_DAYS(NOW()) - TO_DAYS(Ed) < 0) ORDER BY St DESC LIMIT 10");
$elem=array();
while($data=mysql_fetch_array($res)){
$s=$data["Title"];
if(strtoupper(substr($s,0,10))==substr($s,0,10))$s=ucfirst(strtolower($s));
if(strlen($s)>30)$s=substr($s,0,30)."..";
array_push($elem," » $s");
}
insertTable($_News[$lang],$elem,"#FFD940");?>
$res=mysql_query("SELECT IDCateg,ID,Title FROM Annunci WHERE Activ=1 AND (TO_DAYS(NOW()) - TO_DAYS(Ed) < 0)GROUP BY IDCateg ORDER BY St ASC");
$elem=array();
while($data=mysql_fetch_array($res)){
$s=$data["Title"];
if(strtoupper(substr($s,0,10))==substr($s,0,10))$s=ucfirst(strtolower($s));
if(strlen($s)>30)$s=substr($s,0,30)."..";
array_push($elem," » $s");
}
array_push($elem," » ".$_Details[$lang]." ...");
insertTable($_Annoucements[$lang],$elem,"#FCF3C2");?>
$tbl=mysql_query("SELECT * FROM Layout WHERE Lang=$lang ORDER BY Pos ASC ");
$items=array();
while($dt=mysql_fetch_array($tbl)){
array_push($items,insertLink(" » ".$dt["Descr"]."","window.location.href='".$dt["Link"]."'","","",false));
}
insertTable($_Contents[$lang],$items,"#DDE7F0");?>