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; } } ?>