Visa artiklar

Visa artiklar

Fel uppstod under bearbetning av mallen.
Expression qstringmap["bankercode"] is undefined on line 7, column 17 in 10154#10192#153411699.
1<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService") > 
2<#assign oadURL = propsUtil.get('elan.oad.url') > 
3<#assign url = request.attributes.CURRENT_URL > 
4<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
5<#assign url404 = '/error/404.html' > 
6 
7<#assign bCode= qstringmap["bankercode"]?first> 
8<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
9<#list bData as b>      
10    <#assign lc = b.locationcode > 
11    <#assign rLC = b.reallocationcode > 
12    <#assign mappedLC = b.mappedLocationCode > 
13</#list>  
14<#if mappedLC?has_content> 
15    <#assign lc = mappedLC > 
16</#if> 
17<#if lc?has_content> 
18    <#assign prefix = "00000" > 
19    <#assign lcWithPrefix = prefix + lc > 
20    <#assign withPrefixLength = lcWithPrefix?length > 
21    <#assign startHere = withPrefixLength - 5> 
22    <#assign lc = lcWithPrefix?substring(startHere)> 
23    <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
24    <#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
25    <#assign clientProfile = clientProfileList?first> 
26    <#assign partnerName = clientProfile.getMarketingNameLong()> 
27    <#assign logoFileName = clientProfile.getLogoBFormat1()> 
28    <#assign cdnLogoUrl = propsUtil.get('rackspace.cdn.web.url')> 
29    <div class="content-container content-container-main" title="${partnerName!''}"> 
30        <header class="jn-header"> 
31            <div class="header-logo">  
32                <img src="${cdnLogoUrl!''}/${logoFileName!''}" alt="${partnerName!''}" title="${partnerName!''}"> 
33            </div>  
34        </header> 
35    </div>        
36</#if> 

Visa artiklar

