'; $html .= 'pma_theme_image = "' . $GLOBALS['pmaThemeImage'] . '"'; $html .= ''; $html .= '
'; $html .= ''; $html .= PMA_getPluginTab($plugins); $html .= PMA_getModuleTab($modules); $html .= '
'; return $html; } /** * Returns the html for plugin Tab. * * @param Array $plugins list * * @return string */ function PMA_getPluginTab($plugins) { $html = '
'; $html .= ''; $html .= '
'; foreach ($plugins as $plugin_type => $plugin_list) { $key = 'plugins-' . preg_replace('/[^a-z]/', '', /*overload*/mb_strtolower($plugin_type)); sort($plugin_list); $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= PMA_getPluginList($plugin_list); $html .= ''; $html .= '
'; $html .= ''; $html .= __('Begin'); $html .= PMA_Util::getImage('s_asc.png'); $html .= ''; $html .= htmlspecialchars($plugin_type); $html .= '
' . __('Plugin') . '' . __('Module') . '' . __('Library') . '' . __('Version') . '' . __('Author') . '' . __('License') . '
'; } $html .= '
'; return $html; } /** * Returns the html for plugin List. * * @param Array $plugin_list list * * @return string */ function PMA_getPluginList($plugin_list) { $html = ""; $odd_row = false; foreach ($plugin_list as $plugin) { $odd_row = !$odd_row; $html .= ''; $html .= '' . htmlspecialchars($plugin['plugin_name']) . ''; $html .= '' . htmlspecialchars($plugin['module_name']) . ''; $html .= '' . htmlspecialchars($plugin['module_library']) . ''; $html .= '' . htmlspecialchars($plugin['module_version']) . ''; $html .= '' . htmlspecialchars($plugin['module_author']) . ''; $html .= '' . htmlspecialchars($plugin['module_license']) . ''; $html .= ''; } return $html; } /** * Returns the html for Module Tab. * * @param Array $modules list * * @return string */ function PMA_getModuleTab($modules) { $html = '
'; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= PMA_getModuleList($modules); $html .= ''; $html .= '
' . __('Module') . '' . __('Description') . '' . __('Library') . '' . __('Version') . '' . __('Author') . '' . __('License') . '
'; $html .= '
'; return $html; } /** * Returns the html for module List. * * @param Array $modules list * * @return string */ function PMA_getModuleList($modules) { $html = ""; $odd_row = false; foreach ($modules as $module_name => $module) { $odd_row = !$odd_row; $html .= ''; $html .= '' . htmlspecialchars($module_name) . ''; $html .= '' . htmlspecialchars($module['info']['module_description']) . ''; $html .= '' . htmlspecialchars($module['info']['module_library']) . ''; $html .= '' . htmlspecialchars($module['info']['module_version']) . ''; $html .= '' . htmlspecialchars($module['info']['module_author']) . ''; $html .= '' . htmlspecialchars($module['info']['module_license']) . ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; foreach ($module['plugins'] as $plugin_type => $plugin_list) { $html .= ''; $html .= ''; $html .= ''; $html .= ''; } $html .= ''; $html .= '
' . htmlspecialchars($plugin_type) . ''; for ($i = 0, $nb = count($plugin_list); $i < $nb; $i++) { $html .= ($i != 0 ? '
' : '') . htmlspecialchars($plugin_list[$i]['plugin_name']); if (!$plugin_list[$i]['is_active']) { $html .= ' ' . __('disabled') . ''; } } $html .= '
'; $html .= ''; $html .= ''; } return $html; } ?>