public function onClickAddRecord($idProfile) { $OPF_profiles = new OPF_profiles(); $id = ''; if (!is_array($idProfile)) { $id = $idProfile; } $this->modalWindow($OPF_profiles->getFormAddModProfile($id), OPF_myLang::getPhrase('OPF_PROFILES_3'), 300, 250, 2); return $this->response; }
<?php /** * Vista inicial. * * @author José Ignacio Gutiérrez Guzmán <*****@*****.**> * @link http://www.osezno-framework.org/ * @copyright Copyright © 2007-2012 Osezno PHP Framework * @license http://www.osezno-framework.org/license.txt */ /** * Asignar contenidos a areas de la plantilla */ OPF_osezno::assign('nom_modulo', OPF_myLang::getPhrase('OPF_PROFILES_TITLE')); OPF_osezno::assign('desc_modulo', OPF_myLang::getPhrase('OPF_PROFILES_DESC')); $OPF_profiles = new OPF_profiles(); OPF_osezno::assign('content1', $OPF_profiles->getFormStartUp()); OPF_osezno::assign('content2', $OPF_profiles->getListProfiles()); /** * Mostrar la plantilla */ OPF_osezno::call_template('modulo' . DS . 'modulo.tpl');