Complex Formatting Issue

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. [PHP] Code formatting issue
      this way may be what you'd like : $thing = new whatever (); $with = array (doStuff', anotherThing', doThis', doThat', doThis', doThat',...
    5. 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. ...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139