Documentation TYPO3 par Ameos

server_collations.php

00001 <?php
00002 /* $Id: server_collations.php,v 2.8 2005/03/29 18:09:46 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    . '    ' . ($GLOBALS['cfg']['MainPageIconic'] ? '<img src="'. $GLOBALS['pmaThemeImage'] . 's_asci.png" border="0" hspace="2" align="middle" />' : '') 
00023    . '' . $strCharsetsAndCollations . "\n"
00024    . '</h2>' . "\n";
00025 
00026 
00030 if (PMA_MYSQL_INT_VERSION < 40100) {
00031     // TODO: Some nice Message :-)
00032     require_once('./footer.inc.php');
00033 }
00034 
00035 
00039 require_once('./libraries/mysql_charsets.lib.php');
00040 
00041 
00045 echo '<table border="0">' . "\n"
00046    . '    <tr>' . "\n"
00047    . '        <td valign="top">' . "\n"
00048    . '            <table border="0" cellpadding="2" cellspacing="1">' . "\n"
00049    . '                <tr>' . "\n"
00050    . '                <th>' . "\n"
00051    . '                    ' . $strCollation . "\n"
00052    . '                </th>' . "\n"
00053    . '                <th>' . "\n"
00054    . '                    ' . $strDescription . "\n"
00055    . '                </th>' . "\n"
00056    . '            </tr>' . "\n";
00057 
00058 $i = 0;
00059 $table_row_count = count($mysql_charsets) + $mysql_collations_count;
00060 
00061 foreach ($mysql_charsets as $current_charset) {
00062     if ($i >= $table_row_count / 2) {
00063         $i = 0;
00064         echo '            </table>' . "\n"
00065            . '        </td>' . "\n"
00066            . '        <td valign="top">' . "\n"
00067            . '            <table border="0" cellpadding="2" cellspacing="1">' . "\n"
00068            . '                <tr>' . "\n"
00069            . '                <th>' . "\n"
00070            . '                    ' . $strCollation . "\n"
00071            . '                </th>' . "\n"
00072            . '                <th>' . "\n"
00073            . '                    ' . $strDescription . "\n"
00074            . '                </th>' . "\n"
00075            . '            </tr>' . "\n";
00076     }
00077     $i++;
00078     echo '            <tr>' . "\n"
00079        . '                <td colspan="2" bgcolor="' . $cfg['ThBgcolor'] . '" align="right">' . "\n"
00080        . '                    &nbsp;<b>' . htmlspecialchars($current_charset) . '</b>' . "\n"
00081        . (empty($mysql_charsets_descriptions[$current_charset]) ? '' : '                    (<i>' . htmlspecialchars($mysql_charsets_descriptions[$current_charset]) . '</i>)&nbsp;' . "\n")
00082        . '                </td>' . "\n"
00083        . '            </tr>' . "\n";
00084     $useBgcolorOne = TRUE;
00085     foreach ($mysql_collations[$current_charset] as $current_collation) {
00086         $i++;
00087         echo '            <tr' . ($mysql_collations_available[$current_collation] ? '' : ' class="disabled"') . '>' . "\n"
00088            . '                <td bgcolor="' . ($mysql_default_collations[$current_charset] == $current_collation ? $cfg['BrowseMarkerColor'] : ($useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo'])) . '">' . "\n"
00089            . '                    &nbsp;' . htmlspecialchars($current_collation) . '&nbsp;' . "\n"
00090            . '                </td>' . "\n"
00091            . '                <td bgcolor="' . ($useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']) . '">' . "\n"
00092            . '                    &nbsp;' . PMA_getCollationDescr($current_collation) . '&nbsp;' . "\n"
00093            . '                </td>' . "\n"
00094            . '            </tr>' . "\n";
00095         $useBgcolorOne = !$useBgcolorOne;
00096     }
00097 }
00098 unset($table_row_count);
00099 echo '            </table>' . "\n"
00100    . '        </td>' . "\n"
00101    . '    </tr>' . "\n"
00102    . '</table>' . "\n";
00103 
00104 require_once('./footer.inc.php');
00105 
00106 ?>


Généré par Les spécialistes TYPO3 avec  doxygen 1.4.6