How about something like this. Since it's getting close to 
5:00 on Friday, I'm going to stick with pseudocode:

LOOP from 1 to #ProgramCount#

if (currentprogram MOD 2) IS 1 AND currentprogram IS NOT 
programcount
  Open a TR tag
  Open a TD tag
  Insert content
  Close TD tag
elseif (currentprogram MOD 2) IS 1 AND currentprogram IS 
programcount
  Open a TR tag
  Open a TD tag with colspan=2
  Insert content
  Close TD tag
  Close TR tag
else
  open a TD tag
  insert content
  close TD tag
  close TR tag
endif

It's not tested, but it might just work. Let me know either 
way :)

Norman


Quoting "Erika L. Walker" <[EMAIL PROTECTED]>:

> Hello everyone! I hope this finds everyone in good
> spirits on a Friday...
> 
> I am trying to build a page dynamically...but it's a
> little complicated..
> 
> If you take a look at
> http://www.medmeet.org/medbroadcast/programStart.cfm
> 
> You'll see two parts to a test. (Right now it's just
> hard coded HTML)
> 
> The thing is, programs can have anywhere from 1 part
> to 4 parts or
> more....and the client wants to see the parts laid
> out in a two colum format
> as shown, if there are two parts or more....
> 
> Now obviously, if there was only one part, then
> there would only be one
> column.... but three would look like this:
> 
> -------------
> |     |     |
> |     |     |
> |     |     |
> -------------
> |           |
> |           |   <--- with this row
> |           |        being one column
> -------------        (colspan of 2)
> 
> 
> So my dilema is, besides being brain-fried, is I
> know how to build dynamic
> tables row by row, but column by column, with
> dynamic colspans? Anybody ever
> have to do this before? Can it be done?
> 
> Here's the logic I am thinking of:
> 
> If program has more than 1 part
>       display two columns
> else
>       colspan = 2
> 
> 
> 
> Loop through this logic if parts is greater than
> 2?
> 
> Am I on the right track?
> 
> Sorry to be so absent, I am lurking...keeping an eye
> on everybody, ....
> *** miss you horribly ****
> 
> Thanks ever so much,
> 
> 
> 
> Erika
> (with a *K*)
> 
> "Love gives us in a moment what we can hardly attain
> by effort after years
> of toil." - Goethe
> 
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to