Changeset 91 for branches/DirectWeb/UHTMLControls.pas
- Timestamp:
- Dec 21, 2009, 1:19:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DirectWeb/UHTMLControls.pas
r88 r91 49 49 Page := StrToInt(HandlerData.Request.Query.Values[PageIndexName]); 50 50 51 Count := Round(TotalCount / ItemPerPage); 51 Count := Trunc(TotalCount / ItemPerPage) + 1; 52 if Page > Count - 1 then Page := Count - 1; 53 52 54 Output := ''; 53 55 if Count > 1 then 54 56 with HandlerData, Request do begin 55 if Page > Count - 1 then Page := Count - 1;56 57 57 58 if Page > 0 then begin … … 68 69 if PagesMax > Count - 1 then PagesMax := Count - 1; 69 70 71 if PagesMin > 0 then Output := Output + ' .. '; 70 72 // Show page numbers 71 73 for I := PagesMin to PagesMax do begin … … 78 80 end; 79 81 end; 82 if PagesMax < (Count - 1) then Output := Output + ' .. '; 80 83 81 if PagesMax < (Count - 1) then Output := Output + ' .. ';82 84 if Page < (Count - 1) then begin 83 85 Query.Values[PageIndexName] := IntToStr(Page + 1);
Note:
See TracChangeset
for help on using the changeset viewer.