home *** CD-ROM | disk | FTP | other *** search
- <%@ LANGUAGE="VBSCRIPT" %><html>
-
- <head>
- <meta http-equiv="Content-Type"
- content="text/html; charset=iso-8859-1">
- <meta name="FORMATTER" content="Microsoft FrontPage 2.0">
- <meta name="GENERATOR" content="Microsoft FrontPage 2.0">
- <title>Course Schedule</title>
- <%
-
-
-
- If IsObject(Session("LocalTraining_conn")) Then
-
- Set conn = Session("LocalTraining_conn")
-
- Else
-
- Set conn = Server.CreateObject("ADODB.Connection")
-
- Conn.Open "DSN=LocalTraining"
-
- Set Session("LocalTraining_conn") = conn
-
- End If
-
-
-
- SQL = "SELECT Category.Name, Course.Number, Course.Title, "
- SQL = SQL & "IIf([Cost]>0,Format([Cost],'Currency'),'-') AS CourseCost, "
- SQL = SQL & "Format([Start_Date],'mmm d, yy') & IIf([End_Date]<>[Start_Date], "
- SQL = SQL & "' to ' & Format([End_Date],'mmm d, yy'),'') AS DateRange "
- SQL = SQL & "FROM Schedule, Course, Instructor, Location, Category "
- SQL = SQL & "WHERE (Schedule.Course_ID = Course.ID) "
- SQL = SQL & "AND (Schedule.Instructor = Instructor.Id) "
- SQL = SQL & "AND (Schedule.Location = Location.Id) "
- SQL = SQL & "AND (Course.Category = Category.Id) "
- SQL = SQL & "AND (Schedule.Start_Date > Now()) "
- SQL = SQL & "ORDER BY Category.Name, Course.Number"
-
-
- Set RSSchedule = Conn.Execute(SQL)
-
-
-
- GroupName = RSSchedule("Name")
-
- CourseNumber = RSSchedule("Number")
-
- %>
- </head>
- <body bgcolor="#FFFFFF">
- <div align="left">
-
- <table border="0" width="100%" bgcolor="#000000">
- <tr>
- <td>
- <font color="#FFFFFF" size="3" face="Verdana">
- <strong><%=RSSchedule("Name")%></strong>
- </font>
- <table border="0" width="100%" bgcolor="#FFFFFF">
- <tr>
- <td valign="top" width="55%">
- <font color="#FF0000" size="2" face="Verdana">
- <strong><%=RSSchedule("Number")%></strong>
- </font>
- <font size="2" face="Verdana">
- <strong><%=RSSchedule("Title")%></strong>
- </font>
- </td>
- <td valign="top">
- <%
-
-
-
- Do While Not RSSchedule.EOF
-
-
-
- If GroupName <> RSSchedule("Name") then
-
- GroupName = RSSchedule("Name")
-
- CourseNumber = RSSchedule("Number")
-
-
-
-
-
- %>
- </td>
- <td valign="top" width="10%">
- <font size="2" face="Verdana">
- <%=CourseCost%>
- </font>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td>
- <font color="#FFFFFF" size="3" face="Verdana">
- <strong><%=RSSchedule("Name")%></strong>
- </font>
- <table border="0" width="100%" bgcolor="#FFFFFF">
- <tr>
- <td valign="top" width="55%">
- <font color="#FF0000" size="2" face="Verdana">
- <strong><%=RSSchedule("Number")%></strong>
- </font>
- <font size="2" face="Verdana">
- <strong><%=RSSchedule("Title")%></strong>
- </font>
- </td>
- <td valign="top" width="35%">
- <font size="2" face="Verdana">
- <%=RSSchedule("DateRange")%><br>
- <%
- else
-
- If CourseNumber <> RSSchedule("Number") then
-
- CourseNumber = RSSchedule("Number")
- %>
- </font>
- </td>
- <td valign="top" width="10%">
- <font size="2" face="Verdana">
- <%=CourseCost%>
- </font>
- </td>
- </tr>
- <tr>
- <td valign="top" width="55%">
- <font color="#FF0000" size="2" face="Verdana">
- <strong><%=RSSchedule("Number")%></strong>
- </font>
- <font size="2" face="Verdana">
- <strong><%=RSSchedule("Title")%></strong>
- </font>
- </td>
- <td valign="top" width="35%">
- <font size="2" face="Verdana">
- <%=RSSchedule("DateRange")%><br>
- <%else%> <font size="2" face="Verdana">
- <%=RSSchedule("DateRange")%>
- </font><br>
- <%end if%>
- <%end if%>
-
- <%
-
- CourseCost = RSSchedule("CourseCost")
-
-
-
- Cost = RSSchedule("CourseCost")
-
-
-
- RSSchedule.MoveNext
-
- Loop
-
-
-
- %> </font>
- </td>
- <td valign="top" width="10%">
- <font size="2" face="Verdana">
- <%=Cost%>
- </font>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-
- <%RSSchedule.Close%>
-
- </body>
- </html>
-