-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeleteOutreach.cfm
78 lines (78 loc) · 1.77 KB
/
deleteOutreach.cfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<cfinclude template="authenticateExe.cfm">
<cfif not isDefined("FORM.Submit")>
<cfscript>
pageTitle = "Error!";
up2snuff = 0;
em = 'Error!';
// check required variables
if (not isDefined("FORM.OutID") or not isNumeric(FORM.OutID))
{
em = "Invalid or missing parameters";
}
else
{
OutID = FORM.OutID;
up2snuff = 1;
}
</cfscript>
<cfif not up2snuff>
<cfinclude template="incBegin.cfm">
<cfinclude template="incError.cfm">
<cfelse>
<cfscript>
// initialize variables for uspGetOutreach stored procedure
OutID = OutID;
LibID = 0;
CntctID = 0;
DeptID = 0;
StatID = 0;
UID = 0;
sDT = '';
eDT = '';
FiscalY = 0;
</cfscript>
<cfinclude template="uspGetOutreach.cfm">
<cfif not up2snuff>
<cfinclude template="incBegin.cfm">
<cfinclude template="incError.cfm">
<cfelse>
<cfif SESSION.LibID neq Outreach.DBRCreatorID>
<cfinclude template="incDenyDelete.cfm">
<cfelse>
<cfinclude template="formDeleteOutreach.cfm">
<cfinclude template="incOutreachLog.cfm">
</cfif>
</cfif>
</cfif>
<cfelse>
<cfscript>
pageTitle = "Error!";
up2snuff = 0;
em = 'Error!';
// check required variables
if (not isDefined("FORM.OutID") or not isDefined("FORM.CntctID"))
{
em = "Invalid or missing contact ID value";
}
else
{
OutID = FORM.OutID;
CntctID = FORM.CntctID;
up2snuff = 1;
em = 'None';
}
</cfscript>
<cfif not up2snuff>
<cfinclude template="incBegin.cfm">
<cfinclude template="incError.cfm">
<cfelse>
<cfinclude template="uspDeleteOutreach.cfm">
<cfif not up2snuff>
<cfinclude template="incBegin.cfm">
<cfinclude template="incError.cfm">
<cfelse>
<cflocation url="contact.cfm?CntctID=#CntctID#" addtoken="no">
</cfif>
</cfif>
</cfif>
<cfinclude template="incEnd.cfm">