$transaction = new Transaction($registry[$nameDataBase]);
        AdmissionPeriod::setDataOperationBusiness($registry[$nameDataBase]);
        $idTransaction = $transaction->insertTransaction(array(AdmissionPeriod::$business, AdmissionPeriod::$update, AdmissionPeriod::$descriptionBusiness));
        $data = array($_GET['DELETE']);
        $statusTransactionDB = $catalog->deleteAdmissionPeriod($data, $idTransaction);
        if ($statusTransactionDB > 0) {
            Forms::setMessage('SUCCESS', $v_label["SHORT_MESSAGE_OK_DELETE"], $v_label["DETAIL_MESSAGE_OK_DELETE"]);
        } else {
            Forms::setMessage('ERROR', $v_label["SHORT_MESSAGE_NOOK_DELETE"], $v_label["DETAIL_MESSAGE_NOOK_DELETE"]);
        }
        break;
    default:
        break;
}
// Obtener lista
$list = $catalog->getListAdmissionPeriod();
?>
<div class="grid_10">
    <div class="box round first">
        <h2><?php 
echo $v_label["TITLE"];
?>
</h2>


        <?php 
include "view/wallejlla/templates/tpl_messages_1.php";
?>
 
        <h5><?php 
echo $v_label["TITLE_LIST"];
Example #2
0
if (isset($_GET['EDIT'])) {
    $action = 'EDIT';
    $title_1 = $v_label["EDIT_TITLE"];
    $elementAction = $_GET['EDIT'];
    $cap = new CourseApplyPeriod($registry[$nameDataBase]);
    $list_cap = $cap->getListCourseApplyPeriod($elementAction);
} elseif (isset($_GET['PREVIEW'])) {
    $action = 'PREVIEW';
    $title_1 = $v_label["PREVIEW_TITLE"];
    $elementAction = $_GET['PREVIEW'];
    $cap = new CourseApplyPeriod($registry[$nameDataBase]);
    $list_cap = $cap->getListCourseApplyPeriod($elementAction);
}
if ($action != 'INSERT') {
    $element = new AdmissionPeriod($registry[$nameDataBase]);
    $list = $element->getListAdmissionPeriod($elementAction);
    $data = $list[0];
}
// simplificar acceso a etiquetas de formulario
$v_label_gral_form = $property["pages"]["general_form"];
?>

<div class="grid_10">
    <div class="box round first">
        <h2><?php 
echo $title_1;
?>
</h2>


        <br>
<?php

$_SESSION["active_option_menu"] = null;
$catalog = new AdmissionPeriod($registry[$nameDataBase]);
$periods = $catalog->getListAdmissionPeriod();
$periodoVigente = 0;
$datos_periodo = null;
foreach ($periods as $period) {
    if ($period['periodo_vigente'] == 1) {
        $periodoVigente = 1;
        $datos_periodo = $period;
    }
}
if ($periodoVigente == 1) {
    null;
} else {
    Forms::setMessage('WARNING', ' NO EXISTE UN PERIODO DE ADMISION VIGENTE!', 'Lo sentimos pero no existe un periodo de admision vigente!! ');
}
if ($periodoVigente == 1) {
    Forms::setMessage('SUCCESS', 'PERIODO DE ADMISION VIGENTE!', 'Periodo de Admision: ' . $datos_periodo['school_period']);
}
if ($periodoVigente == 1) {
    ?>

<?php 
    include_once "view/wallejlla/admision/formulario.php";
} else {
    ?>
<div class="grid_10">
    <div class="box round first">
        <h2>Registro de Formulario de Admision</h2>