Hiển thị bài viết tin tức

Hiển thị bài viết tin tức

Có lỗi xảy ra trong quá trình xử lý biểu mẫu.
Expression bankercode is undefined on line 44, column 6 in 10154#10192#153411711.
1<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService") > 
2<#assign url404 = '/error/404.html' > 
3<#assign oadURL = propsUtil.get('elan.oad.url') > 
4<#assign url = request.attributes.CURRENT_URL > 
5<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
6 
7<#if qstringmap["ecid"]?has_content> 
8    <#assign ecidExt="&ecid="+qstringmap["ecid"]?first> 
9<#else> 
10    <#assign ecidExt=""> 
11</#if> 
12 
13<#if qstringmap["bankercode"]?has_content> 
14    <#assign bankercode= qstringmap["bankercode"]?first> 
15 
16    <#assign fiData= utilServ.makeCall('crcDDCBankerAssistedApp','0&'+bankercode)> 
17    <#if fiData?first?has_content> 
18        <#assign fi = fiData?first> 
19        <#if ((fi.projectId == "12") || (fi.projectId == "13") || (fi.projectId == "14"))> 
20            <#assign subbu_special = fi.offerId> 
21        </#if> 
22    </#if>  
23 
24    <#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bankercode)> 
25    <#list bData as b>         
26      <#assign rLC = b.reallocationcode > 
27      <#assign lc = b.locationcode > 
28      <#assign mappedLC = b.mappedLocationCode > 
29    </#list>     
30<#else> 
31    <script> 
32        console.log("MainProductBcode missing"); 
33        //location.href = '${url404}'; 
34    </script> 
35</#if> 
36 
37<#if url?contains('12t1')> 
38    <#assign tier = '12t1'> 
39<#elseif url?contains('11t1')> 
40    <#assign tier = '11t1'> 
41<#elseif url?contains('11t2')> 
42    <#assign tier = '11t2'> 
43</#if> 
44<#if bankercode?starts_with("amp") && (url?contains("11t1m"))> 
45    <#assign ameriprise = true> 
46<#else> 
47    <#assign ameriprise = false> 
48</#if> 
49<#if ameriprise> 
50    <#assign tier = '11t1m'> 
51</#if> 
52<#assign environment = url?replace('/${tier}.*','','r')> 
53 
54 
55<#if mappedLC?has_content && !ameriprise> 
56    <#assign lc = mappedLC > 
57</#if> 
58 
59<#if lc?has_content> 
60    <#assign prefix = "00000" > 
61    <#assign lcWithPrefix = prefix + lc > 
62    <#assign withPrefixLength = lcWithPrefix?length > 
63    <#assign startHere = withPrefixLength - 5> 
64    <#assign lc = lcWithPrefix?substring(startHere)> 
65    <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
66    <#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
67 
68    <#assign clientProfile = clientProfileList?first> 
69    <#assign partnerName = clientProfile.getMarketingNameLong()> 
70    <#assign logoFileName = clientProfile.getLogoBFormat1()?replace(".", "-")?replace("-([^-]*)$", ".$1", "r")?lower_case> 
71    <#assign cdnLogoUrl = propsUtil.get('rackspace.cdn.web.url')> 
72      
73    <#assign pbu = clientProfile.getPbu()> 
74    <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
75    <script> 
76        console.log('pbu', '${pbu!''}'); 
77        console.log('subbu', '${subbu!''}'); 
78        console.log('url', '${url!''}'); 
79        console.log('environ', '${environment!''}'); 
80        console.log('tier', '${tier!''}'); 
81    </script>       
82    <#assign optoutData = utilServ.makeCall('crc_DDCSAAOptOut',pbu+'&'+subbu)> 
83    <#if (optoutData?size == 0)> 
84        <#if (subbu_special?has_content)> 
85            <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&' + pbu + '&' + subbu_special)>  
86            <script> 
87                console.log('new subbu', '${subbu_special!''}'); 
88            </script>  
89        <#else> 
90            <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&' + pbu + '&' + subbu)>  
91        </#if> 
92        <#assign clientDataService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcPbuLocalService") > 
93        <#assign clientProfileDataList = clientDataService.getByPbuAndSubBu(pbu,subbu)> 
94        <#assign partnerUrl = clientProfileDataList.getPartnerMainUrl()> 
95        <#if partnerUrl?has_content && !partnerUrl?matches(r"(?i)^https?\:\/\/.*")>             
96            <#assign partnerUrl = 'https://' + partnerUrl> 
97        </#if> 
98        <#if (fiCardsData?size > 0)> 
99            <#assign temp = []> 
100            <#assign offerTypeList = []>        
101            <#assign index = 0> 
102            <#list fiCardsData as fib> 
103                <#if (fib.offerType?has_content && !(offerTypeList?seq_contains(fib.offerType)))>  
104                    <#assign offerTypeList = offerTypeList + [fib.offerType]>                   
105                    <#assign temp = temp + fiCardsData[index..index]>  
106                </#if>  
107                <#assign index = index + 1> 
108            </#list>  
109            <#assign fiCardsData = temp> 
110            <#if !(fiCardsData?size > 0)>  
111                <script> 
112                    console.log("empty card/offerType List"); 
113                    //location.href = '${url404}'; 
114                </script> 
115            </#if> 
116            <#if ameriprise> 
117                <#assign lc_used = mappedLC>  
118            <#else> 
119                <#assign lc_used = lc>  
120            </#if>             
121            <div class="content-container content-container-main" title="${partnerName!''}"> 
122                <header class="jn-header"> 
123                    <div class="back-overview hide-desktop">  
124                        <a  href="${environment}/${tier}/index?bankercode=${bankercode}&ecdma-lc=${lc_used}${ecidExt}">Home</a> 
125                    </div>   
126                    <div class="header-main-logo" title="${partnerName!''}"> 
127                        <#if partnerUrl?has_content> 
128                            <a href="${partnerUrl!''}" title="${partnerName!''}"> 
129                            <img src="${cdnLogoUrl!''}/${logoFileName!''}" alt="${partnerName!''}">  
130                            </a> 
131                        <#else> 
132                            <a title="${partnerName!''}"> 
133                            <img src="${cdnLogoUrl!''}/${logoFileName!''}" alt="${partnerName!''}"> 
134                            </a> 
135                        </#if> 
136                    </div> 
137                     
138                    <div class="styled-select slate"> 
139                        <select> 
140                            <#list fiCardsData as fib> 
141                                <#if ameriprise> 
142                                    <#if (fib.offerType=="101")> 
143                                        <#assign productURL="premier-visa-signature"> 
144                                        <#assign productName="Ameriprise Premier Visa Signature"> 
145                                    <#elseif (fib.offerType=="103")>      
146                                        <#assign productURL = "visa-signature"> 
147                                        <#assign productName = "Ameriprise Visa Signature">                              
148                                    </#if> 
149                                <#else> 
150                                    <#if (fib.offerType=="108" || fib.offerType=="109")> 
151                                        <#assign productURL="consumer-platinum2103"> 
152                                        <#assign productName="Platinum Card"> 
153                                    <#elseif (fib.offerType=="104")> 
154                                        <#assign productURL = "max-cash"> 
155                                        <#assign productName = "Max Cash Preferred Card"> 
156                                    <#elseif (fib.offerType=="101" || fib.offerType=="103")> 
157                                        <#assign productURL = "real-rewards"> 
158                                        <#assign productName = "Real Rewards Card"> 
159                                    <#elseif fib.offerType == "115"> 
160                                        <#assign productURL = "secured"> 
161                                        <#assign productName = "Secured Card" > 
162                                    <#elseif fib.offerType == "144"> 
163                                        <#assign productURL = "smart-business-rewards"> 
164                                        <#assign productName = "Smart Business Rewards Card" >                                             
165                                    <#elseif fib.offerType == "128"> 
166                                        <#assign productURL = "business-cashback"> 
167                                        <#assign productName = "Business Cash Card" > 
168                                    <#elseif fib.offerType == "143"> 
169                                        <#assign productURL = "business-real-rewards"> 
170                                        <#assign productName = "Business Real Rewards Card" > 
171                                    <#elseif fib.offerType == "121"> 
172                                        <#assign productURL = "business-platinum2103"> 
173                                        <#assign productName = "Business Card" > 
174                                    </#if> 
175                                </#if> 
176                                <#if url?matches(".*/${productURL}.*")> 
177                                    <option value="${environment}/${tier}/${productURL}?bankercode=${bankercode}&ecdma-lc=${lc_used}${ecidExt}" selected="selected">${productName}</option>                                             
178                                <#else> 
179                                    <option value="${environment}/${tier}/${productURL}?bankercode=${bankercode}&ecdma-lc=${lc_used}${ecidExt}">${productName}</option> 
180                                </#if> 
181                            </#list> 
182                        </select> 
183                        <div class="styled-select__dropdown"> 
184                            <div class="back-overview hide-mobile">  
185                                <a  href="${environment}/${tier}/index?bankercode=${bankercode}&ecdma-lc=${lc_used}${ecidExt}">Home</a> 
186                            </div>   
187                            <div class="dropdown-select"> 
188                                <span class="selected-option"></span>  
189                                <div class="jn-arrow arrow arrow-right"></div> 
190                            </div> 
191                        </div> 
192                        <div class="jn-hamburger hamburger"> 
193                            <div class="first-line transform transformed1"></div> 
194                            <div></div> 
195                            <div class="transform transformed2"></div> 
196                            <div></div> 
197                        </div> 
198                        <ul> 
199                            <#list fiCardsData as fib> 
200                                <#if ameriprise> 
201                                    <#if (fib.offerType=="101")> 
202                                        <#assign productURL="premier-visa-signature"> 
203                                        <#assign productName="Ameriprise Premier Visa Signature"> 
204                                    <#elseif (fib.offerType=="103")>      
205                                        <#assign productURL = "visa-signature"> 
206                                        <#assign productName = "Ameriprise Visa Signature">                              
207                                    </#if> 
208                                <#else> 
209                                    <#if (fib.offerType=="108" || fib.offerType=="109")> 
210                                        <#assign productURL="consumer-platinum2103"> 
211                                        <#assign productName="Platinum Card"> 
212                                    <#elseif (fib.offerType=="104")> 
213                                        <#assign productURL = "max-cash"> 
214                                        <#assign productName = "Max Cash Preferred Card"> 
215                                    <#elseif (fib.offerType=="101" || fib.offerType=="103")> 
216                                        <#assign productURL = "real-rewards"> 
217                                        <#assign productName = "Real Rewards Card"> 
218                                    <#elseif fib.offerType == "115"> 
219                                        <#assign productURL = "secured"> 
220                                        <#assign productName = "Secured Card" > 
221                                    <#elseif fib.offerType == "144"> 
222                                        <#assign productURL = "smart-business-rewards"> 
223                                        <#assign productName = "Smart Business Rewards Card" >                                             
224                                    <#elseif fib.offerType == "128"> 
225                                        <#assign productURL = "business-cashback"> 
226                                        <#assign productName = "Business Cash Card" > 
227                                    <#elseif fib.offerType == "143"> 
228                                        <#assign productURL = "business-real-rewards"> 
229                                        <#assign productName = "Business Real Rewards Card" > 
230                                    <#elseif fib.offerType == "121"> 
231                                        <#assign productURL = "business-platinum2103"> 
232                                        <#assign productName = "Business Card" > 
233                                    </#if> 
234                                </#if> 
235                                <#if url?matches(".*/${productURL}.*")> 
236                                    <li class="selected" data-value="${productName}"><a href="javascript:void(0)">${productName}</a></li>  
237                                <#else> 
238                                    <li class="dropdown-item" data-value="${productName}"><a href="${environment}/${tier}/${productURL}?bankercode=${bankercode}&ecdma-lc=${lc_used}${ecidExt}" title="${productName}">${productName}</a></li> 
239                                </#if> 
240                            </#list> 
241                        </ul> 
242                    </div> 
243                </header> 
244            </div>  
245            <script> 
246                var page = location.pathname.split('/')[location.pathname.split('/').length-1]; 
247                var partnerName = "${partnerName!0}"; 
248                var metaDesc = ""; 
249                switch (page) { 
250                    case "consumer-platinum2103": 
251                        document.title = "The purchasing power of Zero | "+partnerName+" Platinum Card"; 
252                        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."; 
253                        break; 
254                    case "max-cash": 
255                        document.title = "Earn a $150 Bonus and 5% cash back | "+partnerName+" Max Cash Preferred Card"; 
256                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Earn a $150 Bonus and 5% cash back on the two categories you select"; 
257                        break; 
258                    case "real-rewards": 
259                        document.title = "Sign up and earn bonus points | "+partnerName+" Real Rewards Card"; 
260                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Take home 2,500 bonus points after your first purchase."; 
261                        break; 
262                    case "secured": 
263                        document.title = "Strengthen your finances | "+partnerName+" Secured Card"; 
264                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Use this card as a solid foundation to build your credit."; 
265                        break; 
266                    case "smart-business-rewards": 
267                        document.title = "2X rewards in your top 2 spend categories | "+partnerName+" Business Smart Business Rewards Card"; 
268                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. More choices. More value for your business. Earn a $200 Bonus and 2x Rewards on your top 2 spend categories each month with the "+partnerName+" Credit Card."; 
269                        break; 
270                    case "business-cashback": 
271                        document.title = "Flexible rewards for your business | "+partnerName+" Business Cash Card"; 
272                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Earn Cash back on common business expenses."; 
273                        break; 
274                    case "business-real-rewards": 
275                        document.title = "Earn up to 3X points with no caps | "+partnerName+" Business Real Rewards Card"; 
276                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Get more rewards in the categories you spend the most on." ; 
277                        break; 
278                    case "business-platinum2103": 
279                        document.title = "Pay down your other credit card balances faster | "+partnerName+" Business Card"; 
280                        metaDesc = "Apply Today for a "+partnerName+" Business Card. 0% Intro APR on Purchases and Balance Transfers for 15 Billing Cycles"; 
281                        break; 
282                    case "premier-visa-signature": 
283                        document.title = "Exclusively for Ameriprise clients | Ameriprise® Premier Visa Signature® Card"; 
284                        metaDesc = "Apply Today for an Ameriprise Financial Credit Card. Earn Rewards Points worth $375 cash value when deposited into an eligible account after spending $3,000 in eligible net purchases within the first 90 days of account opening."; 
285                        break; 
286                    case "visa-signature": 
287                        document.title = "Exclusively for Ameriprise clients | Ameriprise® Visa Signature® Card"; 
288                        metaDesc = "Apply Today for an Ameriprise Financial Credit Card. Earn Rewards Points worth $250 cash value when deposited into an eligible Ameriprise account after spending $2,000 in eligible net purchases within the first 90 days of account opening."; 
289                        break;                                                                                                 
290
291                if (metaDesc.length > 0) { 
292                    var m = document.createElement('meta');  
293                    m.name = 'description';  
294                    m.content = metaDesc;  
295                    document.head.appendChild(m); 
296
297 
298                document.addEventListener('DOMContentLoaded', function() { 
299                    var pageSelected = $('.selected').attr('data-value'); 
300                    $('.jn-hamburger, .dropdown-select').click(function () { 
301                        $('.styled-select').toggleClass('show-select'); 
302                    }); 
303                    $('.selected-option').text(pageSelected); 
304                }); 
305            </script> 
306         
307        <#else> 
308            <script> 
309                console.log("FI Cards Data empty"); 
310                location.href = '${url404}'; 
311            </script> 
312        </#if>   
313    <#else> 
314        <script> 
315            console.log("FI opt out"); 
316            //location.href = '${url404}'; 
317        </script> 
318    </#if>  
319<#else> 
320    <script> 
321        console.log("location code empty"); 
322        //location.href = '${url404}'; 
323    </script> 
324</#if> 

Hiển thị bài viết tin tức

Có lỗi xảy ra trong quá trình xử lý biểu mẫu.
Expression bCode is undefined on line 65, column 6 in 10154#10192#154098141.
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 url404 = '/error/404.html' > 
5<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
6<#if url?contains('12t1')> 
7    <#assign tier = '12t1'> 
8<#elseif url?contains('11t1')> 
9    <#assign tier = '11t1'> 
10<#elseif url?contains('11t2')> 
11    <#assign tier = '11t2'> 
12</#if> 
13<#assign environment = url?replace('/${tier}.*','','r')> 
14<#assign oadURL_TC = 'https://uat-online1.elancard.com/oad/terms.controller' > 
15 
16<#if oadURL?contains("uat-")> 
17    <#assign oadURL_TC = 'https://uat-online1.elancard.com/oad/terms.controller' > 
18<#else> 
19    <#assign oadURL_TC = 'https://online1.elancard.com/oad/terms.controller' > 
20</#if> 
21<#--  check bankercode validity  --> 
22 
23<#if qstringmap["bankercode"]?has_content> 
24    <#assign bCode= qstringmap["bankercode"]?first> 
25 
26    <#assign fiData= utilServ.makeCall('crcDDCBankerAssistedApp','0&'+bCode)> 
27    <#if fiData?first?has_content> 
28        <#assign fi = fiData?first> 
29        <#if (fi.projectId == "12" || fi.projectId == "13" || fi.projectId == "14")> 
30            <#assign subbu_special = fi.offerId> 
31        </#if> 
32    </#if>       
33    <#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
34    <#list bData as b> 
35      <#assign lc = b.locationcode > 
36      <#assign bName = b.branch > 
37      <#assign bPhone = b.businessphone > 
38      <#assign boeid = b.oeid > 
39      <#assign fName = b.firstname?trim> 
40      <#assign lName = b.lastname?trim> 
41      <#assign rlc = b.reallocationcode > 
42      <#assign mappedLC = b.mappedLocationCode > 
43    </#list> 
44<#else> 
45    <script> 
46        console.log("MainProductBcode missing"); 
47        //location.href = '${url404}'; 
48    </script> 
49</#if> 
50 
51<#assign text_to_apply_source = "vanity url" > 
52<#if qstringmap["sms"]?has_content> 
53    <#assign sms = 1 > 
54    <#assign text_to_apply_source = "sms" > 
55</#if> 
56<#if qstringmap["qrCode"]?has_content> 
57    <#assign text_to_apply_source = "qr code" > 
58</#if> 
59<#assign campaignId = "" > 
60<#assign ecidExt=""> 
61<#if qstringmap["ecid"]?has_content> 
62    <#assign campaignId = qstringmap["ecid"]?first > 
63    <#assign ecidExt="&ecid="+qstringmap["ecid"]?first> 
64</#if> 
65<#if bCode?starts_with("amp") && (url?contains("11t1m"))> 
66    <#assign ameriprise = true> 
67<#else> 
68    <#assign ameriprise = false> 
69</#if> 
70 
71<#if mappedLC?has_content && !ameriprise> 
72    <#assign lc = mappedLC > 
73</#if> 
74 
75 
76 
77<#if lc?has_content> 
78 
79    <#assign firstNameLength = fName?length > 
80    <#assign lastNameLength = lName?length > 
81    <#if firstNameLength + lastNameLength &gt; 19 > 
82        <#if lastNameLength &gt; 18 > 
83            <#assign bLName = lName?substring(0,18)> 
84        <#else> 
85            <#assign bLName = lName> 
86        </#if> 
87        <#assign maxFirstName = 19 - bLName?length > 
88        <#if firstNameLength &gt; maxFirstName > 
89            <#assign bFName = fName?substring(0,maxFirstName)> 
90        <#else> 
91            <#assign bFName = fName> 
92        </#if> 
93    <#else> 
94        <#assign bFName = fName > 
95        <#assign bLName = lName > 
96    </#if> 
97       
98 
99    <#assign prefix = "00000" > 
100    <#assign lcWithPrefix = prefix + lc > 
101    <#assign withPrefixLength = lcWithPrefix?length > 
102    <#assign startHere = withPrefixLength - 5> 
103    <#assign lc = lcWithPrefix?substring(startHere)> 
104 
105    <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
106    <#assign clientProfileList = clientProfileService.findByLocationCode(lc)>     
107 
108    <#if clientProfileList?first?has_content> 
109        <#assign clientProfile = clientProfileList?first> 
110        <#assign partnerName = clientProfile.getMarketingNameLong()> 
111        <#assign pbu = clientProfile.getPbu()> 
112        <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
113        <#assign optoutData = utilServ.makeCall('crc_DDCSAAOptOut',pbu+'&'+subbu)> 
114        <#if (optoutData?size == 0)>                 
115            <#assign clientDataService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcPbuLocalService") > 
116            <#assign clientProfileDataList = clientDataService.getByPbuAndSubBu(pbu,subbu)> 
117            <#assign partnerUrl = clientProfileDataList.getPartnerMainUrl()> 
118            <#if partnerUrl?has_content && !partnerUrl?matches(r"(?i)^https?\:\/\/.*")>             
119                <#assign partnerUrl = 'https://' + partnerUrl> 
120            </#if> 
121            <#assign logoFileName = clientProfile.getLogoBFormat1()?replace(".", "-")?replace("-([^-]*)$", ".$1", "r")?lower_case> 
122            <#assign cdnLogoUrl = propsUtil.get('rackspace.cdn.web.url')> 
123             
124            <#if pbu == "0864054"> 
125                <#assign override = "berkshire"> 
126            <#else> 
127                <#assign override = " "> 
128            </#if> 
129             
130            <#--  this one should be delete for prod  --> 
131                 
132            <#assign cdnCardArtUrl = propsUtil.get('rackspace.cdn.cardart.url')> 
133            <#assign pageClass = secondaryBackgroundImage.cardType.getData()> 
134             
135            <#if (subbu_special?has_content)> 
136                <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&' + pbu + '&' + subbu_special)>  
137            <#else> 
138                <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&' + pbu + '&' + subbu)>  
139            </#if> 
140 
141 
142            <#assign temp = []> 
143            <#assign offerTypeList = []>      
144            <#assign index = 0> 
145            <#list fiCardsData as fib> 
146                <#if !(offerTypeList?seq_contains(fib.offerType))>  
147                    <#assign offerTypeList = offerTypeList + [fib.offerType]>                   
148                    <#assign temp = temp + fiCardsData[index..index]>  
149                </#if>  
150                <#assign index = index + 1>                
151            </#list>  
152            <#assign fiCardsData = temp> 
153            <#if (fiCardsData?size > 0)>   
154                <#if (subbu_special?has_content)> 
155                    <#assign lc_used = fiCardsData?first.WebLocationCode>   
156                <#else> 
157                    <#if ameriprise> 
158                        <#assign lc_used = mappedLC>  
159                    <#else> 
160                        <#assign lc_used = lc>  
161                    </#if> 
162                </#if> 
163 
164                <#list fiCardsData as fib> 
165                    <#if ameriprise> 
166                        <#if (fib.offerType=="101")> 
167                            <#assign productURL="premier-visa-signature"> 
168                            <#assign productName="Premier Visa Signature"> 
169                            <#assign productClass="ameriprise-premier-visa-signature"> 
170                        <#elseif (fib.offerType=="103")>      
171                            <#assign productURL = "visa-signature"> 
172                            <#assign productName = "Visa Signature">   
173                            <#assign productClass="ameriprise-visa-signature">                            
174                        </#if> 
175                    <#else>                     
176                        <#if (fib.offerType=="108") || (fib.offerType=="109")> 
177                            <#assign productURL="consumer-platinum2103"> 
178                            <#assign productName="Platinum"> 
179                        <#elseif (fib.offerType=="104")>    
180                            <#assign productURL = "max-cash"> 
181                            <#assign productName="Max Cash Preferred">                              
182                        <#elseif (fib.offerType=="101") || (fib.offerType=="103")> 
183                            <#assign productURL = "real-rewards"> 
184                            <#assign productName="Real Rewards"> 
185                        <#elseif fib.offerType == "115"> 
186                            <#assign productURL = "secured"> 
187                            <#assign productName="Secured"> 
188                        <#elseif fib.offerType == "144"> 
189                            <#assign productURL = "smart-business-rewards"> 
190                            <#assign productName="Smart Business Rewards">                                 
191                        <#elseif fib.offerType == "128"> 
192                            <#assign productURL = "business-cashback"> 
193                            <#assign productName="Business Cash"> 
194                        <#elseif fib.offerType == "143"> 
195                            <#assign productURL = "business-real-rewards"> 
196                            <#assign productName="Business Real Rewards"> 
197                        <#elseif fib.offerType == "121"> 
198                            <#assign productURL = "business-platinum2103"> 
199                            <#assign productName="Business"> 
200                        </#if>  
201                    </#if>                    
202                    <#assign cardArtImage = cdnCardArtUrl + "/" + fib.filename + ".png"> 
203                    <#assign cardArtImageAlt = cdnCardArtUrl + "/"+fib.filename+".jpg">   
204                    <#assign newSourceCode = fib.sourceCode>  
205                    <#assign newOfferId = fib.offerId>  
206                    <#if url?matches(".*/${productURL}.*")> 
207                        <#assign sdata = utilServ.makeCall('crcDDCGetSchumerBox', newOfferId + '&' + newSourceCode)> 
208                        <#if (sdata?size > 0)>   
209                            <#if (productURL=="consumer-platinum2103" && !ameriprise)> 
210                                <#assign apr = "">                         
211                                <#list sdata as d> 
212                                    <#if (d.scrapedLabel?contains("Annual Percentage Rate (APR) for Purchases") && (d.scrapedValue?has_content))> 
213                                        <#assign apr = d.scrapedValue?replace("(\n|\r\n|\r)+", " ","r")> 
214                                        <script> 
215                                            console.log("scraped data exists"); 
216                                            console.log("APR", '${apr}') 
217                                        </script> 
218                                        <#break> 
219                                    </#if> 
220                                </#list> 
221                                <script> 
222                                        $(document).ready(function () { 
223                                            var aprText = "${apr}"; 
224                                            if (aprText) { 
225                                                var matches= aprText.match(/\d+(\.\d+)?%?/g); 
226                                                var billing_cycle = ""; 
227                                                var apr_min = ""; 
228                                                var apr_max = ""; 
229                                                if (aprText.indexOf("Platinum:") != -1) { 
230                                                    billing_cycle = matches[1]; 
231                                                    apr_min = matches[2]; 
232                                                    apr_max = matches[3]; 
233
234                                                if (billing_cycle) { 
235                                                    $(".scraped-billing-cycle").html(billing_cycle); 
236
237                                                if (apr_min) { 
238                                                    $(".scraped-apr-min").html(apr_min); 
239
240                                                if (apr_max) { 
241                                                    $('.scraped-apr-max').html(apr_max); 
242
243
244                                        }); 
245                                </script> 
246                                 
247                            </#if>                                 
248                        <#else>     
249                            <script> 
250                                console.log("scraped data missing"); 
251                            </script> 
252                        </#if>   
253                        <#if ameriprise> 
254                            <#assign card_art_alt =  partnerName + " " + productName + " " + " Card"> 
255                            <#assign rollover_text =  partnerName + " " + productName + " " + " Card"> 
256                        <#else> 
257                            <#assign card_art_alt = partnerName> 
258                            <#assign rollover_text =  partnerName + " " + productName + " " + " Credit Card"> 
259                            <#assign card_text = productName + " Card"> 
260                        </#if> 
261                        <div class="hero-container ${pageClass} ${productClass!''}" title="${rollover_text!''}"> 
262                            <div class="hero-main"> 
263                                 
264                                <div class="hero-main-container"> 
265                                    <div class="hero-main-offer"> 
266                                        <div class="offer-header"> 
267                                            <div class="offer-text-top"> 
268                                                <div class="offer-title"> 
269                                                    ${primaryHeadlineText.getData()} 
270                                                </div> 
271                                                <div class="offer-subtitle"> 
272                                                    ${primaryHeadlineFeature.getData()} 
273                                                </div> 
274                                            </div> 
275                                            <div class="offer-text-bottom hide-mobile"> 
276                                                <div class="offer-detail-text text-color-default "> 
277                                                    ${primaryHeadlineFeatureTop.getData()} 
278                                                    ${primaryHeadlineFeatureBottom.getData()} 
279                                                </div> 
280                                                <a id="oadSecButton-top" data-button-name="cta-button-bottom" title="Apply Now for ${rollover_text!'Credit Card'}" class="jn-button banner-cta-apply-button">${optionalCtaText.getData()}</a> 
281                                            </div> 
282                                        </div> 
283                                        <div class="offer-detail"> 
284                                            <div class="offer-detail-cardArt cardArtImg"> 
285                                                  <img src="${cardArtImage!''}" alt="${card_art_alt!''}" title="${card_art_alt!''}" onerror="this.onerror=null;this.src='${cardArtImageAlt!''}'">  
286                                                    <p>${card_text!''}</p> 
287                                            </div> 
288                                            <div class="offer-detail-text text-color-default hide-desktop"> 
289                                                ${primaryHeadlineFeatureTop.getData()} 
290                                                ${primaryHeadlineFeatureBottom.getData()} 
291                                            </div> 
292                                            <#if (fiCardsData?size > 0)>  
293                                                 
294                                                <form class="form1 hide-desktop" action='${oadURL}?locationCode=${lc_used}&offerId=${newOfferId}&preparerType=customer&sourceCode=${newSourceCode}' method="post" id="BAAForm"> 
295                                                    <label for="appDataBAA" style="position:absolute; clip:rect(0 0 0 0);">Application Data</label> 
296                                                    <textarea rows="20" cols="100" name="applicationData" id="appDataBAA" style="display:none;"></textarea> 
297                                                    <input type="submit" data-button-name="cta-button-top" title="Apply Now for ${rollover_text!'Credit Card'}" class="jn-button apply-button button-bg-color-custom" value="${ctaText.getData()}" disabled /> 
298                                                </form> 
299                                            <#else> 
300                                                <form class="form2 hide-desktop" action='${oadURL}?locationCode=${lc_used}&offerId=${offerId}&preparerType=customer&sourceCode=${sourceCode}' method="post" id="BAAForm"> 
301                                                    <label for="appDataBAA" style="position:absolute; clip:rect(0 0 0 0);">Application Data</label> 
302                                                    <textarea rows="20" cols="100" name="applicationData" id="appDataBAA" style="display:none;"></textarea> 
303                                                    <input type="submit" data-button-name="cta-button-top" title="Apply Now for ${rollover_text!'Credit Card'}" class="jn-button apply-button button-bg-color-custom" value="${ctaText.getData()}" disabled /> 
304                                                </form> 
305                                            </#if> 
306                                        </div> 
307                                    </div> 
308                                </div> 
309                            </div> 
310                            <div class="hero-primary-benefits"> 
311                                <#if secondaryFeatureText.getData() != ""> 
312                                    <#foreach item in secondaryFeatureText.getSiblings()> 
313                                        <div class="primary-benefit"> 
314                                            <div class="primary-benefit-wrapper text-color-white"> 
315                                                ${item.getData()} 
316                                            </div> 
317                                        </div> 
318                                    </#foreach> 
319                                </#if> 
320                            </div> 
321                        </div> 
322                        <div class="standard-content-container" title="${rollover_text!''}"> 
323                            <div class="product-details-container"> 
324                                <div class="detail-background"> 
325                                    <h2>${secondaryHeadlineText.getData()}</h2> 
326                                    <div class="secondary-benefits"> 
327 
328 
329 
330                                        <div class="option"> 
331                                            ${additionalInfoGroupA.getData()} 
332                                            <#if pbu != "0892445"> 
333                                                <#if (sdata?size > 0)> 
334                                                     
335                                                        <#if (fiCardsData?size > 0)> 
336 
337                                                            <#if (fib.offerType == "104") > 
338                                                                 
339                                                                <#list sdata as d> 
340                                                                    <#if (d.scrapedLabel?contains("Annual Percentage Rate") && (d.scrapedValue?has_content))>  
341                                                                        <div>   
342                                                                            <h3 >APR<sup>*</sup> for Purchases:</h3> 
343                                                                                <p>${d.scrapedValue} <br><a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}"  class="text-color-default" target="_blank">See terms & conditions.</a> 
344                                                                                </p> 
345                                                                            </div> 
346                                                                            <#break> 
347                                                                    </#if> 
348                                                                </#list> 
349 
350                                                            <#else> 
351                                                                <#if (fib.offerType=="128" || fib.offerType=="143" || fib.offerType=="121")> 
352                                                                <div> 
353                                                                    <h3>Intro APR<sup>*</sup> for Purchases and Balance Transfers</h3> 
354                                                                    <#list sdata as d> 
355                                                                        <#if (d.scrapedLabel?contains("Annual Percentage Rate") && (d.scrapedValue?has_content))> 
356                                                                            <p>${d.scrapedValue} <br><a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
357                                                                                    class="text-color-default" target="_blank">See terms & conditions.</a> 
358                                                                            </p> 
359                                                                            <#break> 
360                                                                        </#if> 
361                                                                    </#list> 
362                                                                </div> 
363                                                                <#elseif (fib.offerType=="144")> 
364                                                                <div> 
365                                                                    <h3>APR for Purchases and Balance Transfers</h3> 
366                                                                    <#list sdata as d> 
367                                                                        <#if (d.scrapedLabel?contains("APR for Balance Transfers") && (d.scrapedValue?has_content))> 
368                                                                            <p>${d.scrapedValue} <br><a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
369                                                                                    class="text-color-default" target="_blank">See terms & conditions.</a> 
370                                                                            </p> 
371                                                                            <#break> 
372                                                                        </#if> 
373                                                                    </#list> 
374                                                                </div> 
375                                                                </#if> 
376                                                            </#if> 
377                                                        </#if> 
378                                                </#if> 
379                                            </#if> 
380                                        </div> 
381 
382 
383                                        <div class="option"> 
384                                            ${additionalInfoGroupB.getData()}  
385                                            <#if pbu != "0892445"> 
386                                                <div> 
387                                                    <#if (fiCardsData?size > 0)> 
388                                                        <#if (sdata?size > 0)> 
389                                                            <#if (fib.offerType=="104")> 
390                                                                <h3>Intro APR<sup>*</sup> for Balance Transfers:</h3> 
391                                                            <#else> 
392                                                                <h3>Annual Fee</h3> 
393                                                            </#if> 
394                                                            <#list sdata as d> 
395                                                                <#if (fib.offerType=="104")> 
396                                                                    <#if (d.scrapedLabel?contains("APR for Balance Transfers") && (d.scrapedValue?has_content))> 
397                                                                            <p>${d.scrapedValue} <br><a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
398                                                                                class="text-color-default" target="_blank">See terms & conditions.</a> 
399                                                                            </p> 
400                                                                        <#break> 
401                                                                    </#if> 
402                                                                <#else> 
403                                                                    <#if (d.scrapedLabel?contains("Annual Membership Fee") && (d.scrapedValue?has_content))> 
404                                                                        <p> 
405                                                                            ${d.scrapedValue} 
406                                                                            <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" target="_blank">See terms & conditions.</a> 
407                                                                        </p> 
408                                                                        <#break> 
409                                                                    </#if> 
410                                                                </#if> 
411                                                            </#list> 
412                                                        </#if> 
413                                                    </#if> 
414                                                </div> 
415                                            </#if> 
416                                        </div> 
417 
418                                        <div class="option"> 
419                                            ${additionalInfoGroupC.getData()!''} 
420                                            <#if pbu != "0892445"> 
421                                                <#if (sdata?size > 0)> 
422                                                    <div> 
423                                                        <#if (fib.offerType == "104") > 
424                                                            <#list sdata as d> 
425                                                                <#if (d.scrapedLabel?contains("Annual Membership Fee") && (d.scrapedValue?has_content))> 
426                                                                                 
427                                                                    <h3>Annual Fee<sup>*</sup></h3> 
428                                                                            <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}"  class="text-color-default" target="_blank">See terms & conditions.</a> 
429                                                                            </p> 
430                                                                         
431                                                                        <#break> 
432                                                                </#if> 
433                                                            </#list> 
434                                                        <#elseif (fib.offerType == "108" || fib.offerType == "109" || fib.offerType == "101" || fib.offerType == "103")> 
435                                                            <h3>Intro APR<sup>*</sup> for Purchases and Balance Transfers</h3> 
436                                                            <#list sdata as d> 
437                                                                <#if (d.scrapedLabel?contains("Annual Percentage Rate") && (d.scrapedValue?has_content))> 
438                                                                    <#if (fiCardsData?size > 0)>  
439                                                                        <p>${d.scrapedValue} <br><a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
440                                                                                class="text-color-default" target="_blank">See terms & conditions.</a> 
441                                                                        </p> 
442                                                                    </#if> 
443                                                                    <#break> 
444                                                                </#if> 
445                                                            </#list> 
446                                                        <#elseif (fib.offerType=="115")> 
447                                                            <h3>APR for Purchases and Balance Transfers</h3> 
448                                                            <#list sdata as d> 
449                                                                <#if (d.scrapedLabel?contains("APR for Balance Transfers") && (d.scrapedValue?has_content))> 
450                                                                    <#if (fiCardsData?size > 0)>  
451                                                                        <p>${d.scrapedValue} <br><a href="${oadURL_TC}?step=display&offerId=${newOfferId}&locationCode=${lc_used}" 
452                                                                                class="text-color-default" target="_blank">See terms & conditions.</a> 
453                                                                        </p> 
454                                                                    </#if> 
455                                                                    <#break> 
456                                                                </#if> 
457                                                            </#list> 
458                                                        </#if> 
459                                                    </div> 
460                                                </#if> 
461                                            </#if> 
462                                        </div> 
463                                    </div> 
464                                </div> 
465                            </div> 
466                        </div> 
467                        <div class="banner-wrapper" title="${rollover_text!''}"> 
468                            <div class="banner ${override}"> 
469                                <div class="banner-cardArt cardArtImg"> 
470                                   <img src="${cardArtImage!''}" alt="${card_art_alt!''}" title="${card_art_alt!''}" onerror="this.onerror=null;this.src='${cardArtImageAlt!''}'">  
471                                </div> 
472                                <div class="banner-cta"> 
473                                    <div class="banner-cta-text text-color-white text-bold"> 
474                                        ${optionalCtaFeatureText.getData()} 
475                                    </div> 
476                                    <a id="oadSecButton" data-button-name="cta-button-bottom" title="Apply Now for ${rollover_text!'Credit Card'}" class="jn-button banner-cta-apply-button button-bg-color-custom text-color-white">${optionalCtaText.getData()}</a> 
477                                </div> 
478                            </div> 
479                        </div> 
480                    </#if> 
481                </#list>                         
482 
483                <script> 
484                    document.addEventListener('DOMContentLoaded', function() { 
485                        console.log('inside ready'); 
486                        var page = location.pathname.split('/')[location.pathname.split('/').length-1]; 
487                        var hostName = location.hostname; 
488                     
489                        function getDomainFromHostname(hostname) { 
490                            var parts = hostname.split('.'); 
491                            return parts.length === 3 ? parts[1] : parts[0]; 
492
493                        var domain = getDomainFromHostname(hostName); 
494                        var partnerName = "${partnerName!''}"; 
495                        var utag_data = window.utag_data || {}; 
496 
497                        var ameriprise = '${ameriprise?string("yes", "no")}'; 
498                        var locationCode = "${rlc!lc}"; 
499                        var eidAmp = ""; 
500                        if (ameriprise == "yes") { 
501                            var bankercode_amp = '${bCode}'; 
502                            eidAmp = bankercode_amp.substring(3); 
503                            locationCode =""; 
504                        }    
505                             
506                        var heroCardImgs = document.querySelectorAll('.cardArtImg img'); 
507                        for (var index = 0; index < heroCardImgs.length; index++) { 
508                            var heroCardImg = heroCardImgs[index]; 
509                            var heroCardSrc = heroCardImg.getAttribute("src"); 
510                            if(heroCardSrc != "") { 
511                                resizeImg(heroCardImg); 
512
513
514                        function resizeImg(img) { 
515                            img.addEventListener("load", function() { 
516                                var cardImgWidth = img.width; 
517                                var cardImgHeight = img.height; 
518                                console.log('width', cardImgWidth); 
519                                console.log('height', cardImgHeight); 
520                                if(cardImgWidth > cardImgHeight) { 
521                                    img.style.width = "285px"; 
522                                } else { 
523                                    img.style.width = "150px"; 
524
525                            }); 
526
527                         
528                         
529                        $('.jn-button').removeAttr('disabled'); 
530                        $('.jn-button').removeClass('jn-disabled'); 
531                        jQuery('#oadSecButton, #oadSecButton-top').on('click', function(e) { 
532                            jQuery('#BAAForm').submit(); 
533                        }); 
534                         
535                        jQuery('#BAAForm').on('submit', function(e){ 
536                            e.preventDefault(); 
537                            console.log('in custom submit'); 
538                            var xmlData; 
539                            if(ameriprise == "yes") { 
540                                xmlData = '<?xml version="1.0"?>'+ 
541                                    "<prefillData>"+  
542                                    "<versionNumber>1.0</versionNumber>"+  
543                                    "<applicationData>"+  
544                                    "<referral>" +  
545                                    "<employeeId>" + eidAmp + "</employeeId>" + 
546                                    "<storeNumber>"+"${bName!'0'}"+"</storeNumber>"+ 
547                                    "<divisionNumber></divisionNumber>"+ 
548                                    "</referral>" +  
549                                    "<bankerInformation>"+  
550                                    "<locationCode>" + locationCode + "</locationCode>"+ 
551                                    "<originatingBranchNumber>"+"${bName!'0'}"+"</originatingBranchNumber>"+ 
552                                    "<employeeID>${boeid!0}</employeeID>"+ 
553                                    "<name>" + 
554                                    "<first>${bFName!'0'}</first>" + 
555                                    "<last>${bLName!'0'}</last>" + 
556                                    "</name>"+ 
557                                    "<phone>"+ 
558                                    "<areaCode>"+areaCode+"</areaCode>"+  
559                                    "<exchange>"+exchangeCode+"</exchange>"+ 
560                                    "<number>"+num+"</number>"+  
561                                    "</phone>"+  
562                                    "</bankerInformation>"+  
563                                    "</applicationData>"+  
564                                    "</prefillData>" 
565                            } else { 
566                                xmlData = '<?xml version="1.0"?>'+ 
567                                    "<prefillData>"+  
568                                    "<versionNumber>1.0</versionNumber>"+  
569                                    "<applicationData>"+  
570                                    "<bankerInformation>"+  
571                                    "<locationCode>" + locationCode + "</locationCode>"+ 
572                                    "<originatingBranchNumber>"+"${bName!'0'}"+"</originatingBranchNumber>"+ 
573                                    "<employeeID>${boeid!0}</employeeID>"+ 
574                                    "<name>" + 
575                                    "<first>${bFName!'0'}</first>" + 
576                                    "<last>${bLName!'0'}</last>" + 
577                                    "</name>"+ 
578                                    "<phone>"+ 
579                                    "<areaCode>"+areaCode+"</areaCode>"+  
580                                    "<exchange>"+exchangeCode+"</exchange>"+ 
581                                    "<number>"+num+"</number>"+  
582                                    "</phone>"+  
583                                    "</bankerInformation>"+  
584                                    "</applicationData>"+  
585                                    "</prefillData>" 
586                            }                                 
587                            jQuery('#appDataBAA').val(xmlData); 
588                            var buttonName = jQuery('.jn-button').data('button-name'); 
589                            /* SiteCatalyst  onClick tracking */ 
590                            utag_data.apply_button = buttonName; 
591                            AUI().ready(function() { 
592                                if (window.publisherFW) { 
593                                    window.publisherFW.publishEvent("onClick", utag_data); 
594
595                            }); 
596 
597                            this.submit(); 
598                        }); 
599                        var regex = /\d+/g; 
600                        var bdNumber = "${bPhone!''}"; 
601                        var phoneNum = bdNumber.match(regex); 
602                        var areaCode = ""; 
603                        var exchangeCode = ""; 
604                        var num = ""; 
605                        if(phoneNum != null) { 
606                            phoneNum = phoneNum.join(""); 
607                            areaCode = phoneNum.substring(0,3); 
608                            exchangeCode = phoneNum.substring(3,6); 
609                            num = phoneNum.substring(6,10); 
610
611                        var product = ""; 
612                        switch(page) { 
613                            case "consumer-platinum2103": 
614                                product="Platinum Card" 
615                                break; 
616                            case "real-rewards": 
617                                product="Real Rewards Card" 
618                                break; 
619                            case "secured": 
620                                product="Secured Card" 
621                                break; 
622                            case "business-cashback": 
623                                product="Business Cash Card" 
624                                break; 
625                            case "business-real-rewards": 
626                                product="Business Real Rewards Card" 
627                                break; 
628                            case "business-rewards-plus": 
629                                product="Business Rewards PLUS Card" 
630                                break; 
631                            case "premier-visa-signature": 
632                                product="Premier Visa Signature Card" 
633                                break; 
634                            case "business-platinum2103": 
635                                product="Business" 
636                                break; 
637                            case "visa-signature": 
638                                product="Visa Signature Card" 
639                                break;                                     
640                            default:   
641                                product = "All Cards";                           
642                        }                                  
643                             
644                        /* update SiteCatalyst data object */ 
645                        utag_data.current_page = "microsite:${partnerName}:" + domain + ':' + page.replace('-',' '); 
646                        utag_data.location_code = '${rlc!0}'; 
647                        utag_data.product = product; 
648                        utag_data.site_section = 'credit cards'; 
649                        utag_data.platform = 'microsite'; 
650                        utag_data.partner_name = "${partnerName}"; 
651                        utag_data.Banker_id = '${boeid}'; 
652                        utag_data.Banker_code = '${bCode}'; 
653                        utag_data.visitor_type = 'prospect'; 
654                        utag_data.text_to_apply_source = '${text_to_apply_source}'; 
655                        utag_data.page_type = 'product';  
656                        utag_data.campaign_id = '${campaignId}';  
657 
658                             
659                        }); 
660                </script> 
661                                     
662            <#else> 
663                <script> 
664                    console.log("FI Cards Data empty"); 
665                    location.href = '${url404}'; 
666                </script> 
667            </#if>                   
668        <#else> 
669            <script> 
670                console.log("Fi opt-out"); 
671                //location.href = '${url404}'; 
672            </script> 
673        </#if>        
674    <#else> 
675        <script> 
676            console.log("client profile empty"); 
677            //location.href = '${url404}'; 
678        </script> 
679    </#if>   
680 
681</#if> 

Hiển thị bài viết tin tức

Có lỗi xảy ra trong quá trình xử lý biểu mẫu.
Expression qstringmap["bankercode"] is undefined on line 5, column 17 in 10154#10192#153411723.
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 bCode?starts_with("amp") && (url?contains("11t1m"))> 
13    <#assign ameriprise = true> 
14<#else> 
15    <#assign ameriprise = false> 
16</#if> 
17<#if mappedLC?has_content && !ameriprise> 
18    <#assign lc = mappedLC > 
19</#if> 
20 
21<#assign prefix = "00000" > 
22<#assign lcWithPrefix = prefix + lc > 
23<#assign withPrefixLength = lcWithPrefix?length > 
24<#assign startHere = withPrefixLength - 5> 
25<#assign lc = lcWithPrefix?substring(startHere)> 
26<#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
27<#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
28 
29<#assign clientProfile = clientProfileList?first>  
30<#assign partnerName=clientProfile.getMarketingNameLong()> 
31 
32 
33<div class="content-container" title="${partnerName} - Disclaimer"> 
34    <div class="jn-disclaimer tier3-disclaimer-${class.getData()}"> 
35        ${content.getData()} 
36    </div> 
37</div> 

Hiển thị bài viết tin tức

Có lỗi xảy ra trong quá trình xử lý biểu mẫu.
Expression qstringmap["bankercode"] is undefined on line 5, column 17 in 10154#10192#153411729.
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 bCode?starts_with("amp") && (url?contains("11t1m"))> 
13    <#assign ameriprise = true> 
14<#else> 
15    <#assign ameriprise = false> 
16</#if> 
17<#if mappedLC?has_content && !ameriprise> 
18    <#assign lc = mappedLC > 
19</#if> 
20 
21<#if lc?has_content> 
22    <#assign prefix = "00000" > 
23    <#assign lcWithPrefix = prefix + lc > 
24    <#assign withPrefixLength = lcWithPrefix?length > 
25    <#assign startHere = withPrefixLength - 5> 
26    <#assign lc = lcWithPrefix?substring(startHere)> 
27 
28   <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
29   <#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
30   <#if clientProfileList?first?has_content> 
31      <#assign clientProfile = clientProfileList?first> 
32      <#assign pbu = clientProfile.getPbu()> 
33      <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
34      <#assign partnerName=clientProfile.getMarketingNameLong()> 
35      <#assign clientDataService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcPbuLocalService") > 
36      <#assign clientProfileDataList = clientDataService.getByPbuAndSubBu(pbu,subbu)> 
37      <#assign partnerUrl = clientProfileDataList.getPartnerMainUrl()> 
38      <#if partnerUrl?has_content && !partnerUrl?matches(r"(?i)^https?\:\/\/.*") && !partnerUrl?matches(r"(?i)^https?\:&#x2F;&#x2F;.*")> 
39          <#assign partnerUrl = 'https://' + partnerUrl> 
40      </#if> 
41  </#if> 
42<div id="footerIdAdPlatinum"> 
43    ${footerContent.getData()} 
44</div> 
45<#if ameriprise> 
46  <script> 
47          document.querySelector('#footerIdAdPlatinum .copyright').classList.add('ecdma-footer-client-name-copyright'); 
48          document.querySelector('#footerIdAdPlatinum .fdic').innerHTML = '<p><a class="text-color-white" href="https://login.elancreditcard.com/onlineCard/publicPrivacyPolicy.do?loc=18598" target="_blank">Privacy and Security</a></p>'; 
49  </script> 
50 
51<#else> 
52    <script>                 
53            document.querySelector('#footerIdAdPlatinum .copyright').classList.add('ecdma-footer-client-name-copyright'); 
54            document.querySelector('#footerIdAdPlatinum .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>"; 
55            var newNode = document.createElement("div");  
56            newNode.classList.add("member-agreement"); 
57            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>'; 
58            var fdicNode = document.querySelector('#footerIdAdPlatinum .fdic'); 
59            var parent = fdicNode.parentNode; 
60            parent.insertBefore(newNode, fdicNode); 
61    </script> 
62    <#if partnerUrl?has_content> 
63        <script> 
64            document.querySelector('#footerIdAdPlatinum .copyright .homelink').innerHTML="<a class='text-color-white' href='${partnerUrl!''}' title='${partnerName!''}' target='_blank'>Home</a>"; 
65        </script> 
66    </#if> 
67  </#if> 
68</#if>