<%@ page language="VB" autoeventwireup="false" inherits="samm_web.publica_login, App_Web_c_uyskky" %>
<%@ Register Assembly='AjaxControlToolkit' Namespace='AjaxControlToolkit' TagPrefix='act' %>
<%@ Register Assembly="controles" Namespace="controles" TagPrefix="bti" %>
<!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">
<head id="Head1" runat="server">
    <title>- Inicio de sesión - SAMM</title>
    <link href="../../css/samm.css" rel="stylesheet" type="text/css" />
    <link href="../../css/css.css" rel="stylesheet" type="text/css" />
    <link href="../../css/login.css?5.4.20.33" rel="stylesheet" type="text/css" />
    <link rel="shortcut icon" href="../../favicon.ico" />
    
    <script type='text/javascript' language="javascript" src="../../js/Interfaz/MoverTabla.js"></script>
    <script type='text/javascript' language="javascript" src="../../js/Interfaz/general.js"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1" /> 
    <script language="JavaScript" type="text/javascript">
    </script>
    <script type='text/javascript'>
        function initKeyValues(form)
		{
		    form.C.value="<%=GetChallenge()%>";
		    form.E.value="<%=GetRSA_E()%>";
		    form.M.value="<%=GetRSA_M()%>";
		}
    </script>
</head>
<body style="background-image: url(../../images/login/fondo_index.jpg); margin: 0 0 0 0;
    background-repeat: repeat; height: 100%">

    <script type="text/javascript">
        s_maximizar();
    </script>

    <form id="form1" runat="server">    
    <!-- HIDDEN -->
    <input id="hddError" type="hidden" name="hddError" runat="server"/> 
