Parašė EHF· 2008 Geg. 3 22:05:54
#3
bandyk:
?>
/* Created for PHP-FUSION 6.00
Copyright (c) 2005 Petter Paulsson
http://www.php-fusion.se/
Gets itĀ´s name from panel administration. */
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
$result = dbquery("SELECT panel_name FROM ".$db_prefix."panels WHERE panel_filename = 'latest_images_panel'");
if (dbrows($result) != 0) {
$data = dbarray($result);
$panel_name = $data['panel_name'];
}
openside($panel_name);
$result = dbquery("SELECT * FROM ".$db_prefix."photos ORDER BY photo_id DESC LIMIT 0,4");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['photo_id'], 23);
$itemdescription = trimlink($data['photo_title'], 23);
echo "<a href='".BASEDIR."photogallery.php?photo=".$data['photo_id']."' title='".$data['photo_title']."' class='side'><center>
<img src='".BASEDIR."images/photoalbum/".$data['photo_id']."t.jpg' border='0'><br /> $itemdescription <p> </center></a>\n";
}
} else {
echo $locale['004'];
}
closeside();
<?
Redagavo EHF· 2008 Geg. 3 22:05:15