📄 db_operations.php
字号:
onsubmit="return emptyFormElements(this, 'newname')"> <?php if (isset($db_collation)) { echo '<input type="hidden" name="db_collation" value="' . $db_collation .'" />' . "\n"; } echo '<input type="hidden" name="db_copy" value="true" />' . "\n"; echo PMA_generate_common_hidden_inputs($db); ?> <fieldset> <legend> <?php if ($cfg['PropertiesIconic']) { echo '<img class="icon" src="' . $pmaThemeImage . 'b_edit.png"' .' alt="" width="16" height="16" />'; } echo $strDBCopy . ':'; ?> </legend> <input type="text" name="newname" size="30" class="textfield" value="" /><br /> <input type="radio" name="what" value="structure" id="radio_copy_structure" style="vertical-align: middle" /> <label for="radio_copy_structure"><?php echo $strStrucOnly; ?></label><br /> <input type="radio" name="what" value="data" id="radio_copy_data" checked="checked" style="vertical-align: middle" /> <label for="radio_copy_data"><?php echo $strStrucData; ?></label><br /> <input type="radio" name="what" value="dataonly" id="radio_copy_dataonly" style="vertical-align: middle" /> <label for="radio_copy_dataonly"><?php echo $strDataOnly; ?></label><br /> <input type="checkbox" name="create_database_before_copying" value="1" id="checkbox_create_database_before_copying" style="vertical-align: middle" checked="checked" /> <label for="checkbox_create_database_before_copying"> <?php echo $strCreateDatabaseBeforeCopying; ?></label><br /> <input type="checkbox" name="drop_if_exists" value="true" id="checkbox_drop" style="vertical-align: middle" /> <label for="checkbox_drop"><?php echo $strStrucDrop; ?></label><br /> <input type="checkbox" name="sql_auto_increment" value="1" id="checkbox_auto_increment" style="vertical-align: middle" /> <label for="checkbox_auto_increment"> <?php echo $strAddAutoIncrement; ?></label><br /> <input type="checkbox" name="constraints" value="1" id="checkbox_constraints" style="vertical-align: middle" /> <label for="checkbox_constraints"> <?php echo $strAddConstraints; ?></label><br /> <?php if (isset($_COOKIE) && 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"' : ''); ?> style="vertical-align: middle" /> <label for="checkbox_switch"><?php echo $strSwitchToDatabase; ?></label> </fieldset> <fieldset class="tblFooters"> <input type="submit" name="submit_copy" value="<?php echo $strGo; ?>" /> </fieldset> </form> <?php /** * Change database charset */ if (PMA_MYSQL_INT_VERSION >= 40101) { // MySQL supports setting default charsets / collations for databases since // version 4.1.1. echo '<form method="post" action="./db_operations.php">' . "\n" . PMA_generate_common_hidden_inputs($db, $table) . '<fieldset>' . "\n" . ' <legend>'; if ($cfg['PropertiesIconic']) { echo '<img class="icon" src="' . $pmaThemeImage . 's_asci.png"' .' alt="" width="16" height="16" />'; } echo ' <label for="select_db_collation">' . $strCollation . ':</label>' . "\n" . ' </legend>' . "\n" . PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'db_collation', 'select_db_collation', $db_collation, FALSE, 3) . ' <input type="submit" name="submitcollation"' . ' value="' . $strGo . '" style="vertical-align: middle" />' . "\n" . '</fieldset>' . "\n" . '</form>' . "\n"; } if ( $num_tables > 0 && !$cfgRelation['allworks'] && $cfg['PmaNoRelation_DisableWarning'] == FALSE) { echo '<div class="error"><h1>' . $strError . '</h1>' . sprintf( $strRelationNotWorking, '<a href="' . $cfg['PmaAbsoluteUri'] . 'chk_rel.php?' . $url_query . '">', '</a>') . '</div>'; } // end if} // end if (!$is_information_schema)// not sure about leaving the PDF dialog for information_schemaif ($num_tables > 0) { $takeaway = $url_query . '&table=' . urlencode($table);}if ($cfgRelation['pdfwork'] && $num_tables > 0) { ?> <!-- Work on PDF Pages --> <?php // We only show this if we find something in the new pdf_pages table $test_query = ' SELECT * FROM ' . PMA_backquote($GLOBALS['cfgRelation']['db']) . '.' . PMA_backquote($cfgRelation['pdf_pages']) . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''; $test_rs = PMA_query_as_cu($test_query, null, PMA_DBI_QUERY_STORE); if ($test_rs && PMA_DBI_num_rows($test_rs) > 0) { ?> <!-- PDF schema --> <form method="post" action="pdf_schema.php"> <fieldset> <legend> <?php echo PMA_generate_common_hidden_inputs($db); if ($cfg['PropertiesIconic']) { echo '<img class="icon" src="' . $pmaThemeImage . 'b_view.png"' .' alt="" width="16" height="16" />'; } echo $strDisplayPDF; ?>: </legend> <label for="pdf_page_number_opt"><?php echo $strPageNumber; ?></label> <select name="pdf_page_number" id="pdf_page_number_opt"> <?php while ($pages = @PMA_DBI_fetch_assoc($test_rs)) { echo ' <option value="' . $pages['page_nr'] . '">' . $pages['page_nr'] . ': ' . $pages['page_descr'] . '</option>' . "\n"; } // end while PMA_DBI_free_result($test_rs); unset($test_rs); ?> </select><br /> <input type="checkbox" name="show_grid" id="show_grid_opt" /> <label for="show_grid_opt"><?php echo $strShowGrid; ?></label><br /> <input type="checkbox" name="show_color" id="show_color_opt" checked="checked" /> <label for="show_color_opt"><?php echo $strShowColor; ?></label><br /> <input type="checkbox" name="show_table_dimension" id="show_table_dim_opt" /> <label for="show_table_dim_opt"><?php echo $strShowTableDimension; ?> </label><br /> <input type="checkbox" name="all_tab_same_wide" id="all_tab_same_wide" /> <label for="all_tab_same_wide"><?php echo $strAllTableSameWidth; ?> </label><br /> <input type="checkbox" name="with_doc" id="with_doc" checked="checked" /> <label for="with_doc"><?php echo $strDataDict; ?></label><br /> <label for="orientation_opt"><?php echo $strShowDatadictAs; ?></label> <select name="orientation" id="orientation_opt"> <option value="L"><?php echo $strLandscape;?></option> <option value="P"><?php echo $strPortrait;?></option> </select><br /> <label for="paper_opt"><?php echo $strPaperSize; ?></label> <select name="paper" id="paper_opt"> <?php foreach ($cfg['PDFPageSizes'] AS $key => $val) { echo '<option value="' . $val . '"'; if ($val == $cfg['PDFDefaultPageSize']) { echo ' selected="selected"'; } echo ' >' . $val . '</option>' . "\n"; } ?> </select> </fieldset> <fieldset class="tblFooters"> <input type="submit" value="<?php echo $strGo; ?>" /> </fieldset> </form> <?php } // end if ?> <ul> <li> <?php echo '<a href="pdf_pages.php?' . $takeaway . '">'; if ($cfg['PropertiesIconic']) { echo '<img class="icon" src="' . $pmaThemeImage . 'b_edit.png"' .' alt="" width="16" height="16" />'; } echo $strEditPDFPages . '</a>'; ?> </li> </ul> <?php} // end ifif ( $num_tables > 0 && $cfgRelation['relwork'] && $cfgRelation['commwork'] && isset($cfg['docSQLDir']) && !empty($cfg['docSQLDir']) ) { /** * import docSQL files */ echo '<ul>' . "\n" .'<li><a href="db_details_importdocsql.php?' . $takeaway . '">' . "\n"; if ($cfg['PropertiesIconic']) { echo '<img class="icon" src="' . $pmaThemeImage . 'b_docsql.png"' .' alt="" width="16" height="16" />'; } echo $strImportDocSQL . '</a></li>' . "\n" .'</ul>';}/** * Displays the footer */require_once('./libraries/footer.inc.php');?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -