<?php
	session_start();

	include("auth.inc.php");
?>


<div id="box_matricula" align="center">
<?php

	if (($_SESSION["pendiente"] == "1") || (($_SESSION["pendiente"] == "3") && ($_SESSION["imprimir"] != "1")) || ($_SESSION["pendiente"] == "0")) {
		include("matricula_pendiente.php");
	} else {


		if (isset($_REQUEST["accion"])) {

			if ($_REQUEST["accion"] == "add") {
				include("add.php");
			} else if ($_REQUEST["accion"] == "delete") {
				include("delete.php");
			} elseif ($_REQUEST["accion"] == "ver_asig") {
				include("getasig.php");
			} elseif ($_REQUEST["accion"] == "ver_matricula") {
				include("carro_matricula.php");
			} else if ($_REQUEST["accion"] == "ver_profesor") {
				include("ver_profesor.php");
			} else if ($_REQUEST["accion"] == "paso2") {
				include("paso2.php");
			} else if ($_REQUEST["accion"] == "check_matricula") {
				include("check_matricula.php");
			} else if ($_REQUEST["accion"] == "impreso_pago") {
				include("impreso_pago.php");
			} else {
				include("ver_asignaturas.php");
			}

		} else if (isset($_SESSION["accion"])){

			if ($_SESSION["accion"] == "ver_matricula") {
				session_unregister("accion");
				include("carro_matricula.php");
			} else if ($_SESSION["accion"] == "check_matricula") {
				include("check_matricula.php");
			} else if ($_SESSION["accion"] == "impreso_pago") {
				session_unregister("accion");
				include("impreso_pago.php");
			}

		} else {
			include("ver_asignaturas.php");
		}
	}
	?>
</div>