コード例 #1
0
 /**
  * This is construct base of the class.
  *
  * A public constructor; initializes the variable $instanceDataBase.
  *
  */
 public function __construct($instanceDataBase)
 {
     parent::__construct($instanceDataBase);
     Schooling::setDataOperationBusiness($instanceDataBase);
     Schooling::getBusiness();
     Schooling::getDescriptionBusiness();
 }
コード例 #2
0
        });

    });
</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]);
コード例 #3
0
$data_h4 = array();
$data_h5 = array();
$data_hp1 = array();
$data_hp2 = array();
$data_hp3 = array();
$data_hm1 = array();
$data_hm2 = array();
$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];
    }
コード例 #4
0
$pdf = new PDF('P', 'mm', 'Letter');
$family = 'Helvetica';
$pdf->Open();
$pdf->SetMargins(20, 20, 20);
$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);