<?php require_once('Connections/cn.php'); ?>
<?php
session_start();
$cedula_usuario=$_SESSION['CEDULA_USUARIO'];

// Capturo los datos que vienen de inscripciones.php
$id_alumno=$_GET['id_alumno'];
$id_periodo=$_GET['id_periodo'];
$id_sede=$_GET['id_sede'];
$id_carrera=$_GET['id_carrera'];

?>
<html>
<head>
<title>sadce-alumnos</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
  body {
    background-color: #FFFFFF;
    color: #004080;
    font-family: Arial;
    font-size: 12px;
  }
  .bd {
    background-color: #FFFFFF;
    color: #004080;
    font-family: Arial;
    font-size: 12px;
  }
  .tbl {
    background-color: #FFFFFF;
  }
  a:link { 
    color: #FF0000;
    font-family: Arial;
    font-size: 12px;
  }
  a:active { 
    color: #0000FF;
    font-family: Arial;
    font-size: 12px;
  }
  a:visited { 
    color: #800080;
    font-family: Arial;
    font-size: 12px;
  }
  .hr {
    background-color: #336699;
    color: #FFFFFF;
    font-family: Arial;
    font-size: 12px;
  }
  a.hr:link {
    color: #FFFFFF;
    font-family: Arial;
    font-size: 12px;
  }
  a.hr:active {
    color: #FFFFFF;
    font-family: Arial;
    font-size: 12px;
  }
  a.hr:visited {
    color: #FFFFFF;
    font-family: Arial;
    font-size: 12px;
  }
  .dr {
    background-color: #FFFFFF;
    color: #000000;
    font-family: Arial;
    font-size: 12px;
  }
  .sr {
    background-color: #FFFFCF;
    color: #000000;
    font-family: Arial;
    font-size: 12px;
  }
</style>


</head>

<body>
<form name="form1" method="post" action="">

<table class="dr" width="100%">
  <tr><td class="hr"><h2 align="center">Inscripci&oacute;n Procesada con &Eacute;xito</h2></td></tr>
  <tr>
    <td align="center" valign="middle" >&nbsp;</td>
  </tr>
  <tr><td align="center" valign="middle" ><h2><div align="center">
  <input name="Enviar" type="button" id="Enviar" value="Imprimir Comprobante" onClick="imprimir(<?php echo $id_alumno; ?>,<?php echo $id_periodo; ?>,<?php echo $id_sede; ?>,'<?php echo $id_carrera; ?>')">
  </div>
  </h2></td></tr>
</table>

</form>
</body>
</html>


<script type="text/javascript">
 function imprimir(alumno,periodo,sede,carrera)
 {
	url="modulos/reportes/rpt_recibo_inscripcion.php?id_alumno="+alumno+"&id_periodo="+periodo+"&codigo_sede="+sede+"&id_carrera="+carrera;
	window.open(url);	
 }
</script>

<script type="text/javascript">
 function salir()
 {
	url="inscribirse_alumno.php";
	window.open(url,'contenido');
 }
</script>
