' . "\n"
. '
' . "\n"
. '' . "\n"
. ' ' . __('Description') . ' | ' . "\n"
. '
' . "\n";
$table_row_count = count($mysqlCharsets) + count($mysqlCollations);
foreach ($mysqlCharsets as $current_charset) {
$html .= '' . "\n"
. ' ' . htmlspecialchars($current_charset) . "\n"
. (empty($mysqlCharsetsDesc[$current_charset])
? ''
: ' (' . htmlspecialchars(
$mysqlCharsetsDesc[$current_charset]
) . ')' . "\n")
. ' | ' . "\n"
. '
' . "\n";
$html .= PMA_getHtmlForCollationCurrentCharset(
$current_charset,
$mysqlCollations,
$mysqlDftCollations,
$mysqlCollAvailable
);
}
unset($table_row_count);
$html .= '
' . "\n"
. '' . "\n";
return $html;
}
/**
* Returns the html for Collations of Current Charset.
*
* @param String $currCharset Current Charset
* @param Array $mysqlColl Collations list
* @param Array $mysqlDefaultColl Default Collations list
* @param Array $mysqlCollAvailable Available Collations list
*
* @return string
*/
function PMA_getHtmlForCollationCurrentCharset(
$currCharset, $mysqlColl,
$mysqlDefaultColl, $mysqlCollAvailable
) {
$odd_row = true;
$html = '';
foreach ($mysqlColl[$currCharset] as $current_collation) {
$html .= '' . "\n"
. ' ' . htmlspecialchars($current_collation) . ' | ' . "\n"
. ' ' . PMA_getCollationDescr($current_collation) . ' | ' . "\n"
. '
' . "\n";
$odd_row = !$odd_row;
}
return $html;
}
?>