' . "\n" . '' . "\n" . '' . "\n" . ' ' . "\n" . '' . "\n"; $i = 0; $table_row_count = count($mysql_charsets) + count($mysql_collations); foreach ($mysql_charsets as $current_charset) { if ($i >= $table_row_count / 2) { $i = 0; $html .= '
' . __('Collation') . '' . __('Description') . '
' . "\n" . '' . "\n" . '' . "\n" . ' ' . "\n" . '' . "\n"; } $i++; $html .= '' . "\n" . '' . "\n"; $html .= PMA_getHtmlForCollationCurrentCharset( $current_charset, $mysql_collations, $i, $mysql_default_collations, $mysql_collations_available ); } unset($table_row_count); $html .= '
' . __('Collation') . '' . __('Description') . '
' . "\n" . ' ' . htmlspecialchars($current_charset) . "\n" . (empty($mysql_charsets_descriptions[$current_charset]) ? '' : ' (' . htmlspecialchars( $mysql_charsets_descriptions[$current_charset] ) . ')' . "\n") . '
' . "\n" . '' . "\n"; return $html; } /** * Returns the html for Collations of Current Charset. * * @param String $current_charset Current Charset * @param Array $mysql_collations Collations list * @param int &$i Display Index * @param Array $mysql_default_collations Default Collations list * @param Array $mysql_collations_available Available Collations list * * @return string */ function PMA_getHtmlForCollationCurrentCharset( $current_charset, $mysql_collations, &$i, $mysql_default_collations, $mysql_collations_available ) { $odd_row = true; $html = ''; foreach ($mysql_collations[$current_charset] as $current_collation) { $i++; $html .= '' . "\n" . ' ' . htmlspecialchars($current_collation) . '' . "\n" . ' ' . PMA_getCollationDescr($current_collation) . '' . "\n" . '' . "\n"; $odd_row = !$odd_row; } return $html; } ?>