Pular para o conteúdo
Voltar

Diárias

Um erro ocorreu enquanto processava o modelo.
Expression catIcon is undefined on line 266, column 34 in 20154#20194#5939188.
1<style> 
2.cat-service-icon{width:100%;text-align:center;color:#fff;background:#00AEEF !important;position:relative;} 
3.line-link{border-top: 3px solid #00AEEF;position: absolute;right: -35px;top: 90px;height: 1px;width: 50px;} 
4#service-content{margin-top:-5px;} 
5#service-background{} 
6#left-col{} 
7.mt-service .asset-full-content{font-family:'Calibri';text-align: justify;margin-top: 55px;padding-right: 20px;} 
8.attach-title { 
9   font-family: 'Nexa'; 
10   text-transform: uppercase; 
11   color: #fff; 
12   font-size: 14px; 
13   padding: 5px; 
14   background-color: #1255A6; 
15
16.attach-content { 
17   margin-top: 3px; 
18   padding: 10px 0; 
19   border-top: 2px solid #1255A6; 
20
21.orgao{font-family:'Calibri';    margin-top: 30px;} 
22.brasao{font-family:'Nexa';text-transform:uppercase;text-align: center;} 
23.brasao .icon-wrapper{border: 2px solid #fff; 
24    width: 34px; 
25    height: 34px; 
26    display: table !important; 
27    margin: 0 auto; 
28    padding: 5px;} 
29.brasao i.service-icon{padding:0 !important;color:#fff;} 
30.mini{font-size:.4em;} 
31.sigla{font-family:'Nexa';color:#fff;text-transform:uppercase;} 
32.line{display:block;font-size:14px;} 
33.relateds{} 
34.relateds ul{list-style: none;color: #fff;padding: 7px 10px 10px 0;margin: 0 0 0 10px;} 
35.relateds ul li{border-bottom:1px solid #fff;line-height: 15px;padding-bottom: 5px;padding-top: 3px;} 
36.relateds ul li a:hover{color:#009ae5;} 
37.lifecycle{padding: 10px;background:#193177 !important;} 
38.lifecycle .icon-wrapper i{font-size: 36px;display: table-cell;padding: 15px;} 
39.lifecycle .row-fluid > div:hover{background:#5a70b0;} 
40.service-title{background:#00AEEF;text-align;display: -webkit-inline-box;} 
41.service-title h1{color:#fff;padding:20px;margin:0;text-transform:uppercase;font-size: 1.8em;display: inline-flex;} 
42.service-lc-title{font-size: 48px;color: #fff;text-transform: uppercase;font-weight: bold;display: -webkit-inline-box;vertical-align: top;line-height: 120px;margin-left: 20px;} 
43.service-lc-title small {font-size: 14px;line-height: 18px;margin-top: -40px;position: absolute;} 
44.ico-service {border: 4px solid #fff;display: table !important;border-radius: 100%;padding: 10px;} 
45.ico-service i {color:#fff;font-size:100px;padding:10px;display: table-cell !important;} 
46.back-service{min-height: 200px !important;background-size: cover !important;padding: 15px;width: 48.1%;float: right;} 
47.cor .icon-wrapper { 
48  border: 2px solid #fff; 
49  width: 68px; 
50  height: 68px; 
51  display: table !important; 
52  border-radius: 50px; 
53  margin: 0 auto; 
54  padding: 5px; 
55
56.cor a, .cor .service-icon{color:#fff;} 
57.cor a:hover{color:#fff;text-decoration:none;} 
58.pagetitle-content input[type="text"] { 
59    color: #fff; 
60    background: rgba(255,255,255,0.3); 
61    border: 0; 
62    padding: 3px 5px; 
63    margin-top: 5px; 
64
65.pagetitle-content .search-layout{display:none;} 
66.pagetitle-content .control-group{margin-bottom:0;} 
67.pagetitle-content .liferaytokenlist{display:none;} 
68.pagetitle-content form{margin: 0;display: -webkit-inline-box;padding-left: 20px;} 
69.taglib-header{display:none;} 
70</style> 
71 
72<#assign theme_img_path = request["theme-display"]["path-theme-images"] /> 
73 
74 
75<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService") /> 
76<#assign articleId = .vars['reserved-article-id'].data > 
77<#assign ja = journalArticleLocalService.getArticle(groupId, articleId) /> 
78<#assign resourceprimKey = ja.getResourcePrimKey() /> 
79<#assign createDate = ja.displayDate?string["dd 'de' MMMM 'de' yyyy 'às' HH:mm"] > 
80 
81<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService") /> 
82<#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.portlet.journal.model.JournalArticle", resourceprimKey) /> 
83<#assign categoryUtil = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService") /> 
84<#assign categoryPorpertyService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService") /> 
85<#assign assetCategories = categoryUtil.getAssetEntryAssetCategories(assetEntry.getEntryId()) /> 
86 
87<#assign lifecycle = httpUtil.getParameter(request["attributes"].CURRENT_COMPLETE_URL, 'ciclo') /> 
88 
89<#if (lifecycle == 'cv_indcom') > 
90	<#assign lifecycleLabel = 'indústria e comércio' /> 
91<#elseif lifecycle == 'cv_empinv' > 
92	<#assign lifecycleLabel = 'empreendedorismo e investimentos' /> 
93<#elseif lifecycle == 'cv_agremp' > 
94	<#assign lifecycleLabel = 'agricultura empresarial' /> 
95<#elseif lifecycle == 'cv_tur' > 
96	<#assign lifecycleLabel = 'turismo' /> 
97</#if> 
98 
99 
100<#assign jaTags = serviceLocator.findService("com.liferay.portlet.asset.service.AssetTagLocalService") /> 
101 
102<#list  jaTags.getAssetEntryAssetTags(assetEntry.entryId) as aeTag  > 
103    <#if (aeTag.name == lifecycle) > 
104        <#assign tagId = aeTag.tagId /> 
105    </#if> 
106</#list> 
107 
108 
109<#list  assetCategories as category  > 
110    <#if category.name == "Servidores Ativos" > 
111		<#assign catIcon = "icon-mt-empreendedor" /> 
112	<#elseif category.name == "Aposentados e Pensionistas" > 
113		<#assign catIcon = "icon-mt-familia" /> 
114	<#elseif category.name == "CERTIDÃO/DECLARAÇÃO TEMPO DE CONTRIBUIÇÃO" > 
115		<#assign catIcon = "icon-file-text" /> 
116    </#if> 
117	 
118	<#assign catName = category.name /> 
119	<#assign catId = category.categoryId /> 
120	<#break> 
121</#list> 
122 
123 
124<#if lifecycle != '' > 
125    <#assign assetEntryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService") /> 
126    <#list  assetEntryLocalService.getAssetTagAssetEntries(286987) as header  > 
127        <#if (header.getTitle(locale).toLowerCase() == lifecycleLabel) > 
128            <#assign renderer = header.getAssetRenderer()  /> 
129            <#assign className = renderer.getClassName()  /> 
130            <#if ( className == "com.liferay.portlet.journal.model.JournalArticle" ) > 
131                 
132                <#assign jad = renderer.getArticle()  /> 
133                <#assign document = saxReaderUtil.read(jad.getContent())  /> 
134                <#assign rootElement = document.getRootElement()  /> 
135                <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='color']/dynamic-content")  /> 
136                <#assign color = xPathSelector.selectSingleNode(rootElement).getStringValue()  /> 
137                <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='icon']/dynamic-content")  /> 
138                <#assign icon = xPathSelector.selectSingleNode(rootElement).getStringValue()  /> 
139                <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='category']/dynamic-content")  /> 
140                <#assign category = xPathSelector.selectSingleNode(rootElement).getStringValue()  /> 
141                <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='imagem']/dynamic-content")  /> 
142                <#assign imagem = xPathSelector.selectSingleNode(rootElement).getStringValue()  /> 
143                <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='color_text']/dynamic-content")  /> 
144                <#assign style = xPathSelector.selectSingleNode(rootElement).getStringValue()  /> 
145                 
146                 
147                <style>.cor{background:${color};} .back-service{background: url(${imagem});}</style> 
148     
149                <div class="row-fluid header-service" style="margin-top: -20px;"> 
150                    <div class="span12 cor contrast-cor1" style="padding-left: 2.5641%;"> 
151                        <div class="span12" style="padding:0;"> 
152                            <div style="float: left;margin-top: 4%;"> 
153                            <span style="display: -webkit-inline-box;"> 
154                                <div class="ico-service"> 
155                                    <i class="${icon}"></i> 
156                                </div> 
157                            </span> 
158                            <span class="service-lc-title">${category}<br/><small>Selecione a área relacionada ao serviço</small></span> 
159                            </div> 
160                            <!--<div class="back-service"> 
161                            </div>--> 
162                        </div> 
163                    </div> 
164                </div> 
165            </#if> 
166            <#break> 
167        </#if> 
168    </#list> 
169<#else> 
170    <style>.cor{background:#0071bb;}</style> 
171</#if> 
172 
173<div class="service-title"> 
174    <h1>${.vars["reserved-article-title"].data}</h1> 
175</div> 
176 
177<#if image.getData()?trim != '' > 
178    <img style="margin-top:50px;" src="${image.getData()}" /> 
179</#if> 
180<br><br> 
181 
182${full_text.getData()}<br><br>  
183 
184<#if link_service.getData()?has_content > 
185    <span class="attach-title">Link do Serviço</span> 
186    <div class="attach-content row-fluid"><a href="${link_service.getData()}">${link_service.getData()}</a></div> 
187<#elseif file.getData()?has_content > 
188    <span class="attach-title">Download</span> 
189    <div class="attach-content row-fluid"> 
190        <#list file.getSiblings() as cur_anexo > 
191			<#assign arquivo = cur_anexo.getData()  /> 
192			<#assign arquivo_titulo = cur_anexo.file_titulo.getData()  /> 
193			Anexo » <a href="${arquivo}" download>${arquivo_titulo}</a><br> 
194		</#list> 
195    </div> 
196</#if> 
197 
198<div class="row-fluid orgao" style="display:none"> 
199    <div class="span6 brasao"> 
200        <a href="${site.getData()}"> 
201        <#if name.getData() == 'ses' > 
202            <img src="${theme_img_path}/brasoes/ses.png" /> 
203        <#elseif name.getData() == 'secel' > 
204            <img src="${theme_img_path}/brasoes/secel.png" /> 
205        <#elseif name.getData() == 'casacivil' > 
206            <img src="${theme_img_path}/brasoes/casacivil.png" /> 
207        <#elseif name.getData() == 'casamilitar' > 
208            <img src="${theme_img_path}/brasoes/casamilitar.png" /> 
209        <#elseif name.getData() == 'cge' > 
210            <img src="${theme_img_path}/brasoes/cge.png" /> 
211        <#elseif name.getData() == 'gae' > 
212            <img src="${theme_img_path}/brasoes/gae.png" /> 
213        <#elseif name.getData() == 'gcom' > 
214            <img src="${theme_img_path}/brasoes/gcom.png" /> 
215        <#elseif name.getData() == 'gdr' > 
216            <img src="${theme_img_path}/brasoes/gdr.png" /> 
217        <#elseif name.getData() == 'governadoria' > 
218            <img src="${theme_img_path}/brasoes/governadoria.png" /> 
219        <#elseif name.getData() == 'gtcc' > 
220            <img src="${theme_img_path}/brasoes/gtcc.png" /> 
221        <#elseif name.getData() == 'pge' > 
222            <img src="${theme_img_path}/brasoes/pge.png" /> 
223        <#elseif name.getData() == 'seaf' > 
224            <img src="${theme_img_path}/brasoes/seaf.png" /> 
225        <#elseif name.getData() == 'secid' > 
226            <img src="${theme_img_path}/brasoes/secid.png" /> 
227        <#elseif name.getData() == 'seciteci'> 
228            <img src="${theme_img_path}/brasoes/seciteci.png" /> 
229        <#elseif name.getData() == 'sedec' > 
230            <img src="${theme_img_path}/brasoes/sedec.png" /> 
231        <#elseif name.getData() == 'seduc' > 
232            <img src="${theme_img_path}/brasoes/seduc.png" /> 
233        <#elseif name.getData() == 'sefaz' > 
234            <img src="${theme_img_path}/brasoes/sefaz.png" /> 
235        <#elseif name.getData() == 'seges' > 
236            <img src="${theme_img_path}/brasoes/seges.png" /> 
237        <#elseif name.getData() == 'sejudh' > 
238            <img src="${theme_img_path}/brasoes/sejudh.png" /> 
239        <#elseif name.getData() == 'sema'> 
240            <img src="${theme_img_path}/brasoes/sema.png" /> 
241        <#elseif name.getData() == 'seplan'> 
242            <img src="${theme_img_path}/brasoes/seplan.png" /> 
243        <#elseif name.getData() == 'sesp' > 
244            <img src="${theme_img_path}/brasoes/sesp.png" /> 
245        <#elseif name.getData() == 'setas' > 
246            <img src="${theme_img_path}/brasoes/setas.png" /> 
247        <#elseif name.getData() == 'sinfra' > 
248            <img src="${theme_img_path}/brasoes/sinfra.png" /> 
249        <#elseif name.getData() == 'fapemat' > 
250            <img src="${theme_img_path}/brasoes/fapemat.png" /> 
251        <#else> 
252            <h3>${name.getData()}</h3> 
253        </#if> 
254        </a> 
255    </div> 
256    <div class="span6"> 
257 
258    </div> 
259</div> 
260 
261<#assign themeDisplay = (portal.getClass().forName("com.liferay.portal.theme.ThemeDisplay").newInstance())!"" /> 
262<#assign portalURL = httpUtil.getProtocol(request.attributes.CURRENT_URL) + "://" + getterUtil.getString(request["theme-display"]["portal-url"]) /> 
263 
264<div class="cat-service-icon cor" style="height:inherit;padding: 17px 0 10px;"> 
265    <div class="icon-wrapper"> 
266        <i class="service-icon ${catIcon}"></i> 
267    </div> 
268    <h5 style="font-size:18px;font-weight:normal;text-transform:uppercase;">${catName}</h5> 
269    <div class="line-link"></div> 
270    <#if lifecycle != '' > 
271        <a href="servicos?ciclo=${lifecycle}"><i class="icon-arrow-left"></i> Serviços para ${lifecycleLabel}</a> 
272    <#else>  
273        <a href="${portalURL}/servicos"><i class="icon-arrow-left"></i> Todos os Serviços</a> 
274    </#if> 
275</div> 
276 
277 
278 
279<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetLinkLocalService" ) /> 
280 
281<#assign currentArticleAssetEntry = assetEntryLocalService.getEntry("com.liferay.portlet.journal.model.JournalArticle", resourceprimKey) /> 
282<#assign currentArticleAssetEntryEntryId = currentArticleAssetEntry.getEntryId() /> 
283<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryEntryId) /> 
284 
285<div class="cor relateds"> 
286    <ul> 
287        <li>${ja.getTitle(locale)}</li> 
288        <#if lifecycle != '' > 
289             
290            <#list  assetEntryLocalService.getAssetTagAssetEntries(tagId) as link  > 
291         
292                <#assign linkedArticle = journalArticleLocalService.getLatestArticle(link.getClassPK(), 0) /> 
293                 
294                <#assign laTags = serviceLocator.findService("com.liferay.portlet.asset.service.AssetTagLocalService") /> 
295                 
296                <#list categoryUtil.getAssetEntryAssetCategories(link.getEntryId()) as linkCat > 
297                    <#if linkCat.categoryId == catId && link.getEntryId() != assetEntry.getEntryId() > 
298						<li><a href="${portalURL}/-/${linkedArticle.urlTitle}?ciclo=${lifecycle}">${linkedArticle.getTitle(locale)}</a></li> 
299                        <#break> 
300                    </#if> 
301                </#list> 
302            </#list> 
303             
304        <#else> 
305             
306            <#list assetEntryLocalService.getAssetCategoryAssetEntries(catId) as link  > 
307         
308                <#assign linkedArticle = (journalArticleLocalService.getLatestArticle(link.getClassPK(), 0))!"" /> 
309                 
310                <#assign laTags = serviceLocator.findService("com.liferay.portlet.asset.service.AssetTagLocalService") /> 
311                 
312                <#list categoryUtil.getAssetEntryAssetCategories(link.getEntryId()) as linkCat > 
313                    <#if linkCat.categoryId == catId && link.getEntryId() != assetEntry.getEntryId() > 
314                        <#if link.visible > 
315						    <li><a href="${portalURL}/-/${linkedArticle.urlTitle}">${linkedArticle.getTitle(locale)}</a></li> 
316                            <#break> 
317                        </#if> 
318                    </#if> 
319                </#list> 
320            </#list> 
321             
322        </#if> 
323 
324    </ul> 
325</div> 
326 
327 
328<!-- 
329<div class="lifecycle cor"> 
330    <div class="row-fluid" style="text-align:center;"> 
331        <div style="width:49%;display: inline-block;vertical-align:top;padding:5px 0;"> 
332            <a href="${portalURL}/-/servico-de-informacoes-ao-cidadao-sic"> 
333				<div class="icon-wrapper"> 
334					<i class="icon-mt-familia"></i> 
335				</div> 
336				<span style="text-transform:uppercase;">Cidadão</span> 
337			</a> 
338        </div> 
339        <div style="width:49%;display: inline-block;vertical-align:top;padding:5px 0;"> 
340            <a href="${portalURL}/-/web-ponto"> 
341				<div class="icon-wrapper"> 
342					<i class="icon-mt-empreendedor"></i> 
343				</div> 
344				<span style="text-transform:uppercase;">Servidor Público</span> 
345			</a> 
346        </div> 
347    </div> 
348    <div class="row-fluid" style="text-align:center;"> 
349        <div style="width:49%;display: inline-block;vertical-align:top;padding:5px 0;"> 
350            <a href="${portalURL}/-/sipia-sina-1"> 
351				<div class="icon-wrapper"> 
352					<i class="icon-desktop"></i> 
353				</div> 
354				<span style="text-transform:uppercase;">Sistemas Operacionais</span> 
355			</a> 
356        </div> 
357        <div style="width:49%;display: inline-block;vertical-align:top;padding:5px 0;"> 
358            <a href="${portalURL}/-/sindpss-mt"> 
359				<div class="icon-wrapper"> 
360					<i class="icon-cloud"></i> 
361				</div> 
362				<span style="text-transform:uppercase;">Sites</span> 
363			</a> 
364        </div> 
365    </div> 
366</div> 
367--> 
368 
369<script type="text/javascript"> 
370    var serviceHeader = jQuery('.mt-service .header-service').clone(); 
371    var serviceContent = jQuery('.mt-service .asset-full-content').clone(); 
372    var serviceIcon = jQuery('.mt-service .cat-service-icon').clone(); 
373    var serviceList = jQuery('.mt-service .relateds').clone(); 
374    var lifecycle = jQuery('.mt-service .lifecycle').clone(); 
375     
376    jQuery('.mt-service .asset-full-content').remove(); 
377     
378    if('${lifecycle}' != ''){ 
379        jQuery('.mt-service .portlet-body > div').append('<div class="row-fluid"><div class="span12" id="service-header"></div></div><div class="row-fluid" id="service-background"><div class="span3" id="left-col"></div><div class="span9" id="service-content"></div></div>'); 
380    }else{ 
381        jQuery('.mt-service .portlet-body > div').append('<div class="row-fluid"><div class="row-fluid" id="service-background" style="margin-top:-20px;"><div class="span3" id="left-col"></div><div class="span9" id="service-content"></div></div>'); 
382
383    jQuery('#left-col').append(serviceIcon); 
384    jQuery('#left-col').append(serviceList); 
385    jQuery('#left-col').append(lifecycle); 
386    jQuery('#service-content').append(serviceContent); 
387     
388    jQuery('.mt-service .header-service').remove(); 
389    jQuery('.mt-service .asset-full-content .cat-service-icon').remove(); 
390    jQuery('.mt-service .asset-full-content .relateds').remove(); 
391    jQuery('.mt-service .asset-full-content .lifecycle').remove(); 
392    jQuery('#service-header').append(serviceHeader); 
393     
394     
395    window.setTimeout( function(){ 
396        var search = document.querySelectorAll('.mt-search form')[0]; 
397        document.querySelectorAll('.pagetitle-content')[0].appendChild(search); 
398        document.querySelectorAll('.mt-search')[0].style.display = 'none'; 
399        document.querySelectorAll('.pagetitle-content select')[0].style.display = 'none'; 
400        document.querySelectorAll('.pagetitle-content form')[0].style.display = '-webkit-inline-box'; 
401        document.querySelectorAll('.pagetitle-content form')[0].style.marginLeft = '20px'; 
402        document.querySelectorAll('.pagetitle-content form')[0].style.marginBottom = '0'; 
403         
404        var x = document.querySelectorAll(".pagetitle-content input[type='image']")[0].src.replace("search.png", "search2.png"); 
405        document.querySelectorAll(".pagetitle-content input[type='image']")[0].src = x; 
406        document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.marginLeft = "-34px"; 
407        document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.background = "rgba(255,255,255,0.3)"; 
408        document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.padding = "5px"; 
409        document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.marginTop = "-2px"; 
410         
411        document.querySelectorAll('.pagetitle-content')[0].style.paddingBottom = '0'; 
412        document.querySelectorAll('.pagetitle-content')[0].style.paddingTop = '10px'; 
413         
414    }, 500 ); 
415</script>