2 /* vim: set expandtab sw=4 ts=4 sts=4: */
11 if (! defined('PMA_NO_VARIABLES_IMPORT')) {
12 define('PMA_NO_VARIABLES_IMPORT', true);
14 require_once './libraries/common.inc.php';
17 * Does the common work
19 require './libraries/server_common.inc.php';
25 require './libraries/server_links.inc.php';
29 * Displays the sub-page heading
32 . ' ' . ($GLOBALS['cfg']['MainPageIconic']
33 ?
'<img class="icon" src="'. $GLOBALS['pmaThemeImage'] . 's_asci.png" alt="" />'
35 . '' . $strCharsetsAndCollations . "\n"
40 * exits if wrong MySQL version
41 * @todo Some nice Message :-)
43 if (PMA_MYSQL_INT_VERSION
< 40100) {
44 require_once './libraries/footer.inc.php';
49 * Includes the required charset library
51 require_once './libraries/mysql_charsets.lib.php';
57 echo '<div id="div_mysql_charset_collations">' . "\n"
58 . '<table class="data">' . "\n"
59 . '<tr><th>' . $strCollation . '</th>' . "\n"
60 . ' <th>' . $strDescription . '</th>' . "\n"
64 $table_row_count = count($mysql_charsets) +
$mysql_collations_count;
66 foreach ($mysql_charsets as $current_charset) {
67 if ($i >= $table_row_count / 2) {
69 echo '</table>' . "\n"
70 . '<table class="data">' . "\n"
71 . '<tr><th>' . $strCollation . '</th>' . "\n"
72 . ' <th>' . $strDescription . '</th>' . "\n"
76 echo '<tr><th colspan="2" align="right">' . "\n"
77 . ' ' . htmlspecialchars($current_charset) . "\n"
78 . (empty($mysql_charsets_descriptions[$current_charset])
80 : ' (<i>' . htmlspecialchars(
81 $mysql_charsets_descriptions[$current_charset]) . '</i>)' . "\n")
85 foreach ($mysql_collations[$current_charset] as $current_collation) {
88 . ($odd_row ?
'odd' : 'even')
89 . ($mysql_default_collations[$current_charset] == $current_collation
92 . ($mysql_collations_available[$current_collation] ?
'' : ' disabled')
94 . ' <td>' . htmlspecialchars($current_collation) . '</td>' . "\n"
95 . ' <td>' . PMA_getCollationDescr($current_collation) . '</td>' . "\n"
100 unset($table_row_count);
101 echo '</table>' . "\n"
104 require_once './libraries/footer.inc.php';