public function index() { $oBus = Business_App_Rol::listRol('', NULL, NULL); $eRols = $oBus->getInData('eRols'); $combo_rol = Helper_Array::entitiesToIdText($eRols, 'id', 'name', 'value', 'text'); Helper_App_View::layout('app/html/pages/security_profile/page', array('combo_rol' => $combo_rol)); }
public function listing($id_profile = 0) { $arrModules = array(); $MY =& MY_Controller::get_instance(); /* @var $mRolModule Rol_Module_Model */ $mRolModule =& $MY->mRolModule; /* @var $mPermission Permission_Model */ $mPermission =& $MY->mPermission; /* @var $mProfile Profile_Model */ $mProfile =& $MY->mProfile; /* @var $mProfilePermission Profile_Permission_Model */ $mProfilePermission =& $MY->mProfilePermission; /* @var $eProfile eProfile */ $eProfile = $mProfile->load($id_profile); $arrModules = $mRolModule->listModulesByRol($eProfile->id_rol, NULL); /* @var $module eModule */ foreach ($arrModules as $num => $module) { $arrModules[$num]->{'_permissions'} = $mPermission->listByModule($module->id); $arrModules[$num]->{'_submodules'} = $mRolModule->listModulesByRol($eProfile->id_rol, $module->id); if (isset($arrModules[$num]->{'_submodules'}) && !empty($arrModules[$num]->{'_submodules'})) { foreach ($arrModules[$num]->{'_submodules'} as $num2 => $submodule) { $arrModules[$num]->{'_submodules'}[$num2]->{'_permissions'} = $mPermission->listByModule($submodule->id); } } } $arrProfilePermissionResult = array(); $arrProfilePermission = $mProfilePermission->listByProfile($id_profile); if (!empty($arrProfilePermission)) { foreach ($arrProfilePermission as $profile_permission) { $arrProfilePermissionResult[] = $profile_permission["id_permission"]; } } Helper_App_View::layout('app/html/pages/security_profile/listing', array('arrModuleResult' => $arrModules, 'eProfile' => $eProfile, 'arrProfilePermissionResult' => $arrProfilePermissionResult, 'save' => $this->permission->update_permission)); }
public function index() { $MY =& MY_Controller::get_instance(); /* @var $mAppVersion App_Version_Model */ $mAppVersion =& $MY->mAppVersion; /* @var $eAppVersion eAppVersion */ $eAppVersion = $mAppVersion->loadArray(array('isActive' => 1, 'isDataBase' => 1)); $arr = array('eAppVersion' => $eAppVersion); Helper_App_View::layout("app/html/pages/system_db_backup/page", $arr); }
public function index() { Helper_App_View::layout('app/html/pages/system_module/page'); }
public function index() { Helper_App_View::layout('app/html/pages/icon_class/page', [], [], TRUE); }
public function index() { $arrModulesPermissions = Helper_App_Permission::getMenu2(); //Helper_Log::write($arrModulesPermissions); Helper_App_View::layout('app/html/pages/security_rol/page', array('arrModulesPermissions' => $arrModulesPermissions)); }
public function index() { Helper_App_View::layout('app/html/pages/user_profile/page'); }
public function index() { Helper_App_View::layout('app/html/pages/user_settings/page'); }
public function index() { $array_array = array(array('id' => Helper_App_Log::LOG_DEFAULT, 'name' => 'DEFAULT'), array('id' => Helper_App_Log::LOG_LOGIN, 'name' => 'DEBUG'), array('id' => Helper_App_Log::LOG_INSERT, 'name' => 'INSERT'), array('id' => Helper_App_Log::LOG_UPDATE, 'name' => 'UPDATE'), array('id' => Helper_App_Log::LOG_DELETE, 'name' => 'DELETE')); $combo_action = Helper_Array::toIdText($array_array, 'id', 'name'); Helper_App_View::layout('app/html/pages/security_binnacle/page', array('combo_action' => $combo_action)); }
public function index() { $arrTimePar = Helper_Fecha::getArrayTime(); //Helper_Log::write($arrTimePar); Helper_App_View::layout('app/html/pages/system_setting_param/page', array('arrTime' => $arrTimePar)); }
public function index() { Helper_App_View::layout('app/html/pages/dashboard'); }
public function index() { Helper_App_View::layout('app/html/pages/utility_company_and_company_branch/page'); }