Liste des ' .$album_count .' albums.
'; echo 'No | Albums | Nbr photos | Ko photos | Ko photos + vignettes | Groupe privé | Hits | Hits / photo | '; echo '|||
---|---|---|---|---|---|---|---|---|---|---|
' .$ligne[aid] .' | '; echo '' .$ligne[title] .' | '; //Nombre de photos $nbr = $ligne[Nbr] ; if ($ligne[Taille]==0) { echo '(' .number_format($nbr,0,',',' ') .') | '; $totalnbvir = $totalnbvir + $nbr; } else { echo '' .number_format($nbr,0,',',' ') .' | '; $totalnbr = $totalnbr + $nbr; $totalnbvir = $totalnbvir + $nbr; } $val = $ligne[Taille] / 1024 ; $totalphot = $totalphot + $val; echo '' .number_format($val,0,',',' ') .' | '; $val = $ligne[Total] / 1024 ; $totalsize = $totalsize + $val; echo '' .number_format($val,0,',',' ') .' | '; $val = $ligne[visibility]; if ($val==0) { echo '- | '; } else { $sqlGroup = 'SELECT `group_name` FROM `cpg133_usergroups` WHERE `group_id`=' .$val ; $resGroup = db_query($sqlGroup); $owner = mysql_fetch_array($resGroup); echo '' .$owner[group_name] .' | '; mysql_free_result($resGroup); } $val = $ligne[Hits]; $totalhits = $totalhits + $val; echo '' .number_format($val,0,',',' ') .' | '; /* Hits / Nbr photos */ if ($val==0) { echo '0,0 | '; } else { echo '' .number_format(($val/$nbr),1,',',' ') .' | '; } /* Fin de la ligne */ echo '
'; echo ' | Total des ' .$album_count .' albums | '; echo '(' .number_format($totalnbvir,0,',',' ') .') ' .number_format($totalnbr,0,',',' ') .' | '; echo '' .number_format($totalphot,0,',',' ') .' | '; echo '' .number_format($totalsize,0,',',' ') .' | '; echo '- | '; echo '' .number_format($totalhits,0,',',' ') .' | '; echo '' .number_format(($totalhits/$totalnbr),1,',',' ') .' | '; echo '