Re: [WebDNA] Show next.....

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104613
interpreted = N
texte = --0015174a0e02b2cdcb047e3f505a Content-Type: text/plain; charset=UTF-8 Olin, The Kanu site looks great - well done on that. Here's my take on pagination code - I've tried to strip out variables specific to my setup but there might still be some in there. You can see a live example at the end of this page: http://www.ictu.ie/press/ I'm going to check Olin's code now to see how I can make this better. - Tom --- CSS begin /* PAGINATOR - thanks to flickr ;-) */ .Pages { text-align: center; margin-bottom: 5px; margin-top: 5px; } .Paginator { font-size: 1em; padding-top: 5px; margin-left: auto; margin-right: auto; /* padding-bottom: 10px; background-image: url(../images/dotted.gif); background-repeat: repeat-x; background-position: left bottom; */ } .Paginator a, .pageList .this-page { padding: 2px 6px; border: solid 1px #ddd; background: #fff; text-decoration: none; } .Paginator a:visited { padding: 2px 6px; border: solid 1px #ddd; background: #fff; text-decoration: none; } .Paginator .AtStart { margin-right: 7px; padding: 2px 6px; /* border: solid 1px #ddd; */ background: #fff; color: #aaa; } .Paginator .Prev { margin-right: 7px; padding: 2px 6px; border: solid 2px #ddd; background: #fff; } .Paginator .break { padding: 2px 6px; border: none; background: #fff; text-decoration: none; } .Paginator .Next { margin-left: 7px; padding: 2px 6px; border: solid 2px #ddd; background: #fff; white-space: nowrap;} .Paginator .AtEnd { margin-left: 7px; padding: 2px 6px; /* border: solid 1px #ddd; */ background: #fff; color: #aaa; } .Paginator .this-page {padding: 2px 6px; border-color: #999; font-weight: bold; font-size: 1.1em; vertical-align: top; background: #fff; color: #FF0084; } .Paginator a:hover {color: #fff; background: #0063DC; border-color: #036; text-decoration: none;} /* .Paginator .ranking {display: block; margin-top: 0.5em; font-weight: bold;} .Paginator .ranking a {padding: 0; border: 0; background: transparent;} */ .Pages div.Results { text-align: center; font: .9em/1.2em Arial, Helvetica; color: #aaa; margin-top: 8px; } --- CSS end --- WebDNA on display page begin [search .....&startat=[start].....] [/founditems][include file=includes/paginator.inc][/search] --- WebDNA on display page end --- Paginator includes file [math show=f]counter=0[/math] [shownext position=begin][math show=f]counter=[counter]+1[/math][/shownext] [math show=f]beginpages=[counter][/math] [shownext position=middle][math show=f]counter=[counter]+1[/math][/shownext] [math show=f]middlepage=[counter][/math] [shownext position=end][math show=f]counter=[counter]+1[/math][/shownext] [math show=f]endpages=[counter][/math] [math show=f]totalpages=15[/math] [math show=f]maxpages=([totalpages]-1)/2[/math] [math show=f]showstart=[middlepage]-[maxpages][/math] [math show=f]showend=[middlepage]+[maxpages][/math] [showif [showstart]<1][math show=f]showend=[totalpages][/math][math show=f]showstart=1[/math][/showif] [showif [showend]>[endpages]][math show=f]showstart=([endpages]+1)-[totalpages][/math][math show=f]showend=[endpages][/math][/showif] [hideif [counter]=1]
[text]startprev=F[/text] [shownext position=begin&max=1][text]startprev=T[/text] [/shownext] [showif [startprev]=F]< Prev[/showif] [math show=f]showcounter=0[/math] [shownext position=begin][math show=f]showcounter=[showcounter]+1[/math] [showif [math][showstart]-1[/math]=[showcounter]]...[/showif] [hideif [showstart]>[showcounter]] [showcounter] [/hideif][/shownext] [shownext position=middle][math show=f]showcounter=[showcounter]+1[/math] [showcounter][/shownext] [shownext position=end][math show=f]showcounter=[showcounter]+1[/math] [hideif [showend]<[showcounter]] [showcounter][/hideif] [showif [math][showend]+1[/math]=[showcounter]]...[/showif][/shownext] [text]endnext=F[/text] [shownext position=end&max=1][text]endnext=T[/text] [/shownext] [showif [endnext]=F]Next >[/showif]
([numfound])
[/hideif] --- Paginator ends --0015174a0e02b2cdcb047e3f505a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Olin,

