Parašė LeBro· 2008 Lie. 21 17:07:37
#7
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
$result = dbquery("SELECT panel_name FROM ".$db_prefix."panels WHERE panel_filename = 'latest_images_center_panel'");
if (dbrows($result) != 0) {
$data = dbarray($result);
$panel_name = $data['panel_name'];
}
opentable(":: De Top 5 Van De Meest bekeken Foto's ::");
echo "<table width='100%' cellspacing='2' cellpadding='0'><tr>";
$result = dbquery("SELECT * FROM ".$db_prefix."photos ORDER BY photo_views DESC LIMIT 0,5");
if (dbrows($result) != 0) {
$i=0;
while($data = dbarray($result)) {
$itemsubject = trimlink($data['photo_id'], 14);
$itemdescription = trimlink($data['photo_title'], 14);
if ($i % 5 == 0 && $i != 0) { echo "</tr><tr>";}
echo "<td><center><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' title='".$data['photo_title']."' class='gallery'>
<img src='".PHOTOS."album_".$data['album_id']."/".$data['photo_thumb1']."'title='".$data['photo_title']."'alt='".$data['photo_title']."'><br/> $itemdescription </center></a></td>\n";
$i++;
}
} else {
echo $locale['f'];
}
echo "</tr></table>";
closetable();
?>
sitas?
Redagavo Žmogus· 2008 Lie. 21 20:07:36