3 // vim: expandtab sw=4 ts=4 sts=4:
9 require('./server_common.inc.php');
15 require('./server_links.inc.php');
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 require_once('./footer.inc.php');
36 * Includes the required charset library
38 require_once('./libraries/mysql_charsets.lib.php');
44 echo '<table border="0">' . "\n"
46 . ' <td valign="top">' . "\n"
47 . ' <table border="0">' . "\n"
50 . ' ' . $strCollation . "\n"
53 . ' ' . $strDescription . "\n"
58 $table_row_count = count($mysql_charsets) +
$mysql_collations_count;
60 foreach ($mysql_charsets as $current_charset) {
61 if ($i > $table_row_count / 2) {
63 echo ' </table>' . "\n"
65 . ' <td valign="top">' . "\n"
66 . ' <table border="0">' . "\n"
69 . ' ' . $strCollation . "\n"
72 . ' ' . $strDescription . "\n"
78 . ' <td colspan="2" bgcolor="' . $cfg['ThBgcolor'] . '" align="right">' . "\n"
79 . ' <b>' . htmlspecialchars($current_charset) . '</b>' . "\n"
80 . ' (<i>' . htmlspecialchars($mysql_charsets_descriptions[$current_charset]) . '</i>) ' . "\n"
83 $useBgcolorOne = TRUE;
84 foreach ($mysql_collations[$current_charset] as $current_collation) {
87 . ' <td bgcolor="' . ($mysql_default_collations[$current_charset] == $current_collation ?
$cfg['BrowseMarkerColor'] : ($useBgcolorOne ?
$cfg['BgcolorOne'] : $cfg['BgcolorTwo'])) . '">' . "\n"
88 . ' ' . htmlspecialchars($current_collation) . ' ' . "\n"
90 . ' <td bgcolor="' . ($useBgcolorOne ?
$cfg['BgcolorOne'] : $cfg['BgcolorTwo']) . '">' . "\n"
91 . ' ' . PMA_getCollationDescr($current_collation) . ' ' . "\n"
94 $useBgcolorOne = !$useBgcolorOne;
97 unset($table_row_count);
98 echo ' </table>' . "\n"
103 require_once('./footer.inc.php');