home *** CD-ROM | disk | FTP | other *** search
- <%@ LANGUAGE="VBSCRIPT" %>
- <% Set clsTes = Session("TES")
- If clsTes.LoggedIn = False Then
- Set clsTes = Nothing
- Response.Redirect("../loggedout.htm")
- End If
-
- dToDoDate = Request("ToDoDate")
- tResource = Request("Resource")
-
- If Len(dToDoDate)=0 Then
- dToDoDate = clsTes.ADbl(clsTes.ScheduleDate)
- Else
- clsTes.ScheduleDate = clsTes.ADbl(dToDoDate)
- End If
-
- If Len(tResource) = 0 Then
- tResource = clsTes.Resource
- Else
- If clsTes.ViewResource(tResource,3) Then
- clsTes.Resource = tResource
- Else
- tResource = clsTes.Resource
- End If
- End If
-
-
- %>
- <!-- #INCLUDE FILE = "settings/colours.txt" -->
- <HTML>
- <HEAD>
- <META NAME="GENERATOR" Content="Microsoft Visual InterDev 1.0">
- <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
- <TITLE>Schedule</TITLE>
- </HEAD>
- <BODY BGCOLOR="<%= BackColor %>" LINK="<%= ScheduleColor %>" VLINK="<%= ScheduleColor %>" ALINK="<%= ScheduleColor %>" TEXT="<%= TextColor %>">
- <BASEFONT SIZE=2 COLOR="<%= TextColor %>">
-
- <table border=0 width=100%>
- <tr>
- <td align=left valign=top nowrap=nowrap>
- <table border=0 cellspacing=1 cellpadding=1>
- <tr>
- <td align=left width = 75>
- <b><%= Server.HTMLEncode(clsTes.ResourceLabel) %>:</b>
- </td>
- <td align=left width = 175>
- <% If clsTes.ScheduleViewResAccess <> 3 Then 'US_OWN %>
- <a href="pickitem.asp?Type=Resource&<% Response.Write("ReturnURL=" & Server.URLEncode("schedule.asp")) %>">
- <% End If %>
-
- <% If len(tResource) > 0 Then
- Response.Write(Server.HTMLEncode(tResource))
- Else %>
- Please Select
- <% End If %>
- </td>
-
- <% If clsTes.ScheduleViewResAccess <> 3 Then 'US_OWN %>
- </a>
- <% End If %>
-
- </tr>
- </table>
- </td>
-
- <td align=right valign=top>
- <% tURL = "schedule.asp?ToDoDate=" %>
- <table border=0 cellspacing=1 cellpadding=1>
- <tr>
- <td align=center NOWRAP=NOWRAP>
- <A HREF="calendar.asp?ReturnURL=<%= Server.URLEncode("schedule.asp") %>&Name=ToDoDate&Date=<%= dToDoDate %>">
- <b><% Response.Write(clsTes.FormatDate(dToDoDate)) %></b>
- </A>
- </td>
- <td width=10></td>
- <td align=center width=25>
- <a href=<% Response.Write(tURL & CStr(dToDoDate - 28)) %>>
- <img border=0 align=center src="../images/bck4w.gif" ALT="Back 4 Weeks">
- </a>
- </td>
- <td align=center width=25>
- <a href=<% Response.Write(tURL & CStr(dToDoDate - 7)) %>>
- <img border=0 align=center src="../images/bck1w.gif" ALT="Back 1 Week">
- </a>
- </td>
- <td align=center width=25>
- <a href=<% Response.Write(tURL & CStr(dToDoDate + 7)) %>>
- <img border=0 align=center src="../images/fwd1w.gif" ALT="Forward 1 Week">
- </a>
- </td>
- <td align=center width=25>
- <a href=<% Response.Write(tURL & CStr(dToDoDate + 28)) %>>
- <img border=0 align=center src="../images/fwd4w.gif" ALT="Forward 4 Weeks">
- </a>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-
- <table width=100% border=0 cellspacing=1 cellpadding=1>
- <tr>
- <td align=left valign=top bgcolor="<%= CellTitleColor %>" colspan=8>
- <font color = "<%= CellTitleTextColor %>">
- <b><%= Server.HTMLEncode(clsTes.ProjectLabel) %></b>
- </font>
- </td>
- <td align=left valign=top bgcolor="<%= CellTitleColor %>" colspan=8>
- <font color = "<%= CellTitleTextColor %>">
- <b><%= Server.HTMLEncode(clsTes.ActivityLabel) %></b>
- </font>
- </td>
- <td align=left valign=bottom bgcolor="<%= CellTitleColor %>" colspan=7 rowspan=2 width=15%>
- <font color = "<%= CellTitleTextColor %>">
- <b><%= WeekDayName(WeekDay(clsTes.ADate(dToDoDate)), True) %><BR><%= clsTes.FormatDate(dToDoDate) %></b>
- </font>
- </td>
- <td align=left valign=bottom bgcolor="<%= CellTitleColor %>" colspan=7 rowspan=2 width=15%>
- <font color = "<%= CellTitleTextColor %>">
- <b><%= WeekDayName(WeekDay(clsTes.ADate(dToDoDate)), True) %><BR><%= clsTes.FormatDate(dToDoDate+7) %></b>
- </font>
- </td>
- <td align=left valign=bottom bgcolor="<%= CellTitleColor %>" colspan=7 rowspan=2 width=15%>
- <font color = "<%= CellTitleTextColor %>">
- <b><%= WeekDayName(WeekDay(clsTes.ADate(dToDoDate)), True) %><BR><%= clsTes.FormatDate(dToDoDate+14) %></b>
- </font>
- </td>
- <td align=left valign=bottom bgcolor="<%= CellTitleColor %>" colspan=7 rowspan=2 width=15%>
- <font color = "<%= CellTitleTextColor %>">
- <b><%= WeekDayName(WeekDay(clsTes.ADate(dToDoDate)), True) %><BR><%= clsTes.FormatDate(dToDoDate+21) %></b>
- </font>
- </td>
- </tr>
-
- <tr>
- <td align=left valign=top bgcolor="<%= CellTitleColor %>" colspan = 14>
- <font color = "<%= CellTitleTextColor %>">
- <b>Description</b>
- </font>
- </td>
- <td align=right valign=bottom bgcolor="<%= CellTitleColor %>">
- <font color = "<%= CellTitleTextColor %>">
- <b>Days</b>
- </font>
- </td>
- <td align=right valign=bottom bgcolor="<%= CellTitleColor %>">
- <font color = "<%= CellTitleTextColor %>">
- <b>Load</b>
- </font>
- </td>
- </tr>
-
- <%
- Dim lRowCount
- Dim lRow
- Dim nColumn
-
- Dim tProj
- Dim tAct
-
- lRowCount = clsTes.GenerateSchedule
-
- If clsTes.ErrorNumber <> 0 Then
-
- Response.Write (Server.HTMLEncode(clsTes.ErrorText))
-
- Else
-
- If lRowCount > 0 Then
- For lRow = 1 To lRowCount %>
-
- <tr>
- <% If tProj <> clsTes.GridValue(lRow,0) or tAct <> clsTes.GridValue(lRow,1) Then %>
-
- <td align=left valign=middle bgcolor="<%= CellColor %>" colspan=8>
- <FONT SIZE=-1>
- <B><%= Server.HTMLEncode(clsTes.GridValue(lRow, 0)) %></B>
- </FONT>
- </td>
- <td align=left valign=middle bgcolor="<%= CellColor %>" colspan=8>
- <FONT SIZE=-1>
- <% If IsNull(clsTes.GridValue(lRow,1)) Then %>
-
- <% Else %>
- <B><%= Server.HTMLEncode(clsTes.GridValue(lRow, 1)) %></B>
- <% End If %>
- </FONT>
- </td>
-
- <% For nColumn = 0 to 27
- If Abs(clsTes.GridValue(lRow,nColumn+5)) = 2 Then %>
- <td bgcolor="<%= NonWorkingDayColor %>" valign=middle align=center>
- <a href="todo.asp?ToDoDate=<%= CStr(dToDoDate + nColumn) %>"><img border=0 src="../images/trans.gif"></a>
- </td>
- <% ElseIf Abs(clsTes.GridValue(lRow,nColumn+5)) = 3 Then %>
- <td bgcolor="<%= WeekendDayColor %>" valign=middle align=center>
- <a href="todo.asp?ToDoDate=<%= CStr(dToDoDate + nColumn) %>"><img border=0 src="../images/trans.gif"></a>
- </td>
- <% Else %>
- <td bgcolor="<%= StandardDayColor %>" valign=middle align=center>
- <a href="todo.asp?ToDoDate=<%= CStr(dToDoDate + nColumn) %>"><img border=0 src="../images/trans.gif"></a>
- </td>
- <% End If %>
- <% Next %>
- </tr>
-
- <tr>
-
- <% End If %>
-
- <td align=left valign=middle bgcolor="<%= CellColor %>" colspan=14 nowrap=nowrap>
- <FONT SIZE=-1>
-
- <% If Not IsNull(clstes.GridValue(lRow,2)) Then
- Response.Write(Server.HTMLEncode(clsTes.GridValue(lRow, 2)))
- End If %>
- </FONT>
- </td>
-
-
- <td align=right valign=middle bgcolor="<%= CellColor %>">
- <FONT SIZE=-1>
- <%= clsTes.GridValue(lRow, 3) %>
- </FONT>
- </td>
-
- <td align=right valign=middle bgcolor="<%= CellColor %>">
- <FONT SIZE=-1>
- <%= clsTes.GridValue(lRow, 4) %>
- </FONT>
- </td>
-
- <% For nColumn = 0 to 27
- If clsTes.GridValue(lRow,nColumn+5) > 0 Then %>
- <td bgcolor="<%= ScheduleColor %>" valign=middle align=center>
- <font color = "<%= ScheduleColor %>">
- <a href="tbviewres.asp?Key=<%= clstes.GridValue(lRow,34) %>&ReturnURL=<%= Server.URLEncode("schedule.asp") %>">#</a>
- </font>
- </td>
- <% ElseIf clsTes.GridValue(lRow,nColumn+5) = -2 Then
- 'Non Working Day %>
- <td bgcolor="<%= NonWorkingDayColor %>"> </td>
- <% ElseIf clsTes.GridValue(lRow,nColumn+5) = -3 Then
- 'Weekend %>
- <td bgcolor="<%= WeekendDayColor %>"> </td>
- <% Else %>
- <td bgcolor="<%= StandardDayColor %>"> </td>
- <% End If
- Next %>
-
- <% tProj = clsTes.GridValue(lRow,0)
- tAct = clsTes.GridValue(lRow,1) %>
- </tr>
-
- <% Next
-
- End If
- End If %>
-
- </BODY>
- </HTML>
- <% Set clsTes = Nothing %>