Fel uppstod under bearbetning av mallen.
Expression qstringmap["bankercode"] is undefined on line 8, column 17 in 10154#10192#5883830.
1<#assign url = request.attributes.CURRENT_URL > 
2<#assign oadURL = propsUtil.get('elan.oad.url') > 
3<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
4<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
5<#assign url404 = '/error/404.html'> 
6<#assign oadURL_TC = 'https://online1.elancard.com/oad/terms.controller' > 
7 
8<#assign bCode= qstringmap["bankercode"]?first> 
9<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
10<#list bData as b>      
11    <#assign lc = b.locationcode > 
12    <#assign rLC = b.reallocationcode > 
13    <#assign mappedLC = b.mappedLocationCode > 
14</#list>  
15 
16<#assign prefix = "00000" > 
17<#assign lcWithPrefix = prefix + lc > 
18<#assign withPrefixLength = lcWithPrefix?length > 
19<#assign startHere = withPrefixLength - 5> 
20<#assign lc = lcWithPrefix?substring(startHere)>     
21<#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
22<#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
23 
24<#assign clientProfile = clientProfileList?first> 
25<#assign partnerName = clientProfile.getMarketingNameLong()> 
26<#assign pbu = clientProfile.getPbu()> 
27<#assign subbu = clientProfile.getSUBBRANDBUNBR()>      
28 
29<#assign cdnCardArtUrl = propsUtil.get('rackspace.cdn.cardart.url')> 
30<#assign fiCardsData=utilServ.makeCall('crcTier3GetPbuData','0&'+ pbu + '&'+subbu)> 
31<#assign temp = []> 
32<#assign consumerCards = []> 
33<#assign businessCards = []>  
34<#assign offerTypeList = []>       
35<#assign index = 0> 
36<#list fiCardsData as fib>  
37    <#if (fib.offerType?has_content && !(offerTypeList?seq_contains(fib.offerType)))> 
38        <#assign offerTypeList = offerTypeList + [fib.offerType]>  
39        <#if (fib.offerType == "101" || fib.offerType == "108" || fib.offerType == "109" || fib.offerType == "115")> 
40            <#assign consumerCards = consumerCards + fiCardsData[index..index]> 
41        <#elseif (fib.offerType == "128" || fib.offerType == "143" || fib.offerType == "123")> 
42            <#assign businessCards = businessCards + fiCardsData[index..index]> 
43        </#if>                            
44        <#assign temp = temp + fiCardsData[index..index]>  
45    </#if>   
46    <#assign index = index + 1>               
47</#list>  
48 
49<#assign fiCardsData = temp> 
50<#if (fiCardsData?size > 0)>                     
51    <#assign offerId = ""> 
52    <#assign sourceCode = ""> 
53    <#assign cardArtImage = ""> 
54    <#assign productUrl = ""> 
55    <#assign preparerType = "customer"> 
56    <#assign apr = ""> 
57    <#assign cardIndex = 1> 
58    <#if (class.getData() == "landing-consumer" && consumerCards?size > 0)> 
59        <#if (offerTypeList?seq_contains("108") || offerTypeList?seq_contains("109")) > 
60            <#list consumerCards as card> 
61                <#if (card.offerType=="108" || card.offerType=="109")> 
62                    <#assign offerId = card.offerId> 
63                    <#assign sourceCode = card.sourceCode> 
64                    <#assign cardArtImage = cdnCardArtUrl + "/"+card.filename+".png"> 
65                    <#assign cardArtImageAlt = cdnCardArtUrl + "/"+card.filename+".jpg"> 
66                    <#assign productUrl="platinum"> 
67                    <#assign product="Platinum"> 
68                    <#assign cardIndex = card.cardOrder?number - 1> 
69                    <#assign scrapedData = utilServ.makeCall('crcDDCGetSchumerBox', offerId + '&'+ sourceCode)> 
70                    <#if (scrapedData?size > 0)> 
71                        <#list scrapedData as sItem> 
72                            <#if ((sItem.scrapedLabel?contains("Annual Percentage Rate (APR) for Purchases")) && (sItem.scrapedValue?has_content)) > 
73                                <#assign apr = sItem.scrapedValue?replace("(\n|\r\n|\r)+", " ","r")> 
74                                <#break> 
75                            </#if> 
76                        </#list> 
77                        <script> 
78                            $(document).ready(function () { 
79                                var aprText = "${apr}"; 
80                                if (aprText) { 
81                                    try { 
82                                        var matches= aprText.match(/\d+(\.\d+)?%?/g); 
83                                        var billing_cycle = matches[1]; 
84                                        var apr_min = apr_min = matches[2]; 
85                                        var apr_max = apr_max = matches[3]; 
86                                        if (billing_cycle) { 
87                                            $(".scraped-billing-cycle").html(billing_cycle); 
88
89                                        if (apr_min) { 
90                                            $(".scraped-apr-min").html(apr_min); 
91
92                                        if (apr_max) { 
93                                            $('.scraped-apr-max').html(apr_max); 
94
95 
96                                    } catch (e) { 
97                                        console.log(e); 
98
99
100                            }); 
101                        </script> 
102                    </#if>   
103                </#if> 
104            </#list> 
105        <#else> 
106            <#assign displayedCard = consumerCards[0]> 
107            <#assign offerId = displayedCard.offerId> 
108            <#assign sourceCode = displayedCard.sourceCode> 
109            <#assign cardArtImage = cdnCardArtUrl + "/"+ displayedCard.filename + ".png"> 
110            <#assign cardArtImageAlt = cdnCardArtUrl + "/"+ displayedCard.filename + ".jpg"> 
111            <#assign cardIndex = displayedCard.cardOrder?number - 1> 
112            <#if (displayedCard.offerType=="101")> 
113                <#assign productUrl="real-rewards"> 
114                <#assign product="Real Rewards"> 
115            <#elseif (displayedCard.offerType=="115")> 
116                <#assign productUrl = "secured"> 
117                <#assign product="Secured"> 
118            </#if> 
119        </#if> 
120    </#if> 
121    <#if (class.getData() == "landing-business" && businessCards?size > 0)> 
122        <#if (offerTypeList?seq_contains("128")) > 
123            <#list businessCards as card> 
124                <#if (card.offerType=="128")> 
125                    <#assign offerId = card.offerId> 
126                    <#assign sourceCode = card.sourceCode> 
127                    <#assign cardArtImage = cdnCardArtUrl + "/"+card.filename+".png"> 
128                    <#assign cardArtImageAlt = cdnCardArtUrl + "/"+card.filename+".jpg"> 
129                    <#assign productUrl="business-cash"> 
130                    <#assign product="Business Cash"> 
131                    <#assign cardIndex = card.cardOrder?number - 4> 
132                </#if> 
133            </#list> 
134        <#else> 
135            <#assign displayedCard = businessCards[0]> 
136            <#assign offerId = displayedCard.offerId> 
137            <#assign sourceCode = displayedCard.sourceCode> 
138            <#assign cardArtImage = cdnCardArtUrl + "/"+ displayedCard.filename + ".png"> 
139            <#assign cardArtImageAlt = cdnCardArtUrl + "/"+ displayedCard.filename + ".jpg"> 
140            <#assign cardIndex = displayedCard.cardOrder?number - 4> 
141            <#if (displayedCard.offerType=="143")> 
142                <#assign productUrl="business-real-rewards"> 
143                <#assign product="Business Real Rewards"> 
144            <#elseif (displayedCard.offerType=="123")> 
145                <#assign productUrl = "business-rewards-plus"> 
146                <#assign product="Business Rewards PLUS"> 
147            </#if> 
148        </#if> 
149    </#if>     
150 
151        <div class="content-container content-container-main product-${productUrl} tier2-hero-${class.getData()}" title="${partnerName!''} ${product!''} Credit Card"> 
152            <div class="jn-hero jn-hero-card"> 
153                <article class="jn-hero-container"> 
154                    <div class="jn-hero-container-data"> 
155                        <article> 
156                            <div> 
157                                <img src="${cardArtImage!''}" alt="${partnerName!''}" title="${partnerName!''}" class="jn-img-responsive" onerror="this.onerror=null;this.src='${cardArtImageAlt!''}'"> 
158                            </div> 
159                            <div> 
160                                <div>${productTitle.getSiblings()[cardIndex].primaryHeadlineText.getData()}</div> 
161                                <div class="feature-text">${productTitle.getSiblings()[cardIndex].primaryHeadlineFeature.getData()}</div> 
162                                <#if termsAndConditions.getData() == "yes"> 
163                                    <div class="intro"> 
164                                        <strong>Intro APR<sup>*</sup> for Purchases and Balance Transfers: </strong>${apr!''} 
165                                        <a href="${oadURL_TC}?step=display&offerId=${offerId}&locationCode=${lc}" target="_blank">Terms & Conditions</a> 
166                                    </div> 
167                                </#if> 
168                                <form action="${oadURL}?locationCode=${lc}&offerId=${offerId}&preparerType=${preparerType}&sourceCode=${sourceCode}" method="post" class="BAAForm"> 
169                                    <label for="appDataBAA-${sourceCode}" style="position:absolute; clip:rect(0 0 0 0);">Application Data</label> 
170                                    <textarea rows="20" cols="100" name="applicationData" id="appDataBAA-${sourceCode}" class="appDataBAA" style="display:none;"></textarea> 
171                                    <input type="submit" data-button-name="cta-button-top" data-product-name="${productUrl}" title="Apply Now for ${partnerName!''} ${product!''} Credit Card"  
172                                        class="jn-button apply-now-button apply-button text-bold button-bg-color-custom text-color-white" value="${productTitle.getSiblings()[cardIndex].ctaText.getData()}" disabled /> 
173                                </form>                                                
174                            </div> 
175                        </article> 
176                    </div> 
177                </article> 
178            </div> 
179        </div> 
180 
181</#if> 

Visa artiklar

Fel uppstod under bearbetning av mallen.
Expression qstringmap["bankercode"] is undefined on line 8, column 17 in 10154#10192#153411753.
1<#assign url = request.attributes.CURRENT_URL > 
2<#assign oadURL = propsUtil.get('elan.oad.url') > 
3<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
4<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
5<#assign url404 = '/error/404.html'> 
6<#assign oadURL_TC = 'https://online1.elancard.com/oad/terms.controller' > 
7 
8<#assign bCode= qstringmap["bankercode"]?first> 
9<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
10<#list bData as b>      
11    <#assign lc = b.locationcode > 
12    <#assign rLC = b.reallocationcode > 
13    <#assign mappedLC = b.mappedLocationCode > 
14</#list>  
15 
16<#assign prefix = "00000" > 
17<#assign lcWithPrefix = prefix + lc > 
18<#assign withPrefixLength = lcWithPrefix?length > 
19<#assign startHere = withPrefixLength - 5> 
20<#assign lc = lcWithPrefix?substring(startHere)>     
21<#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
22<#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
23 
24<#assign clientProfile = clientProfileList?first> 
25<#assign partnerName = clientProfile.getMarketingNameLong()> 
26<#assign pbu = clientProfile.getPbu()> 
27<#assign subbu = clientProfile.getSUBBRANDBUNBR()>      
28 
29<#assign cdnCardArtUrl = propsUtil.get('rackspace.cdn.cardart.url')> 
30<#assign fiCardsData=utilServ.makeCall('crcTier3GetPbuData','0&'+ pbu + '&'+subbu)> 
31<#assign temp = []> 
32<#assign consumerCards = []> 
33<#assign businessCards = []>  
34<#assign offerTypeList = []>       
35<#assign index = 0> 
36<#list fiCardsData as fib>  
37    <#if (fib.offerType?has_content && !(offerTypeList?seq_contains(fib.offerType)))> 
38        <#assign offerTypeList = offerTypeList + [fib.offerType]>  
39        <#if (fib.offerType == "101" || fib.offerType == "108" || fib.offerType == "109" || fib.offerType == "115")> 
40            <#assign consumerCards = consumerCards + fiCardsData[index..index]> 
41        <#elseif (fib.offerType == "128" || fib.offerType == "143" || fib.offerType == "123")> 
42            <#assign businessCards = businessCards + fiCardsData[index..index]> 
43        </#if>                            
44        <#assign temp = temp + fiCardsData[index..index]>  
45    </#if>   
46    <#assign index = index + 1>               
47</#list>  
48 
49<#assign fiCardsData = temp> 
50<#if (fiCardsData?size > 0)>                     
51    <#assign offerId = ""> 
52    <#assign sourceCode = ""> 
53    <#assign cardArtImage = ""> 
54    <#assign productUrl = ""> 
55    <#assign preparerType = "customer"> 
56    <#assign apr = ""> 
57    <#assign cardIndex = 1> 
58    <#if (class.getData() == "landing-consumer" && consumerCards?size > 0)> 
59        <#if (offerTypeList?seq_contains("108") || offerTypeList?seq_contains("109")) > 
60            <#list consumerCards as card> 
61                <#if (card.offerType=="108" || card.offerType=="109")> 
62                    <#assign offerId = card.offerId> 
63                    <#assign sourceCode = card.sourceCode> 
64                    <#assign cardArtImage = cdnCardArtUrl + "/"+card.filename+".png"> 
65                    <#assign cardArtImageAlt = cdnCardArtUrl + "/"+card.filename+".jpg"> 
66                    <#assign productUrl="platinum"> 
67                    <#assign product="Platinum"> 
68                    <#assign cardIndex = card.cardOrder?number - 1> 
69                    <#assign scrapedData = utilServ.makeCall('crcDDCGetSchumerBox', offerId + '&'+ sourceCode)> 
70                    <#if (scrapedData?size > 0)> 
71                        <#list scrapedData as sItem> 
72                            <#if ((sItem.scrapedLabel?contains("Annual Percentage Rate (APR) for Purchases")) && (sItem.scrapedValue?has_content)) > 
73                                <#assign apr = sItem.scrapedValue?replace("(\n|\r\n|\r)+", " ","r")> 
74                                <#break> 
75                            </#if> 
76                        </#list> 
77                        <script> 
78                            $(document).ready(function () { 
79                                var aprText = "${apr}"; 
80                                if (aprText) { 
81                                    try { 
82                                        var matches= aprText.match(/\d+(\.\d+)?%?/g); 
83                                        var billing_cycle = matches[1]; 
84                                        var apr_min = apr_min = matches[2]; 
85                                        var apr_max = apr_max = matches[3]; 
86                                        if (billing_cycle) { 
87                                            $(".scraped-billing-cycle").html(billing_cycle); 
88
89                                        if (apr_min) { 
90                                            $(".scraped-apr-min").html(apr_min); 
91
92                                        if (apr_max) { 
93                                            $('.scraped-apr-max').html(apr_max); 
94
95 
96                                    } catch (e) { 
97                                        console.log(e); 
98
99
100                            }); 
101                        </script> 
102                    </#if>   
103                </#if> 
104            </#list> 
105        <#else> 
106            <#assign displayedCard = consumerCards[0]> 
107            <#assign offerId = displayedCard.offerId> 
108            <#assign sourceCode = displayedCard.sourceCode> 
109            <#assign cardArtImage = cdnCardArtUrl + "/"+ displayedCard.filename + ".png"> 
110            <#assign cardArtImageAlt = cdnCardArtUrl + "/"+ displayedCard.filename + ".jpg"> 
111            <#assign cardIndex = displayedCard.cardOrder?number - 1> 
112            <#if (displayedCard.offerType=="101")> 
113                <#assign productUrl="real-rewards"> 
114                <#assign product="Real Rewards"> 
115            <#elseif (displayedCard.offerType=="115")> 
116                <#assign productUrl = "secured"> 
117                <#assign product="Secured"> 
118            </#if> 
119        </#if> 
120    </#if> 
121    <#if (class.getData() == "landing-business" && businessCards?size > 0)> 
122        <#if (offerTypeList?seq_contains("128")) > 
123            <#list businessCards as card> 
124                <#if (card.offerType=="128")> 
125                    <#assign offerId = card.offerId> 
126                    <#assign sourceCode = card.sourceCode> 
127                    <#assign cardArtImage = cdnCardArtUrl + "/"+card.filename+".png"> 
128                    <#assign cardArtImageAlt = cdnCardArtUrl + "/"+card.filename+".jpg"> 
129                    <#assign productUrl="business-cash"> 
130                    <#assign product="Business Cash"> 
131                    <#assign cardIndex = card.cardOrder?number - 4> 
132                </#if> 
133            </#list> 
134        <#else> 
135            <#assign displayedCard = businessCards[0]> 
136            <#assign offerId = displayedCard.offerId> 
137            <#assign sourceCode = displayedCard.sourceCode> 
138            <#assign cardArtImage = cdnCardArtUrl + "/"+ displayedCard.filename + ".png"> 
139            <#assign cardArtImageAlt = cdnCardArtUrl + "/"+ displayedCard.filename + ".jpg"> 
140            <#assign cardIndex = displayedCard.cardOrder?number - 4> 
141            <#if (displayedCard.offerType=="143")> 
142                <#assign productUrl="business-real-rewards"> 
143                <#assign product="Business Real Rewards"> 
144            <#elseif (displayedCard.offerType=="123")> 
145                <#assign productUrl = "business-rewards-plus"> 
146                <#assign product="Business Rewards PLUS"> 
147            </#if> 
148        </#if> 
149    </#if>     
150 
151        <div class="content-container content-container-main product-${productUrl} tier2-hero-${class.getData()}" title="${partnerName!''} ${product!''} Credit Card"> 
152            <div class="jn-hero jn-hero-card"> 
153                <article class="jn-hero-container"> 
154                    <div class="jn-hero-container-data"> 
155                        <article> 
156                            <div> 
157                                <img src="${cardArtImage!''}" alt="${partnerName!''}" title="${partnerName!''}" class="jn-img-responsive" onerror="this.onerror=null;this.src='${cardArtImageAlt!''}'"> 
158                            </div> 
159                            <div> 
160                                <div>${productTitle.getSiblings()[cardIndex].primaryHeadlineText.getData()}</div> 
161                                <div class="feature-text">${productTitle.getSiblings()[cardIndex].primaryHeadlineFeature.getData()}</div> 
162                                <#if termsAndConditions.getData() == "yes"> 
163                                    <div class="intro"> 
164                                        <strong>Intro APR<sup>*</sup> for Purchases and Balance Transfers: </strong>${apr!''} 
165                                        <a href="${oadURL_TC}?step=display&offerId=${offerId}&locationCode=${lc}" target="_blank">Terms & Conditions</a> 
166                                    </div> 
167                                </#if> 
168                                <form action="${oadURL}?locationCode=${lc}&offerId=${offerId}&preparerType=${preparerType}&sourceCode=${sourceCode}" method="post" class="BAAForm"> 
169                                    <label for="appDataBAA-${sourceCode}" style="position:absolute; clip:rect(0 0 0 0);">Application Data</label> 
170                                    <textarea rows="20" cols="100" name="applicationData" id="appDataBAA-${sourceCode}" class="appDataBAA" style="display:none;"></textarea> 
171                                    <input type="submit" data-button-name="cta-button-top" data-product-name="${productUrl}" title="Apply Now for ${partnerName!''} ${product!''} Credit Card"  
172                                        class="jn-button apply-now-button apply-button text-bold button-bg-color-custom text-color-white" value="${productTitle.getSiblings()[cardIndex].ctaText.getData()}" disabled /> 
173                                </form>                                                
174                            </div> 
175                        </article> 
176                    </div> 
177                </article> 
178            </div> 
179        </div> 
180 
181</#if> 

Visa artiklar

Fel uppstod under bearbetning av mallen.
Expression qstringmap["bankercode"] is undefined on line 10, column 17 in 10154#10192#153411702.
1<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService") > 
2<#assign oadURL = propsUtil.get('elan.oad.url') > 
3<#assign url = request.attributes.CURRENT_URL > 
4<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
5<#assign url404 = '/error/404.html' > 
6<#assign oadURL_TC = 'https://online1.elancard.com/oad/terms.controller' > 
7<#assign environment = url?replace('/index.*','','r')> 
8 
9 
10<#assign bCode= qstringmap["bankercode"]?first> 
11<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
12<#list bData as b>      
13    <#assign lc = b.locationcode > 
14    <#assign rLC = b.reallocationcode > 
15    <#assign mappedLC = b.mappedLocationCode > 
16    <#assign bName = b.branch > 
17    <#assign bPhone = b.businessphone > 
18    <#assign boeid = b.oeid > 
19    <#assign fName = b.firstname?trim > 
20    <#assign lName = b.lastname?trim > 
21</#list>  
22<#assign firstNameLength = fName?length > 
23<#assign lastNameLength = lName?length > 
24<#if firstNameLength + lastNameLength &gt; 19 > 
25    <#if lastNameLength &gt; 18 > 
26        <#assign bLName = lName?substring(0,18)> 
27    <#else> 
28        <#assign bLName = lName> 
29    </#if> 
30    <#assign maxFirstName = 19 - bLName?length > 
31    <#if firstNameLength &gt; maxFirstName > 
32        <#assign bFName = fName?substring(0,maxFirstName)> 
33    <#else> 
34        <#assign bFName = fName> 
35    </#if> 
36<#else> 
37    <#assign bFName = fName> 
38    <#assign bLName = lName> 
39</#if>  
40 
41 
42<#assign text_to_apply_source = "vanity url" > 
43<#if qstringmap["sms"]?has_content> 
44    <#assign sms = 1 > 
45    <#assign text_to_apply_source = "sms" > 
46</#if> 
47<#if qstringmap["qrCode"]?has_content> 
48    <#assign text_to_apply_source = "qr code" > 
49</#if> 
50 
51<#if qstringmap["ecid"]?has_content> 
52    <#assign ecidExt="&ecid="+qstringmap["ecid"]?first> 
53    <#assign campaignId = qstringmap["ecid"]?first > 
54<#else> 
55    <#assign ecidExt=""> 
56    <#assign campaignId = "" > 
57</#if> 
58<#if mappedLC?has_content> 
59    <#assign lc = mappedLC > 
60</#if> 
61<#if lc?has_content> 
62    <#assign prefix = "00000" > 
63    <#assign lcWithPrefix = prefix + lc > 
64    <#assign withPrefixLength = lcWithPrefix?length > 
65    <#assign startHere = withPrefixLength - 5> 
66    <#assign lc = lcWithPrefix?substring(startHere)> 
67    <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
68    <#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
69    <#assign clientProfile = clientProfileList?first> 
70    <#assign partnerName = clientProfile.getMarketingNameLong()> 
71    <#assign pbu = clientProfile.getPbu()> 
72    <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
73    <script> 
74        console.log('pbu', '${pbu}','subbu', '${subbu}'); 
75    </script> 
76    <#assign cdnCardArtUrl = propsUtil.get('rackspace.cdn.cardart.url')> 
77    <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&'+pbu+'&'+subbu)>  
78    <#-- Begin: filter cards by sourceCode and offerId and remove duplicate cards --> 
79    <#assign consumerCards = []> 
80    <#assign businessCards = []>  
81    <#assign offerTypeList = []>      
82    <#assign index = 0> 
83    <#list fiCardsData as fib> 
84        <#if (fib.offerId?has_content && fib.sourceCode?has_content)> 
85            <#if !(offerTypeList?seq_contains(fib.offerType))>   
86                <#assign offerTypeList = offerTypeList + [fib.offerType]> 
87                <#if (fib.offerType == "101" || fib.offerType == "108" || fib.offerType == "109" || fib.offerType == "115")> 
88                    <#assign consumerCards = consumerCards + fiCardsData[index..index]> 
89                <#elseif (fib.offerType == "128" || fib.offerType == "143" || fib.offerType == "123")> 
90                    <#assign businessCards = businessCards + fiCardsData[index..index]> 
91                </#if>                     
92            </#if> 
93        </#if> 
94        <#assign index = index + 1>                   
95    </#list>  
96    <#if (consumerCards?size > 0 || businessCards?size > 0)> 
97        <div class="content-container content-container-main jn-consumer-content"> 
98            <#if ((consumerCards?size > 0) && (businessCards?size > 0))> 
99                <nav class="jn-primary-nav two-tabs"> 
100                    <ul> 
101                        <li title="${partnerName!''} - Personal products"> 
102                            <a href="#" class="tab-nav active" id="consumerTab"><span>Personal</span></a> 
103                        </li> 
104                        <li title="${partnerName!''} - Business products"> 
105                            <a href="#" class="tab-nav" id="businessTab"><span>Business</span></a> 
106                        </li> 
107                    </ul> 
108                </nav> 
109            <#else> 
110                <#if (consumerCards?size > 0)> 
111                    <nav class="jn-primary-nav" title="${partnerName!''} - Personal products"> 
112                        <ul> 
113                            <li> 
114                                <p class="tab-nav" id="consumerTab"><span>Personal</span></p> 
115                            </li> 
116                        </ul> 
117                    </nav> 
118                </#if> 
119                <#if (businessCards?size > 0)> 
120                    <nav class="jn-primary-nav" title="${partnerName!''} - Business products"> 
121                        <ul> 
122                            <li> 
123                                <p class="tab-nav" id="businessTab"><span>Business</span></p> 
124                            </li> 
125                        </ul> 
126                    </nav> 
127                </#if> 
128            </#if> 
129            <#if (consumerCards?size > 0)> 
130                <div class="jn-consumer-content-wrapper jn-tab-content active" data-id="consumerTab" title="${partnerName!''} - Personal products"> 
131                    <#list consumerCards as fib>                                  
132                        <#assign cardArtImage = cdnCardArtUrl + "/" + fib.filename + ".png" > 
133                        <#assign cardArtImageAlt = cdnCardArtUrl + "/"+fib.filename+".jpg">                             
134                        <#assign cardIndex = fib.cardOrder?number - 1 > 
135                        <#assign titleText = consumerTitle.getSiblings()[cardIndex].Title.getData()> 
136                        <#assign titleText = titleText?replace('<[^>]+>','','r')> 
137                        <#switch fib.offerType> 
138                            <#case "101"> 
139                                <#assign productName = "real-rewards"> 
140                                <#assign product="Real Rewards"> 
141                                <#break> 
142                            <#case "108"> 
143                                <#assign productName = "platinum"> 
144                                <#assign product="Platinum"> 
145                                <#break> 
146                            <#case "109"> 
147                                <#assign productName = "platinum"> 
148                                <#assign product="Platinum"> 
149                                <#break>                                            
150                            <#case "115"> 
151                                <#assign productName = "secured"> 
152                                <#assign product="Secured"> 
153                                <#break> 
154                            <#default> 
155                        </#switch> 
156                        <#assign APR=""> 
157                        <#assign AMF=""> 
158                        <#assign scrapedData = utilServ.makeCall('crcDDCGetSchumerBox', fib.offerId + '&'+ fib.sourceCode)> 
159                        <#if (scrapedData?size > 0)> 
160                            <#list scrapedData as sItem> 
161                                <#if ((sItem.scrapedLabel?contains("Annual Percentage Rate (APR) for Purchases")) && (sItem.scrapedValue?has_content)) > 
162                                    <#assign APR = sItem.scrapedValue> 
163                                <#elseif ((sItem.scrapedLabel?contains("Annual Membership Fee")) && (sItem.scrapedValue?has_content)) > 
164                                    <#assign AMF = sItem.scrapedValue> 
165                                </#if> 
166                                <#if (APR?has_content && AMF?has_content)> 
167                                    <#break> 
168                                </#if> 
169                            </#list> 
170                        </#if>                               
171                        <div class="jn-consumer-item item-${fib.offerType}" title="${partnerName!''} ${product!''} Credit Card"> 
172                            <img src="${cardArtImage!''}" alt="${titleText}" class="jn-img-responsive" onerror="this.onerror=null;this.src='${cardArtImageAlt!''}'"> 
173                            <h4>${consumerTitle.getSiblings()[cardIndex].Title.getData()}</h4> 
174                            <p>${consumerTitle.getSiblings()[cardIndex].headlineText.getData()}</p> 
175                            <ul class="actions"> 
176                                <li> 
177                                    <form action="${oadURL}?locationCode=${lc}&offerId=${fib.offerId}&preparerType=customer&sourceCode=${fib.sourceCode}" method="post" class="BAAForm"> 
178                                        <label for="appDataBAA-${fib.offerId}" style="position:absolute; clip:rect(0 0 0 0);">Application Data</label> 
179                                        <textarea rows="20" cols="100" name="applicationData" id="appDataBAA-${fib.offerId}" class="appDataBAA" style="display:none;" title="application data"></textarea>                                        
180                                        <a class="apply-now-button applyNowLink"  
181                                            href="${oadURL}?locationCode=${lc}&offerId=${fib.offerId}&preparerType=customer&sourceCode=${fib.sourceCode}"  
182                                            data-button-name="apply-now-link" data-product-name="${productName!''}" 
183                                            title="Apply Now for ${partnerName!''} ${product!''} Credit Card">${consumerTitle.getSiblings()[cardIndex].applyNow.getData()}</a> 
184                                    </form> 
185                                </li> 
186                                <li><a href="${environment}/${productName}?bankercode=${bCode}&ecdma-lc=${lc}${ecidExt}">${consumerTitle.getSiblings()[cardIndex].LearnMore.getData()}</a></li> 
187                            </ul> 
188                            <div class="jn-additional"> 
189                                <ul class="${fib.offerType}"> 
190                                    <li class="${fib.offerType}"> 
191                                        <p> 
192                                            <#if fib.offerType=="115"> 
193                                                <strong>APR for Purchases and Balance Transfers: </strong> 
194                                            <#else> 
195                                                <strong>Intro APR<sup>*</sup> for Purchases and Balance Transfers: </strong> 
196                                            </#if> 
197                                            ${APR!''} <a href="${oadURL_TC}?step=display&offerId=${fib.offerId}&locationCode=${lc}" target="_blank">Terms & Conditions</a> 
198                                        </p> 
199                                    </li> 
200                                    <#if consumerTitle.getSiblings()[cardIndex].additionalInfo.getSiblings()?has_content> 
201                                        <#list consumerTitle.getSiblings()[cardIndex].additionalInfo.getSiblings() as marketingInfo> 
202                                            <li>${marketingInfo.getData()}</li> 
203                                        </#list> 
204                                    </#if> 
205                                    <li> 
206                                        <p>Annual Fee: ${AMF!''} <a href="${oadURL_TC}?step=display&offerId=${fib.offerId}&locationCode=${lc}" target="_blank">Terms & Conditions</a></p> 
207                                    </li> 
208                                </ul> 
209                            </div> 
210                        </div>                                   
211                    </#list> 
212                </div> 
213            </#if> 
214            <#if (businessCards?size > 0)>     
215                <div class="jn-consumer-content-wrapper jn-tab-content" data-id="businessTab" title="${partnerName!''} - Business products"> 
216                    <#list businessCards as fib> 
217                        <#assign cardArtImage = cdnCardArtUrl + "/"+fib.filename+".png"> 
218                        <#assign cardArtImageAlt = cdnCardArtUrl + "/"+fib.filename+".jpg"> 
219                        <#assign cardIndex = fib.cardOrder?number - 1 > 
220                        <#switch fib.offerType> 
221                            <#case "128"> 
222                                <#assign productName = "business-cashback"> 
223                                <#assign product="Business Cash"> 
224                                <#break> 
225                            <#case "143"> 
226                                <#assign productName = "business-real-rewards"> 
227                                <#assign product="Business Real Rewards"> 
228                                <#break> 
229                            <#case "123"> 
230                                <#assign productName = "business-rewards-plus"> 
231                                <#assign product="Business Rewards PLUS"> 
232                                <#break> 
233                            <#default> 
234                        </#switch> 
235                        <#assign APR=""> 
236                        <#assign AMF=""> 
237                        <#assign scrapedData = utilServ.makeCall('crcDDCGetSchumerBox', fib.offerId + '&'+ fib.sourceCode)> 
238                        <#if (scrapedData?size > 0)> 
239                            <#list scrapedData as sItem> 
240                                <#if ((sItem.scrapedLabel?contains("Annual Percentage Rate (APR) for Purchases")) && (sItem.scrapedValue?has_content)) > 
241                                    <#assign APR = sItem.scrapedValue> 
242                                <#elseif ((sItem.scrapedLabel?contains("Annual Membership Fee")) && (sItem.scrapedValue?has_content)) > 
243                                    <#assign AMF = sItem.scrapedValue> 
244                                </#if> 
245                                <#if (APR?has_content && AMF?has_content)> 
246                                    <#break> 
247                                </#if> 
248                            </#list> 
249                        </#if>                             
250                        <div class="jn-consumer-item" title="${partnerName!''} ${product!''} Credit Card"> 
251                            <img src="${cardArtImage!''}" alt="${partnerName!''}" class="jn-img-responsive" onerror="this.onerror=null;this.src='${cardArtImageAlt!''}'"> 
252                            <h4>${consumerTitle.getSiblings()[cardIndex].Title.getData()}</h4> 
253                            <p>${consumerTitle.getSiblings()[cardIndex].headlineText.getData()}</p> 
254                            <ul class="actions"> 
255                                <li> 
256                                    <form action="${oadURL}?locationCode=${lc}&offerId=${fib.offerId}&preparerType=customer&sourceCode=${fib.sourceCode}" method="post" class="BAAForm"> 
257                                        <label for="appDataBAA-${fib.offerId}" style="position:absolute; clip:rect(0 0 0 0);">Application Data</label> 
258                                        <textarea rows="20" cols="100" name="applicationData" id="appDataBAA-${fib.offerId}" class="appDataBAA" style="display:none;" title="application data"></textarea>                                       
259                                        <a class="apply-now-button applyNowLink"  
260                                        href="${oadURL}?locationCode=${lc}&offerId=${fib.offerId}&preparerType=customer&sourceCode=${fib.sourceCode}"  
261                                        data-button-name="apply-now-link" data-product-name="${productName!''}" 
262                                        title="Apply Now for ${partnerName!''} ${product!''} Credit Card">${consumerTitle.getSiblings()[cardIndex].applyNow.getData()}</a> 
263                                    </form> 
264                                </li> 
265                                <li><a href="${environment}/${productName}?bankercode=${bCode}&ecdma-lc=${lc}${ecidExt}">${consumerTitle.getSiblings()[cardIndex].LearnMore.getData()}</a></li> 
266                            </ul> 
267                            <div class="jn-additional"> 
268                                <ul> 
269                                    <li> 
270                                        <p> 
271                                            <#if (fib.offerType=="123" )> 
272                                                <strong>APR for Purchases and Balance Transfers: </strong> 
273                                            <#else> 
274                                                <strong>Intro APR<sup>*</sup> for Purchases and Balance Transfers: </strong> 
275                                            </#if> 
276                                            ${APR!''} 
277                                            <a href="${oadURL_TC}?step=display&offerId=${fib.offerId}&locationCode=${lc}" target="_blank">Terms & Conditions</a> 
278                                        </p> 
279                                    </li> 
280                                    <#if consumerTitle.getSiblings()[cardIndex].additionalInfo.getSiblings()?has_content> 
281                                        <#list consumerTitle.getSiblings()[cardIndex].additionalInfo.getSiblings() as marketingInfo> 
282                                            <li>${marketingInfo.getData()}</li> 
283                                        </#list> 
284                                    </#if> 
285                                    <li><p>Annual Fee: ${AMF!''} <a 
286                                        href="${oadURL_TC}?step=display&offerId=${fib.offerId}&locationCode=${lc}" target="_blank">Terms & Conditions</a></p> 
287                                    </li> 
288                                </ul> 
289                            </div> 
290                        </div> 
291                    </#list> 
292                </div> 
293            </#if>  
294        </div> 
295 
296        <script> 
297            $(document).ready(function () { 
298                var tabs=$('.tab-nav'); 
299                var consumerSelector = '.jn-consumer-content-wrapper.jn-tab-content[data-id="consumerTab"]'; 
300                var businessSelector = '.jn-consumer-content-wrapper.jn-tab-content[data-id="businessTab"]'; 
301                if (tabs.length == 1) { 
302                    if ($(consumerSelector).length > 0) { 
303                        hideHeroAndDisclaimer('business'); 
304                        showHeroAndDisclaimer('consumer'); 
305                        changeCardLayout(consumerSelector); 
306                        renumberFootnote("consumer"); 
307                        createMetaTag("consumer"); 
308                    }  
309                    if ($(businessSelector).length > 0) { 
310                        $(businessSelector).addClass('active'); 
311                        hideHeroAndDisclaimer('consumer'); 
312                        showHeroAndDisclaimer('business'); 
313                        changeCardLayout(businessSelector); 
314                        renumberFootnote("business"); 
315                        createMetaTag("business"); 
316                    }  
317                }  
318                if (tabs.length == 2) { 
319                    renumberFootnote("consumer"); 
320                    renumberFootnote("business"); 
321                    createMetaTag("consumer"); 
322                    if ($(consumerSelector + ' .jn-consumer-item').length < 3) { 
323                        changeCardLayout(consumerSelector); 
324
325                    if ($(businessSelector + ' .jn-consumer-item').length < 3) { 
326                        changeCardLayout(businessSelector); 
327
328                    var tabsNav = document.querySelectorAll('.tab-nav'); 
329                    togglePrimaryNav(tabsNav); 
330
331 
332            }); 
333            // Primary Nav function 
334             
335            function togglePrimaryNav(elem) { 
336                for (var i = 0; i < elem.length; i++) { 
337                    elem[i].addEventListener("click", function(e) { 
338 
339                        var current = this, 
340                            allSections = document.querySelectorAll('[data-id]'), 
341                            section = document.querySelector("[data-id='"+ current.id +"']"); 
342 
343                        for (var a = 0; a < allSections.length; a++) { 
344                            allSections[a].classList.remove('active'); 
345
346                        for (var c = 0; c < elem.length; c++) { 
347                            if (current != elem[c]) { 
348                                elem[c].classList.remove('active'); 
349                            } else { 
350                                current.classList.add('active'); 
351                                section.classList.add('active'); 
352                                hideHeroAndDisclaimer('consumer'); 
353                                hideHeroAndDisclaimer('business'); 
354                                if(current.getAttribute('id') === "consumerTab"){ 
355                                    showHeroAndDisclaimer('consumer'); 
356                                } else if(current.getAttribute('id') === "businessTab"){ 
357                                    showHeroAndDisclaimer('business'); 
358
359
360
361                        e.preventDefault(); 
362                    }); 
363
364
365 
366            function renumberFootnote(type) { 
367                var discriptionSelector = '.jn-consumer-content-wrapper.jn-tab-content' + '[data-id="' + type + 'Tab"]'; 
368                var disclaimerSelector = '.tier2-disclaimer-landing-' + type; 
369                var heroSelector = '.tier2-hero-landing-' + type; 
370                var numOfFootnote = $(disclaimerSelector + ' sup').length; 
371                var showList = []; 
372                var hideList=[]; 
373                for (var i = 1; i <= numOfFootnote; i++) { 
374                var cssClass="tag-" + i; 
375                if ($(discriptionSelector + ' sup').hasClass(cssClass) || $(heroSelector + ' sup').hasClass(cssClass)) { 
376                    showList.push(i);      
377                } else { 
378                    hideList.push(i); 
379
380                }  
381                for (var i = 1; i < showList.length + 1; i++) { 
382                    if(showList[i-1] != i) { 
383                        var className="tag-" + showList[i-1]; 
384                        $(heroSelector).find("." +  className).html(i); 
385                        $(discriptionSelector).find("." +  className).html(i); 
386                        $(disclaimerSelector).find("." +  className).html(i); 
387
388
389                for (var i = 0; i <hideList.length; i++) { 
390                    var cname="tag-" + hideList[i]; 
391                    $(disclaimerSelector).find("." + cname).parent().hide(); 
392                }    
393
394 
395            function changeCardLayout(cssSelector) { 
396                var numOfCards = $(cssSelector + ' .jn-consumer-item').length; 
397                if(numOfCards == 1) { 
398                    $(cssSelector).addClass('one-card'); 
399                } else if (numOfCards == 2) { 
400                    $(cssSelector).addClass('two-card'); 
401                }   
402
403            function hideHeroAndDisclaimer(type) { 
404                try { 
405                    document.querySelector('.tier2-hero-landing-'+ type).classList.remove('show'); 
406                    document.querySelector('.tier2-hero-landing-'+ type).classList.add('hide'); 
407                } catch (e) { 
408                    console.log(e); 
409
410 
411                try { 
412                    document.querySelector('.tier2-disclaimer-landing-'+ type).classList.remove('show'); 
413                    document.querySelector('.tier2-disclaimer-landing-'+ type).classList.add('hide');  
414                } catch (e) { 
415                    console.log(e); 
416
417 
418
419            function showHeroAndDisclaimer(type) { 
420                try { 
421                    document.querySelector('.tier2-hero-landing-'+ type).classList.add('show'); 
422                    document.querySelector('.tier2-hero-landing-'+ type).classList.remove('hide'); 
423                } catch (e) { 
424                    console.log(e); 
425
426                 
427                try { 
428                    document.querySelector('.tier2-disclaimer-landing-'+ type).classList.add('show'); 
429                    document.querySelector('.tier2-disclaimer-landing-'+ type).classList.remove('hide');  
430                } catch (e) { 
431                    console.log(e); 
432
433 
434
435 
436        function createMetaTag(type) { 
437            var partnerName = "${partnerName!0}"; 
438            var product_name = $('.jn-hero-container .jn-button').data('product-name'); 
439            var metaDesc =""; 
440            if (type == "consumer") {             
441                if(product_name ==  "platinum") { 
442                    metaDesc = "Apply Today for a "+partnerName+" Credit Card. Limited Time Offer. 0% Intro APR on Purchases and Balance Transfers for 20 Billing Cycles Consolidate your Balances with the "+partnerName+" Intro APR Card."; 
443                } else if(product_name ==  "real-rewards") { 
444                    metaDesc = "Apply Today for a "+partnerName+" Credit Card. Take home 2,500 bonus points after your first purchase."; 
445                } else if(product_name ==  "secured") { 
446                    metaDesc = "Apply Today for a "+partnerName+" Credit Card. Use this card as a solid foundation to build your credit."; 
447
448 
449            } else if (type == "business") { 
450                if(product_name ==  "business-cashback") {               
451                    metaDesc = "Apply Today for a "+partnerName+" Credit Card. Earn Cash back on common business expenses."; 
452                } else if(product_name ==  "business-real-rewards") { 
453                    metaDesc = "Apply Today for a "+partnerName+" Credit Card. More choices. More value for your business."; 
454                } else if(product_name ==  "business-rewards-plus") { 
455                    metaDesc = "Apply Today for a "+partnerName+" Credit Card. Get more rewards in the categories you spend the most on."; 
456
457
458            var m = document.createElement('meta');  
459            m.name = 'description';  
460            m.content = metaDesc;  
461            document.head.appendChild(m); 
462
463             
464        </script>         
465        <script> 
466            document.addEventListener('DOMContentLoaded', function() { 
467                console.log('inside ready'); 
468                var page = location.pathname.split('/')[location.pathname.split('/').length-1]; 
469                var hostName = location.hostname; 
470                var preparerType = 'customer'; 
471                                     
472                function getDomainFromHostname(hostname) { 
473                    var parts = hostname.split('.'); 
474                    return parts.length === 3 ? parts[1] : parts[0]; 
475
476                var domain = getDomainFromHostname(hostName); 
477                var partnerName = "${partnerName!0}"; 
478                document.title = partnerName + " Credit Card Index Page"; 
479                var utag_data = window.utag_data || {}; 
480                var lc = '${lc!0}'; 
481 
482                var regex = /\d+/g; 
483                var bdNumber = "${bPhone!''}"; 
484                var phoneNum = bdNumber.match(regex); 
485                var areaCode = ""; 
486                var exchangeCode = ""; 
487                var num = ""; 
488                if(phoneNum != null) { 
489                    phoneNum = phoneNum.join(""); 
490                    areaCode = phoneNum.substring(0,3); 
491                    exchangeCode = phoneNum.substring(3,6); 
492                    num = phoneNum.substring(6,10); 
493
494                /* update SiteCatalyst data object */ 
495                utag_data.current_page = "microsite:${partnerName}:" + domain + ':' + page.replace('-',' '); 
496                utag_data.location_code = '${rLC!lc}'; 
497                utag_data.site_section = 'credit cards'; 
498                utag_data.platform = 'microsite'; 
499                utag_data.product = 'All Cards'; 
500                utag_data.partner_name = "${partnerName}"; 
501                utag_data.Banker_id = '${boeid}'; 
502                utag_data.Banker_code = '${bCode}'; 
503                utag_data.visitor_type = 'prospect'; 
504                utag_data.text_to_apply_source = '${text_to_apply_source}'; 
505                utag_data.page_type = 'product';  
506                utag_data.campaign_id = '${campaignId}';  
507 
508                /* SiteCatalyst  pageView tracking */ 
509                AUI().ready(function() { 
510                    if (window.publisherFW) { 
511                        //console.log('utag_data', utag_data); 
512                        window.publisherFW.publishEvent("pageView", utag_data); 
513
514                });                 
515                                         
516                $('.jn-button').removeAttr('disabled'); 
517                $('.jn-button').removeClass('jn-disabled'); 
518                 
519                jQuery('.applyNowLink').on('click', function(e){ 
520                    $(this).closest('.BAAForm').submit(); 
521                    ga("send", { 
522                        hitType: "event", 
523                        eventAction: "ApplyNow", 
524                        eventCategory: "click", 
525                        eventLabel: "BottomButton" 
526                    }); 
527                    return false; 
528                });                     
529                                         
530                jQuery('.BAAForm').on('submit', function(e){ 
531                    e.preventDefault(); 
532                    console.log('in custom submit'); 
533                    $(this).children('.appDataBAA').val('<?xml version="1.0"?>'+ 
534                        '<prefillData>'+  
535                        '<versionNumber>1.0</versionNumber>'+  
536                        '<applicationData>'+  
537                        '<bankerInformation>'+  
538                        '<locationCode>${rLC!0}</locationCode>'+ 
539                        '<originatingBranchNumber>'+'${bName!"0"}'+'</originatingBranchNumber>'+ 
540                        '<employeeID>${boeid!0}</employeeID>'+ 
541                        '<name>' + 
542                        '<first>'+'${bFName!"0"}'+'</first>' + 
543                        '<last>'+'${bLName!"0"}'+'</last>' + 
544                        '</name>'+ 
545                        '<phone>' + 
546                        '<areaCode>'+areaCode+'</areaCode>'+  
547                        '<exchange>'+exchangeCode+'</exchange>'+ 
548                        '<number>'+num+'</number>'+  
549                        '</phone>'+  
550                        '</bankerInformation>'+  
551                        '</applicationData>'+  
552                        '</prefillData>' 
553                    ); 
554                    var buttonName = $(this).find('.apply-now-button').data('button-name'); 
555                    var productName = $(this).find('.apply-now-button').data('product-name'); 
556                    /* SiteCatalyst  onClick tracking */ 
557                    utag_data.apply_button = buttonName; 
558                    utag_data.product = productName; 
559 
560                        if (window.publisherFW) { 
561                           // console.log('clicked', utag_data); 
562                            window.publisherFW.publishEvent("onClick", utag_data); 
563
564 
565 
566                    this.submit(); 
567                }); 
568 
569                 
570            }); 
571        </script>                         
572    </#if>        
573</#if> 

Visa artiklar

Fel uppstod under bearbetning av mallen.
Expression qstringmap["bankercode"] is undefined on line 5, column 17 in 10154#10192#153411705.
1<#assign url = request.attributes.CURRENT_URL > 
2<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
3<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
4 
5<#assign bCode= qstringmap["bankercode"]?first> 
6<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
7<#list bData as b>      
8    <#assign lc = b.locationcode > 
9    <#assign rLC = b.reallocationcode > 
10    <#assign mappedLC = b.mappedLocationCode > 
11</#list>  
12<#if mappedLC?has_content> 
13    <#assign lc = mappedLC > 
14</#if> 
15<#assign prefix = "00000" > 
16<#assign lcWithPrefix = prefix + lc > 
17<#assign withPrefixLength = lcWithPrefix?length > 
18<#assign startHere = withPrefixLength - 5> 
19<#assign lc = lcWithPrefix?substring(startHere)> 
20<#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
21<#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
22 
23<#assign clientProfile = clientProfileList?first>  
24<#assign partnerName=clientProfile.getMarketingNameLong()> 
25 
26 
27<div class="content-container" title="${partnerName} - Disclaimer"> 
28    <div class="jn-disclaimer tier2-disclaimer-${class.getData()}"> 
29        ${content.getData()} 
30    </div> 
31</div> 

Visa artiklar

Fel uppstod under bearbetning av mallen.
Expression qstringmap["bankercode"] is undefined on line 5, column 17 in 10154#10192#153411705.
1<#assign url = request.attributes.CURRENT_URL > 
2<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
3<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
4 
5<#assign bCode= qstringmap["bankercode"]?first> 
6<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
7<#list bData as b>      
8    <#assign lc = b.locationcode > 
9    <#assign rLC = b.reallocationcode > 
10    <#assign mappedLC = b.mappedLocationCode > 
11</#list>  
12<#if mappedLC?has_content> 
13    <#assign lc = mappedLC > 
14</#if> 
15<#assign prefix = "00000" > 
16<#assign lcWithPrefix = prefix + lc > 
17<#assign withPrefixLength = lcWithPrefix?length > 
18<#assign startHere = withPrefixLength - 5> 
19<#assign lc = lcWithPrefix?substring(startHere)> 
20<#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
21<#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
22 
23<#assign clientProfile = clientProfileList?first>  
24<#assign partnerName=clientProfile.getMarketingNameLong()> 
25 
26 
27<div class="content-container" title="${partnerName} - Disclaimer"> 
28    <div class="jn-disclaimer tier2-disclaimer-${class.getData()}"> 
29        ${content.getData()} 
30    </div> 
31</div> 

Visa artiklar

Fel uppstod under bearbetning av mallen.
Expression qstringmap["bankercode"] is undefined on line 7, column 17 in 10154#10192#153411717.
1<#assign url = request.attributes.CURRENT_URL > 
2<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
3<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
4<#assign url404 = '/error/404.html'> 
5 
6 
7<#assign bCode= qstringmap["bankercode"]?first> 
8<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
9<#list bData as b>   
10 
11    <#assign lc = b.locationcode > 
12    <#assign rLC = b.reallocationcode > 
13    <#assign mappedLC = b.mappedLocationCode > 
14</#list>  
15<#if mappedLC?has_content> 
16    <#assign lc = mappedLC > 
17</#if> 
18 
19<#if lc?has_content> 
20    <#assign prefix = "00000" > 
21    <#assign lcWithPrefix = prefix + lc > 
22    <#assign withPrefixLength = lcWithPrefix?length > 
23    <#assign startHere = withPrefixLength - 5> 
24    <#assign lc = lcWithPrefix?substring(startHere)> 
25 
26   <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
27   <#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
28    <#assign clientProfile = clientProfileList?first> 
29    <#assign pbu = clientProfile.getPbu()> 
30    <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
31    <#assign partnerName=clientProfile.getMarketingNameLong()> 
32    <#assign clientDataService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcPbuLocalService") > 
33    <#assign clientProfileDataList = clientDataService.getByPbuAndSubBu(pbu,subbu)> 
34    <#assign partnerUrl = clientProfileDataList.getPartnerMainUrl()> 
35    <#if partnerUrl?has_content && !partnerUrl?matches(r"(?i)^https?\:\/\/.*") && !partnerUrl?matches(r"(?i)^https?\:&#x2F;&#x2F;.*")> 
36        <#assign partnerUrl = 'https://' + partnerUrl> 
37    </#if> 
38    <footer class="footer bg-color-black text-color-white"> 
39        ${footerContent.getData()} 
40    </footer> 
41    <script>                 
42            document.querySelector('.footer .copyright').classList.add('ecdma-footer-client-name-copyright'); 
43            document.querySelector('.footer .fdic').innerHTML = "<p><a class='text-color-white' href='https://www.myaccountaccess.com/onlineCard/publicPrivacyPolicy.do?loc=${lc!0}' target='_blank'>Privacy and Security</a></p>"; 
44            var newNode = document.createElement("div");  
45            newNode.classList.add("member-agreement"); 
46            newNode.innerHTML='<p><a class="text-color-white" href="https://online1.elancard.com/oad/cmas.controller?locationCode=${lc!0}&preparerType=customer&isNewRequest=false" target="_blank">Cardmember Agreements</a></p>'; 
47            var fdicNode = document.querySelector('.footer .fdic'); 
48            var parent = fdicNode.parentNode; 
49            parent.insertBefore(newNode, fdicNode); 
50    </script> 
51    <#if partnerUrl?has_content> 
52        <script> 
53            document.querySelector('.copyright .homelink').innerHTML="<a class='text-color-white' href='${partnerUrl!''}' title='${partnerName!''}' target='_blank'>Home</a>"; 
54        </script> 
55    </#if> 
56</#if>