If statements and date varies... Someone knows what to do? (Long question)
Hi everyone - a little new here. I was hired in a web design company, last year and recently took to learning ColdFusion - so I'm not 100% on the syntax. I still need help if statements, so I hope you guys will be ready to spread knowledge.
In any case to put it in context:
What I'm getting is a calendar that allows you to register to attend an event, such as a corporate dinner, holiday party or a such nonsense. It also covers purchases of tickets through a 3rd party such as PayPal and look something like this when put on a web page.
Here's the code that creates this view.
< table class = "registerTablePrices" cellspacing = 5 >
< cfloop query = "registration_types" >
< cfif registration_types.esl_price gte 0 >
< b >
< class td nowrap 'formlabel' = > #registration_types.estName #: < table >
< td > < cfinput name = "" regType_ #registration_types.estid # "style =" width: 30px "value ="0"/ > < table >"
< cfif registration_types.esl_price is 0 >
< class td 'formlabel' = > X free < table >
< cfelse >
< class td = "formlabel" style = "width: 90px ' > X #dollarformat (registration_types.esl_price) # < table >
< / cfif >
< class td 'labelInfo' = > enter the number of participants for this type. < table >
< /tr >
< / cfif >
< / cfloop >
< /table >
All the code says right now is to show the events whose price is positive, or the list of free people.
This is what I want - I want to make sure 30, late registration will be hidden automatically if the date is BEFORE or AFTER May 30.
I assigned values to the record types I want to restrict by date...
They are registration_types.estStartDate and registration_types.estEndDate
AND the value designated as Restricted, registration_types.estRestricted - that would be used like this.
< cfif registration_types.estRestricted is 1 >
* Then show it only between registration_types.estStartDate and registration_types.estEndDate
And that's where I will meet with my problem. I can't make it work with the first code you saw:
< table class = "registerTablePrices" cellspacing = 5 >
< cfloop query = "registration_types" >
< cfif registration_types.esl_price gte 0 >
< b >
< class td nowrap 'formlabel' = > #registration_types.estName #: < table >
< td > < cfinput name = "" regType_ #registration_types.estid # "style =" width: 30px "value ="0"/ > < table >"
< cfif registration_types.esl_price is 0 >
< class td 'formlabel' = > X free < table >
< cfelse >
< class td = "formlabel" style = "width: 90px ' > X #dollarformat (registration_types.esl_price) # < table >
< / cfif >
< class td 'labelInfo' = > enter the number of participants for this type. < table >
< /tr >
< / cfif >
< / cfloop >
< /table >
I'll have at least 4 special conditions going on at the same time and I lose it it.
If you read everything that I'm sorry, it may be difficult to understand - I appreciate all help.
I didn't know what you wanted to do. Maybe this:
or (East of 1/registration_types.estRestricted and ((current_date ge estStartDate) and (the estEndDate current_date))) >
Alternatively, you can compare the dates using the dateCompare().
or (East of 1/registration_types.estRestricted and ((current_date ge estStartDate) and (the estEndDate current_date))) > #registration_types.estName: #
X free
X #dollarformat (registration_types.esl_price) #. Enter the number of participants for this type.
Tags: ColdFusion
Similar Questions
-
I have several iTunes Store purchases that appear on my bank statement and I don't know what they are for. Can you help me? I'm unable to maneuver through this system to view previous purchases. I wonder if I pay for extra storage, it is always advising me that I'm pretty sure.
Hello
Open iTunes on your Mac and click your name (if you are not signed in, then sign to see your name). Then click on account information. Once you enter the account information screen, you will see a section called historical of purchases. Click 'View all' to see the list of purchases and the ability to watch the dates more.
See you soon,.
GB
-
my computer becomes a * STOP: 0 x 00000050(0xf226dc2E,0x00000001,0xEE6SSF10,0x00000000) screen and States blue, I don't know what to do about this
It is the same procedure. Have you checked all the links in the post?
I want to thank you for your time. I couldn't hardly on internet. Microsoft helped me and fixed it is a program that was not compatible. Thank you once again
-
My screen is turned sideways and I can't do it turned back. Someone knows what to do?
My screen is turned sideways and I can't do it turned back. Someone knows what to do?
Hello
Right-click on an empty area of the desktop - graphics Options - Rotation
CTRL + ALT + arrow key it also runs.
CTRL + Alt + (up arrow), Ctrl + Alt + arrow (pointing down), Ctrl + Alt + arrow (left) and also Ctrl + Alt + arrow (right)
I hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
-
I recently got this blue screen and I don't know what the problem is.
* Original title: blue screen problem
Hello, I recently got this blue screen and I don't know what the problem is.
I use a # model Sony Vaio VGN - FW510F & my graphics card is ATI Mobility Radeon HD 4650.
Signature of the problem:
Problem event name: BlueScreen
OS version: 6.1.7601.2.1.0.768.3
Locale ID: 1033The blue screen mentioned this error: 0x000000EA
More information about the problem:
BCCode: 100000ea
BCP1: FFFFFA80041B8170
BCP2: 0000000000000000
BCP3: 0000000000000000
BCP4: 0000000000000000
OS version: 6_1_7601
Service Pack: 1_0
Product: 768_1Files helping to describe the problem:
C:\Windows\Minidump\020615-46550-01.dmp
C:\Users\Andy\AppData\Local\Temp\WER-92976-0.SysData.XMLRead our privacy statement online:
Privacy statement for Windows 7 - Microsoft WindowsIf the online privacy statement is not available, please read our offline privacy statement:
C:\Windows\system32\en-US\erofflps.txtAbui91
These were related to the 5 year old video player. I remove the current driver and install the latest driver available.
-
I had downloaded photoshop SetupUpdates12 and I don't know what I have to do after installation
I had downloaded photoshop element 12 and I don't know what I have to do after installation.
When I try, I have this message: Please install/uninstall the product using set.up exe in the root folder...
What the downloaded file looks like - what's his name? The statement tells you to look inside and run the setup.exe file.
-
I have three charges on my account and I need to know what they are for?
I have 3 charges on my bank account for $ 14.99, $9.99 and $5.98... and I don't know what they are, please specify
Thank you
This is a user to user forum, you don't talk to Apple.
You can go to http://reportaproblem.apple.com to see all your purchases for the last 90 days. You can then report any strange activity there.
-
When I press the download profile it keeps giving me an error message and I don't know what to do
When I press the download profile it gives me an error that says safari could not install a profile on an unknown error and I don't know what to do
You cannot download files via Safari. Files PDF is the only exception I know.
-
I have toshiba laptop and I have the product key and I do not know what windows is I can find it with the product key or any body help, I can't use it
You must order a set of recovery disc for the computer from the manufacturer - this will install the appropriate drivers for your system automatically, as well as packaged applications.
If you have not formatted the disk (or replaced) existing partition recovery may still be present - see your manual for details.
It is possible to download Vista - see here for more details - http://www.heidoc.net/joomla/technology-science/microsoft/57-windows-vista-direct-download-links -, but note that it is not a simple process!
-
When I try to uninstall a program, what a popup say please wait program is already uninstall a program, but never stops and I can not know what program he talks
Hello
1. what operating system do you use?
2 did you change on your computer?
I suggest you to follow the methods and check.
Method 1:
Problems installing and uninstalling programs on Windows computers
http://support.Microsoft.com/kb/2438651
Method 2:
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
http://support.Microsoft.com/kb/929135
Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the above article.
-
Password for the drive mapping
Password for the card
1. I have XP Pro SP3 on a computer desktop and XP Home SP3 on a netbook. A printer is on the desktop.
2. I have a local area network using Ethernet between the two computers. According to the 'network connections' opens on both computers, the LAN connects successfully.
3. I've specified three office folders (and their subfolders) and the shared printer, all this without passwords (I don't use password at all in both systems).
4. in the past, I could map files and printer on the netbook without difficulty, but now when I try to map a folder or printer on the netbook, the system wants a user name or password, and I don't know what to say.
5. what has changed, and how can I revert the changes?
AdrianHi Adrien,.
I suggest that you disconnect the card reader and see if it helps. See the following article for more information.
-
I recently got a computer from my place of work, but I just can't unstall or install programs unless I have an administrator password and nobody at work knows what it is. Also I get error code 80072F8F
Log in safe mode as administrator mode without failure not as a user with the Administrors rights and hope that the Admimistrator log doesn't have bee password protected i.e. you just press ENTER. If create a new user account for yourself.
Have you received a Windows XP CD with the computer?
-
I have five speakers and I don't know what to do anymore I need
I HAVE FIVE SPEAKERS AND I DON'T KNOW WHAT ELSE I NEED. CAN YOU HELP ME WITH THIS PLEASE. Thank you
It depends on what you're trying to do. That means 'what else I need'... what for?
-
I got error 46 and I don't know what to do!
I got error 46 and I don't know what to do!
-
Im trying to update 6 Lightroom and Adobe Application Manager wants my password and I don't have one, never need one. Ive tried every password I know and I don't know what to do now.
It calls not just for login password for your computer so that it can install your software?
Maybe you are looking for
-
x 360 HP spectrum: windows store: "fallen server."
Hi guys! I recently bought the hp 360 but spectrum however its has some problems such as: cannot open my windows store. whenever I try to open it it says "dropped the server we all have bad days", then it auto closes. Secondly, I have a little proble
-
<; help >; how to disconnect?
How to connect to Skype on Mac?
-
Satellite M30X-124: battery not charging
Hello the text by Googel translated hopes help.I have a laptop Satellite M30X-124 and has the following problem:My battery via the power supply with the company does not provide. It is emty completely also with the operation of the line and load your
-
How do I delete emails in the scan to address book so I can add new?
I currently have the email set up the fine. But when I scan a document and you want to send by email, there are already addresses in the address book which A) I don't want and can't remove, B) I can't add new ones constantly. When I try to add new,
-
I bought this computer with Windows 8 is already installed and I really hate Windows 8 because it keeps crashing, among other issues. I want to install Windows 7. So my question is: will I be able to install Windows 7 on this computer model?