2 /* vim: set expandtab sw=4 ts=4 sts=4: */
11 require_once 'libraries/common.inc.php';
14 * Does the common work
16 require 'libraries/server_common.inc.php';
20 * Displays the sub-page heading
23 . ' ' . PMA_Util
::getImage('s_asci.png')
24 . '' . __('Character Sets and Collations') . "\n"
28 * Includes the required charset library
30 require_once 'libraries/mysql_charsets.lib.php';
36 echo '<div id="div_mysql_charset_collations">' . "\n"
37 . '<table class="data noclick">' . "\n"
38 . '<tr><th>' . __('Collation') . '</th>' . "\n"
39 . ' <th>' . __('Description') . '</th>' . "\n"
43 $table_row_count = count($mysql_charsets) +
count($mysql_collations);
45 foreach ($mysql_charsets as $current_charset) {
46 if ($i >= $table_row_count / 2) {
48 echo '</table>' . "\n"
49 . '<table class="data noclick">' . "\n"
50 . '<tr><th>' . __('Collation') . '</th>' . "\n"
51 . ' <th>' . __('Description') . '</th>' . "\n"
55 echo '<tr><th colspan="2" class="right">' . "\n"
56 . ' ' . htmlspecialchars($current_charset) . "\n"
57 . (empty($mysql_charsets_descriptions[$current_charset])
59 : ' (<i>' . htmlspecialchars(
60 $mysql_charsets_descriptions[$current_charset]
65 foreach ($mysql_collations[$current_charset] as $current_collation) {
68 . ($odd_row ?
'odd' : 'even')
69 . ($mysql_default_collations[$current_charset] == $current_collation
72 . ($mysql_collations_available[$current_collation] ?
'' : ' disabled')
74 . ' <td>' . htmlspecialchars($current_collation) . '</td>' . "\n"
75 . ' <td>' . PMA_getCollationDescr($current_collation) . '</td>' . "\n"
80 unset($table_row_count);
81 echo '</table>' . "\n"