Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Del naujausiu images

Parašė Bebriukas· 2009 Kov. 4 22:03:00
#1

kolkas mano centrine naujausiu foto panele atrodo taip:






kaip padaryt kad ji atrodytu taip:






paneles kodas:

<?php
/* Created for PHP-FUSION 7
last_images_panel v.1.1
Modified by http://netck.ru
*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

openside('Naujausias paveiksliukas');

$result=dbquery(
"SELECT ta.album_id,album_title,photo_id,photo_title,photo_thumb1 FROM ".DB_PREFIX."photo_albums ta ".
"JOIN ".DB_PREFIX."photos USING (album_id) ORDER BY photo_id DESC LIMIT 0,6"); // 4 - &#238;&#227;&#240;&#224;&#237;&#232;÷å&#237;&#232;å &#234;&#238;&#235;&#232;÷å&#241;&#242;&#226;&#224; &#244;&#238;&#242;&#238;&#234;

if (dbrows($result) != 0) {
   while($data = dbarray($result)) {
      $itemdescription = trimlink($data['photo_title'], 23); //&#238;&#225;&#240;å&#231;&#234;&#224; ä&#235;&#232;&#237;&#237;&#251;õ &#237;&#224;&#231;&#226;&#224;&#237;&#232;é
      echo "<center><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' title='".$data['photo_title']."'>
<img border='0' src='".BASEDIR."images/photoalbum/album_".$data['album_id']."/".$data['photo_thumb1']."' width='150' height='150'
title='".$data['photo_title']."' alt='".$data['photo_title']."'></a><br>
<b><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."'>$itemdescription</a></b>
<br>Albumas:
<a href='".BASEDIR."photogallery.php?album_id=".$data['album_id']."' class='gallery' title='Albumas: ".$data['album_title']."'>
".$data['album_title']."</a><br><br></center>\n";
   }
}
closeside();
?>





busiu lb dekingas! ir tam bus 10