maia_modificado/.svn/pristine/57/57be797d756cd499010b13b4749...

94 lines
5.5 KiB
XML
Executable File

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions"
xmlns:maia="http://java.sun.com/jsf/composite/maiaComponents">
<f:view locale="es">
<h:head>
<title>Control de Armas</title>
<link rel="stylesheet" type="text/css" href="#{request.contextPath}/javax.faces.resource/css/maia.css.xhtml?v=2" />
<h:outputScript name="js/maia.js?v=1"/>
<script type="text/javascript">
$(document).ready(function(){
$("#formLogin\\:server").val(Maia.IPservidor);
if (typeof parent.logoutHelper == 'function'){parent.logoutHelper();}
});
</script>
<style>
body.ui-layout-container{background: none !important;}
</style>
</h:head>
<h:body>
<p:layout fullPage="true">
<p:layoutUnit position="center">
<h:form id="formLogin" styleClass="m-form-login">
<p:messages id="messages" autoUpdate="true" globalOnly="true"/>
<h:panelGrid columns="1" styleClass="m-panel-login">
<h:panelGrid columns="3" styleClass="m-panel-login-content">
<!--
<p:outputLabel for="company" value="#{msg_security.company}"/>
<pe:keyFilter for="company" />
<p:selectOneMenu id="company" value="#{loginController.request.company}" required="true">
<f:selectItems value="#{loginController.lcompany}" var="cia" itemLabel="#{cia['name']}" itemValue="#{cia['company']}"/>
</p:selectOneMenu>
<p:message for="company" />
-->
<p:outputLabel value=""/>
<p:outputLabel value=""/>
<p:outputLabel value=""/>
<p:outputLabel for="a" value="#{msg_security.user}"/>
<p:inputText id="a" value="#{loginController.mdata['a']}" required="true" autocomplete="off" onkeyup="Maia.forceupper(event, this);" onkeydown="Maia.keyDownUpperLogin(event, this);">
<pe:keyFilter for="a" />
<p:focus />
</p:inputText>
<p:message for="a" />
<p:outputLabel for="b" value="#{msg_security.password}" />
<p:password id="b" value="#{loginController.mdata['b']}" required="true" autocomplete="off">
<pe:keyFilter for="b" />
</p:password>
<p:message for="b" />
<p:commandButton id="loginButton" value="Login"
actionListener="#{loginController.authenticate()}"
oncomplete="if(args.validationFailed){}"
process="@this, formLogin"
update="formLogin"/>
<h:inputHidden id="server" value="#{loginController.request.terminalCode}"></h:inputHidden>
<p:outputLabel value=""/>
<p:outputLabel value=""/><p:outputLabel value=""/><p:outputLabel value=""/>
<a href="https://tramitesarmas.ccffaa.mil.ec/portal-web/" target="_blank"
style="color: white !important; font-size: 15px;font-weight: bold;">
¿Olvidaste tu contraseña? </a>
</h:panelGrid>
</h:panelGrid>
<p:dialog id="aceptaTerminosCond" widgetVar="aceptaTerminosCond" closable="false"
minHeight="600" minWidth="750">
<p:outputPanel id="outpanelmedia" style="text-aling:center;">
<p:media id="idmedia" height="500" width="700" value="#{loginController.content}" player="pdf"
rendered="#{loginController.content!=null}"/>
</p:outputPanel>
<br/><br/>
<p:panel id="pnlbotonaceptar" style="text-aling:center;">
<p:outputLabel value="#{msg_security.lbl_heleido_terminos}" style="font-weight: bold;"/>
<br/>
<p:commandButton id="terminosButton" value="Aceptar"
actionListener="#{loginController.aceptaTerminosCondicion()}"
process="@this, formLogin"
update="formLogin" immediate="true" onclick="PF('aceptaTerminosCond').hide()"/>
</p:panel>
</p:dialog>
</h:form>
</p:layoutUnit>
</p:layout>
</h:body>
</f:view>
</html>