Re: [WebDNA] limit found per row

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 107579
interpreted = N
texte = --001517473782903ab104b04716c0 Content-Type: text/plain; charset=ISO-8859-1 Have 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 was requested.---[/!] [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 the TR---[/!] [text]numBlanksTDsNeeded=[math][numItemsPerTR]-[TDsThisTR][/math][/text] [loop start=1&end=[numBlanksTDsNeeded]&advance=1] [/loop] [/then] [/if] [/Search]
 
==================== Being used in http://sgbc-cebu.com/live Many thanks... Jess --001517473782903ab104b04716c0 Content-Type: text/html; charset=ISO-8859-1 Content-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> &nbsp; </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>&#9658;</div><= br>[date] &nbsp; &nbsp; <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> &nbsp; </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:

    
  1. Re: [WebDNA] limit found per row (sgbc cebu 2011)
  2. Re: [WebDNA] limit found per row (sgbc cebu 2011)
  3. Re: [WebDNA] limit found per row (Govinda 2011)
  4. Re: [WebDNA] limit found per row (Paul Willis 2011)
  5. Re: [WebDNA] limit found per row (Dan Strong 2011)
  6. Re: [WebDNA] limit found per row (Paul Willis 2011)
  7. Re: [WebDNA] limit found per row (Donovan Brooke 2011)
  8. Re: [WebDNA] limit found per row (sgbc cebu 2011)
  9. Re: [WebDNA] limit found per row (Paul Willis 2011)
  10. Re: [WebDNA] limit found per row (Govinda 2011)
  11. Re: [WebDNA] limit found per row (William DeVaul 2011)
  12. [WebDNA] limit found per row (sgbc cebu 2011)
--001517473782903ab104b04716c0 Content-Type: text/plain; charset=ISO-8859-1 Have 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 was requested.---[/!] [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 the TR---[/!] [text]numBlanksTDsNeeded=[math][numItemsPerTR]-[TDsThisTR][/math][/text] [loop start=1&end=[numBlanksTDsNeeded]&advance=1] [/loop] [/then] [/if] [/Search]
[date]     [indextitle]
 
==================== Being used in http://sgbc-cebu.com/live Many thanks... Jess --001517473782903ab104b04716c0 Content-Type: text/html; charset=ISO-8859-1 Content-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> &nbsp; </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>&#9658;</div><= br>[date] &nbsp; &nbsp; <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> &nbsp; </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:

IIS4 (1998) WebCat2.0 [format thousands .0f] no go (1997) japanese characters (1997) [format 40s]text[/format] doesn't work (1997) can WC render sites out? (1997) javascript & webdna... search without refresh (2002) using showpage and showcart commands (1996) WebCatalog-NT?'s (1996) Error Lob.db records error message not name (1997) Unix guide (2004) [SearchString] problem with [search] context (1997) Laying an egg. (1998) Blank Orders (2005) WebCat2 beta FTP site (1997) Blank orders after update to 5.1 (2003) [WebDNA] Pretty URLS (2011) Nesting format tags (1997) I give up!! (1997) searching multiple databases (1997) REPOST: Large founditems loops (2000)