Ejemplo n.º 1
0
 /**
  * This is construct base of the class.
  *
  * A public constructor; initializes the variable $instanceDataBase.
  *
  */
 public function __construct($instanceDataBase)
 {
     parent::__construct($instanceDataBase);
     BillingData::setDataOperationBusiness($instanceDataBase);
     BillingData::getBusiness();
     BillingData::getDescriptionBusiness();
 }
 function __construct($firstName, $lastName, $ccNumber, $ccType, $ccCcv2, $ccExpMonth, $ccExpYear, $address, $city, $state, $country, $zip)
 {
     parent::__construct($firstName, $lastName, $address, $city, $state, $country, $zip);
     $this->cc_number = $ccNumber;
     $this->cc_type = $ccType;
     $this->cc_ccv2 = $ccCcv2;
     $this->cc_exp_month = $ccExpMonth;
     $this->cc_exp_year = $ccExpYear;
 }
$action = 'LIST';
if (isset($_POST['ACTION'])) {
    $action = $_POST['ACTION'];
} else {
    if (isset($_GET['ACTION'])) {
        $action = $_GET['ACTION'];
    }
}
$person = new Person($registry[$nameDataBase]);
$contact = new Contact($registry[$nameDataBase]);
$assContact = new AssignPersonContact($registry[$nameDataBase]);
$assDoc = new AssignPersonIdentifyDoc($registry[$nameDataBase]);
$assProf = new AssignPersonProfession($registry[$nameDataBase]);
$direction = new Direction($registry[$nameDataBase]);
$assDir = new AssignPersonDirection($registry[$nameDataBase]);
$bill = new BillingData($registry[$nameDataBase]);
switch ($action) {
    case 'INSERT':
        $transaction = new Transaction($registry[$nameDataBase]);
        Person::setDataOperationBusiness($registry[$nameDataBase]);
        $idTransaction = $transaction->insertTransaction(array(Person::$business, Person::$insert, Person::$descriptionBusiness));
        //name,last_name,maternal_name,married_name,fk_id_gender,birthday,birth_city,country_birth,locality_birth,foto,ext_file_foto
        $ext_file_foto = null;
        $foto = null;
        if (is_uploaded_file($_FILES['EXT_FILE_PHOTO']['tmp_name'])) {
            $nombreDirectorio = "upload/person_img/";
            $idUnico = time();
            $nombreFichero = $idUnico . "_" . $_FILES['EXT_FILE_PHOTO']['name'];
            //movemos el archivo a la ruta especifica
            move_uploaded_file($_FILES['EXT_FILE_PHOTO']['tmp_name'], $nombreDirectorio . $nombreFichero);
            //ASIGNACION DEL NOMBRE UNICO CREADO PARA EL ARCHIVO A LA VARIABLE IMAGEN QUE SE ENVIARA PARA INSERTAR EN A BD
 $orden_area = 0;
 $pk_id_process = 0;
 $fk_id_admision_area = 0;
 $observation_status = 'APROVED';
 $status_admision_process = 0;
 $fk_id_admision_area = 0;
 $area = 'area';
 $admissionArea = new AdmissionArea($registry[$nameDataBase]);
 $formObject = new MembershipAppForm($registry[$nameDataBase]);
 $process = new AdmissionProcess($registry[$nameDataBase]);
 $personObject = new Person($registry[$nameDataBase]);
 $assDoc = new AssignPersonIdentifyDoc($registry[$nameDataBase]);
 $assProf = new AssignPersonProfession($registry[$nameDataBase]);
 $contact = new Contact($registry[$nameDataBase]);
 $assContact = new AssignPersonContact($registry[$nameDataBase]);
 $bill = new BillingData($registry[$nameDataBase]);
 $element_padres = new ApplicationParents($registry[$nameDataBase]);
 $holder = new Holder($registry[$nameDataBase]);
 $assign_holder_student = new AssignHolderStudent($registry[$nameDataBase]);
 $student = new Student($registry[$nameDataBase]);
 $family = new Family($registry[$nameDataBase]);
 $assign_student_family = new AssignStudentFamily($registry[$nameDataBase]);
 $flowProcess = $admissionArea->getListAdmissionArea();
 //print_r($flowProcess);
 $forms = array();
 $areas = array();
 if (isset($_POST['ID_FORM'])) {
     $id_form = $_POST['ID_FORM'];
     $status = $_POST['STATUS_ADMISSION'];
     $name = $_POST['NAME'];
     $last_name = $_POST['LAST_NAME'];
Ejemplo n.º 5
0
    default:
        break;
}
if ($action == 'PREVIEW' || $action == 'EDIT') {
    $person = new Person($registry[$nameDataBase]);
    $list = $person->getListPerson($_GET['PK_ID_PERSON']);
    $data = $list[0];
    $cont = new AssignPersonContact($registry[$nameDataBase]);
    $contacts = $cont->getListAssingPersonContact($data['pk_id_person']);
    $assProf = new AssignPersonProfession($registry[$nameDataBase]);
    $profs = $assProf->getListAssingPersonProfession($data['pk_id_person']);
    $assDir = new AssignPersonDirection($registry[$nameDataBase]);
    $dirs = $assDir->getListAssingPersonDirection($data['pk_id_person']);
    $assDoc = new AssignPersonIdentifyDoc($registry[$nameDataBase]);
    $docs = $assDoc->getListAssingPersonIdentifyDoc($data['pk_id_person']);
    $bill = new BillingData($registry[$nameDataBase]);
    $billData = $bill->getListBillingData($data['pk_id_person']);
    //print_r($billData);
    if ($action == 'PREVIEW') {
        $preview_flag = 1;
    }
}
?>




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