Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1002547 // pageNav - HTML page navigation

JavaX fragment (include)

1  
// 100 items per page
2  
static S pageNav(Map<S, S> params, L<S> keepFields, int count, S nVar) {
3  
  new L<S> l;
4  
  for (int i = 0; i < count; i += 100)
5  
    l.add(ahref(selfLink(params, keepFields, nVar, str(i)), i/100+1));
6  
  ret p("Pages: " + lines(l));
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002547
Snippet name: pageNav - HTML page navigation
Eternal ID of this version: #1002547/2
Text MD5: 6b5adcb045c1dc9b618ecde037ffdcdc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-31 04:58:43
Source code size: 257 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 601 / 567
Version history: 1 change(s)
Referenced in: [show references]