-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.cfm
49 lines (39 loc) · 1.58 KB
/
test.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
<cfquery name="getLinks" datasource="CFP" cachedwithin="#CreateTimeSpan( 0, 0, 0, 10)#">
SELECT SortOrder, LL.Type, LL.LinkID, LL.linkCode, LL.parentCode, W.siteName, W.SiteCode, W.Icon, LL.Title LinkTitle
, (SELECT Count(1) FROM tblLayoutLinks WHERE ParentCode = LL.LinkCode and LL.LinkCode <> '') hasSublinks
FROM tblLayout Y
JOIN tblLayoutLinks LL ON Y.LayoutUUID = LL.LayoutUUID
LEFT JOIN tblLink L ON LL.LinkCode = L.LinkCode AND L.ActiveFlag = 1
LEFT JOIN tblSite W ON W.SiteCode = L.SiteCode AND W.ActiveFlag = 1
WHERE LL.ActiveFlag = 1
AND LL.Type = 'Link'
ORDER BY LL.SortOrder, L.LinkID
-- LIMIT 3
</cfquery>
<cfquery name="getSchools" datasource="CFP" cachedwithin="#CreateTimeSpan( 0, 0, 0, 10)#">
SELECT S.shortName, S.Icon schoolIcon, S.schoolCode
FROM tblSchool S
WHERE shortName like '%oregon%'
ORDER BY S.shortName
</cfquery>
<cfdump var="#getSchools#">
<cfquery name="getMissingSlugs2" datasource="CFP" cachedwithin="#CreateTimeSpan( 0, 0, 0, 10)#">
select *
from view_MissingSchoolSlugs
<!--- where SchoolCode IN (#PreserveSingleQuotes(schoolList)#) --->
where SchoolCode IN (#QuotedValueList(GetSchools.SchoolCode)#)
AND SiteCode IN (#QuotedValueList(GetLinks.SiteCode)#)
order by schoolCode, siteCode
</cfquery>
<cfdump var="#getMissingSlugs2#">
<cfabort>
<cfloop query="getUsers">
<cfquery name="getUsers" datasource="CFP">
UPDATE tblUser
SET UserUUID = '#CreateUUID()#'
WHERE UserID = #UserID#
</cfquery>
</cfloop>
<cfabort>
<cfdump var="#session#">
<cfdump var="#cookie#">