-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainPage.cfm
98 lines (86 loc) · 2.96 KB
/
mainPage.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<cfscript>
//ensure that url.recID is always pointing to a valid recruiter in case
//page was invoked w/o URL parameters
url.recID = url.recID ?: session.user.recruiterID;
//let's trim the URL param to limit potential for injection attacks
url.recID = left(trim(url.recID),50);
recObj = createObject("component","fi.CustomTags.Recruiters2018");
recInfo = recObj.getRecruiterInfo(recruiterID = url.recID, tInclude = 'api');
if(
IsUserInRole("Administrator")
OR IsUserInRole("SuperAdmin")
OR (Trim(session.user.recruiterID) EQ trim(RecInfo.PrimaryContact))
OR (Trim(session.user.recruiterID) EQ url.recID)
){
rAccess = True;
} else {
rAccess = False;
}
access = False;
</cfscript>
<cfinclude template="/inc/html_header.cfm">
<script>
$(document).ready(function(){
<cfoutput>
$('##bullhornForm').on('submit', function(e) {
e.preventDefault();
$.post('inc/handlers/bullhornUpdate.cfm?recID=#url.recID#',$("##bullhornForm").serialize(),function(data,status){
//de-serialize JSON into JS object
var postResults = JSON.parse(data);
if(postResults.status == 1) {
//we successfully forwarded the candidate
$('##successMessageBullhorn').show();
$('##bullhornCloseBtn').html('Close');
} else {
//login failed - post failure and reload login form
$('##failureMessageBullhorn').show();
$('##errorDetails').html(postResults.errorMessage);
$('##errorDetails').show();
$('##bullhornCloseBtn').html('Abort');
}
});
return false;
});
</cfoutput>
});
</script>
<!--End Page Only Script-->
<cfinclude template="/inc/header.cfm">
<!--Page Title Bar-->
<cfoutput>
<div class="titleBar"><span class="Heading2">This is our title bar area</span></div>
<!--End Page Title Bar-->
<div id="indent" style="min-height:400px;">
<!--Begin Page Content-->
<div class="container">
<div class="row">
<div class="col-md-10"> <!---main content--->
<div class="row">
<!--- Body --->
<p>This is a simple, streamlined example of how we use Bootstrap modal windows to collect user
input and then act based on the data that is provided by the user.</p>
<p>This would typically be our main page content area.</p>
</div>
<br><hr>
</div> <!--end main content-->
<div class="col-md-2">
<cfif rAccess eq true>
<!--- Display recruiter menu --->
<div class="row">
<div class="col-md-12">
<div class="pull-right"><cfinclude template="recMenu.cfm"></div>
</div>
</div>
</cfif>
</div>
</div>
</div>
<!--- Modal Windows --->
<cfinclude template="inc/modals/updateBullhorn.cfm"/>
</cfoutput>
<!--End Page Content-->
</div>
<!--Begin Footer-->
<br /><br />
<cfinclude template="/inc/footer_rec.cfm">
<!--End Footer-->