'; } elseif ($nbre_album>1) { ?> '; echo ''; } echo ''; } ?>
'; if ($row[0]==$album) { echo ''; } echo ''.stripslashes($row[1]).''; if ($row[0]==$album) { echo ''; } echo ''.$row[2].' '.$l_photos.'
powered by mcGallery

mcGallery
'; echo ''.$l_Select.''; } else { $query="SELECT id, album FROM mcgallery WHERE idalbum='$album'"; $result=mysqli_query($ConnessioneDB, $query); $nbre=mysqli_num_rows($result); $row2=mysqli_fetch_array($result); echo ''; echo ''; echo ''; $j=0; $k=0; while ($row2=mysqli_fetch_array($result)) { $len= strlen($album); $image= substr($row2['file'], ($len + 1)); echo ''; $j++; if ($j%3==0) { echo ''; $k++; } } if ($j%3==2) { echo ''; } if ($j%3==1) { echo ''; } $k++; if ($k==1) { echo ''; echo ''; } if ($k==2) { echo ''; } echo ''; echo ''; echo '
'; echo ''.stripslashes($row2['album']).''; if ($start=='') { $start=0; } $query="SELECT file, title FROM mcgallery WHERE idalbum=$album LIMIT $start, 9"; $result=mysqli_query($ConnessioneDB, $query); echo '('.$nbre.' '.$l_photos.')
'.shadow($album, $image, $start); echo ''; if ($row2['title']!='') { echo $row2['title']; } else { echo ' '; } echo '
 
  
   
   
   
'; echo ''.$l_page.':  '; // navigation $i=1; while ($i<(($start + 9)/9)) { echo ''.$i.' '; $i++; } echo ' '.$i.'  '; $i++; while ($i<=ceil($nbre/ 9)) { echo ''.$i.' '; $i++; } // fin navigation $query= "SELECT descr FROM mcgallery_album WHERE idalbum=$album"; $res= mysqli_query($ConnessioneDB, $query); $alb_descr= mysqli_fetch_row($res); if ($alb_descr[0]!='') { echo '
'; echo nl2br(stripslashes($alb_descr[0])).$width; echo '
'; } echo '
'; } ?>