diff --git a/htdocs/sql/server_collations.php b/htdocs/sql/server_collations.php new file mode 100755 --- /dev/null +++ b/htdocs/sql/server_collations.php @@ -0,0 +1,106 @@ +' . "\n" + . ' ' . ($GLOBALS['cfg']['MainPageIconic'] + ? '' + : '') + . '' . $strCharsetsAndCollations . "\n" + . '' . "\n"; + + +/** + * exits if wrong MySQL version + * @todo Some nice Message :-) + */ +if (PMA_MYSQL_INT_VERSION < 40100) { + require_once './libraries/footer.inc.php'; +} + + +/** + * Includes the required charset library + */ +require_once './libraries/mysql_charsets.lib.php'; + + +/** + * Outputs the result + */ +echo '
' . "\n" + . '' . "\n" + . '' . "\n" + . ' ' . "\n" + . '' . "\n"; + +$i = 0; +$table_row_count = count($mysql_charsets) + $mysql_collations_count; + +foreach ($mysql_charsets as $current_charset) { + if ($i >= $table_row_count / 2) { + $i = 0; + echo '
' . $strCollation . '' . $strDescription . '
' . "\n" + . '' . "\n" + . '' . "\n" + . ' ' . "\n" + . '' . "\n"; + } + $i++; + echo '' . "\n" + . '' . "\n"; + $odd_row = true; + foreach ($mysql_collations[$current_charset] as $current_collation) { + $i++; + echo '' . "\n" + . ' ' . "\n" + . ' ' . "\n" + . '' . "\n"; + $odd_row = !$odd_row; + } +} +unset($table_row_count); +echo '
' . $strCollation . '' . $strDescription . '
' . "\n" + . ' ' . htmlspecialchars($current_charset) . "\n" + . (empty($mysql_charsets_descriptions[$current_charset]) + ? '' + : ' (' . htmlspecialchars( + $mysql_charsets_descriptions[$current_charset]) . ')' . "\n") + . '
' . htmlspecialchars($current_collation) . '' . PMA_getCollationDescr($current_collation) . '
' . "\n" + . '
' . "\n"; + +require_once './libraries/footer.inc.php'; + +?>