I've gone through my books, went to my favorite cf site cfhub, and did
various google searches but am unable to solve a problem.
I have a calendar script which displays all 12 months of the year at once.
The script separates previous months from the current month from future
months.
I would like to add the following if-else logic.
if a file in the current month exists display the day as linked
else if the file doesn't exist display as gray.
This is not a question of weekends (I have weekends and holidays separated
out.) All weekdays will have a file attributed to it -- unfortunately there
is no logic as to when the file is ready.
file names are in the form of TSYYYYMMDD.pdf
I'm looking down this line:
<cfset currentMonth = this month displayed as MM>
<cfif fileExists(expandPath("TS2002#currentMonth#*.pdf">
show as linked
<cfelse>
show as gray
</cfif>
thx
-- glm
----------------------------------------------------------------------------
----------------------------------------------------
This message is for the named person's use only. It may contain
confidential, proprietary or legally
privileged information. No confidentiality or privilege is waived or lost by
any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your
system, destroy any hard copies of it and notify the sender. You must not,
directly or indirectly,
use, disclose, distribute, print, or copy any part of this message if you
are not the intended
recipient.
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists