<%@page import="br.com.centralit.citcorpore.bean.EmpresaDTO"%>
<%@page import="br.com.centralit.citcorpore.versao.Versao" %>
<%@page import="br.com.citframework.util.Constantes" %>

<%@ include file="/WEB-INF/templates/taglibs.jsp"%>

<%
String locale = UtilStrings.nullToVazio((String)request.getSession().getAttribute("locale"));
%>
<!-- Inicio Rodape  -->
<% if(request.getParameter("iframe") == null) { %>
<footer id="footer">
	<div id="footer-inner" class="clearfix">
		<div class="copyright">
			<p>
				&copy; 2016 - <a target="_blank" href="http://www.citsmart.com.br"><fmt:message key="citcorpore.comum.title"/></a> - 
				<fmt:message key="citcorpore.todosDireitosReservados"/> (<fmt:message key="login.versao"/>: <b><%=Versao.getDataAndVersao()%></b>)
			</p>
		</div><!-- .copyright -->

		<div class="languages">
			<form name="formInternacionaliza" id="formInternacionaliza" action="${ctx}/pages/internacionalizar/internacionalizar">
				<input type="hidden" name="locale" id="locale" />
				
				<div class="btn-group dropup languages-container">
					<button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
						<span class="internacionalizacao-ativa">
							<% if (locale.equalsIgnoreCase("pt")) { %>
								<img src="${ctx}/novoLayout/common/theme/images/lang/br.png" alt="BR" />
							<% } else if (locale.equalsIgnoreCase("en")) { %>
								<img src="${ctx}/novoLayout/common/theme/images/lang/us.png" alt="US" />
							<% } else if (locale.equalsIgnoreCase("es")) { %>
								<img src="${ctx}/novoLayout/common/theme/images/lang/es.png" alt="ES" />
							<% } else { %>
								<img src="${ctx}/novoLayout/common/theme/images/lang/br.png" alt="BR" />
							<% } %>
						</span>
						<span class="caret"></span>
					</button>

					<ul class="dropdown-menu pull-right">
						<li class="language pt">
							<a href="javascript:void(0);" 
								onclick="LAYOUT.language.change('pt')">
								<img src="${ctx}/novoLayout/common/theme/images/lang/br.png" alt="BR" />
							</a>
						</li>
						<li class="language en">
							<a href="javascript:void(0);" 
								onclick="LAYOUT.language.change('en')">
								<img src="${ctx}/novoLayout/common/theme/images/lang/us.png" alt="US" />
							</a>
						</li>
						<li class="language es">
							<a href="javascript:void(0);" 
								onclick="LAYOUT.language.change('es')">
								<img src="${ctx}/novoLayout/common/theme/images/lang/es.png" alt="ES" />
							</a>
						</li>
					</ul>
				</div><!-- .btn-group -->
			</form>
		</div><!-- .language -->
	</div><!-- #footer-inner -->
</footer>
<% } %>


<%@include file="/novoLayout/common/include/libRodape.jsp" %>
<!-- Fim Rodape  -->

<script type="text/javascript">
	$(document).ready(function() {
		<% if(request.getAttribute("Script") != null) { out.print(request.getAttribute("Script").toString()); }%>
	});
	function buscaHistoricoPorVersao() {
		document.formSobre.fireEvent("buscaHistoricoPorVersao");
	}
</script>

<% if(request.getSession().getAttribute(Constantes.getValue("USUARIO_SESSAO") + "_CITCORPORE") != null){ %>
<script type="text/javascript" src="${ctx}/dwr/engine.js"></script>
<%} %>
<script type="text/javascript" src="${ctx}/dwr/util.js"></script>
<%@include file="/pages/ctrlTelefonia/telefonia.jsp" %>
	<% if(request.getSession(true).getAttribute("permissaoBotao") != null) { out.print(request.getSession(true).getAttribute("permissaoBotao").toString()); }%>