Changeset 33118 in spip-zone


Ignore:
Timestamp:
Nov 21, 2009, 5:14:46 PM (10 years ago)
Author:
neofutur777@…
Message:

limitation de la pagination a 1000 resultats ca fait vraiment pas joli avec 20k resultats . . . mieux faire plus tard avec une pagination dynamique

Location:
_squelettes_/SpipFeeder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _squelettes_/SpipFeeder/mes_fonctions.php

    r32233 r33118  
    232232  $ResFnd = spip_query($ReqFnd);
    233233  $NbFnd = mysql_result($ResFnd , 0);
     234  $MaxLinks = 1000; // nombre maximum de links a afficher
    234235
    235236  $url = $_SERVER['PHP_SELF'].'?';
     
    240241        $ret.="<b style='text-decoration : blink'>Ce jour : $NbFnd informations libres :</b> ";
    241242        $thelinks="";
     243  // on limite la pagination a $MaxLinks = 1000
     244  if ( $NbFnd > $MaxLinks ) $NbFnd = $MaxLinks;
     245
    242246  for ($numero = 0; $numero < $NbFnd; $numero = $numero + $NbSyndic) {
    243247    $NumFin = $numero + $NbSyndic;
  • _squelettes_/SpipFeeder/mes_fonctions.php3

    r32233 r33118  
    232232  $ResFnd = spip_query($ReqFnd);
    233233  $NbFnd = mysql_result($ResFnd , 0);
    234 
     234  $MaxLinks = 1000; // nombre maximum de links a afficher
    235235  $url = $_SERVER['PHP_SELF'].'?';
    236236  foreach ($_GET as $k => $v)
     
    240240        $ret.="<b style='text-decoration : blink'>Ce jour : $NbFnd informations libres :</b> ";
    241241        $thelinks="";
     242  // on limite la pagination a $MaxLinks = 1000
     243  if ( $NbFnd > $MaxLinks ) $NbFnd = $MaxLinks;
     244
    242245  for ($numero = 0; $numero < $NbFnd; $numero = $numero + $NbSyndic) {
    243246    $NumFin = $numero + $NbSyndic;
Note: See TracChangeset for help on using the changeset viewer.