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';
22 require 'libraries/server_links.inc.php';
26 * Displays the sub-page heading
29 . ' ' . PMA_getImage('s_asci.png')
30 . '' . __('Character Sets and Collations') . "\n"
34 * Includes the required charset library
36 require_once 'libraries/mysql_charsets.lib.php';
42 echo '<div id="div_mysql_charset_collations">' . "\n"
43 . '<table class="data noclick">' . "\n"
44 . '<tr><th>' . __('Collation') . '</th>' . "\n"
45 . ' <th>' . __('Description') . '</th>' . "\n"
49 $table_row_count = count($mysql_charsets) +
count($mysql_collations);
51 foreach ($mysql_charsets as $current_charset) {
52 if ($i >= $table_row_count / 2) {
54 echo '</table>' . "\n"
55 . '<table class="data noclick">' . "\n"
56 . '<tr><th>' . __('Collation') . '</th>' . "\n"
57 . ' <th>' . __('Description') . '</th>' . "\n"
61 echo '<tr><th colspan="2" class="right">' . "\n"
62 . ' ' . htmlspecialchars($current_charset) . "\n"
63 . (empty($mysql_charsets_descriptions[$current_charset])
65 : ' (<i>' . htmlspecialchars(
66 $mysql_charsets_descriptions[$current_charset]
71 foreach ($mysql_collations[$current_charset] as $current_collation) {
74 . ($odd_row ?
'odd' : 'even')
75 . ($mysql_default_collations[$current_charset] == $current_collation
78 . ($mysql_collations_available[$current_collation] ?
'' : ' disabled')
80 . ' <td>' . htmlspecialchars($current_collation) . '</td>' . "\n"
81 . ' <td>' . PMA_getCollationDescr($current_collation) . '</td>' . "\n"
86 unset($table_row_count);
87 echo '</table>' . "\n"
90 require 'libraries/footer.inc.php';