2 /* vim: set expandtab sw=4 ts=4 sts=4: */
10 * no need for variables importing
13 if (! defined('PMA_NO_VARIABLES_IMPORT')) {
14 define('PMA_NO_VARIABLES_IMPORT', true);
19 require_once './libraries/common.inc.php';
22 * Does the common work
24 require './libraries/server_common.inc.php';
30 require './libraries/server_links.inc.php';
34 * Displays the sub-page heading
37 . ' ' . ($GLOBALS['cfg']['MainPageIconic']
38 ?
'<img class="icon" src="'. $GLOBALS['pmaThemeImage'] . 's_asci.png" alt="" />'
40 . '' . __('Character Sets and Collations') . "\n"
44 * Includes the required charset library
46 require_once './libraries/mysql_charsets.lib.php';
52 echo '<div id="div_mysql_charset_collations">' . "\n"
53 . '<table class="data">' . "\n"
54 . '<tr><th>' . __('Collation') . '</th>' . "\n"
55 . ' <th>' . __('Description') . '</th>' . "\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"
65 . '<table class="data">' . "\n"
66 . '<tr><th>' . __('Collation') . '</th>' . "\n"
67 . ' <th>' . __('Description') . '</th>' . "\n"
71 echo '<tr><th colspan="2" align="right">' . "\n"
72 . ' ' . htmlspecialchars($current_charset) . "\n"
73 . (empty($mysql_charsets_descriptions[$current_charset])
75 : ' (<i>' . htmlspecialchars(
76 $mysql_charsets_descriptions[$current_charset]) . '</i>)' . "\n")
80 foreach ($mysql_collations[$current_charset] as $current_collation) {
83 . ($odd_row ?
'odd' : 'even')
84 . ($mysql_default_collations[$current_charset] == $current_collation
87 . ($mysql_collations_available[$current_collation] ?
'' : ' disabled')
89 . ' <td>' . htmlspecialchars($current_collation) . '</td>' . "\n"
90 . ' <td>' . PMA_getCollationDescr($current_collation) . '</td>' . "\n"
95 unset($table_row_count);
96 echo '</table>' . "\n"
99 require_once './libraries/footer.inc.php';