 |
 |
Date_Select.cfm |
 |
 |
 |
 |
 |
| TAG DESCRIPTION: |
 |
This tag will create two sets of drop down controls used for selecting a beginning
and an ending date range in a form. The beginning date will be based on today's date + or - a value passed into the function. The same
thing applies to the ending date. The ending date must be greater than the beginning date. The drop down controls will then display the
users selected beginning and ending date.
|
 |
| TAG ATTRIBUTES: |
 |
Beg_Offset |
The number of days to offset the beginning date from today. |
 |
 |
End_Offset |
The number of days to offset the Ending date from today. |
 |
 |
BD_Text |
The text to display to the left of the beginning date. The default is "Beginning Date"
|
 |
 |
ED_Text |
The text to display to the left of the ending date. The default is "Ending Date"
|
 |
 |
Txt_Color |
The color of the text, the default color is "black". |
 |
 |
Txt_BG_Color |
The background color of the text, the default color is "white" |
 |
 |
Date_BG_Color |
The background color of the date controls, the defualt color is "Silver"
|
 |
You can specify a color by its name or by its hex equalivant. If you use the
hex value it must be specified like Txt_Color = '##8ABBBF'. Notice the double pound signs! If you want the control to be invisible
just enter in two ' (tick) marks like '' for the color.
|
 |
| USAGE: |
 |
To use put paste the tag <CF_Date_Select> where you want your
two date controls displayed.
|
 |
 |
Then place the following two statements (or some variant of them) into your
processing page:
|
 |
 |
<CFSET BegDate = CreateDate(#BegYear#, #BegMonth#, #BegDay#)>
|
 |
<CFSET EndDate = CreateDate(#EndYear#, #EndMonth#, #EndDay#)>
|
 |
| EXAMPLE: |
 |
<CF_Date_Select
Beg_Offset = '-30'
End_Offset = '30'
BD_Text = 'My Start Date'
ED_Text = 'My End Date'
Txt_Color = 'Navy'
Txt_BG_Color = ''
Date_BG_Color = '##8ABBBF'>
|
 |
| SEE THE TAG IN ACTION: |
 |
CLICK HERE to see the tag in action |
 |
| DOWNLOAD THE TAG: |
 |
CLICK HERE to download a the tag |
 |
 |