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
- tCode = Request("Code")
- tDesc = Request("Desc")
- dDate = Request("Date")
- If Len(dDate) = 0 Then
- dDate = clsTes.ADbl(clsTes.FromDate)
- Else
- dDate = clsTes.ADbl(dDate)
- 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>Timesheet Grid Detail</TITLE>
- </HEAD>
- <BODY BGCOLOR="<%= BackColor %>" LINK="<%= LinkColor %>" VLINK="<%= VLinkColor %>" ALINK="<%= ALinkColor %>" TEXT="<%= TextColor %>">
- <BASEFONT SIZE=2 COLOR="<%= TextColor %>">
-
- <% If clsTes.TimesheetViewAccess <> 2 Then 'US_NONE %>
-
-
- <table width=800 border=0>
- <tr>
- <td align=left valign=top width=50>
- <b>Date:</b>
- </td>
- <td align=left valign=top width=200>
- <% Response.Write(WeekDayName(WeekDay(clsTes.ADate(dDate)), False))
- Response.Write(", ")
- Response.Write(clsTes.FormatDate(dDate)) %>
- </td>
- <td align=left valign=top width=75>
- <b>
- <% If clsTes.GridBy ="Project" Then %>
- <%= Server.HTMLEncode(clsTes.ProjectLabel) %>:
- <% Else %>
- <%= Server.HTMLEncode(clsTes.ActivityLabel) %>:
- <% End If %>
- </b>
- </td>
- <td align=left valign=top width=475>
- <% Response.Write(Server.HTMLEncode(tCode))
- Response.Write(", ")
- Response.Write(Server.HTMLEncode(tDesc)) %>
-
- </td>
- </tr>
- </table>
- <table width=100% border=0 cellspacing=1 cellpadding=1>
- <tr>
- <td align=left valign=top bgcolor="<%= CellTitleColor %>">
- <font color = "<%= CellTitleTextColor %>">
- <b><%= Server.HTMLEncode(clsTes.ResourceLabel) %></b>
- </font>
- </td>
- <td align=left valign=top bgcolor="<%= CellTitleColor %>">
- <font color = "<%= CellTitleTextColor %>">
- <% If clsTes.GridBy ="Project" Then %>
- <b><%= Server.HTMLEncode(clsTes.ActivityLabel) %></b>
- <% Else %>
- <b><%= Server.HTMLEncode(clsTes.ProjectLabel) %></b>
- <% End If %>
- </td>
-
- <td align=center valign=top bgcolor="<%= CellTitleColor %>">
- <font color = "<%= CellTitleTextColor %>">
- <b><%= Server.HTMLEncode(clsTes.UnitTimeLabelP) %></b>
- </font>
- </td>
-
- <% If clsTes.UserCost = 1 or clsTes.UserCost = 3 Then %>
- <td align=left valign=top bgcolor="<%= CellTitleColor %>">
- <font color = "<%= CellTitleTextColor %>">
- <b>Cost</b>
- </font>
- </td>
- <% ElseIf clsTes.UserCost <> 0 Then %>
- <td align=center valign=top bgcolor="<%= CellTitleColor %>">
- <font color = "<%= CellTitleTextColor %>">
- <b>Total Cost</b>
- </font>
- </td>
- <% End If %>
-
- <% If clsTes.UserCharge = 1 or clsTes.UserCharge = 3 Then %>
- <td align=left valign=top bgcolor="<%= CellTitleColor %>">
- <font color = "<%= CellTitleTextColor %>">
- <b>Charge</b>
- </font>
- </td>
- <% ElseIf clsTes.UserCharge <> 0 Then %>
- <td align=center valign=top bgcolor="<%= CellTitleColor %>">
- <font color = "<%= CellTitleTextColor %>">
- <b>Total Charge</b>
- </font>
- </td>
- <% End If %>
-
- <% If clsTes.UserChargeableTimesheet <> 0 Then 'UT_CHARGEABLE_TS_NONE %>
- <td align=center valign=top bgcolor="<%= CellTitleColor %>">
- <font color = "<%= CellTitleTextColor %>">
- <b>Chargeable</b>
- </font>
- </td>
- <% End If %>
-
- <% If clsTes.UserOvertime Then %>
- <td align=center valign=top bgcolor="<%= CellTitleColor %>">
- <font color = "<%= CellTitleTextColor %>">
- <b>Overtime</b>
- </font>
- </td>
- <% End If %>
-
- <% If clsTes.UserApprovedTimesheet Then %>
- <td align=center valign=top bgcolor="<%= CellTitleColor %>">
- <font color = "<%= CellTitleTextColor %>">
- <b>Approved</b>
- </font>
- </td>
- <% End If %>
-
- <% If clsTes.UserInvoicedTimesheet Then %>
- <td align=center valign=top bgcolor="<%= CellTitleColor %>">
- <font color = "<%= CellTitleTextColor %>">
- <b>Invoiced</b>
- </font>
- </td>
- <% End If %>
-
- <% If clsTes.UserTimesheetNotes Then %>
- <td align=Left valign=top bgcolor="<%= CellTitleColor %>">
- <font color = "<%= CellTitleTextColor %>">
- <b>Notes</b>
- </font>
- </td>
- <% End If %>
-
- <td align=left valign=top bgcolor="<%= CellTitleColor %>">
-
- </td>
- <% If clsTes.TimesheetMaintainAccess <> 0 Then %>
- <td align=left valign=top bgcolor="<%= CellTitleColor %>">
-
- </td>
- <% End If %>
- </tr>
-
- <% Dim lRowCount
- Dim lRow
- Dim nColumn
-
- lRowCount = clsTes.GenerateTimesheetDetail(CStr(tCode),clsTes.ADbl(dDate))
-
- If clsTes.ErrorNumber <> 0 Then
- Response.Write (clsTes.ErrorText)
- clsTes.ErrorClear
- End If
-
- If lRowCount > 0 Then
- For lRow = 1 to lRowCount %>
-
- <tr>
- <td align=left valign=middle bgcolor="<%= CellColor %>">
- <FONT SIZE=-1>
- <%= Server.HTMLEncode(clsTes.GridValue(lRow, 4)) %>
- </FONT>
- </td>
- <td align=left valign=middle bgcolor="<%= CellColor %>">
- <FONT SIZE=-1>
- <%= Server.HTMLEncode(clsTes.GridValue(lRow, 5)) %>
- </FONT>
- </td>
- <td align=right valign=middle bgcolor="<%= CellColor %>">
- <FONT SIZE=-1>
- <%= Server.HTMLEncode(clsTes.GridValue(lRow, 6)) %>
- </FONT>
- </td>
-
- <% nColumn = 7 %>
-
- <% If clsTes.UserCost=1 or clsTes.UserCost=3 Then %>
- <td align=left valign=middle bgcolor="<%= CellColor %>">
- <FONT SIZE=-1>
- <%= Server.HTMLEncode(clsTes.GridValue(lRow, 7)) %>
- <% nColumn = nColumn + 1 %>
- </FONT>
- </td>
- <% ElseIf clsTes.UserCost <> 0 Then %>
- <td align=right valign=middle bgcolor="<%= CellColor %>">
- <FONT SIZE=-1>
- <%= CStr(clsTes.GridValue(lRow, 7)) %>
- <% nColumn = nColumn + 1 %>
- </FONT>
- </td>
- <% End If %>
-
-
-
-
- <% If clsTes.UserCharge=1 or clsTes.UserCharge=3 Then %>
- <td align=left valign=middle bgcolor="<%= CellColor %>">
- <FONT SIZE=-1>
- <%= Server.HTMLEncode(clsTes.GridValue(lRow,nColumn)) %>
- <% nColumn = nColumn + 1 %>
- </FONT>
- </td>
- <% ElseIf clsTes.UserCharge <> 0 Then %>
- <td align=right valign=middle bgcolor="<%= CellColor %>">
- <FONT SIZE=-1>
- <%= CStr(clsTes.GridValue(lRow, nColumn)) %>
- <% nColumn = nColumn + 1 %>
- </FONT>
- </td>
- <% End If %>
-
-
-
- <% If clsTes.UserChargeableTimesheet <> 0 Then %>
- <td align=center valign=middle bgcolor="<%= CellColor %>">
- <FONT SIZE=-1>
- <%= Server.HTMLEncode(clsTes.GridValue(lRow, nColumn)) %>
- <% nColumn = nColumn + 1 %>
- </FONT>
- </td>
- <% End If %>
-
-
- <% If clsTes.UserOvertime Then %>
- <td align=center valign=middle bgcolor="<%= CellColor %>">
- <FONT SIZE=-1>
- <%= Server.HTMLEncode(clsTes.GridValue(lRow, nColumn)) %>
- <% nColumn = nColumn + 1 %>
- </FONT>
- </td>
- <% End If %>
-
-
-
- <% If clsTes.UserApprovedTimesheet Then %>
- <td align=center valign=middle bgcolor="<%= CellColor %>">
- <FONT SIZE=-1>
- <% If Not IsNull(clsTes.GridValue(lRow, nColumn)) Then %>
- <%= Server.HTMLEncode(clsTes.GridValue(lRow, nColumn)) %>
- <% Else %>
-
- <% End If %>
- <% nColumn = nColumn + 1 %>
-
- </FONT>
- </td>
- <% End If %>
-
-
-
- <% If clsTes.UserInvoicedTimesheet Then %>
- <td align=center valign=middle bgcolor="<%= CellColor %>">
- <FONT SIZE=-1>
- <%= Server.HTMLEncode(clsTes.GridValue(lRow, nColumn)) %>
- <% nColumn = nColumn + 1 %>
- </FONT>
- </td>
- <% End If %>
-
- <% If clsTes.UserTimesheetNotes Then %>
- <td align=left valign=middle bgcolor="<%= CellColor %>">
- <FONT SIZE=-1>
- <% If Not IsNull(clsTes.GridValue(lRow, nColumn)) Then %>
- <%= Server.HTMLEncode(clsTes.GridValue(lRow,nColumn)) %>
- <% Else %>
-
- <% End If %>
- <% nColumn = nColumn + 1 %>
- </FONT>
- </td>
- <% End If %>
-
- <% If clsTes.Maintain(lRow) Then %>
- <td align=center valign=middle bgcolor="<%= CellColor %>">
- <a href="tsedit.asp?Mode=Amend&Key=<%= clsTes.GridValue(lRow, 0) %>" target=_parent><img border=0 align=center src="../images/amend.gif" alt="Amend Timesheet"></a>
- </td>
- <% Else %>
- <td align=center valign=middle>
- <a href="tsview.asp?Key=<%= clsTes.GridValue(lRow, 0) %>&ReturnURL=<%= Server.URLEncode("tsgrid.asp") %>" target=_parent><img border=0 align=center src="../images/view.gif" alt="View Timesheet"></a>
- </td>
- <% End If %>
-
- <% If clsTes.TimesheetMaintainAccess <> 0 Then
- If clsTes.Maintain(lRow) Then %>
- <td align=center valign=middle bgcolor="<%= CellColor %>">
- <a href="tsdelete.asp?key=<%= clsTes.GridValue(lRow, 0) %>&ReturnURL=<%= Server.URLEncode("tsgrid.asp") %>" TARGET="_parent"><img border=0 align=center src="../images/delete.gif" alt="Delete Timesheet"></a>
- </td>
- <% Else %>
- <td align=center valign=middle>
-
- </td>
- <% End If %>
- <% End If %>
- </tr>
-
- <% Next
- End If %>
-
- </table>
- <% Else %>
- Sorry, you do not have access to view timesheets.
- <% End If %>
-
- <% Set clsTes = Nothing %>
- </BODY>
- </HTML>
-