diff --git a/ajax/ajax_getContent.php b/ajax/ajax_getContent.php index 6f20fb34..fbf972de 100644 --- a/ajax/ajax_getContent.php +++ b/ajax/ajax_getContent.php @@ -24,7 +24,7 @@ * */ define('APP_ROOT', '..'); -require_once APP_ROOT.DIRECTORY_SEPARATOR.'inc'.DIRECTORY_SEPARATOR.'init.php'; +require_once APP_ROOT . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'init.php'; SP_Util::checkReferer('POST'); @@ -104,7 +104,6 @@ switch ($action) { if (SP_ACL::checkUserAccess("users")) { $arrUsersTableProp = array( - 'itemName' => _('Usuario'), 'tblId' => 'tblUsers', 'header' => '', 'tblHeaders' => array( @@ -117,8 +116,7 @@ switch ($action) { 'user_name', 'user_login', 'userprofile_name', - 'usergroup_name', - array( + 'usergroup_name', array( 'user_isAdminApp' => array('img_file' => 'check_blue.png', 'img_title' => _('Admin Aplicación')), 'user_isAdminAcc' => array('img_file' => 'check_orange.png', 'img_title' => _('Admin Cuentas')), 'user_isLdap' => array('img_file' => 'ldap.png', 'img_title' => _('Usuario de LDAP')), @@ -131,7 +129,14 @@ switch ($action) { 'actionId' => 1, 'newActionId' => 2, 'activeTab' => $activeTab++, - 'actions' => array('view' => 'appMgmtData', 'edit' => 'appMgmtData', 'del' => 'appMgmtSave', 'pass' => 'usrUpdPass')); + 'actions' => array( + 'new' => array('title' => _('Nuevo Usuario'), 'action' => 'appMgmtData'), + 'view' => array('title' => _('Ver Detalles de Usuario'), 'action' => 'appMgmtData'), + 'edit' => array('title' => _('Editar Usuario'), 'action' => 'appMgmtData'), + 'del' => array('title' => _('Eliminar Usuario'), 'action' => 'appMgmtSave'), + 'pass' => array('title' => _('Cambiar Clave de Usuario'), 'action' => 'usrUpdPass') + ) + ); echo '
![' . _('Nuevo') . ' ' . $arrTableProp['itemName'] . '](imgs/add.png)

';
+ echo '
';
break;
case "edit":
- echo '
';
+ echo '
';
break;
case "del":
- echo '
';
+ echo '
';
break;
case "pass":
if (isset($action_check['user_isLdap'])) {
break;
}
- echo '
';
+ echo '
';
break;
}
}
- echo ($numActions > 2) ? '
' : '';
+ echo ($numActions > $maxNumActions) ? '
' : '';
echo '';
echo '