Re: [WebDNA] limit found per row
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 107579
interpreted = N
texte = --001517473782903ab104b04716c0Content-Type: text/plain; charset=ISO-8859-1Have used CSS previously to do the layout but decided to use
...Here's the modified code===================[text]numItemsPerTR=3[/text][!][text]numSampleImages=5[/text] [/!][!]---this will fill out the last | with the right number of these: " | " ...as wasrequested.---[/!][search db=inc/livestreams.db&geSkuData=[blank]&deSKUSort=1][text]totalItems=[numfound][/text][FoundItems][showif [index]=1][text]TRstatus=open[/text][text]TDsThisTR=0[/text][/showif][text]TDsThisTR=[math][TDsThisTR]+1[/math][/text] | [showif [index]\[numItemsPerTR]]
[text]TRstatus=closed[/text] [hideif [index]=[totalItems]] [text]TRstatus=open[/text] [text]TDsThisTR=0[/text] [/hideif][/showif][/FoundItems][if ("[TRstatus]"="open")][then][!]---here we fill in any empty TD slots with blanks, and close theTR---[/!][text]numBlanksTDsNeeded=[math][numItemsPerTR]-[TDsThisTR][/math][/text][loop start=1&end=[numBlanksTDsNeeded]&advance=1] | [/loop]
[/then][/if][/Search]
====================Being used inhttp://sgbc-cebu.com/liveMany thanks... Jess--001517473782903ab104b04716c0Content-Type: text/html; charset=ISO-8859-1Content-Transfer-Encoding: quoted-printable
Have used CSS previously to do the layout but decided to use <td>=...
Here's the modified code
=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
[text]numItemsPerTR=3D3[/text]
[!]=[text]numSampleImages=3D5[/text] <!-- removed-->[/!]
[!]---this will fill out the last <tr>
with the right number =of these: "<td align=3Dcenter> </td>" ...a=s was requested.---[/!]
<table border=3D0 width=3D100%>
[search= db=3Dinc/livestreams.db&geSkuData=3D[blank]&deSKUSort=3D1]
[text]totalItems=3D[numfound][/text]
[FoundItems]
[showif [index]==3D1]
<tr>
[text]TRstatus=3Dopen[/text]
[text]TDsThisTR=3D0[=/text]
[/showif]
[text]TDsThisTR=3D[math][TDsThisTR]+1[/math][/te=xt]
<td align=3Dcenter>
<div class=3D"overlay">
<a href=3Dlibrary.htm?stream/[sku].htm>
<img style=3D"pad=ding: 7px; border: 1px solid #ddd;" src=3Dstream/liveimg/[image] borde=r=3D0>
<div class=3D"text" align=3Dcenter>►</div><=br>[date] <b>[indextitle]</b></a></div>
</td>
[showif [index]\[numItemsPerTR]]</t=r>
[text]TRstatus=3Dclosed[/text]
=A0=A0=A0 [hideif [index]=3D[totalItems]]=<tr>
=A0=A0=A0 [text]TRstatus=3Dopen[/text]
=A0=A0=A0 [text]TDs=ThisTR=3D0[/text]
=A0=A0=A0 [/hideif]
[/showif]
[/FoundItems]
<=br>[if ("[TRstatus]"=3D"open")]
[then]
[!]---here we fill in any empty TD slots with blanks, and close t=he TR---[/!]
[text]numBlanksTDsNeeded=3D[math][numItemsPerTR]-[TDsThisTR=][/math][/text]
[loop start=3D1&end=3D[numBlanksTDsNeeded]&advan=ce=3D1]
<td> </td>
[/loop]
</tr>
[/then]
[=/if]
[/Search]
</table>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Being used in
http://sgbc-cebu.com/live
Many thanks... Jess
--001517473782903ab104b04716c0--
Associated Messages, from the most recent to the oldest:
--001517473782903ab104b04716c0Content-Type: text/plain; charset=ISO-8859-1Have used CSS previously to do the layout but decided to use ...Here's the modified code===================[text]numItemsPerTR=3[/text][!][text]numSampleImages=5[/text] [/!][!]---this will fill out the last |
with the right number of these: " | " ...as wasrequested.---[/!][search db=inc/livestreams.db&geSkuData=[blank]&deSKUSort=1][text]totalItems=[numfound][/text][founditems][showif [index]=1][text]TRstatus=open[/text][text]TDsThisTR=0[/text][/showif][text]TDsThisTR=[math][TDsThisTR]+1[/math][/text] | [showif [index]\[numItemsPerTR]]
[text]TRstatus=closed[/text] [hideif [index]=[totalItems]] [text]TRstatus=open[/text] [text]TDsThisTR=0[/text] [/hideif][/showif][/FoundItems][if ("[TRstatus]"="open")][then][!]---here we fill in any empty TD slots with blanks, and close theTR---[/!][text]numBlanksTDsNeeded=[math][numItemsPerTR]-[TDsThisTR][/math][/text][loop start=1&end=[numBlanksTDsNeeded]&advance=1] | [/loop]
[/then][/if][/Search]
====================Being used inhttp://sgbc-cebu.com/liveMany thanks... Jess--001517473782903ab104b04716c0Content-Type: text/html; charset=ISO-8859-1Content-Transfer-Encoding: quoted-printable
Have used CSS previously to do the layout but decided to use <td>=...
Here's the modified code
=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
[text]numItemsPerTR=3D3[/text]
[!]=[text]numSampleImages=3D5[/text] <!-- removed-->[/!]
[!]---this will fill out the last <tr>
with the right number =of these: "<td align=3Dcenter> </td>" ...a=s was requested.---[/!]
<table border=3D0 width=3D100%>
[search= db=3Dinc/livestreams.db&geSkuData=3D[blank]&deSKUSort=3D1]
[text]totalItems=3D[numfound][/text]
[founditems]
[showif [index]==3D1]
<tr>
[text]TRstatus=3Dopen[/text]
[text]TDsThisTR=3D0[=/text]
[/showif]
[text]TDsThisTR=3D[math][TDsThisTR]+1[/math][/te=xt]
<td align=3Dcenter>
<div class=3D"overlay">
<a href=3Dlibrary.htm?stream/[sku].htm>
<img style=3D"pad=ding: 7px; border: 1px solid #ddd;" src=3Dstream/liveimg/[image] borde=r=3D0>
<div class=3D"text" align=3Dcenter>►</div><=br>[date] <b>[indextitle]</b></a></div>
</td>
[showif [index]\[numItemsPerTR]]</t=r>
[text]TRstatus=3Dclosed[/text]
=A0=A0=A0 [hideif [index]=3D[totalItems]]=<tr>
=A0=A0=A0 [text]TRstatus=3Dopen[/text]
=A0=A0=A0 [text]TDs=ThisTR=3D0[/text]
=A0=A0=A0 [/hideif]
[/showif]
[/FoundItems]
<=br>[if ("[TRstatus]"=3D"open")]
[then]
[!]---here we fill in any empty TD slots with blanks, and close t=he TR---[/!]
[text]numBlanksTDsNeeded=3D[math][numItemsPerTR]-[TDsThisTR=][/math][/text]
[loop start=3D1&end=3D[numBlanksTDsNeeded]&advan=ce=3D1]
<td> </td>
[/loop]
</tr>
[/then]
[=/if]
[/Search]
</table>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Being used in
http://sgbc-cebu.com/live
Many thanks... Jess
--001517473782903ab104b04716c0--
sgbc cebu
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:
Setting up shop (1997)
page redirect in webDNA (1997)
Extra equals signs with IE? (More debugging questions...) (1997)
Re:UPS, FEDEX TRACKING (1999)
[WebDNA] WebDNA 7 (2011)
Problems with date math (1997)
[WriteFile] problems (1997)
removing programming logic white space (2003)
Location of Browser Info.txt file (1997)
Some Questions (1997)
[WebDNA] Base 64 (2010)
Unique SKU Numbers (2000)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
[setLineItem] does not work. (1998)
Need relative path explanation (1997)
Fulfillment emails not emailing after upgrade (2002)
Nested tags count question (1997)
Calendar using WebCatalog? (1997)
setcookie getcookie on the same page (2003)
Re1000001: Setting up shop (1997)