EasyCFM.COM ColdFusion Forums / Work Showcase! / Simple Custom Tag

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: Simple Custom Tag

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

Magian
10-15-2004 @ 8:19 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 16
Joined: Mar 2004

Hi,    
    
This is my first CF custom tag. It's very simple but    
useful. It prints an HTML table from a custom query.  
You can pass formating attributes to the table.  
  
Here is example of what the result is:    
  
cf_printquerytable  
    
The tag takes the following attributes:  
  
Datasource *  
Tablename *  
ColumnNames *  
ColumnHeaders *  
Caption *  
Border  
HeaderBgColor  
Row1Color  
Row2Color  
Width  
CellPadding  
CellSpacing  
  
* - required attributes  
  
Download  
Here  
  
Just extract it in your customtags folder. Here is  
the example of usage:  
  
<cf_printquerytable datasource="dsn"  
     tablename="table"  
     columnnames="column1, column2, column3"  
     columnheaders="Colomn Header1, Column  
Header2, Column Header3"  
     caption="My Data"  
     border="0"  
     Width="800"  
     Row1Color="ededed"  
     Row2Color="ffffff"  
     HeaderBgColor="cccccc"  
     CellSpacing="2"  
     CellPadding="3">  
  
I've uploaded it to Macromedia Exchange on Open  
Source License.  

megan
10-15-2004 @ 9:46 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Moderator
Posts: 2398
Joined: Jan 2003

Cool! thanks :D ~megan

Estne tibi forte magna feles fulva et planissima?

zilinx
10-15-2004 @ 10:58 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Junior Member
Posts: 91
Joined: Dec 2002

right on!

the more open source the merrier.  Smile


Nate Nielsen
http://www.webclarity.com
See my new zip & unzip utility component there! (free & open source)

Sponsored By...
iOpenSoft, LLC is a Houston, Texas Advanced Technology Studio Specializing in Web Design, Web Development, iPhone App Development and Android App Development.