<input type="hidden" id="posx" name="posx">
<input type="hidden" id="posy" name="posy">
<input type="hidden" id="challenge" name="challenge">
<input type="hidden" id="C" name="C">
<input type="hidden" id="E" name="E">
<input type="hidden" id="M" name="M">
    <input id="hddAnchoPantalla" type="hidden" name="hddAnchoPantalla" runat="server"/> 
    <!-- HIDDEN -->
    <!-- Contenido de la pagina -->
    <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
  <tr>
    <td style="text-align: center; padding-top: 20px">
      <div align="center">
          <table width="614" border="0" cellspacing="0" cellpadding="0" height="472">
          <tr> 
            <td>
                <asp:Image runat="server" id="imgLogin"/> 
              <table width="100%" border="0" cellspacing="0" cellpadding="0" height="283" class="unnamed1" background="../../images/login/cabezote_pagina_de_acceso2_r2_c1.jpg">
                <tr> 
                  <td valign="top" height="287"> 
                        <div align="center"> 
                          <table width="460" border="1" cellspacing="6" cellpadding="6" bordercolor="#006699" height="280">

                            <tr> 
                              <td class="login_1">
                                <asp:Label ID="lbl_nuevosUsuarios" runat="server" Text='<%$Resources:res_etiquetas_seg,nuevoUsuario %>'></asp:Label>
                              </td>

                              <td class="login_1 port">
                                <asp:Label ID="lbl_accesoUsuarios" runat="server" Text='<%$Resources:res_etiquetas_seg,accesoUsuario %>'></asp:Label>
                            </td></tr>
                            <tr> 
                              <td class="login_1 port"> 
                                <p> <asp:Label ID="lblPortada" runat="server" Text='<%$Resources:res_etiquetas_seg,portadaLogin %>'></asp:Label></p>

                              </td>
                              <td> 
                              <asp:Panel ID="pnl_login" runat="server">
                              <table width="100%" border="0" cellspacing="0" cellpadding="4" class="login_1">
                                  <tr> 
                                    <td class="login_2"> 
                                      <asp:Label ID="lbl_Usuario" runat="server" CssClass="lbl_formulario"></asp:Label>
                                    </td>
                                    <td class="login_2" style="white-space:nowrap;"> 
                                      <asp:TextBox ID="txtUsuario" runat="server" CssClass="txt" ValidationGroup="1"></asp:TextBox>
                                      <asp:RequiredFieldValidator ID="rfvUsuario" runat="server" ControlToValidate="txtUsuario"
                                         CssClass="lbl_mensaje" ForeColor="" ValidationGroup="1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                  <tr> 
                                    <td class="login_2"> 
                                      <asp:Label ID="lbl_clave" runat="server"></asp:Label>
                                    </td>
                                    <td class="login_2" style="white-space:nowrap;"> 
                                         <asp:TextBox ID="txtContrasenia" runat="server" TextMode="Password" ValidationGroup="1" CssClass="txt"></asp:TextBox>
                                         <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtContrasenia"
                                         CssClass="lbl_mensaje" ForeColor="" ValidationGroup="1">*</asp:RequiredFieldValidator>
                                    </td>
                                  </tr>
                                  <tr> 
                                    <td height="14" class="login_2"> 
                                      <asp:Label ID="lbl_empresa" runat="server"></asp:Label>
                                    </td>
                                    <td height="100%" class="login_2" style="text-align:left;color:#004566;text-align: center;font-weight: inherit;"> 
                                    <asp:Label ID="lbl_unaEmpresa" runat="server"></asp:Label>
                                      <asp:DropDownList ID="drpEmpresa" runat="server" CssClass="drp">
                                        </asp:DropDownList>
                                    </td>
                                  </tr>
                                  <%--</table>
                                  <table width="100%" border="0" cellspacing="0" cellpadding="4" class="login_1">--%>
                                  <tr> 
                                    <td class="login_1" bgcolor="#d9e1ec"> 
                                      <asp:LinkButton ID="lnkRecordarContrasena" runat="server" CssClass="lnk" OnClientClick="return false;" CausesValidation="False"></asp:LinkButton>
                                        &nbsp; &nbsp;
                                    </td>
                                    <td bgcolor="#d9e1ec"> 
                                        <bti:BotonImagen ID="btnIngresar" runat="server" ImageUrl="../../images/botones/aceptar.png" CausesValidation="true" ValidationGroup="1" />
                                    </td>
                                  </tr>
                                  <tr bgcolor="#ffffff"> 
                                    <td class="login_1" colspan="2" style="width: 1000px;"> 
                                      <asp:Label ID="lblMensajeLogin" runat="server" CssClass="lbl_mensaje"></asp:Label>
                                      <asp:ValidationSummary ID="vls_login" runat="server" ValidationGroup="1" CssClass="lbl_mensaje" ForeColor="" />
                                      </td>
                                  </tr>
                                </table>
                                </asp:Panel>
                                  <asp:Panel ID="pnl_recordarContrasena" HorizontalAlign="Center" runat="server" Height="100%" Width="100%" style="display:none">
                                      <table width="100%" border="0" cellspacing="0" cellpadding="4" class="login_1">
                                          <tr>
                                              <td colspan="2" style="white-space: nowrap; text-align: left">
                                                  <asp:Label ID="lbl_recordarcontrasena" runat="server" CssClass="lblTitulo2" Font-Bold="True"></asp:Label></td>
                                          </tr>
                                          <tr>
                                              <td style="width:50%; text-align: right;" class="login_2">
                                                  <asp:Label ID="lbl_usuario1" runat="server" CssClass="lbl_formulario"></asp:Label></td>
                                              <td style="white-space:nowrap; text-align: left;" class="login_2">
                                                  <label>
                                                      <asp:TextBox ID="txtUsuario_Recordar" runat="server" CssClass="txt" ValidationGroup="2"></asp:TextBox>
                                                      <asp:RequiredFieldValidator ID="rfvUsuario1" runat="server" ControlToValidate="txtUsuario_Recordar"
                                                          ValidationGroup="2" CssClass="lbl_mensaje" ForeColor="">*</asp:RequiredFieldValidator>
                                                  </label>
                                              </td>
                                          </tr>
                                          <tr>
                                              <td class="login_2" style="width: 50%;">
                                                  <asp:Label ID="lbl_email" runat="server" CssClass="lbl_formulario"></asp:Label></td>
                                              <td style="white-space:nowrap; text-align: left;"  class="login_2">
                                                  <asp:TextBox ID="txtEmail" runat="server" CssClass="txt" ValidationGroup="2"></asp:TextBox>
                                                  <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ControlToValidate="txtEmail"
                                                      ValidationGroup="2" CssClass="lbl_mensaje" ForeColor="">*</asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                                          ID="revEmail" runat="server" ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                          ValidationGroup="2" CssClass="lbl_mensaje" ForeColor="">*</asp:RegularExpressionValidator>
                                              </td>
                                          </tr>
                                          <tr> 
                                              <td class="login_1" bgcolor="#d9e1ec"> 
                                                    <asp:LinkButton ID="lnk_volverIntentar" runat="server" CssClass="lnk" CausesValidation="False" OnClientClick="return false;"></asp:LinkButton>
                                              </td>
                                              <td bgcolor="#d9e1ec">
                                                <bti:BotonImagen ID="bti_recordar" runat="server" ImageUrl="../../images/botones/aceptar.png" CausesValidation="true" ValidationGroup="2" />
                                              </td>
                                          </tr>
                                          <tr bgcolor="#ffffff">
                                              <td class="login_1" colspan="2">
                                                  <asp:Label ID="lbl_mensajeRecordar" runat="server" CssClass="lbl_mensaje"></asp:Label>
                                                  <asp:ValidationSummary ID="vlsRecordar" runat="server" ValidationGroup="2" CssClass="lbl_mensaje"
                                                      ForeColor="" />
                                              </td>
                                          </tr>
                                      </table>
                                  </asp:Panel>

                              </td>
                            </tr>
                          </table>
                        </div>
                  </td>
                </tr>
                <tr>
                    <td valign="top" class="bot" background="../../images/login/cabezote_pagina_de_acceso2_r3_c1.jpg"> 
                    <div align="center">
                      <table width="460" border="0" cellspacing="0" cellpadding="10">
                        <tr> 
                          <td> 
                            <div style="text-align:center">
                                <asp:Label ID="lblPie" runat="server" cssclass="unnamed1" Text='<%$Resources:res_etiquetas_seg,pieLogin %>'></asp:Label>
                            </div>
                          </td>
                        </tr>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td valign="top"><img alt="" src="../../images/login/cabezote_pagina_de_acceso2_r4_c1.jpg" width="614" height="54"/></td>
                </tr>

              </table>
            </td>
          </tr>
        </table>
      </div>
    </td>
  </tr>
 
</table>

        <script type="text/javascript">
	    var hddError = document.getElementById('<%= hddError.ClientID %>')
	    if(hddError.value != '') alert(hddError.value);hddError.value = '';
	    var x,y
	    if(g_browser.isIE){x=document.body.clientWidth;y=document.body.clientHeight}
        if(g_browser.isNS){x=window.innerWidth;y=window.innerHeight}
	    crearCookie('samm_anchoPantalla',x);
        crearCookie('samm_altoPantalla',y);
        </script>
        <!-- Scripts que se ejecutan una vez la página se ha cargado -->
        <div runat ="server" id="cookies">
        </div>
    </form>
</body>
</html>
