str_repeat("*", ceil($data['sum_rating'] / $data['count_votes'])) : $locale['438'])."
\n"; echo $locale['435'].$data['photo_views']."
\n"; echo "\n"; $counter++; } echo "\n\n"; closetable(); } if ($rows > $settings['thumbs_per_page']) echo "
\n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3,FUSION_SELF."?album_id=$album_id&")."\n
\n"; } } } else { opentable($locale['400']); $rows = dbcount("(album_id)", "photo_albums", groupaccess('album_access')); if ($rows) { $result = dbquery( "SELECT ta.*, tu.user_id,user_name FROM ".$db_prefix."photo_albums ta LEFT JOIN ".$db_prefix."users tu ON ta.album_user=tu.user_id WHERE ".groupaccess('album_access')." ORDER BY album_order LIMIT $rowstart,".$settings['thumbs_per_page'] ); $counter = 0; $r = 0; $k = 1; echo "\n\n"; while ($data = dbarray($result)) { if ($counter != 0 && ($counter % $settings['thumbs_per_row'] == 0)) echo "\n\n"; echo "\n"; $counter++; $k++; } echo "\n
\n"; echo "".$data['album_title']."

\n"; if ($data['album_thumb'] && file_exists(PHOTOS.$data['album_thumb'])){ echo "".$data["; } else { echo $locale['402']; } echo "

\n\n"; echo $locale['403'].showdate("shortdate", $data['album_datestamp'])."
\n"; echo $locale['404']."".$data['user_name']."
\n"; echo $locale['405'].dbcount("(photo_id)", "photos", "album_id='".$data['album_id']."'")."

\n"; echo "
\n"; closetable(); if ($rows > $settings['thumbs_per_page']) echo "
\n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3)."\n
\n"; }else{ echo "

".$locale['406']."

\n"; closetable(); } }