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 . ' ' . ($GLOBALS['cfg']['MainPageIconic'] ?
'<img src="'. $GLOBALS['pmaThemeImage'] . 's_asci.png" border="0" hspace="2" align="middle" />' : '')
23 . '' . $strCharsetsAndCollations . "\n"
28 * Checks the MySQL version
30 if (PMA_MYSQL_INT_VERSION
< 40100) {
31 // TODO: Some nice Message :-)
32 require_once('./footer.inc.php');
37 * Includes the required charset library
39 require_once('./libraries/mysql_charsets.lib.php');
45 echo '<table border="0">' . "\n"
47 . ' <td valign="top">' . "\n"
48 . ' <table border="0" cellpadding="2" cellspacing="1">' . "\n"
51 . ' ' . $strCollation . "\n"
54 . ' ' . $strDescription . "\n"
59 $table_row_count = count($mysql_charsets) +
$mysql_collations_count;
61 foreach ($mysql_charsets as $current_charset) {
62 if ($i >= $table_row_count / 2) {
64 echo ' </table>' . "\n"
66 . ' <td valign="top">' . "\n"
67 . ' <table border="0" cellpadding="2" cellspacing="1">' . "\n"
70 . ' ' . $strCollation . "\n"
73 . ' ' . $strDescription . "\n"
79 . ' <td colspan="2" bgcolor="' . $cfg['ThBgcolor'] . '" align="right">' . "\n"
80 . ' <b>' . htmlspecialchars($current_charset) . '</b>' . "\n"
81 . (empty($mysql_charsets_descriptions[$current_charset]) ?
'' : ' (<i>' . htmlspecialchars($mysql_charsets_descriptions[$current_charset]) . '</i>) ' . "\n")
84 $useBgcolorOne = TRUE;
85 foreach ($mysql_collations[$current_charset] as $current_collation) {
87 echo ' <tr' . ($mysql_collations_available[$current_collation] ?
'' : ' class="disabled"') . '>' . "\n"
88 . ' <td bgcolor="' . ($mysql_default_collations[$current_charset] == $current_collation ?
$cfg['BrowseMarkerColor'] : ($useBgcolorOne ?
$cfg['BgcolorOne'] : $cfg['BgcolorTwo'])) . '">' . "\n"
89 . ' ' . htmlspecialchars($current_collation) . ' ' . "\n"
91 . ' <td bgcolor="' . ($useBgcolorOne ?
$cfg['BgcolorOne'] : $cfg['BgcolorTwo']) . '">' . "\n"
92 . ' ' . PMA_getCollationDescr($current_collation) . ' ' . "\n"
95 $useBgcolorOne = !$useBgcolorOne;
98 unset($table_row_count);
99 echo ' </table>' . "\n"
104 require_once('./footer.inc.php');