home *** CD-ROM | disk | FTP | other *** search
- <META NAME="Author" CONTENT="Copyright 1996 Allaire Corp. All rights reserved.">
- <META NAME="Version" CONTENT="$Revision: 21 $ $Modtime: 1/05/99 5:44p $">
-
- <!---------------------- Initialize registry key and get task data -------------------------->
- <CFNewInternalRegistry ACTION=SET BRANCH="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion" ENTRY="Schedule" TYPE="KEY">
-
- <CFNewInternalRegistry ACTION=GETALL NAME="Task_List"
- TYPE="KEY"
- BRANCH="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Schedule">
-
- <!----------------------------- Build the page --------------------------------->
- <HTML>
- <HEAD><TITLE>ColdFusion Administrator - ColdFusion Scheduler</TITLE></HEAD>
- <!--- General page formatting is controled by this template --->
- <cfinclude template="../formatting/header.cfm">
-
- <LINK Rel="Stylesheet" Type="text/css" Href="../TableDataStylesheet.css">
-
- <CFOUTPUT>
- <FONT SIZE="#Evaluate(2 + FONTSIZE)#" FACE="#FONTFACE#"><B>Scheduled Tasks</B></FONT><BR><BR>
- </CFOUTPUT>
-
- <FORM ACTION="edittaskinfo.cfm" METHOD="POST">
- <INPUT Name="CreateTaskName_required" Type="hidden" VALUE="You need to enter a valid Task name in order to proceed." >
-
- <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=3 WIDTH="100%">
- <TR BGCOLOR="#669966">
- <CFOUTPUT>
- <TD ALIGN="Left" VALIGN="Top"><FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#" COLOR="##FFFFFF"><B>Task Name</B></FONT></TD>
- <TD ALIGN="Left" VALIGN="Top"><FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#" COLOR="##FFFFFF"><B>Operation</B></FONT></TD>
- <TD ALIGN="Left" VALIGN="Top"><FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#" COLOR="##FFFFFF"><B>Duration</B></FONT></TD>
- <TD ALIGN="Left" VALIGN="Top"><FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#" COLOR="##FFFFFF"><B>Interval</B></FONT></TD>
- </CFOUTPUT>
- </TR>
-
- <TR>
- <CFOUTPUT>
- <TD ALIGN="Left" VALIGN="Top" Class="Data"><INPUT Name="CreateTaskName" Type="TEXT" VALUE="" Size=20></TD>
- <TD ALIGN="Left" VALIGN="Top" Class="Data"><SELECT NAME="CreateOperation"><OPTION VALUE="HTTPRequest">HTTPRequest</SELECT></TD>
- <TD ALIGN="Left" VALIGN="Top" Class="Data"><INPUT TYPE="submit" VALUE="Add New Task..."></TD>
- <TD Class="DataNoBorder"></TD>
- </CFOUTPUT>
- </TR>
-
- <CFSET RowCount = 0>
- <CFLOOP QUERY="Task_List">
- <!--- Get Task Details before proceding --->
- <CFSET sTaskKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Schedule\#Task_List.Entry#">
- <CFSET sTaskName = #Task_List.Entry#>
- <CFSET sOperation = "Unknown">
- <CFSET sStartDate = "Unknown">
- <CFSET sEndDate = "Unknown">
- <CFSET sStartTime = "Unknown">
- <CFSET sEndTime = "Unknown">
- <CFSET sInterval = "Unknown">
-
- <CFNewInternalRegistry ACTION=GET BRANCH="#sTaskKey#" TYPE="STRING"
- VARIABLE="sOperation"
- ENTRY="Operation">
-
- <CFNewInternalRegistry ACTION=GET BRANCH="#sTaskKey#" TYPE="STRING"
- VARIABLE="sStartDate"
- ENTRY="StartDate">
-
- <CFNewInternalRegistry ACTION=GET BRANCH="#sTaskKey#" TYPE="STRING"
- VARIABLE="sEndDate"
- ENTRY="EndDate">
-
- <CFNewInternalRegistry ACTION=GET BRANCH="#sTaskKey#" TYPE="STRING"
- VARIABLE="sStartTime"
- ENTRY="StartTime">
-
- <CFNewInternalRegistry ACTION=GET BRANCH="#sTaskKey#" TYPE="STRING"
- VARIABLE="sEndTime"
- ENTRY="EndTime">
-
- <CFNewInternalRegistry ACTION=GET BRANCH="#sTaskKey#" TYPE="STRING"
- VARIABLE="sInterval"
- ENTRY="Interval">
-
- <CFOUTPUT>
-
- <CFSET RowCount = IncrementValue(RowCount)>
-
- <TR<CFIF RowCount / 2 is Int(RowCount / 2)> BGColor="##EEEEEE"</cfif>>
- <TD ALIGN="Left" VALIGN="Top" Class="Data"><A HREF="edittaskinfo.cfm?EditTaskName=#URLEncodedFormat(Entry)#"><B>#Entry#</B></A></TD>
- <TD ALIGN="Left" VALIGN="Top" Class="Data">#sOperation#</TD>
- <TD ALIGN="Left" VALIGN="Top" Class="Data">
- #DateFormat(sStartDate,'mm/dd/yyyy')# - <CFIF sEndDate IS ''>INDEFINITELY<CFELSE>#DateFormat(sEndDate,'mm/dd/yyyy')#</CFIF>
- </TD>
- <TD ALIGN="Left" VALIGN="Top" Class="DataNoBorder">
- <CFIF sInterval IS "DAILY">
- Daily at #sStartTime#.
- <CFELSEIF sInterval IS "MONTHLY">
- Monthly at #sStartTime#.
- <CFELSEIF sInterval IS "WEEKLY">
- Weekly at #sStartTime#.
- <CFELSEIF IsNumeric(sInterval)>
- Daily every #Ceiling(Evaluate(sInterval/60))# minutes from #sStartTime# <CFIF sEndTime IS NOT ''>to #sEndTime#</CFIF>
- <CFELSEIF sInterval IS "ONCE">
- One-time at #sStartTime#.
- </CFIF>
- </TD>
- </TR>
- </CFOUTPUT>
-
- </CFLOOP>
- </TABLE>
-
- </FORM>
-
- <!--- This closes the page formatting template --->
- <CFINCLUDE TEMPLATE="../formatting/footer.cfm">
- </BODY>
- </HTML>
-
-