Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: foto modas

Parašė ramon· 2007 Rugs. 15 21:09:19
#5

Nebusiu skupas , pakuriau ;)
<?php
$result=dbquery(
   "SELECT ta.album_id,album_title,photo_id,photo_title FROM ".$db_prefix."photo_albums ta ".
   "INNER JOIN ".$db_prefix."photos USING (album_id) ORDER BY RAND() LIMIT 10"
);

if (dbrows($result) == 1) {
   openside( "Foto Mod" );
      $data=dbarray($result);
      $filename=PHOTOS.$data['photo_id'].'t.jpg';
      if (!file_exists($filename)) $filename=$image_url.'/imagenotfound.jpg';
      echo "<div style='text-align:center'><marquee behavior='scroll' direction='left' scrolldelay='25' scrollamount='2' truespeed='' width='100%' onmouseover='this.stop()' onmouseout='this.start()'>
      <a href='".BASEDIR."photogallery.php?photo=".$data['photo_id']."' class='gallery'>
      <img src='".PHOTOS."".$data['photo_id']."t.jpg' width='".$settings['thumb_image_w']."' height='".$settings['thumb_image_h']."'
      title='".$data['photo_title']."' alt='".$data['photo_title']."'>
      </a><br /><a href='".BASEDIR."photogallery.php?album=".$data['album_id']."'>".$data['photo_title']."</a>
      <br />
      ".$data['album_title']."
      </marquee></div>";
   closeside();
}
?>