<?php 
session_start();
ini_set('display_errors','Off');
?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link rel="preconnect" href="https://fonts.googleapis.com">
        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
        <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
        <title>::. Agrocapital::Portal de consulta .::</title>

        <style>
            * {
              font-family: "Montserrat", sans-serif !important;
              font-optical-sizing: auto;
              font-weight: <weight>;
              font-style: normal;
            }
            
                                  .h2, h2 {
                font-size: 15px!important;
            }
        </style>


        <style type="text/css">
            <!--
            body,td,th {
            	font-family: Verdana, Arial, Helvetica, sans-serif;
            	font-size: 10px;
            	color: #000;
            }
            a:link {
            	color: #000066;
            	text-decoration: none;
            }
            a:visited {
            	text-decoration: none;
            	color: #000066;
            }
            a:hover {
            	text-decoration: underline;
            	color: #5EA4EC;
            }
            a:active {
            	text-decoration: none;
            	color: #000066;
            }
            .bordeTabla {
            	border: 1px solid #EEEEEE;
            }
            .bordeBoton {
            	border: 1px solid  #333366;
            }
            .title{
            	font-family: Verdana, Arial, Helvetica, sans-serif;
            	font-size: 17px;
            	color: #000;
            	font-weight:bold;
            }
            -->
        </style>
        <!--<link href="css/estilos.css" rel="stylesheet" type="text/css" />-->
        <script src="script/funciones.js" language="javascript" type="text/javascript"></script>
        <script src="script/index.js" language="javascript" type="text/javascript"></script>
        <script type="text/javascript" src="script/jquery-1.11.1.min.js"></script>
        <style type="text/css">
            <!--
            .creditos {font-size: 11px}
            -->
        </style>
        <script type="text/javascript">
            (function(a){a.fn.validaCampo=function(b){a(this).on({keypress:function(a){var c=a.which,d=a.keyCode,e=String.fromCharCode(c).toLowerCase(),f=b;(-1!=f.indexOf(e)||9==d||37!=c&&37==d||39==d&&39!=c||8==d||46==d&&46!=c)&&161!=c||a.preventDefault()}})}})(jQuery);
            	$(function(){
                    $('#txtUsuario').validaCampo('abcdefghijklmn�opqrstuvwxyz��iou1234567890');
            		$('#txtClave').validaCampo('abcdefghijklmn�opqrstuvwxyz��iou1234567890');
                });
        </script>
    </head>

    <body onload="load(); ">
        <table width="623" border="0" align="center" cellpadding="0" cellspacing="0" class="bordeTabla">

            <tr style="text-align:center;vertical-align:middle;">
                <td>
                    <img width="220" src="configuracion/logo.png" alt="ASA" />
                </td>

                <!--   <td height="31" align="center" bgcolor="#AA0911"><h2><strong>GSYSTEM - SISTEMA DE CONSULTAS EN L&Iacute;NEA</strong></h2></td>-->
            </tr>
            <tr>
                <td height="30">
                    <div align="center" class="title">
                        <br />Portal de Administración
                        <br />
                        <br />
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <!--<td rowspan="2" valign="middle"><img src="images/j_login_lock.png" alt="Login" width="128" height="128" /></td>-->
                            <td valign="middle">&nbsp;</td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <form action="" method="post" name="frm" id="frm" autocomplete="Off">
                                    <?php
//                    if ($_SESSION['CTA_OK']==0){
//                        unset($_SESSION['ID_VERIFICADOR']);
//                    }
                        if (isset($_SESSION['ID_VERIFICADOR'])){
                            echo 'Ingrese el pin que fue enviado a su correo<br>';
                            echo '<input name="txtPin" type="text" class="txt_textbox" id="txtPin" size="15" maxlength="30" title="No usar espacios en blanco" />';
                            echo '<tr>
                                    <td>&nbsp;</td>
                                    <td><input name="btn_ingresar" type="button" class="txt_textbox" id="btn_ingresar" value="Ingresar" style="width:70px" onclick="confirmar();" /></td>
                                  </tr>';
                        }else{
                    ?>
                                        <table width="250" border="0" cellspacing="1" cellpadding="0">
                                            <tr>
                                                <td width="12" rowspan="3">&nbsp;</td>
                                                <td width="64"><strong>Usuario</strong></td>
                                                <td width="170">
                                                    <input name="txtUsuario" type="text" class="txt_textbox" id="txtUsuario" size="15" maxlength="14" title="No usar espacios en blanco" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><strong>Clave</strong></td>
                                                <td>
                                                    <input name="txtClave" type="password" class="txt_textbox" id="txtClave" size="15" maxlength="15" title="No usar espacios en blanco" />
                                                </td>
                                            </tr>

                                            <tr>
                                                <td rowspan="2"><strong>Tipo</strong></td>
                                                <td>
                                                    <input type="radio" id="tipo" name="tipo" value="A" checked>Productor</td>
                                            </tr>
                                            <tr>
                                                <td><strong></strong></td>
                                                <td>
                                                    <input type="radio" id="tipo" name="tipo" value="I" checked>Cliente</td>
                                            </tr>


                                            <tr>
                                                <td>&nbsp;</td>
                                                <td>
                                                    <input name="btn_ingresar" type="button" class="txt_textbox" id="btn_ingresar" value="Ingresar" style="width:70px" onclick="enviaForm();" />
                                                    <!--<input name="btn_ingresar" type="button" class="txt_textbox" id="btn_ingresar" value="Invitado" style="width:70px" onclick="enviaFormI();" />-->
                                                </td>
                                            </tr>


                                        </table>
                                        <?php
                        }
                    ?>
                                </form>

                                <center>
                                    <div style="margin-top:30px">
                                        <a target="_blank" href="http://agrocapital.zambrano.com.uy/Instructivo-Agrobonos_PRODUCTOR.pdf" class="text-decoration: underline;!important">Click aqu&iacute; para descargar el instructivo de Productor</a>
                                        <br>
                                        <br>
                                        <a target="_blank" href="http://agrocapital.zambrano.com.uy/Instructivo-Agrobonos_CLIENTE.pdf" class="text-decoration: underline;!important">Click aqu&iacute; para descargar el instructivo de Cliente</a>
                                    </div>
                                </center>
                            </td>
                        </tr>

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



            <tr>
                <td height="20" align="center">&nbsp;</td>
            </tr>
            <tr>
                <td align="center">&nbsp;</td>
            </tr>
            <tr>
                <td height="20" align="center">
                    <strong><br />Copyright &copy;  <script>
                            document.write(new Date().getFullYear());
                        </script><br />Todos los derechos reservados<br /></strong>
                    <strong><a href="mailto:contacto.uy@seidor.com"><img src="https://www.seidor.com/_next/image?url=%2Ficons%2Fseidor.jpeg&w=1920&q=90" width="70" ></a></strong>
                </td>
            </tr>
        </table>
    </body>

    </html>
    <?php 
		if (isset($_SESSION['msj_sistema']) and $_SESSION['msj_sistema']!=''){
			echo "<script> alert('Mensaje del Sistema: \\n------------------------- \\n \\n".$_SESSION['msj_sistema']."'); </script>";
			session_destroy();
		}//end if
?>