Hội Nông dân Thị xã Giá Rai tổ chức Đại hội đại biểu lần thứ XII, nhiệm kỳ 2023 - 2028 - giarai

An error occurred while processing the template.
com.liferay.journal.service.JournalArticleLocalServiceUtil ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign journalArticleLocalServiceUti... [in template "20097#20125#39460" at line 30, column 1] ----
1<script src="https://sp.zalo.me/plugins/sdk.js"></script>
2<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/1.2.19/css/lightgallery.min.css">
3<script src="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/1.2.19/js/lightgallery-all.min.js"></script>
4<script>
5$(document).ready(function(){
6 //slider bgbox_slider_hoatdong
7 try {
8 $('#chitiet_chitiet').find('img').each(function(){
9 $(this).wrap( "<a data-src='"+this.src+"' href='"+this.src+"' class='ls'></a>" );
10 });
11 $('#chitiet_tin').lightGallery({
12 selector: '.ls'
13 });
14
15 }catch(err){}
16});
17
18</script>
19<!--
20
21
22<#assign JournalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleService")>
23
24
25<#assign assetEntryQueryService = objectUtil('com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil')>
26
27<#assign assetEntryQuery = objectUtil('com.liferay.asset.kernel.service.persistence.AssetEntryQuery')>
28
29
30<#assign journalArticleLocalServiceUtil = objectUtil('com.liferay.journal.service.JournalArticleLocalServiceUtil')>
31
32
33
34 <#assign attrs =renderRequest.getAttributeNames()>
35 <#assign attName ='LIFERAY_SHARED_LAYOUT_ASSET_ENTRY'>
36 <#list attrs as item>
37 <#assign attrText =renderRequest.getAttribute(item)>
38 <p style="color:red">${item}</p>
39
40 <#if attName==item>
41 <#assign entry = attrText>
42 </#if>
43
44 <#if item=='PORTLET_ID'>
45 <#assign porlet_id = attrText>
46 </#if>
47 <#if item=='ASSET_PUBLISHER_HELPER'>
48 <#assign assetPublisherHelper = attrText>
49 ${attrText}
50 </#if>
51 </#list>
52 <#if entry??>
53
54 <#else>
55 <#assign journalArticleId = .vars['reserved-article-id'].data>
56 <#assign journalArticleLongId = getterUtil.getLongStrict(journalArticleId)>
57 <#assign groupid = themeDisplay.getScopeGroupId()>
58 <#assign journalArticle = journalArticleLocalServiceUtil.fetchArticle(groupid,journalArticleId)>
59 <#assign entry = assetEntryQueryService.getEntry("com.liferay.journal.model.JournalArticle",journalArticle.getResourcePrimKey())>
60
61 </#if>
62 <#if entry??>
63 var countxx= ${ entry.getViewCount()};
64 var eID=${entry.getEntryId()};
65
66 <#assign assetRenderer = entry.getAssetRenderer()
67 aEntry= assetEntryQueryService.getAssetEntry(entry.getEntryId())
68 entryTitle = assetRenderer.getTitle(locale)
69 entrySumary = entry.getSummary(locale)
70 entryPublishDate=""
71
72 entryCount= entry.getViewCount()
73 cats= entry.getCategories()
74 sizeCat= cats?size
75 sizeCatID= entry.getCategoryIds()?size
76 sizeC= 0
77 strCat = ''
78 eid= entry.getEntryId()>
79 var countxx= ${ aEntry.getViewCount()};
80 var sizeCatID=${sizeCatID};
81 var sizeCatID=${sizeCat};
82 <#if entry.getPublishDate()??>
83 <#assign pDate = dateUtil.parseDate('yyyy-MM-dd HH:mm:ss', entry.getPublishDate()?datetime?iso("GMT+07")?split("T")[0] + " "+entry.getPublishDate()?datetime?iso("GMT+07")?split("T")[1]?split("-")[0],locale )
84 entryPublishDate = dateUtil.getDate(pDate, 'EEE, dd/MM/yyyy, HH:mm', locale)>
85 </#if>
86 <#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent())>
87 <#assign fieldVal = docXml.valueOf("//dynamic-element[@name='doctinbai']/dynamic-content/text()")>
88
89 ${assetEntryQuery.setAllCategoryIds(entry.getCategoryIds())}
90 ${assetEntryQuery.setOrderByCol1('publishDate') }
91 ${assetEntryQuery.setPublishDate(entry.getPublishDate()) }
92 ${assetEntryQuery.setEnd(10) }
93 ${assetEntryQuery}
94 <#assign teste = assetEntryQueryService.getEntries(assetEntryQuery)>
95
96
97 <#if cats?has_content>
98 <#list cats as cat>
99 <#assign sizeC=sizeC+1
100 strCat= strCat+ cat.getName()>
101 <#if sizeC<sizeCat>
102 <#assign strCat= strCat+ '|'>
103 </#if>
104
105 </#list>
106 </#if>
107
108 <@liferay_asset["asset-categories-summary"]
109 className=entry.getClassName()
110 classPK=entry.getClassPK()
111 portletURL=renderResponse.createRenderURL()
112 />
113
114</#if>
115
116 -->
117
118<style>
119#portlet_${porlet_id} .asset-full-content > div:nth-child(1)
120{
121 display:none;
122}
123#portlet_${porlet_id} .asset-full-content > .metadata-author
124{
125 display:none;
126}
127#portlet_${porlet_id} .asset-full-content > .asset-anchor,#portlet_${porlet_id} .separator,#portlet_${porlet_id} .asset-details
128{
129 display:none;
130}
131
132.bgbox_detail{overflow: hidden;}
133.bgchitiethd{border-bottom: 1px solid #dcdcdc; padding: 5px 0px; margin-bottom: 10px;font-weight: bold; font-size: 15px;}
134.bgchitiethd_body{text-align:right;}
135.chitiet_chucnangdoc text{margin-left:15px;}
136
137.chitiet_tieude,.chitiet_tomtat{margin-bottom:10px;}
138.chitiet_tieude{font-size:24px;font-weight: 700;color:#029ae6;line-height: 32px;}
139.chitiet_thoigian{color:#666666;font-size:12px;}
140.chitiet_tomtat{font-weight:bold;}
141.chitiet_chucnangduoi div{margin-left:10px;float:left;}
142.chitiet_chucnangduoi div img{height:20px;}
143
144.breadcrumb{margin:0px;padding:0px;}
145.breadcrumb li{margin-right:10px;}
146.breadcrumb li a{color:#333; font-size: 14px;font-weight:bold;}
147
148.chitiet_tindadua_hd{border-bottom:1px solid #029ae6;font-size:15px;font-weight:bold; text-transform: uppercase;padding: 5px 0px; margin-bottom: 15px;}
149ul.chitiet_tindadua_body{padding: 0px; margin: 0px;}
150.chitiet_tindadua_title a{
151 background: url("/documents/20121/166740/icon-red.png") no-repeat 0px 12px;
152 padding: 5px 0px 5px 15px;color:#333; font-size: 14px; display: inline-block;}
153
154#article-button-voice-start-id-cms{}
155#article-button-voice-start-id-cms[value="2"]{background:url('/documents/20121/166740/dung.png') no-repeat center center;width:77px;height:17px;display: inline-block;cursor: pointer;}
156#article-button-voice-start-id-cms[value="1"]{background:url('/documents/20121/166740/doc.png') no-repeat center center;width:72px;height:17px;display: inline-block;cursor: pointer;}
157.chitiet_luotxem .view-count-info{color:#333;}
158</style>
159<script src="/documents/20121/166737/jscolor.min.js"></script>
160
161<div class="bgbox_detail">
162
163 <div class="bg_titlecate bgchitiethd_cat" style="margin-bottom:5px;"><#attempt>
164 ${strCat}
165 <#recover>
166 </#attempt></div>
167
168 <div class="row bgchitiethd">
169
170 <div class="col-md-5 bgchitiethd_cat">
171 <#if entryPublishDate?has_content>
172 <div id="chitiet_thoigian" class="chitiet_thoigian">${entryPublishDate
173 ?replace('Sun','Chủ nhật')
174 ?replace('Mon','Thứ hai')
175 ?replace('Tue','Thứ ba')
176 ?replace('Wed','Thứ tư')
177 ?replace('Thu','Thứ năm')
178 ?replace('Fri','Thứ sáu')
179 ?replace('Sat','Thứ bảy')} </div>
180 </#if>
181 </div>
182
183 <div class="col-md-7 bgchitiethd_body" >
184 <div class="chitiet_chucnang chitiet_chucnangdoc " >
185
186 <#if fieldVal?has_content>
187 <text>
188 <span data-src='${fieldVal}' onclick="StartListen(this)" value="1" id="article-button-voice-start-id-cms" title="Đọc"></span>
189 </text>
190 </#if>
191
192
193
194 <text>Màu chữ
195 <input class="jscolor {valueElement: 'color_value'}" type="image" src="/documents/20121/166740/icon_mauchu.png" id="color_value" onchange="changeColor()" style="margin-left: 1px;cursor:pointer;" autocomplete="off">
196 </text>
197
198 <text>Cỡ chữ
199 <a class="font-button minus" style="cursor:pointer;" ><img src="/documents/20121/166740/FontTSmall.png"></a>
200 <a class="font-button plus" style="padding-left: 6px;cursor:pointer;"><img src="/documents/20121/166740/FontTLage.png" ></a>
201 </text>
202 </div>
203 </div>
204
205 </div>
206
207 <div id="chitiet_tin" class="chitiet_tin" style="overflow: hidden; text-align: justify">
208
209
210 <div id="chitiet_tieude" class="chitiet_tieude "><#attempt>${entryTitle}<#recover></#attempt></div>
211
212 <!--<#if entrySumary?has_content><div id="chitiet_tomtat" class="chitiet_tomtat option_toolbar">${entrySumary}</div></#if>-->
213
214 <div id="chitiet_chitiet" class="chitiet_chitiet option_toolbar">${Detail.getData()}</div>
215
216
217 <div class="chitiet_file">
218 <#if FileAttach.getSiblings()?has_content>
219
220 <#assign cfile = 0>
221 <#list FileAttach.getSiblings() as cur_FileAttach>
222
223 <#if cur_FileAttach.getData()?has_content>
224 <#assign cfile += 1>
225 </#if>
226 </#list>
227 <#if (cfile>0)>
228
229 </#if>
230 <#list FileAttach.getSiblings() as cur_FileAttach>
231 <#assign mota = "Tải nội dung tại đây">
232 <#if cur_FileAttach.getData()?has_content>
233 <#if cur_FileAttach.getChild('FileAttachDesc').getData()?has_content>
234 <#assign mota = cur_FileAttach.getChild('FileAttachDesc').getData()>
235 </#if>
236 <a href="${cur_FileAttach.getData()}" target="_blank">
237 ${mota}
238 </a>
239 </#if>
240 </#list>
241 </#if>
242 </div>
243
244 <div id="chitiet_nguon" class="chitiet_nguon bgtin_source option_toolbar" style="clear:both;text-align:right;font-weight:bold;"><p>${Source.getData()}</p></div>
245 <div class="chitiet_chucnangk option_toolbar" style="clear:both;">
246
247 <div class="chitiet_luotxem" style="float:left;">
248 <p><span style="float:left">Số lượt xem:</span>
249 <span style="padding-left:3px; float:left" id="luotxemId"><#if entryCount?has_content>${entryCount}</#if></span>
250 <p>
251 </div>
252
253 <div class="chitiet_chucnangduoi" style="float:right;">
254 <div class="chitiet_face" onclick="$('.taglib-social-bookmark-facebook').click()" style="cursor:pointer;"><img src="/documents/20121/166740/icon_f.png"/></div>
255 <div class="chitiet_tw" onclick="$('.taglib-social-bookmark-twitter').click()" style="cursor:pointer;"><img src="/documents/20121/166740/icon_tw.png"/></div>
256 <div class="zalo-share-button" id="zalo-share-button" data-oaid="784550885158924319" data-layout="2" data-color="blue" data-customize=false></div>
257 <div class="chitiet_in" ><a href="javascript: print();"><img src="/documents/20121/166740/icon_in.png"/></a></div>
258 </div>
259 </div>
260
261
262
263
264
265 <#if fieldVal?has_content>
266 <audio style="display:none" id="myAudio" controls="">
267 <source id="idAudi" src="${doctinbai.getData()}" type="audio/mpeg">
268 </audio>
269 </#if>
270 </div>
271 <#if teste?has_content>
272 <div class="chitiet_tindadua" style="clear:both;margin:10px 0px;">
273 <div class="chitiet_tindadua_hd">Tin đã đưa</div>
274 <ul class="chitiet_tindadua_body">
275
276 <#list teste as test>
277 <#if (test.getEntryId()!=entry.getEntryId())>
278
279 <#assign assetRendererNew = test.getAssetRenderer()
280 viewURL = "">
281 <#attempt>
282 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, test)
283 viewURL = $renderer.getURLViewInContext(renderRequest, renderResponse, viewURL)
284 >
285 <#recover>
286 <#attempt>
287 <#if (themeDisplay.getURLCurrent()?contains("/"+themeDisplay.getScopeGroupName()+"/"))>
288 <#assign viewURL = '/web/'+themeDisplay.getScopeGroupName()+"/-/"+test.getAssetRenderer().getUrlTitle() >
289 <#else>
290 <#assign viewURL = '/-/'+test.getAssetRenderer().getUrlTitle() >
291 </#if>
292 <#recover>
293 </#attempt>
294 </#attempt>
295 <li class="chitiet_tindadua_title"><a href="${viewURL}">${htmlUtil.escape(assetRendererNew.getTitle(locale))}<span class="chitiet_tindaduatg"> <#if test.getPublishDate()??>
296 <#assign pDateNew = dateUtil.parseDate('yyyy-MM-dd HH:mm:ss', test.getPublishDate()?datetime?iso("GMT+07")?split("T")[0] + " "+test.getPublishDate()?datetime?iso("GMT+07")?split("T")[1]?split("-")[0],locale )>
297 (${dateUtil.getDate(pDateNew, 'dd/MM/yyyy', locale)})
298</#if></span></a></li>
299</#if>
300 </#list>
301 </ul>
302 </div>
303 </#if>
304</div>
305
306
307
308<script>
309
310function print() {
311 new_win = window.open("", "win1", "width=800, height=640,scrollbars=1");
312 new_win.document.write('<div style="text-align: center; margin-bottom: 5px;"><a target="" title="" href="javascript: window.print();" style="font-family: Verdana; font-size: 12px; color: red; text-decoration: none;">[In trang này]</a></div>');
313 new_win.document.write('<div id="divcopy">');
314 new_win.document.write('<div style="font-weight:bold;padding:10px 0px;">'+$('#chitiet_tieude').html()+'</div>');
315 new_win.document.write($('#chitiet_thoigian').html());
316 new_win.document.write($('#chitiet_tomtat').html());
317 new_win.document.write($('#chitiet_chitiet').html());
318 new_win.document.write($('#chitiet_nguon').html());
319 new_win.document.write('<hr style="clear:bold;"/>');
320 new_win.document.write('<div>Nguồn: www.baclieu.gov.vn</div>');
321 new_win.document.write('</div>');
322 new_win.document.close();
323 new_win.focus();
324 }
325
326
327function changeColor(){
328 var color = $('#color_value').val();
329 $('.option_toolbar p').css("color", "#"+color);
330 $('.option_toolbar span').css("color", "#"+color);
331 }
332$(function () {
333 $(".font-button").bind("click", function () {
334 var size = parseInt($('.option_toolbar').css("font-size"));
335 if ($(this).hasClass("plus")) {
336 size = size + 2;
337 } else {
338 size = size - 2;
339 if (size <= 10) {
340 size = 10;
341 }
342 }
343 $('.option_toolbar').css("font-size", size);
344 $('.option_toolbar p').css("font-size", size);
345 $('.option_toolbar span').css("font-size", size);
346 $('.option_toolbar strong').css("font-size", size);
347 $('.option_toolbar a').css("font-size", size);
348 });
349 jscolor.installByClassName('jscolor')
350 });
351
352</script>
353
354<script>
355
356function StartListen() {
357var myAudio = document.getElementById("myAudio");
358 if ($("#article-button-voice-start-id-cms").attr("value") == 1) {
359 $("#article-button-voice-start-id-cms").attr("value", "2");
360 $("#article-button-voice-start-id-cms").attr("title", "Dừng");
361 myAudio.play();
362 }
363 else
364 if ($("#article-button-voice-start-id-cms").attr("value") == 2) {
365 $("#article-button-voice-start-id-cms").attr("value", "1");
366 $("#article-button-voice-start-id-cms").attr("title", "Đọc");
367 myAudio.pause();
368 }
369
370}
371
372function StopListen() {
373 $("#article-button-voice-start-id-cms").attr("value", "1");
374 myAudio.pause()
375};
376
377document.onkeyup=function(e){
378 if (e.keyCode == 83){
379 StartListen();
380 }
381 if (e.keyCode == 80){
382 StopListen();
383 }
384}
385
386</script>
387
388<script>
389try
390{
391 var luotxem = $(".metadata-author").html().replace("Views", "").replace("View", "");
392 $("#luotxemId").html(luotxem);
393}catch(e){}
394
395 $("#zalo-share-button").attr('data-href',location.href);
396</script>