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

📄 tbl_operations.php

📁 WEBGAME源码,有架设说明,只是非常简单
💻 PHP
📖 第 1 页 / 共 2 页
字号:
if (PMA_MYSQL_INT_VERSION >= 40100) {    ?>    <!-- Table character set -->    <tr><td><?php echo $strCollation; ?></td>        <td><?php echo PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION,                'tbl_collation', null, $tbl_collation, false, 3); ?>        </td>    </tr>    <?php}if ($tbl_type == 'MYISAM' || $tbl_type == 'ISAM') {    ?>    <tr>        <td><label for="new_pack_keys">pack_keys</label></td>        <td><select name="new_pack_keys" id="new_pack_keys">                <option value="DEFAULT"                    <?php if ($pack_keys == 'DEFAULT') echo 'selected="selected"'; ?>                    >DEFAULT</option>                <option value="0"                    <?php if ($pack_keys == '0') echo 'selected="selected"'; ?>                    >0</option>                <option value="1"                    <?php if ($pack_keys == '1') echo 'selected="selected"'; ?>                    >1</option>            </select>        </td>    </tr>    <?php} // end if (MYISAM|ISAM)if ($tbl_type == 'MYISAM') {    ?>    <tr><td><label for="new_checksum">checksum</label></td>        <td><input type="checkbox" name="new_checksum" id="new_checksum"                value="1"    <?php echo (isset($checksum) && $checksum == 1)        ? ' checked="checked"'        : ''; ?> />        </td>    </tr>    <tr><td><label for="new_delay_key_write">delay_key_write</label></td>        <td><input type="checkbox" name="new_delay_key_write" id="new_delay_key_write"                value="1"    <?php echo (isset($delay_key_write) && $delay_key_write == 1)        ? ' checked="checked"'        : ''; ?> />        </td>    </tr>    <?php} // end if (MYISAM)if (isset($auto_increment) && strlen($auto_increment) > 0  && ($tbl_type == 'MYISAM' || $tbl_type == 'INNODB')) {    ?>    <tr><td><label for="auto_increment_opt">auto_increment</label></td>        <td><input type="text" name="new_auto_increment" id="auto_increment_opt"                value="<?php echo $auto_increment; ?>" /></td>    </tr>    <?php} // end if (MYISAM|INNODB)?>    </table></fieldset><fieldset class="tblFooters">        <input type="submit" name="submitoptions" value="<?php echo $strGo; ?>" /></fieldset></form></div><!-- Copy table --><div id="div_table_copy"><form method="post" action="tbl_move_copy.php"    onsubmit="return emptyFormElements(this, 'new_name')"><?php echo PMA_generate_common_hidden_inputs($GLOBALS['db'], $GLOBALS['table']); ?><input type="hidden" name="reload" value="1" /><fieldset>    <legend><?php echo $strCopyTable; ?></legend>    <select name="target_db">        <?php echo $GLOBALS['PMA_List_Database']->getHtmlOptions(true); ?>    </select>    &nbsp;<b>.</b>&nbsp;    <input type="text" size="20" name="new_name" onfocus="this.select()" /><br />    <input type="radio" name="what" value="structure" id="radio_copy_structure" />    <label for="radio_copy_structure"><?php echo $strStrucOnly; ?></label><br />    <input type="radio" name="what" value="data" id="radio_copy_data" checked="checked" />    <label for="radio_copy_data"><?php echo $strStrucData; ?></label><br />    <input type="radio" name="what" value="dataonly" id="radio_copy_dataonly" />    <label for="radio_copy_dataonly"><?php echo $strDataOnly; ?></label><br />    <input type="checkbox" name="drop_if_exists" value="true" id="checkbox_drop" />    <label for="checkbox_drop"><?php echo sprintf($strAddClause, 'DROP TABLE'); ?></label><br />    <input type="checkbox" name="sql_auto_increment" value="1" id="checkbox_auto_increment_cp" />    <label for="checkbox_auto_increment_cp"><?php echo $strAddAutoIncrement; ?></label><br />    <?php        // display "Add constraints" choice only if there are        // foreign keys        if (PMA_getForeigners($GLOBALS['db'], $GLOBALS['table'], '', 'innodb')) {        ?>    <input type="checkbox" name="add_constraints" value="1" id="checkbox_constraints" />    <label for="checkbox_constraints"><?php echo $strAddConstraints; ?></label><br />        <?php        } // endif        if (isset($_COOKIE['pma_switch_to_new'])          && $_COOKIE['pma_switch_to_new'] == 'true') {            $pma_switch_to_new = 'true';        }    ?>    <input type="checkbox" name="switch_to_new" value="true"        id="checkbox_switch"<?php echo            isset($pma_switch_to_new) && $pma_switch_to_new == 'true'            ? ' checked="checked"'            : ''; ?> />    <label for="checkbox_switch"><?php echo $strSwitchToTable; ?></label></fieldset><fieldset class="tblFooters">    <input type="submit" name="submit_copy" value="<?php echo $strGo; ?>" /></fieldset></form></div><br class="clearfloat"/><h1><?php echo $strTableMaintenance; ?></h1><ul><?phpif ($tbl_type == 'MYISAM' || $tbl_type == 'BERKELEYDB' || $tbl_type == 'INNODB') {    if ($tbl_type == 'MYISAM' || $tbl_type == 'INNODB') {        $this_url_params = array_merge($url_params,            array('sql_query' => 'CHECK TABLE ' . PMA_backquote($GLOBALS['table'])));        ?>    <li><a href="sql.php<?php echo PMA_generate_common_url($this_url_params); ?>">            <?php echo $strCheckTable; ?></a>        <?php echo PMA_showMySQLDocu('MySQL_Database_Administration', 'CHECK_TABLE'); ?>    </li>        <?php    }    if ($tbl_type == 'INNODB') {        $this_url_params = array_merge($url_params,            array('sql_query' => 'ALTER TABLE ' . PMA_backquote($GLOBALS['table']) . ' ' . PMA_ENGINE_KEYWORD . '=InnoDB'));        ?>    <li><a href="sql.php<?php echo PMA_generate_common_url($this_url_params); ?>">            <?php echo $strDefragment; ?></a>        <?php echo PMA_showMySQLDocu('Table_types', 'InnoDB_File_Defragmenting'); ?>    </li>        <?php    }    if ($tbl_type == 'MYISAM' || $tbl_type == 'BERKELEYDB') {        $this_url_params = array_merge($url_params,            array('sql_query' => 'ANALYZE TABLE ' . PMA_backquote($GLOBALS['table'])));        ?>    <li><a href="sql.php<?php echo PMA_generate_common_url($this_url_params); ?>">            <?php echo $strAnalyzeTable; ?></a>        <?php echo PMA_showMySQLDocu('MySQL_Database_Administration', 'ANALYZE_TABLE');?>    </li>        <?php    }    if ($tbl_type == 'MYISAM') {        $this_url_params = array_merge($url_params,            array('sql_query' => 'REPAIR TABLE ' . PMA_backquote($GLOBALS['table'])));        ?>    <li><a href="sql.php<?php echo PMA_generate_common_url($this_url_params); ?>">            <?php echo $strRepairTable; ?></a>        <?php echo PMA_showMySQLDocu('MySQL_Database_Administration', 'REPAIR_TABLE'); ?>    </li>        <?php    }    if ($tbl_type == 'MYISAM' || $tbl_type == 'BERKELEYDB' || $tbl_type == 'INNODB') {        $this_url_params = array_merge($url_params,            array('sql_query' => 'OPTIMIZE TABLE ' . PMA_backquote($GLOBALS['table'])));        ?>    <li><a href="sql.php<?php echo PMA_generate_common_url($this_url_params); ?>">            <?php echo $strOptimizeTable; ?></a>        <?php echo PMA_showMySQLDocu('MySQL_Database_Administration', 'OPTIMIZE_TABLE'); ?>    </li>        <?php    }} // end MYISAM or BERKELEYDB case$this_url_params = array_merge($url_params,    array(        'sql_query' => 'FLUSH TABLE ' . PMA_backquote($GLOBALS['table']),        'zero_rows' => sprintf($strTableHasBeenFlushed,            htmlspecialchars($GLOBALS['table'])),        'reload'    => 1,        ));?>    <li><a href="sql.php<?php echo PMA_generate_common_url($this_url_params); ?>">            <?php echo $strFlushTable; ?></a>        <?php echo PMA_showMySQLDocu('MySQL_Database_Administration', 'FLUSH'); ?>    </li></ul><?php// Referential integrity check// The Referential integrity check was intended for the non-InnoDB// tables for which the relations are defined in pmadb// so I assume that if the current table is InnoDB, I don't display// this choice (InnoDB maintains integrity by itself)if ($cfgRelation['relwork'] && $tbl_type != "INNODB") {    // we need this PMA_DBI_select_db if the user has access to more than one db    // and $GLOBALS['db'] is not the last of the list, because    // PMA_List_Database::_checkAccess()    // has made a PMA_DBI_select_db() on the last one    PMA_DBI_select_db($GLOBALS['db']);    $foreign = PMA_getForeigners($GLOBALS['db'], $GLOBALS['table']);    if ($foreign) {        ?>    <!-- Referential integrity check -->    <ul>        <?php echo $strReferentialIntegrity; ?><br />        <?php        echo "\n";        foreach ($foreign AS $master => $arr) {            $join_query  = 'SELECT ' . PMA_backquote($GLOBALS['table']) . '.* FROM '                         . PMA_backquote($GLOBALS['table']) . ' LEFT JOIN '                         . PMA_backquote($arr['foreign_table']);            if ($arr['foreign_table'] == $GLOBALS['table']) {                $foreign_table = $GLOBALS['table'] . '1';                $join_query .= ' AS ' . PMA_backquote($foreign_table);            } else {                $foreign_table = $arr['foreign_table'];            }            $join_query .= ' ON '                         . PMA_backquote($GLOBALS['table']) . '.' . PMA_backquote($master)                         . ' = ' . PMA_backquote($foreign_table) . '.' . PMA_backquote($arr['foreign_field'])                         . ' WHERE '                         . PMA_backquote($foreign_table) . '.' . PMA_backquote($arr['foreign_field'])                         . ' IS NULL AND '                         . PMA_backquote($GLOBALS['table']) . '.' . PMA_backquote($master)                         . ' IS NOT NULL';            $this_url_params = array_merge($url_params,                array('sql_query' => $join_query));            echo '        <li>'                 . '<a href="sql.php'                 . PMA_generate_common_url($this_url_params)                 . '">' . $master . '&nbsp;->&nbsp;' . $arr['foreign_table'] . '.' . $arr['foreign_field']                 . '</a></li>' . "\n";        } //  foreach $foreign        unset($foreign_table, $join_query);        ?>    </ul>        <?php    } // end if ($result)} // end  if (!empty($cfg['Server']['relation']))/** * Displays the footer */require_once './libraries/footer.inc.php';?>

⌨️ 快捷键说明

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