<?php
session_start();
if(!isset($_POST['id'])) die('Error de parámetros');

header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');

//SESIONES
$_SESSION['tarifa'] = $_POST['total'];
$_SESSION['cliente'] = $_POST['id'];
$_SESSION['nombre'] = $_POST['nombre'];
$_SESSION['apellidos'] = $_POST['apellidos'];
$_SESSION['LEN'] = 'SP';
if(isset($_POST['a'])) $_SESSION['a'] = 1;
if(isset($_POST['b'])) $_SESSION['b'] = 1;
if(isset($_POST['c'])) $_SESSION['c'] = 1;
if(isset($_POST['d'])) $_SESSION['d'] = 1;
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Pago de Inscripci&oacute;n</title>
<meta http-equiv="Content-Type" content="text/html;" charset="iso-8859-1" />
<link rel="stylesheet" type="text/css" href="../imagenes/estilo.css">
<script>
function lolo(btn){
	//if(confirm("Desea ir al sitio de pago?")) 
	btn.disabled = true;
	document.formulario.submit();
}
</script>
</head>
<body topmargin="0" leftmargin="0">
<br>
<center><img src="../imagenes/logo_epicoh.gif"></center>
<br>
<form name="formulario" action="../../credomatic/index_es.php" method="post">
<input type="hidden" name="_SIGLA_" value="G" />
<input type="hidden" name="_PROYECTO_" value="Congreso CONFIBSIG" />
<input type="hidden" name="_NOMBRE_" value="<?=$_POST['nombre']?>" />
<input type="hidden" name="_APELLIDOS_" value="<?=$_POST['apellidos']?>" />
<input type="hidden" name="_MONEDA_" value="fundauna2">
<input type="hidden" name="_MONTO_" value="<?=$_POST['total']?>" />
<input type="hidden" name="_EXITO_" value="https://www.fundauna.una.ac.cr/CSIG/comprobante.php" />
<input type="hidden" name="_REDIRECT_" value="https://www.fundauna.una.ac.cr/CSIG/es/index.php" />
</form>
<table align="center" cellpadding="0" cellspacing="0" width="300px">
<tr>
    <td class="td1"></td><td class="td2" colspan="2"><b style="color:#FFFFFF;">Paso 2. Ir al sitio de pago</b></td><td class="td3"></td>
</tr>
<tr><td rowspan="5" class="td4"></td><td height="5px" colspan="2"></td><td rowspan="5" class="td5"></tr>
<tr><td><b>ID:</b></td><td><?=$_POST['id']?></td></tr>
<tr><td><b>Apellidos:</b></td><td><?=$_POST['apellidos']?></td></tr>
<tr><td><b>Nombre:</b></td><td><?=$_POST['nombre']?></td></tr>
<tr><td><b>Monto:</b></td><td>$<?=$_POST['total']?></td></tr>
<tr>
    <td class="td6"></td><td class="td7" colspan="2"></td><td class="td8"></td>
</tr>
</table>
<center>
<br>
	<input type="button" class="boton" id="boton" value="Pagar Inscripci&oacute;n" onClick="lolo(this);">
<br><br><a href="index.php">[VOLVER AL INICIO]</a>
</center>
<?php unset($ROW, $_POST); ?>
</body>
</html>