3 // vim: expandtab sw=4 ts=4 sts=4:
8 if ( ! defined( 'PMA_NO_VARIABLES_IMPORT' ) ) {
9 define( 'PMA_NO_VARIABLES_IMPORT', true );
11 require_once('./libraries/common.lib.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 . ' ' . ($GLOBALS['cfg']['MainPageIconic']
30 ?
'<img class="icon" src="'. $GLOBALS['pmaThemeImage'] . 's_asci.png" alt="" />'
32 . '' . $strCharsetsAndCollations . "\n"
37 * Checks the MySQL version
39 if (PMA_MYSQL_INT_VERSION
< 40100) {
40 // TODO: Some nice Message :-)
41 require_once('./libraries/footer.inc.php');
46 * Includes the required charset library
48 require_once('./libraries/mysql_charsets.lib.php');
54 echo '<div id="div_mysql_charset_collations">' . "\n"
55 . '<table class="data">' . "\n"
56 . '<tr><th>' . $strCollation . '</th>' . "\n"
57 . ' <th>' . $strDescription . '</th>' . "\n"
61 $table_row_count = count($mysql_charsets) +
$mysql_collations_count;
63 foreach ($mysql_charsets as $current_charset) {
64 if ($i >= $table_row_count / 2) {
66 echo '</table>' . "\n"
67 . '<table class="data">' . "\n"
68 . '<tr><th>' . $strCollation . '</th>' . "\n"
69 . ' <th>' . $strDescription . '</th>' . "\n"
73 echo '<tr><th colspan="2" align="right">' . "\n"
74 . ' ' . htmlspecialchars($current_charset) . "\n"
75 . (empty($mysql_charsets_descriptions[$current_charset])
77 : ' (<i>' . htmlspecialchars(
78 $mysql_charsets_descriptions[$current_charset]) . '</i>)' . "\n")
82 foreach ($mysql_collations[$current_charset] as $current_collation) {
85 . ( $odd_row ?
'odd' : 'even' )
86 . ($mysql_default_collations[$current_charset] == $current_collation
89 . ($mysql_collations_available[$current_collation] ?
'' : ' disabled')
91 . ' <td>' . htmlspecialchars($current_collation) . '</td>' . "\n"
92 . ' <td>' . PMA_getCollationDescr($current_collation) . '</td>' . "\n"
97 unset($table_row_count);
98 echo '</table>' . "\n"
101 require_once('./libraries/footer.inc.php');