"; OpenTable(); echo ""; $result=sql_query("select lid, cid, sid, title, datum, hits, pic, contacter from ".$prefix."_add_adds where ".time()." < enddate order by hits DESC limit 0,$mostpopadds", $dbi); echo "
"; if ($ratenum != "" && $ratetype != "") { $mostpopadds = $ratenum; if ($ratetype == "percent") {$mostpopaddspercentrigger = 1;} } /* if ($mostpopaddspercentrigger == 1) { $toplinkspercent = $mostpopadds; $nowdate=time(); $result=sql_query("select * from ".$prefix."_add_adds where '$nowdate' < enddate", $dbi); $totalmostpoplinks = sql_num_rows($result, $dbi); $mostpopadds = $mostpopadds / 100; $mostpopadds = $totalmostpoplinks * $mostpopadds; $mostpopadds = round($mostpopadds); } */ if ($mostpopaddspercentrigger == 1) { echo ""._CSF_MOSTPOPULAR." $toplinkspercent% ("._CSF_OFALL." $totalmostpoplinks "._CSF_ADDS.")"; } else { echo ""._CSF_MOSTPOPULAR." $mostpopadds"; } echo "
"._CSF_SHOWTOP.": [ 10 - " ."25 - " ."50 ]
"; echo ""; while(list($lid, $cid, $sid, $title, $time, $hits ,$pic, $contacter)=sql_fetch_row($result, $dbi)) { $title = stripslashes($title); $datetime=date("d.m.Y",$time); $result2=sql_query("select title from ".$prefix."_add_categories where cid=$cid", $dbi); list($ctitle) = sql_fetch_row($result2, $dbi); if ($colorswitch == $addcolor) { $colorswitch = $addcolor2; } else { $colorswitch = $addcolor; } echo ""; echo ""; } echo "
"._CSF_CATEGORY.""._CSF_PICTURE.""._CSF_DATE.""._CSF_TITLE.""._CSF_HITS."
$ctitle"; if ($pic){ echo "\"$title\""; }else{ echo " "; } $seofile = SEOfriendlyURL($title); echo "$datetime$title"; newaddgrafik($datetime, $time); popgraphic($hits); if ($contacter){ echo "
"._CSF_CONTACTNAME.": $contacter
";} echo "
$hits
"; echo "
"; CloseTable(); copyright(); include("footer.php"); ?>