The Kanu site looks great - well done on that. =C2= =A0 Here's my take on pagination code - I've tried to strip out var= iables specific to my setup but there might still be some in there. =C2=A0= =C2=A0You can see a live example at the end of this page:

=C2=A0=C2=A0 =C2=A0http://www.ictu.ie/press/

I'm going to c= heck Olin's code now to see how I can make this better.

<= /div>
- Tom


--- CSS begin

/* PAGINATOR - thank= s to flickr ;-) */

.Pages { text-align: center; ma= rgin-bottom: 5px; margin-top: 5px; }
.Paginator { font-size: 1em;= padding-top: 5px; margin-left: auto; margin-right: auto; /* padding-bottom= : 10px; =C2=A0background-image: url(../images/dotted.gif); background-repea= t: repeat-x; background-position: left bottom; */ }
.Paginator a, .pageList .this-page { padding: 2px 6px; border: solid 1= px #ddd; background: #fff; text-decoration: none; }
.Paginator a:= visited { padding: 2px 6px; border: solid 1px #ddd; background: #fff; text-= decoration: none; }
.Paginator .AtStart { margin-right: 7px; padding: 2px 6px; /* border: = solid 1px #ddd; */ background: #fff; color: #aaa; }
.Paginator .P= rev { margin-right: 7px; padding: 2px 6px; border: solid 2px #ddd; backgrou= nd: #fff; }
.Paginator .break { padding: 2px 6px; border: none; background: #fff; = text-decoration: none; }
.Paginator .Next { margin-left: 7px; pad= ding: 2px 6px; border: solid 2px #ddd; background: #fff; white-space: nowra= p;}
.Paginator .AtEnd { margin-left: 7px; padding: 2px 6px; /* border: sol= id 1px #ddd; */ background: #fff; color: #aaa; }
.Paginator .this= -page {padding: 2px 6px; border-color: #999; font-weight: bold; font-size: = 1.1em; vertical-align: top; background: #fff; color: #FF0084; }
.Paginator a:hover {color: #fff; background: #0063DC; border-color: #0= 36; text-decoration: none;}
/*=C2=A0
.Paginator .rankin= g {display: block; margin-top: 0.5em; font-weight: bold;}
.Pagina= tor .ranking a {padding: 0; border: 0; background: transparent;}=C2=A0
*/
.Pages div.Results { text-align: center; font: .9em/1.2em= Arial, Helvetica; color: #aaa; margin-top: 8px; }

--- CSS end


--- WebDNA on display = page begin

[search =C2=A0.....&startat=3D[start].....]

[/founditems][include file=3Dincludes/paginator.inc][/sea= rch]

--- WebDNA on display page end

=

--- =C2=A0Paginator includes file

<= div>
[math show=3Df]counter=3D0[/math]
[shownext position=3Db= egin][math show=3Df]counter=3D[counter]+1[/math][/shownext]
[math= show=3Df]beginpages=3D[counter][/math]
[shownext position=3Dmiddle][math show=3Df]counter=3D[counter]+1[/math= ][/shownext]
[math show=3Df]middlepage=3D[counter][/math]
[shownext position=3Dend][math show=3Df]counter=3D[counter]+1[/math][/sh= ownext]
[math show=3Df]endpages=3D[counter][/math]

[m= ath show=3Df]totalpages=3D15[/math]
[math show=3Df]maxpages=3D([t= otalpages]-1)/2[/math]
[math show=3Df]showstart=3D[middlepage]-[m= axpages][/math]
[math show=3Df]showend=3D[middlepage]+[maxpages][/math]
[sho= wif [showstart]<1][math show=3Df]showend=3D[totalpages][/math][math show= =3Df]showstart=3D1[/math][/showif]
[showif [showend]>[endpages= ]][math show=3Df]showstart=3D([endpages]+1)-[totalpages][/math][math show= =3Df]showend=3D[endpages][/math][/showif]

[hideif [counter]=3D1]<div class=3D"Pages"= >
<div class=3D"Paginator">

[te= xt]startprev=3DF[/text]
[shownext position=3Dbegin&max=3D1][text]startprev=3DT[/text]

<a href=3D"theurl.html?start=3D[start]" c= lass=3D"Prev">&lt; Prev</a>
[/shownext]

[showif [startprev]=3DF]<span class=3D"AtStart"= >&lt; Prev</span>[/showif]

[math show= =3Df]showcounter=3D0[/math]
[shownext position=3Dbegin][math show= =3Df]showcounter=3D[showcounter]+1[/math]

[showif [math][showstart]-1[/math]=3D[showcounter]]...[= /showif]
[hideif [showstart]>[showcounter]]

<a href=3D"theurl.html?start=3D[start]">[showcounter= ]</a>
[/hideif][/shownext]

[shownext position=3Dmid= dle][math show=3Df]showcounter=3D[showcounter]+1[/math]
<span = class=3D"this-page">[showcounter]</span>[/shownext]
[shownext position=3Dend][math show=3Df]showcounter=3D[showcounter]+1[/math= ]

[hideif [showend]<[showcounter]]
<a href=3D"theurl.html?start=3D[start]">[showc= ounter]</a>[/hideif]

[showif [math][showend]+1[/math]=3D[showcounter]]...[/s= howif][/shownext]

[text]endnext=3DF[/text]
[shownext position=3Dend&max=3D1][text]endnext=3DT[/text]
=
<a href=3D"theurl.html?start=3D[start]" class=3D"Nex= t">Next &gt;</a>
[/shownext]

[showif [endnext]=3DF]<span class=3D"AtEnd">Next &am= p;gt;</span>[/showif]

</div>
<div class=3D"Results">([numfound])&= lt;/div>
</div>[/hideif]

--- Paginator ends



--0015174a0e02b2cdcb047e3f505a-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Show next..... (Rich Kwas 2010)
  2. Re: [WebDNA] Show next..... (Donovan Brooke 2010)
  3. Re: [WebDNA] Show next..... (Tom Duke 2010)
  4. Re: [WebDNA] Show next..... ("Terry Wilson" 2010)
  5. Re: [WebDNA] Show next..... (Dan Strong 2010)
  6. Re: [WebDNA] Show next..... (Donovan Brooke 2010)
  7. Re: [WebDNA] Show next..... (Govinda 2010)
  8. Re: [WebDNA] Show next..... ("Terry Wilson" 2010)
  9. Re: [WebDNA] Show next..... ("Psi Prime Inc, Matthew A Perosi " 2010)
  10. RE: [WebDNA] Show next..... ("Olin Lagon" 2010)
  11. Re: [WebDNA] Show next..... (Donovan Brooke 2010)
  12. Re: [WebDNA] Show next..... ("Psi Prime Inc, Matthew A Perosi " 2010)
  13. Re: [WebDNA] Show next..... (Terry Wilson 2010)
  14. Re: [WebDNA] Show next..... (Govinda 2010)
  15. Re: [WebDNA] Show next..... (christophe.billiottet@webdna.us 2010)
  16. [WebDNA] Show next..... (Rich Kwas 2010)
--0015174a0e02b2cdcb047e3f505a Content-Type: text/plain; charset=UTF-8 Olin, The Kanu site looks great - well done on that. Here's my take on pagination code - I've tried to strip out variables specific to my setup but there might still be some in there. You can see a live example at the end of this page: http://www.ictu.ie/press/ I'm going to check Olin's code now to see how I can make this better. - Tom --- CSS begin /* PAGINATOR - thanks to flickr ;-) */ .Pages { text-align: center; margin-bottom: 5px; margin-top: 5px; } .Paginator { font-size: 1em; padding-top: 5px; margin-left: auto; margin-right: auto; /* padding-bottom: 10px; background-image: url(../images/dotted.gif); background-repeat: repeat-x; background-position: left bottom; */ } .Paginator a, .pageList .this-page { padding: 2px 6px; border: solid 1px #ddd; background: #fff; text-decoration: none; } .Paginator a:visited { padding: 2px 6px; border: solid 1px #ddd; background: #fff; text-decoration: none; } .Paginator .AtStart { margin-right: 7px; padding: 2px 6px; /* border: solid 1px #ddd; */ background: #fff; color: #aaa; } .Paginator .Prev { margin-right: 7px; padding: 2px 6px; border: solid 2px #ddd; background: #fff; } .Paginator .break { padding: 2px 6px; border: none; background: #fff; text-decoration: none; } .Paginator .Next { margin-left: 7px; padding: 2px 6px; border: solid 2px #ddd; background: #fff; white-space: nowrap;} .Paginator .AtEnd { margin-left: 7px; padding: 2px 6px; /* border: solid 1px #ddd; */ background: #fff; color: #aaa; } .Paginator .this-page {padding: 2px 6px; border-color: #999; font-weight: bold; font-size: 1.1em; vertical-align: top; background: #fff; color: #FF0084; } .Paginator a:hover {color: #fff; background: #0063DC; border-color: #036; text-decoration: none;} /* .Paginator .ranking {display: block; margin-top: 0.5em; font-weight: bold;} .Paginator .ranking a {padding: 0; border: 0; background: transparent;} */ .Pages div.Results { text-align: center; font: .9em/1.2em Arial, Helvetica; color: #aaa; margin-top: 8px; } --- CSS end --- WebDNA on display page begin [search .....&startat=[start].....] [/founditems][include file=includes/paginator.inc][/search] --- WebDNA on display page end --- Paginator includes file [math show=f]counter=0[/math] [shownext position=begin][math show=f]counter=[counter]+1[/math][/shownext] [math show=f]beginpages=[counter][/math] [shownext position=middle][math show=f]counter=[counter]+1[/math][/shownext] [math show=f]middlepage=[counter][/math] [shownext position=end][math show=f]counter=[counter]+1[/math][/shownext] [math show=f]endpages=[counter][/math] [math show=f]totalpages=15[/math] [math show=f]maxpages=([totalpages]-1)/2[/math] [math show=f]showstart=[middlepage]-[maxpages][/math] [math show=f]showend=[middlepage]+[maxpages][/math] [showif [showstart]<1][math show=f]showend=[totalpages][/math][math show=f]showstart=1[/math][/showif] [showif [showend]>[endpages]][math show=f]showstart=([endpages]+1)-[totalpages][/math][math show=f]showend=[endpages][/math][/showif] [hideif [counter]=1]
[text]startprev=F[/text] [shownext position=begin&max=1][text]startprev=T[/text] [/shownext] [showif [startprev]=F]< Prev[/showif] [math show=f]showcounter=0[/math] [shownext position=begin][math show=f]showcounter=[showcounter]+1[/math] [showif [math][showstart]-1[/math]=[showcounter]]...[/showif] [hideif [showstart]>[showcounter]] [showcounter] [/hideif][/shownext] [shownext position=middle][math show=f]showcounter=[showcounter]+1[/math] [showcounter][/shownext] [shownext position=end][math show=f]showcounter=[showcounter]+1[/math] [hideif [showend]<[showcounter]] [showcounter][/hideif] [showif [math][showend]+1[/math]=[showcounter]]...[/showif][/shownext] [text]endnext=F[/text] [shownext position=end&max=1][text]endnext=T[/text] [/shownext] [showif [endnext]=F]Next >[/showif]
([numfound])
[/hideif] --- Paginator ends --0015174a0e02b2cdcb047e3f505a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Olin,

The Kanu site looks great - well done on that. =C2= =A0 Here's my take on pagination code - I've tried to strip out var= iables specific to my setup but there might still be some in there. =C2=A0= =C2=A0You can see a live example at the end of this page:

=C2=A0=C2=A0 =C2=A0http://www.ictu.ie/press/

I'm going to c= heck Olin's code now to see how I can make this better.

<= /div>
- Tom


--- CSS begin

/* PAGINATOR - thank= s to flickr ;-) */

.Pages { text-align: center; ma= rgin-bottom: 5px; margin-top: 5px; }
.Paginator { font-size: 1em;= padding-top: 5px; margin-left: auto; margin-right: auto; /* padding-bottom= : 10px; =C2=A0background-image: url(../images/dotted.gif); background-repea= t: repeat-x; background-position: left bottom; */ }
.Paginator a, .pageList .this-page { padding: 2px 6px; border: solid 1= px #ddd; background: #fff; text-decoration: none; }
.Paginator a:= visited { padding: 2px 6px; border: solid 1px #ddd; background: #fff; text-= decoration: none; }
.Paginator .AtStart { margin-right: 7px; padding: 2px 6px; /* border: = solid 1px #ddd; */ background: #fff; color: #aaa; }
.Paginator .P= rev { margin-right: 7px; padding: 2px 6px; border: solid 2px #ddd; backgrou= nd: #fff; }
.Paginator .break { padding: 2px 6px; border: none; background: #fff; = text-decoration: none; }
.Paginator .Next { margin-left: 7px; pad= ding: 2px 6px; border: solid 2px #ddd; background: #fff; white-space: nowra= p;}
.Paginator .AtEnd { margin-left: 7px; padding: 2px 6px; /* border: sol= id 1px #ddd; */ background: #fff; color: #aaa; }
.Paginator .this= -page {padding: 2px 6px; border-color: #999; font-weight: bold; font-size: = 1.1em; vertical-align: top; background: #fff; color: #FF0084; }
.Paginator a:hover {color: #fff; background: #0063DC; border-color: #0= 36; text-decoration: none;}
/*=C2=A0
.Paginator .rankin= g {display: block; margin-top: 0.5em; font-weight: bold;}
.Pagina= tor .ranking a {padding: 0; border: 0; background: transparent;}=C2=A0
*/
.Pages div.Results { text-align: center; font: .9em/1.2em= Arial, Helvetica; color: #aaa; margin-top: 8px; }

--- CSS end


--- WebDNA on display = page begin

[search =C2=A0.....&startat=3D[start].....]

[/founditems][include file=3Dincludes/paginator.inc][/sea= rch]

--- WebDNA on display page end

=

--- =C2=A0Paginator includes file

<= div>
[math show=3Df]counter=3D0[/math]
[shownext position=3Db= egin][math show=3Df]counter=3D[counter]+1[/math][/shownext]
[math= show=3Df]beginpages=3D[counter][/math]
[shownext position=3Dmiddle][math show=3Df]counter=3D[counter]+1[/math= ][/shownext]
[math show=3Df]middlepage=3D[counter][/math]
[shownext position=3Dend][math show=3Df]counter=3D[counter]+1[/math][/sh= ownext]
[math show=3Df]endpages=3D[counter][/math]

[m= ath show=3Df]totalpages=3D15[/math]
[math show=3Df]maxpages=3D([t= otalpages]-1)/2[/math]
[math show=3Df]showstart=3D[middlepage]-[m= axpages][/math]
[math show=3Df]showend=3D[middlepage]+[maxpages][/math]
[sho= wif [showstart]<1][math show=3Df]showend=3D[totalpages][/math][math show= =3Df]showstart=3D1[/math][/showif]
[showif [showend]>[endpages= ]][math show=3Df]showstart=3D([endpages]+1)-[totalpages][/math][math show= =3Df]showend=3D[endpages][/math][/showif]

[hideif [counter]=3D1]<div class=3D"Pages"= >
<div class=3D"Paginator">

[te= xt]startprev=3DF[/text]
[shownext position=3Dbegin&max=3D1][text]startprev=3DT[/text]

<a href=3D"theurl.html?start=3D[start]" c= lass=3D"Prev">&lt; Prev</a>
[/shownext]

[showif [startprev]=3DF]<span class=3D"AtStart"= >&lt; Prev</span>[/showif]

[math show= =3Df]showcounter=3D0[/math]
[shownext position=3Dbegin][math show= =3Df]showcounter=3D[showcounter]+1[/math]

[showif [math][showstart]-1[/math]=3D[showcounter]]...[= /showif]
[hideif [showstart]>[showcounter]]

<a href=3D"theurl.html?start=3D[start]">[showcounter= ]</a>
[/hideif][/shownext]

[shownext position=3Dmid= dle][math show=3Df]showcounter=3D[showcounter]+1[/math]
<span = class=3D"this-page">[showcounter]</span>[/shownext]
[shownext position=3Dend][math show=3Df]showcounter=3D[showcounter]+1[/math= ]

[hideif [showend]<[showcounter]]
<a href=3D"theurl.html?start=3D[start]">[showc= ounter]</a>[/hideif]

[showif [math][showend]+1[/math]=3D[showcounter]]...[/s= howif][/shownext]

[text]endnext=3DF[/text]
[shownext position=3Dend&max=3D1][text]endnext=3DT[/text]
=
<a href=3D"theurl.html?start=3D[start]" class=3D"Nex= t">Next &gt;</a>
[/shownext]

[showif [endnext]=3DF]<span class=3D"AtEnd">Next &am= p;gt;</span>[/showif]

</div>
<div class=3D"Results">([numfound])&= lt;/div>
</div>[/hideif]

--- Paginator ends



--0015174a0e02b2cdcb047e3f505a-- Tom Duke

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Cybersource and WebCat ... again (2000) Web Catalog 2 demo (1997) Listfiles and nothing found (2001) t or f (1997) webcat NT (1998) Summing results of a nested search (2006) PHP Live (2005) READFILE command? (1998) Alternate Cookie location (2001) Number of Line Items (1998) tcpconnect/tcpsend frustrations (2002) Image upload (2000) Autoreturn Submit? (1997) Help! WebCat2 bug (1997) Am I going senile? (Price recalc based on quantity) (1997) triggers (2002) Webcat 3.0.5b9, b8 trigger failures ON WEBSTAR (1999) Google does it... can WebDNA? Showing only the section (2003) Empty Shopping Carts (1998) FYI: virus alert (1996)