2 /* vim: set expandtab sw=4 ts=4 sts=4: */
9 * no need for variables importing
12 if (! defined('PMA_NO_VARIABLES_IMPORT')) {
13 define('PMA_NO_VARIABLES_IMPORT', true);
18 require_once './libraries/common.inc.php';
21 * Does the common work
23 require './libraries/server_common.inc.php';
29 require './libraries/server_links.inc.php';
33 * Displays the sub-page heading
36 . ' ' . ($GLOBALS['cfg']['MainPageIconic']
37 ?
'<img class="icon" src="'. $GLOBALS['pmaThemeImage'] . 's_asci.png" alt="" />'
39 . '' . __('Character Sets and Collations') . "\n"
43 * Includes the required charset library
45 require_once './libraries/mysql_charsets.lib.php';
51 echo '<div id="div_mysql_charset_collations">' . "\n"
52 . '<table class="data">' . "\n"
53 . '<tr><th>' . __('Collation') . '</th>' . "\n"
54 . ' <th>' . __('Description') . '</th>' . "\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"
64 . '<table class="data">' . "\n"
65 . '<tr><th>' . __('Collation') . '</th>' . "\n"
66 . ' <th>' . __('Description') . '</th>' . "\n"
70 echo '<tr><th colspan="2" align="right">' . "\n"
71 . ' ' . htmlspecialchars($current_charset) . "\n"
72 . (empty($mysql_charsets_descriptions[$current_charset])
74 : ' (<i>' . htmlspecialchars(
75 $mysql_charsets_descriptions[$current_charset]) . '</i>)' . "\n")
79 foreach ($mysql_collations[$current_charset] as $current_collation) {
82 . ($odd_row ?
'odd' : 'even')
83 . ($mysql_default_collations[$current_charset] == $current_collation
86 . ($mysql_collations_available[$current_collation] ?
'' : ' disabled')
88 . ' <td>' . htmlspecialchars($current_collation) . '</td>' . "\n"
89 . ' <td>' . PMA_getCollationDescr($current_collation) . '</td>' . "\n"
94 unset($table_row_count);
95 echo '</table>' . "\n"
98 require './libraries/footer.inc.php';