Documentation TYPO3 par Ameos

server_collations.php

00001 <?php
00002 /* $Id: server_collations.php,v 2.5 2003/12/11 11:37:25 rabus Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
00004 
00005 
00009 require('./server_common.inc.php');
00010 
00011 
00015 require('./server_links.inc.php');
00016 
00017 
00021 echo '<h2>' . "\n"
00022    . '    ' . $strCharsetsAndCollations . "\n"
00023    . '</h2>' . "\n";
00024 
00025 
00029 if (PMA_MYSQL_INT_VERSION < 40100) {
00030     // TODO: Some nice Message :-)
00031     require_once('./footer.inc.php');
00032 }
00033 
00034 
00038 require_once('./libraries/mysql_charsets.lib.php');
00039 
00040 
00044 echo '<table border="0">' . "\n"
00045    . '    <tr>' . "\n"
00046    . '        <td valign="top">' . "\n"
00047    . '            <table border="0">' . "\n"
00048    . '                <tr>' . "\n"
00049    . '                <th>' . "\n"
00050    . '                    ' . $strCollation . "\n"
00051    . '                </th>' . "\n"
00052    . '                <th>' . "\n"
00053    . '                    ' . $strDescription . "\n"
00054    . '                </th>' . "\n"
00055    . '            </tr>' . "\n";
00056 
00057 $i = 0;
00058 $table_row_count = count($mysql_charsets) + $mysql_collations_count;
00059 
00060 foreach ($mysql_charsets as $current_charset) {
00061     if ($i >= $table_row_count / 2) {
00062         $i = 0;
00063         echo '            </table>' . "\n"
00064            . '        </td>' . "\n"
00065            . '        <td valign="top">' . "\n"
00066            . '            <table border="0">' . "\n"
00067            . '                <tr>' . "\n"
00068            . '                <th>' . "\n"
00069            . '                    ' . $strCollation . "\n"
00070            . '                </th>' . "\n"
00071            . '                <th>' . "\n"
00072            . '                    ' . $strDescription . "\n"
00073            . '                </th>' . "\n"
00074            . '            </tr>' . "\n";
00075     }
00076     $i++;
00077     echo '            <tr>' . "\n"
00078        . '                <td colspan="2" bgcolor="' . $cfg['ThBgcolor'] . '" align="right">' . "\n"
00079        . '                    &nbsp;<b>' . htmlspecialchars($current_charset) . '</b>' . "\n"
00080        . (empty($mysql_charsets_descriptions[$current_charset]) ? '' : '                    (<i>' . htmlspecialchars($mysql_charsets_descriptions[$current_charset]) . '</i>)&nbsp;' . "\n")
00081        . '                </td>' . "\n"
00082        . '            </tr>' . "\n";
00083     $useBgcolorOne = TRUE;
00084     foreach ($mysql_collations[$current_charset] as $current_collation) {
00085         $i++;
00086         echo '            <tr>' . "\n"
00087            . '                <td bgcolor="' . ($mysql_default_collations[$current_charset] == $current_collation ? $cfg['BrowseMarkerColor'] : ($useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo'])) . '">' . "\n"
00088            . '                    &nbsp;' . htmlspecialchars($current_collation) . '&nbsp;' . "\n"
00089            . '                </td>' . "\n"
00090            . '                <td bgcolor="' . ($useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']) . '">' . "\n"
00091            . '                    &nbsp;' . PMA_getCollationDescr($current_collation) . '&nbsp;' . "\n"
00092            . '                </td>' . "\n"
00093            . '            </tr>' . "\n";
00094         $useBgcolorOne = !$useBgcolorOne;
00095     }
00096 }
00097 unset($table_row_count);
00098 echo '            </table>' . "\n"
00099    . '        </td>' . "\n"
00100    . '    </tr>' . "\n"
00101    . '</table>' . "\n";
00102 
00103 require_once('./footer.inc.php');
00104 
00105 ?>


Généré par TYPO3 Ameos avec  doxygen 1.4.6