Changeset 199 for trunk/includes


Ignore:
Timestamp:
Jun 5, 2009, 7:08:55 PM (16 years ago)
Author:
george
Message:
  • Přidáno: Zapomenutí SQL aktualizace k minulému commitu.
  • Opraveno: Zvýraznění aktuální stránky v seznamu čísel stránek.
  • Opraveno: Správné zobrazení položek na stránky ve slovníčku.
Location:
trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/global.php

    r198 r199  
    9393    $Config['Web']['BaseURL'].'index.php' => array(LICENCE_ANONYMOUS, 'Hlavní stránka', 'Domů'),
    9494    'http://wow.zdechov.net/forum/viewforum.php?f=22' => array(LICENCE_ANONYMOUS, 'Diskuze na téma překládání', 'Fórum projektu'),
    95           $Config['Web']['BaseURL'].'dictionary.php' => array(LICENCE_ANONYMOUS, 'Slovník WoW výrazů', 'Slovníček'),
     95          $Config['Web']['BaseURL'].'dictionary.php' => array(LICENCE_ANONYMOUS, 'Slovník WoW výrazů', 'Slovník'),
    9696          $Config['Web']['BaseURL'].'banners.php' => array(LICENCE_ANONYMOUS, 'Weby odkazující na tento projekt bennerem', 'Odkazují na nás'),
    9797          $Config['Web']['BaseURL'].'statistic.php' => array(LICENCE_ANONYMOUS, 'Stav dokončení překládů', 'Stav dokončení'),
    98     $Config['Web']['BaseURL'].'userlist.php' => array(LICENCE_ANONYMOUS, 'Seznam registrovaných uživatelů', 'Uživatelé'),
     98    $Config['Web']['BaseURL'].'userlist.php' => array(LICENCE_ANONYMOUS, 'Seznam registrovaných uživatelů', 'Překladatelé'),
    9999    $Config['Web']['BaseURL'].'team.php' => array(LICENCE_ANONYMOUS, 'Seznam překladatelských týmů', 'Týmy'),
    100100    $Config['Web']['BaseURL'].'download.php' => array(LICENCE_ANONYMOUS, 'Zde si můžete stáhnout přeložené texty', 'Stahování'),
  • trunk/includes/global_function.php

    r198 r199  
    3333  echo('<div style="text-align: center">');
    3434  $Line = mysql_fetch_row($Database->SQLCommand('SELECT count(*) FROM '.$Table.' '.$Where));       
    35   $ItemCount = floor($Line[0] / $ItemsPerPage);
     35  $ItemCount = $Line[0];
     36  $PageCount = floor($ItemCount / $ItemsPerPage) + 1;
    3637       
    37   echo('Počet položek: <strong>'.$Line[0].'</strong> &nbsp; Zobrazit stránku: ');
    38 
    39   if($CurrentPage > $ItemCount) $CurrentPage = ($ItemCount / $ItemsPerPage) - 1;
    40   for($Page = 1; $Page <= $ItemCount+1; $Page++)
     38  echo('Počet položek: <strong>'.$ItemCount.'</strong> &nbsp; Zobrazit stránku: ');
     39
     40  //if($CurrentPage > $PageCount) $CurrentPage = $PageCount;
     41  for($Page = 1; $Page <= $PageCount; $Page++)
    4142  {
    4243    if($CurrentPage == $Page) echo('<strong>'.$Page.'</strong> ');
Note: See TracChangeset for help on using the changeset viewer.