Changeset 199 for trunk/includes/global_function.php
- Timestamp:
- Jun 5, 2009, 7:08:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global_function.php
r198 r199 33 33 echo('<div style="text-align: center">'); 34 34 $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; 36 37 37 echo('Počet položek: <strong>'.$ Line[0].'</strong> 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> Zobrazit stránku: '); 39 40 //if($CurrentPage > $PageCount) $CurrentPage = $PageCount; 41 for($Page = 1; $Page <= $PageCount; $Page++) 41 42 { 42 43 if($CurrentPage == $Page) echo('<strong>'.$Page.'</strong> ');
Note:
See TracChangeset
for help on using the changeset viewer.