-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddNewOutreach.cfm
84 lines (84 loc) · 1.84 KB
/
addNewOutreach.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
79
80
81
82
83
84
<cfinclude template="authenticateExe.cfm">
<cfif not isDefined("FORM.Submit")>
<cfscript>
pageTitle = "Error!";
up2snuff = 0;
em = 'Error!';
if (not isDefined("FORM.CntctID")or not isNumeric(FORM.CntctID))
{
up2snuff = 0;
}
else
{
CntctID = FORM.CntctID;
up2snuff = 1;
}
</cfscript>
<cfif not up2snuff>
<cfinclude template="incBegin.cfm">
<cfinclude template="incError.cfm">
<cfelse>
<cfscript>
// initialize variables for uspGetContact stored procedure
LibID = 0;
CntctID = CntctID;
StatID = 0;
DeptID = 0;
SessID = 0;
ActID = 0;
MatID = 0;
UID = 0;
sDT = '';
eDT = '';
FiscalY = 0;
Set = '';
</cfscript>
<cfinclude template="uspGetContact.cfm">
<cfif not up2snuff>
<cfinclude template="incBegin.cfm">
<cfinclude template="incError.cfm">
<cfelse>
<cfinclude template="formOutreach.cfm">
</cfif>
</cfif>
<cfelseif isDefined("FORM.Submit")>
<cfscript>
pageTitle = "Error!";
up2snuff = 0;
em = 'Error!';
if (not isDefined("FORM.CntctID")or not isNumeric(FORM.CntctID))
{
up2snuff = 0;
}
else
{
CntctID = FORM.CntctID;
up2snuff = 1;
}
</cfscript>
<cfif not up2snuff>
<cfinclude template="incBegin.cfm">
<cfinclude template="incError.cfm">
<cfelse>
<cfinclude template="incCheckForm.cfm">
<cfif missingRequired>
<cfinclude template="formOutreach.cfm">
<cfelse>
<cfinclude template="incCheckDataFormat.cfm">
<cfif not up2snuff>
<cfinclude template="formOutreach.cfm">
<cfelse>
<cfinclude template="uspAddNewOutreach.cfm">
<cfif not up2snuff>
<cfinclude template="formOutreach.cfm">
<cfelse>
<cflocation url="contact.cfm?CntctID=#CntctID#" addtoken="no">
</cfif>
</cfif>
</cfif>
</cfif>
<cfelse>
<cfinclude template="incBegin.cfm">
<cfinclude template="incError.cfm">
</cfif>
<cfinclude template="incEnd.cfm">