include ("funcs.inc.php");
$dateiname=gimmefilename();
$kat=str_replace("bilder/","",$dateiname);
$kat=str_replace(".htm","",$kat);
connect();
$titel="Top 10 Fun Pics/Bilder - Humor & Spass Page!";
$htitel="Top 10 Fun-Pics";
include ("header.inc.php");
?>
Klicke einfach auf ein Bild, um es größer zu sehen.
Platz | Vorschau | Titel | Views | Bewertung |
$i=1;
//$witze=gimmeone("SELECT count(witz) FROM witze where kat=\"$row[0]\"");
$erg=mysql_query("SELECT file,titel,views,note,votes FROM pics WHERE votes<>0 AND aktiv=\"1\" ORDER BY (note/votes) LIMIT 0,10");
while ($row=mysql_fetch_row($erg))
{
$file=$row[0];
$titel=$row[1];
$views=$row[2];
$note=$row[3];
$votes=$row[4];
if ($votes<>0)
{
$note=($note/$votes);
}
//$witz=gimmeone("SELECT witz FROM witze where kat=\"$row[0]\" ORDER BY note LIMIT 0,1");
if ($bgcolor=="fffbda")
{
$bgcolor="fffce0";
}
else
{
$bgcolor="fffbda";
}
echo '
'.$i.'. | | '.$titel.' | '.$views.' | '.($votes<>0?colorize($note,$noten_text[$note-1])." (".komma($note).")":"noch keine").' |
';
$i++;
}
?>
include ("footer.inc.php");
?>