Ask a Question related to Macromedia ColdFusion, Design and Development.
-
backintimeintl #1
Complex Formatting Issue
Hello all-
I have some code I am using that I got from these forums and its working
wonderfully. However, now I need it to do something a little more complex. I
have attached the code below. Right now, it outputs my data in however many
columns I want made. I use it to display watches and in the example I have
attached it puts them 4 to a row and then repeats until they run out. I have
each of these watches belonging to a collection. So, users will select a brand
(the entire page) and then see all the collections in a row. However, I want
each collection to begin with a header and a short description (all stored in
the database of course). I have decided I need to have the code dynamically
decide when to insert a new row with the collection info. After that, it will
list all the watches in that collection and then another header will appear.
As you can see in the code, each watch is actually represented by a table that
repeats with each record.
Thanks for your help!
Chris
<table border="0" cellspacing="4" cellpadding="1">
<CFSET maxcol = 4>
<CFSET outcol = 0>
<cfoutput query="qryNewWatches">
<CFIF outcol EQ 0>
<TR>
</CFIF>
<TD valign="top" align="left">
<table width="100%" border="0">
<tr>
<td align="center"> IMAGE GOES HERE
</td>
</tr>
<tr>
<td align="center">DESCRIPTION GOES HERE</td>
</tr>
<tr>
<td align="center">PRICE GOES HERE</td>
</tr>
</table></TD>
<CFSET outcol = outcol + 1>
<CFIF outcol EQ maxcol>
</TR>
<CFSET outcol = 0>
</CFIF></cfoutput>
<CFIF outcol NEQ 0>
</TR>
</CFIF></table>
backintimeintl Guest
-
Webservice and complex data type issue
I created a webservice that returned a structure which .Net doesn't seem to like. So I created a complex type using component and cfproperty to... -
CDO mail formatting issue
Hi, When I set the following for my CDO email, the mail is receievd with the html portion does not appear formatted but just as it is seen below. I... -
Complex control lifecycle issue
I've built a control whose purpose is to render a shopping cart based on templates and an Order object which gets passed to it. I'm keeping the... -
[PHP] Code formatting issue
this way may be what you'd like : $thing = new whatever (); $with = array (doStuff', anotherThing', doThis', doThat', doThis', doThat',... -
Date Formatting Issue
I have Access 2000. On a form, I want to show (in an unbound text box) how long an agreement has been effect, and format it in years and days. ... -
backintimeintl #2
Re: Complex Formatting Issue
Nevermind. I have decided not to do it this way as it would require displaying
too many images on the page at once. I have decided to have the viewers select
the collection they want by a link and that is the end of it.
Sorry to post this for no reason.
Chris
backintimeintl Guest



Reply With Quote

