$numero = $_GET['NUMBER']; } $id = 1; if (isset($_GET['ID'])) { $id = $_GET['ID']; } $action = 'INSERT'; if (isset($_GET['ACTION']) && $_GET['ACTION'] == 'EDIT') { $action = 'EDIT'; } /* $direction = new TypeDirection($db); $catalogo1 = $direction->getListTypeDirection() ; */ $person = new Person($db); $catalogo1 = $person->getListPerson(); /* $city = new Location($db); $catalogo2 = $city->getListLocation() ; */ $kinship = new Kinship($db); $catalogo2 = $kinship->getListKinship(); $status_holder = new SystemCatalog($db); $catalogo3 = $status_holder->getListSystemCatalog('STATUS_HOLDER'); $holder = new SystemCatalog($db); $catalogo4 = $status_holder->getListSystemCatalog('CURRENT_PERIOD'); //AGREGAR PARA EL HOLDER UN SI/NO /* $pk_id_person_direction = 0; $pk_id_direction = 0; $pk_id_type_direction = 0;
Forms::printInput('SELECT', 'ID_ADMISSION_AREA', $idAdmissionArea, '', array(), $itemsSelectAdmissionArea); ?> </td> </tr> <tr> <td class="col1"> <?php Forms::printLabel($v_label["PERSON"]); ?> </td> <td class="col2"> <?php $objectPerson = new Person($db); $catalogoPerson = $objectPerson->getListPerson(); $itemsSelectPerson = array(); foreach ($catalogoPerson as $item) { $auxCI = isset($item['ci']) ? '(CI. ' . $item['ci'] . ')' : '(CI. N/A)'; $itemsSelectPerson[$item['pk_id_person']] = $item['name'] . " " . $item['last_name'] . " " . $item['maternal_name'] . "( " . $auxCI . ")"; } $idPerson = null; if ($action == 'EDIT' || $action == 'PREVIEW') { $idPerson = $data['fk_id_person']; } Forms::printInput('SELECT', 'ID_PERSON', $idPerson, '', array(), $itemsSelectPerson); ?> </td> </tr> <tr>
$elementAction = $_GET['ASSIGN_FAMILY']; } elseif (isset($_GET['VIEW_NOTE'])) { $action = 'VIEW_NOTE'; $title_1 = $v_label["VIEW_NOTE_TITLE"]; $elementAction = $_GET['VIEW_NOTE']; } if ($action != 'INSERT') { $element = new Student($registry[$nameDataBase]); $list = $element->getListStudent($elementAction); $data_student = $list[0]; } // simplificar acceso a etiquetas de formulario $v_label_gral_form = $property["pages"]["general_form"]; if ($action == 'PREVIEW' || $action == 'EDIT') { $person = new Person($registry[$nameDataBase]); $list = $person->getListPerson($data_student['fk_id_person']); $data_per = $list[0]; $assDir = new AssignPersonDirection($registry[$nameDataBase]); $dirs = $assDir->getListAssingPersonDirection($data_student['fk_id_person']); //print_r($billData); if ($action == 'PREVIEW') { $preview_flag = 1; } } ?> <div class="grid_10">
$(function() { $(".datePicker").datepick(); $(".button_form").button(); $("#new_user_form").validate(); $('.close_dialog').bind('click', function() { $('#dialog').dialog("close"); }); }); </script> <?php $action = 'EDIT'; $pk = 0; $data = array(); $preview_flag = 0; $person = new Person($registry[$nameDataBase]); $list = $person->getListPerson($_SESSION['pk_id_person']); $data = $list[0]; // print_r($list); $title_1 = $property["pages"]["security/my_personal_data"]["TITLE"]; if (isset($_POST['ACTION'])) { if (1 == 1) { Forms::setMessage('SUCCESS', 'Successful transaction!!', 'Your new personal data was updated!'); } else { Forms::setMessage('ERROR', 'Wrong transaction!!', 'Your new personal data was not updated!'); } } ?>
$pk = $_GET['EDIT']; } if (isset($_GET['PREVIEW'])) { $pk = $_GET['PREVIEW']; } if (isset($_GET['PREVIEW']) || isset($_GET['EDIT'])) { $list = $user->getListUser($pk); $data = $list[0]; $action = 'EDIT'; $pk = $data['pk_id_user']; } if (isset($_GET['PREVIEW'])) { $action = 'PREVIEW'; } $person = new Person($registry[$nameDataBase]); $listPerson = $person->getListPerson(); // PRINT_R($action); //PRINT_R($list); ?> <h2><?php if ($action == 'INSERT') { echo $property["pages"]["security/new_user"]["NEW_TITLE"]; } else { echo $property["pages"]["security/new_user"]["EDIT_TITLE"]; } ?> </h2> <?php include "view/wallejlla/templates/tpl_messages_1.php";
$elementAction = $_GET['PREVIEW']; } elseif (isset($_GET['ASSIGN_COURSE'])) { $action = 'ASSIGN_COURSE'; $title_1 = $v_label["ASSIGN_COURSE_TITLE"]; $elementAction = $_GET['ASSIGN_COURSE']; } if ($action != 'INSERT') { $element = new Teacher($registry[$nameDataBase]); $list = $element->getListTeacher($elementAction); $data_teacher = $list[0]; } // simplificar acceso a etiquetas de formulario $v_label_gral_form = $property["pages"]["general_form"]; if ($action == 'PREVIEW' || $action == 'EDIT') { $person = new Person($registry[$nameDataBase]); $list = $person->getListPerson($data_teacher['fk_id_person']); $data_per = $list[0]; //print_r($billData); if ($action == 'PREVIEW') { $preview_flag = 1; } } ?> <div class="grid_10"> <div class="box round first"> <h2><?php
$action = $_GET['ACTION']; } $title_1 = $property["pages"]["security/person"]["NEW_TITLE"]; switch ($action) { case 'EDIT': $title_1 = $property["pages"]["security/person"]["EDIT_TITLE"]; break; case 'PREVIEW': $title_1 = $property["pages"]["security/person"]["PREVIEW_TITLE"]; break; 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; }