Parašė hitar· 2008 Bir. 8 18:06:15
#1
$result = dbquery("SELECT panel_name FROM ".$db_prefix."panels Wpanel_filename = 'Nuotraukos'"smiley;
if (dbrows($result) != 0) {
$data = dbarray($result);
$panel_name = $data['panel_name'];
}
openside($panel_name);
echo"<center>";
$result = dbquery("SELECT * FROM ".$db_prefix."photos ORDER BY photo_id DESC LIMIT 3"smiley;
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject =trimlink($data['photo_id'], 1);
$itemdescription = trimlink($data['photo_title'], 1);
echo "<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' title='".$data['photo_title']."'>
<img src='".PHOTOS."album_".$data['album_id']."/".$data['photo_thumb1']."' border='2' width='150' height='100' >
</a>\n";
}
} else {
echo $locale['004'];
}
closeside();
?>
Šį panėlė rodo keturias paskutines įkeltas nuotraukas ir rodo vertikaliai. Kaip padaryti, kad rodytu horizontaliai? Si koda noriu ideti i centrine panele, bet nesinori, kad nuotraukas rodytu vertikaliai :D