⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tbl_printview.php

📁 WEBGAME源码,有架设说明,只是非常简单
💻 PHP
📖 第 1 页 / 共 2 页
字号:
</tbody></table>    <?php    if ( ! $tbl_is_view      && ( $db != 'information_schema'        || PMA_MYSQL_INT_VERSION < 50002 ) ) {        /**         * Displays indexes         */        $index_count = (isset($indexes))                     ? count($indexes)                     : 0;        if ($index_count > 0) {            echo "\n";            ?>    <br /><br />    <!-- Indexes -->    <big><?php echo $strIndexes . ':'; ?></big>    <table>        <tr>            <th><?php echo $strKeyname; ?></th>            <th><?php echo $strType; ?></th>            <th><?php echo $strCardinality; ?></th>            <th colspan="2"><?php echo $strField; ?></th>        </tr>            <?php            echo "\n";            PMA_show_indexes($table, $indexes, $indexes_info, $indexes_data, true, true);            echo "\n";            ?>    </table>            <?php            echo "\n";        } // end display indexes        /**         * Displays Space usage and row statistics         *         * staybyte - 9 June 2001         */        if ($cfg['ShowStats']) {            $nonisam     = false;            if (isset($showtable['Type']) && !preg_match('@ISAM|HEAP@i', $showtable['Type'])) {                $nonisam = true;            }            if ($nonisam == false) {                // Gets some sizes                $mergetable     = false;                if (isset($showtable['Type']) && $showtable['Type'] == 'MRG_MyISAM') {                    $mergetable = true;                }                list($data_size, $data_unit)         = PMA_formatByteDown($showtable['Data_length']);                if ($mergetable == false) {                    list($index_size, $index_unit)   = PMA_formatByteDown($showtable['Index_length']);                }                if (isset($showtable['Data_free']) && $showtable['Data_free'] > 0) {                    list($free_size, $free_unit)     = PMA_formatByteDown($showtable['Data_free']);                    list($effect_size, $effect_unit) = PMA_formatByteDown($showtable['Data_length'] + $showtable['Index_length'] - $showtable['Data_free']);                } else {                    unset($free_size);                    unset($free_unit);                    list($effect_size, $effect_unit) = PMA_formatByteDown($showtable['Data_length'] + $showtable['Index_length']);                }                list($tot_size, $tot_unit)           = PMA_formatByteDown($showtable['Data_length'] + $showtable['Index_length']);                if ($num_rows > 0) {                    list($avg_size, $avg_unit)       = PMA_formatByteDown(($showtable['Data_length'] + $showtable['Index_length']) / $showtable['Rows'], 6, 1);                }                // Displays them                ?>    <br /><br />    <table border="0" cellspacing="0" cellpadding="0" class="noborder">    <tr>        <!-- Space usage -->        <td valign="top">            <big><?php echo $strSpaceUsage . ':'; ?></big>            <table width="100%">            <tr>                <th><?php echo $strType; ?></th>                <th colspan="2" align="center"><?php echo $strUsage; ?></th>            </tr>            <tr>                <td style="padding-right: 10px"><?php echo $strData; ?></td>                <td align="right"><?php echo $data_size; ?></td>                <td><?php echo $data_unit; ?></td>            </tr>                <?php                if (isset($index_size)) {                    echo "\n";                    ?>            <tr>                <td style="padding-right: 10px"><?php echo $strIndex; ?></td>                <td align="right"><?php echo $index_size; ?></td>                <td><?php echo $index_unit; ?></td>            </tr>                    <?php                }                if (isset($free_size)) {                    echo "\n";                    ?>            <tr style="color: #bb0000">                <td style="padding-right: 10px"><?php echo $strOverhead; ?></td>                <td align="right"><?php echo $free_size; ?></td>                <td><?php echo $free_unit; ?></td>            </tr>            <tr>                <td style="padding-right: 10px"><?php echo $strEffective; ?></td>                <td align="right"><?php echo $effect_size; ?></td>                <td><?php echo $effect_unit; ?></td>            </tr>                    <?php                }                if (isset($tot_size) && $mergetable == false) {                    echo "\n";                    ?>            <tr>                <td style="padding-right: 10px"><?php echo $strTotalUC; ?></td>                <td align="right"><?php echo $tot_size; ?></td>                <td><?php echo $tot_unit; ?></td>            </tr>                    <?php                }                echo "\n";                ?>            </table>        </td>        <td width="20">&nbsp;</td>        <!-- Rows Statistic -->        <td valign="top">            <big><?php echo $strRowsStatistic . ':'; ?></big>            <table width="100%">            <tr>                <th><?php echo $strStatement; ?></th>                <th align="center"><?php echo $strValue; ?></th>            </tr>                <?php                if (isset($showtable['Row_format'])) {                    ?>            <tr>                <td><?php echo ucfirst($strFormat); ?></td>                <td align="<?php echo $cell_align_left; ?>">                    <?php                    if ($showtable['Row_format'] == 'Fixed') {                        echo $strFixed;                    } elseif ($showtable['Row_format'] == 'Dynamic') {                        echo $strDynamic;                    } else {                        echo $showtable['Row_format'];                    }                    ?>                </td>            </tr>                    <?php                }                if (isset($showtable['Rows'])) {                    ?>            <tr>                <td><?php echo ucfirst($strRows); ?></td>                <td align="right">                    <?php echo number_format($showtable['Rows'], 0, $number_decimal_separator, $number_thousands_separator) . "\n"; ?>                </td>            </tr>                    <?php                }                if (isset($showtable['Avg_row_length']) && $showtable['Avg_row_length'] > 0) {                    ?>            <tr>                <td><?php echo ucfirst($strRowLength); ?>&nbsp;&oslash;</td>                <td>                    <?php echo number_format($showtable['Avg_row_length'], 0, $number_decimal_separator, $number_thousands_separator) . "\n"; ?>                </td>            </tr>                    <?php                }                if (isset($showtable['Data_length']) && $showtable['Rows'] > 0 && $mergetable == false) {                    ?>            <tr>                <td><?php echo ucfirst($strRowSize); ?>&nbsp;&oslash;</td>                <td align="right">                    <?php echo $avg_size . ' ' . $avg_unit . "\n"; ?>                </td>            </tr>                    <?php                }                if (isset($showtable['Auto_increment'])) {                    ?>            <tr>                <td><?php echo ucfirst($strNext); ?>&nbsp;Autoindex</td>                <td align="right">                    <?php echo number_format($showtable['Auto_increment'], 0, $number_decimal_separator, $number_thousands_separator) . "\n"; ?>                </td>            </tr>                    <?php                }                if (isset($showtable['Create_time'])) {                    ?>            <tr>                <td><?php echo $strStatCreateTime; ?></td>                <td align="right">                    <?php echo PMA_localisedDate(strtotime($showtable['Create_time'])) . "\n"; ?>                </td>            </tr>                    <?php                }                if (isset($showtable['Update_time'])) {                    ?>            <tr>                <td><?php echo $strStatUpdateTime; ?></td>                <td align="right">                    <?php echo PMA_localisedDate(strtotime($showtable['Update_time'])) . "\n"; ?>                </td>            </tr>                    <?php                }                if (isset($showtable['Check_time'])) {                    ?>            <tr>                <td><?php echo $strStatCheckTime; ?></td>                <td align="right">                    <?php echo PMA_localisedDate(strtotime($showtable['Check_time'])) . "\n"; ?>                </td>            </tr>                    <?php                }                ?>            </table>        </td>    </tr>    </table>                <?php            } // end if ($nonisam == false)        } // end if ($cfg['ShowStats'])    }    if ($multi_tables) {        unset($ret_keys, $num_rows, $show_comment);        echo '<hr />' . "\n";    } // end if    echo '</div>' . "\n";} // end while/** * Displays the footer */?><script type="text/javascript" language="javascript">//<![CDATA[function printPage(){    // Do print the page    if (typeof(window.print) != 'undefined') {        window.print();    }}//]]></script><p class="print_ignore">    <input type="button" id="print" value="<?php echo $strPrint; ?>"        onclick="printPage()" /></p><?phprequire_once './libraries/footer.inc.php';?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -