-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddNewMaterial.cfm
75 lines (72 loc) · 1.82 KB
/
addNewMaterial.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
<cfinclude template="authenticateExe.cfm">
<cfif not isDefined("FORM.Submit")>
<cfscript>
up2snuff = 1;
</cfscript>
<cfif not isDefined("FORM.IsFile") or FORM.IsFile eq "">
<cfinclude template="formMaterialTypeSwitch.cfm">
<cfelse>
<cfinclude template="formMaterial.cfm">
</cfif>
<cfelseif isDefined("FORM.Submit")>
<cfscript>
if (isDefined("FORM.ActID"))
{
ActID = FORM.ActID;
}
else
{
ActID = 0;
}
if (isDefined("FORM.SessID"))
{
SessID = FORM.SessID;
}
else
{
SessID = 0;
}
</cfscript>
<cfinclude template="incCheckForm.cfm">
<cfif missingRequired>
<cfinclude template="formMaterial.cfm">
<cfelse>
<cfinclude template="incCheckDataFormat.cfm">
<cfif not up2snuff>
<cfinclude template="formMaterial.cfm">
<cfelse>
<cfif isDefined("FORM.FileLocation") and FORM.FileLocation neq "">
<cfinclude template="incUploadFile.cfm">
<cfif not up2snuff>
<cfinclude template="formMaterial.cfm">
<cfelse>
<cfinclude template="uspAddNewMaterial.cfm">
<cfif not up2snuff>
<cfinclude template="formMaterial.cfm">
<cfelse>
<cfif ActID neq 0>
<cflocation url="session.cfm?ActID=#ActID#&SessID=#SessID#" addtoken="no">
<cfelse>
<cflocation url="materials.cfm?LibID=#SESSION.LibID#" addtoken="no">
</cfif>
</cfif>
</cfif>
<cfelse>
<cfinclude template="uspAddNewMaterial.cfm">
<cfif not up2snuff>
<cfinclude template="formMaterial.cfm">
<cfelse>
<cfif ActID neq 0>
<cflocation url="session.cfm?ActID=#ActID#&SessID=#SessID#" addtoken="no">
<cfelse>
<cflocation url="materials.cfm?LibID=#SESSION.LibID#" addtoken="no">
</cfif>
</cfif>
</cfif>
</cfif>
</cfif>
<cfelse>
<cfinclude template="incBegin.cfm">
<cfinclude template="incError.cfm">
</cfif>
<cfinclude template="incEnd.cfm">