[Mydatabasepilot-cvs] MyDatabasePilot/dbProcessBody ShowRecords.cfm,1.4,1.5
Status: Alpha
Brought to you by:
nanoface
From: <nan...@us...> - 2003-05-25 04:30:46
|
Update of /cvsroot/mydatabasepilot/MyDatabasePilot/dbProcessBody In directory sc8-pr-cvs1:/tmp/cvs-serv19718/dbProcessBody Modified Files: ShowRecords.cfm Log Message: Cosmetic Change: [ 743007 ] Alternate the Row Colours in Show Records Index: ShowRecords.cfm =================================================================== RCS file: /cvsroot/mydatabasepilot/MyDatabasePilot/dbProcessBody/ShowRecords.cfm,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ShowRecords.cfm 9 May 2003 04:08:02 -0000 1.4 --- ShowRecords.cfm 25 May 2003 04:30:43 -0000 1.5 *************** *** 77,93 **** <!--- Loop through records using Index Loop so we can reference the recordnumber in a dynamic variable ---> <cfloop from="1" to="#selectedData.RecordCount#" index="i"> ! <tr> ! <td valign="top">Update/Delete Record</td> ! <!--- Loop through fields ---> ! <cfloop query="fieldList"> ! <!--- Output the value of a dynamically created variable which references the current field of the current record ---> ! <!--- Use the Evaluate function to get the value of the Dynamic Variable ---> ! <!--- The Dynamic variable is queryName.columName[recordNumber] ---> ! <!--- Where queryName is "selectedData" ---> ! <!--- columName is the value of fieldList.FIELD ---> ! <!--- recordNumber is "i" ---> ! <td valign="top"><cfoutput>#Evaluate("selectedData." & fieldList.FIELD & "[i]")#</cfoutput></td> ! </cfloop> ! </tr> </cfloop> </table> --- 77,96 ---- <!--- Loop through records using Index Loop so we can reference the recordnumber in a dynamic variable ---> <cfloop from="1" to="#selectedData.RecordCount#" index="i"> ! <cfoutput> ! <!--- Alternate the Row Colours from class style Odd to class style Even ---> ! <tr class="#IIF(i MOD 2, DE('Odd'), DE('Even'))#"> ! <td valign="top">Update/Delete Record</td> ! <!--- Loop through fields ---> ! <cfloop query="fieldList"> ! <!--- Output the value of a dynamically created variable which references the current field of the current record ---> ! <!--- Use the Evaluate function to get the value of the Dynamic Variable ---> ! <!--- The Dynamic variable is queryName.columName[recordNumber] ---> ! <!--- Where queryName is "selectedData" ---> ! <!--- columName is the value of fieldList.FIELD ---> ! <!--- recordNumber is "i" ---> ! <td valign="top">#Evaluate("selectedData." & fieldList.FIELD & "[i]")#</td> ! </cfloop> ! </tr> ! </cfoutput> </cfloop> </table> |