3 // vim: expandtab sw=4 ts=4 sts=4:
9 require('./server_common.inc.php3');
15 require('./server_links.inc.php3');
19 * Displays the sub-page heading
22 . ' ' . $strCharsetsAndCollations . "\n"
27 * Checks the MySQL version
29 if (PMA_MYSQL_INT_VERSION
< 40100) {
30 // TODO: Some nice Message :-)
31 include('./footer.inc.php3');
37 * Includes the required charset library
39 require('./libraries/mysql_charsets.lib.php3');
45 echo '<table border="0">' . "\n"
47 . ' <td valign="top">' . "\n"
48 . ' <table border="0">' . "\n"
51 . ' ' . $strCollation . "\n"
54 . ' ' . $strDescription . "\n"
58 reset($mysql_charsets);
59 reset($mysql_collations);
61 $table_row_count = count($mysql_charsets) +
$mysql_collations_count;
63 while (list(, $current_charset) = each($mysql_charsets)) {
64 if ($i > $table_row_count / 2) {
66 echo ' </table>' . "\n"
68 . ' <td valign="top">' . "\n"
69 . ' <table border="0">' . "\n"
72 . ' ' . $strCollation . "\n"
75 . ' ' . $strDescription . "\n"
81 . ' <td colspan="2" bgcolor="' . $cfg['ThBgcolor'] . '" align="right">' . "\n"
82 . ' <b>' . htmlspecialchars($current_charset) . '</b>' . "\n"
83 . ' (<i>' . htmlspecialchars($mysql_charsets_descriptions[$current_charset]) . '</i>) ' . "\n"
86 $useBgcolorOne = TRUE;
87 reset($mysql_collations[$current_charset]);
88 while (list(, $current_collation) = each($mysql_collations[$current_charset])) {
91 . ' <td bgcolor="' . ($mysql_default_collations[$current_charset] == $current_collation ?
$cfg['BrowseMarkerColor'] : ($useBgcolorOne ?
$cfg['BgcolorOne'] : $cfg['BgcolorTwo'])) . '">' . "\n"
92 . ' ' . htmlspecialchars($current_collation) . ' ' . "\n"
94 . ' <td bgcolor="' . ($useBgcolorOne ?
$cfg['BgcolorOne'] : $cfg['BgcolorTwo']) . '">' . "\n"
95 . ' ' . PMA_getCollationDescr($current_collation) . ' ' . "\n"
98 $useBgcolorOne = !$useBgcolorOne;
101 unset($table_row_count);
102 echo ' </table>' . "\n"
107 require('./footer.inc.php3');