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
- On Error Resume Next
- tReturn = Request("ReturnURL")
- lKey = Request("Key")
-
- nErrors = 0
- tErrortext = ""
-
- If Request.Form("btnSubmit") = "Cancel" Then
- Response.Redirect(tReturn)
- ElseIf Request.Form("btnSubmit") = "OK" Then
- clsTes.DeleteTimesheet CLng(lKey)
- If clsTes.ErrorNumber <> 0 Then
- nErrors = 1
- tErrorText = tErrortext & "<BR>" & Server.HTMLEncode(clsTes.ErrorText)
- Else
- Response.Redirect(tReturn)
- 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>Delete Timesheet</TITLE>
- </HEAD>
- <BODY BGCOLOR="<%= BackColor %>" LINK="<%= LinkColor %>" VLINK="<%= VLinkColor %>" ALINK="<%= ALinkColor %>" TEXT="<%= TextColor %>">
- <BASEFONT SIZE=2 COLOR="<%= TextColor %>">
-
- <% If clsTes.TimesheetMaintainAccess <> 2 Then 'US_NONE %>
-
- <CENTER>
- <FORM ACTION="tsdelete.asp" METHOD="POST">
- <P><BR>
- <% If nErrors > 0 Then %>
- <B>Errors</B>
- <P>
- <%= tErrorText %>
- <P>
- <% End If %>
-
- Are you sure you want to delete this timesheet?
- <p>
- <INPUT TYPE=HIDDEN NAME="ReturnURL" VALUE="<%= tReturn %>">
- <INPUT TYPE=HIDDEN NAME="Key" VALUE="<%= lKey %>">
- <INPUT TYPE=SUBMIT VALUE="OK" NAME="btnSubmit">
- <INPUT TYPE=SUBMIT VALUE="Cancel" NAME="btnSubmit">
- </FORM>
- </CENTER>
- <% End If %>
- </BODY>
- </HTML>
-