/**
  * This is construct base of the class.
  *
  * A public constructor; initializes the variable $instanceDataBase.
  *
  */
 public function __construct($instanceDataBase)
 {
     parent::__construct($instanceDataBase);
     ApplicationParents::setDataOperationBusiness($instanceDataBase);
     ApplicationParents::getBusiness();
     ApplicationParents::getDescriptionBusiness();
 }
    });
</script>
<?php 
$action = 'LIST';
if (isset($_POST['ACTION'])) {
    $action = $_POST['ACTION'];
} else {
    if (isset($_GET['ACTION'])) {
        $action = $_GET['ACTION'];
    }
}
$user = new User($registry[$nameDataBase]);
$catalog = new MembershipAppForm($registry[$nameDataBase]);
$scool = new Schooling($registry[$nameDataBase]);
$padres = new ApplicationParents($registry[$nameDataBase]);
$hnos = new KindBrother($registry[$nameDataBase]);
// Simplificar la ruta de propiedades
$v_label = $property["pages"]["admision/admision_form"];
$v_label_list = $property["pages"]["general_list"];
// Simplificar el ruteo de edicion/visualizacion
$v_route_edit_preview = 'index.php?page=admision/formulario';
// Simplificar el ruteo de insert
$v_route_insert = '?page=admision/formulario&action=INSERT';
// Simplificar el ruteo de lista
$v_route_list = 'index.php?page=admision/admision_form';
//print_r($_POST);
switch ($action) {
    case 'INSERT':
        $transaction = new Transaction($registry[$nameDataBase]);
        MembershipAppForm::setDataOperationBusiness($registry[$nameDataBase]);
$data_hm3 = array();
if ($action != 'INSERT') {
    $element = new MembershipAppForm($registry[$nameDataBase]);
    $list = $element->getListMembershipAppForm($elementAction);
    $data = $list[0];
    //id del formulario
    $idForm = $data['id'];
    //escolaridad
    $element_scool = new Schooling($registry[$nameDataBase]);
    $list_scool = $element_scool->getListSchoolingForm($idForm);
    $data_scool = array();
    if (count($list_scool) > 0) {
        $data_scool = $list_scool[0];
    }
    //padres
    $element_padres = new ApplicationParents($registry[$nameDataBase]);
    $list_padre = $element_padres->getListApplicationParentsForm($idForm, 25);
    //padre
    $list_madre = $element_padres->getListApplicationParentsForm($idForm, 26);
    //madre
    $data_padre = array();
    if (count($list_padre) > 0) {
        $data_padre = $list_padre[0];
    }
    $data_madre = array();
    if (count($list_madre) > 0) {
        $data_madre = $list_madre[0];
    }
    //hermanos
    $element_hnos = new KindBrother($registry[$nameDataBase]);
    $list_hnos = $element_hnos->getListKindBrotherForm($idForm, 27);
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetWidths(array(180));
$pdf->SetFont($family, 'B', 9);
$pdf->SetFillColor(1, 137, 105);
$pdf->SetTextColor(255);
// carga de datos del formulario de admision
$form = new MembershipAppForm($db);
$list = $form->getPDFListMembershipAppForm($_GET['id']);
$form_admision = $list[0];
// carga de datos de escolaridad
$sch = new Schooling($db);
$list_sch = $sch->getPDFListSchooling($_GET['id']);
$escolaridad = $list_sch[0];
// carga de datos de los padres del estudiante
$aparents = new ApplicationParents($db);
$list_padre = $aparents->getPDFListApplicationParents($_GET['id'], 25);
//PADRE
$list_madre = $aparents->getPDFListApplicationParents($_GET['id'], 26);
//MADRE
$datos_padre = $list_padre[0];
$datos_madre = $list_madre[0];
// carga de datos de los Hermanos
$brothers = new KindBrother($db);
$list_hpm = $brothers->getPDFListKindBrother($_GET['id'], 27);
//HERMANOS DEL POSTULANTE
$list_hp = $brothers->getPDFListKindBrother($_GET['id'], 28);
//HERMANOS POR PARTE DE PADRE
$list_hm = $brothers->getPDFListKindBrother($_GET['id'], 29);
//HERMANOS POR PARTE DE MADRE
$datos_hpm = array();