1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
<?php
// Liste des pages
if ( $nbr_membre > $configuration['page_membres'] )
{
$liste_page_haut = "<tr>\n <td colspan=\"4\">" . $langue['page'] . " :\n";
for ( $i = 1 ; $i <= $nbr_page ; $i++ )
{
$affiche_numero = false;
for ( $numero = 1 ; $numero <= $configuration['numero_debut'] ; $numero++ )
{
if ( $i == $numero ) $affiche_numero = true;
}
if ( !$affiche_numero )
{
for ( $numero = $page_actuelle - $configuration['numero_autour'] ; $numero <= $page_actuelle + $configuration['numero_autour'] ; $numero++ )
{
if ( $i == $numero ) $affiche_numero = true;
}
}
if ( !$affiche_numero )
{
for ( $numero = $nbr_page + 1 - $configuration['numero_fin'] ; $numero <= $nbr_page ; $numero++ )
{
if ( $i == $numero ) $affiche_numero = true;
}
}
if ( $affiche_numero )
{
$liste_page_haut .= ' <a href="index.' . EXT . '?page=Liste_des_membres&start=' . ( $i - 1 ) * $configuration['page_membres'] . '" title="' . $langue['page_goto'] . $i . '">';
$liste_page_haut .= ( $start == ( $i - 1 ) * $configuration['page_membres'] ) ? '<span class="page_actuelle">' . $i . "</span></a>\n" : $i . "</a>\n";
$trois_petits_points = false;
}
else if ( !$trois_petits_points )
{
$liste_page_haut .= " ...\n";
$trois_petits_points = true;
}
}
$liste_page_haut .= " </td>\n</tr>\n";
$liste_page_bas = "<tfoot>\n<tr>\n <td colspan=\"4\">" . $langue['page'] . " :\n";
for ( $i = 1 ; $i <= $nbr_page ; $i++ )
{
$affiche_numero = false;
for ( $numero = 1 ; $numero <= $configuration['numero_debut'] ; $numero++ )
{
if ( $i == $numero ) $affiche_numero = true;
}
if ( !$affiche_numero )
{
for ( $numero = $page_actuelle - $configuration['numero_autour'] ; $numero <= $page_actuelle + $configuration['numero_autour'] ; $numero++ )
{
if ( $i == $numero ) $affiche_numero = true;
}
}
if ( !$affiche_numero )
{
for ( $numero = $nbr_page + 1 - $configuration['numero_fin'] ; $numero <= $nbr_page ; $numero++ )
{
if ( $i == $numero ) $affiche_numero = true;
}
}
if ( $affiche_numero )
{
$liste_page_bas .= ' <a href="index.' . EXT . '?page=Liste_des_membres&start=' . ( $i - 1 ) * $configuration['page_membres'] . '" title="' . $langue['page_goto'] . $i . '">';
$liste_page_bas .= ( $start == ( $i - 1 ) * $configuration['page_membres'] ) ? '<span class="page_actuelle">' . $i . "</span></a>\n" : $i . "</a>\n";
$trois_petits_points = false;
}
else if ( !$trois_petits_points )
{
$liste_page_bas .= " ...\n";
$trois_petits_points = true;
}
}
$liste_page_bas .= " </td>\n</tr>\n</tfoot>\n\n";
}
?> |
Partager