📄 display_export.lib.php
字号:
</td> </tr> <tr> <td colspan="2"> <input type="checkbox" name="showexcelnames" value="yes" id="checkbox_dump_showexcelnames" <?php PMA_exportCheckboxCheck('excel_columns'); ?> style="vertical-align: middle" /> <label for="checkbox_dump_showexcelnames"><?php echo $strPutColNames; ?></label> </td> </tr> <tr> <td> <label for="select_excel_edition"> <?php echo $strExcelEdition; ?>: </label> </td> <td> <select name="excel_edition" id="select_excel_edition" style="vertical-align: middle"> <option value="win"<?php echo $cfg['Export']['excel_edition'] == 'win' ? ' selected="selected"' : ''; ?>>Windows</option> <option value="mac"<?php echo $cfg['Export']['excel_edition'] == 'mac' ? ' selected="selected"' : ''; ?>>Excel 2003 / Macintosh</option> </select> </td> </tr> </table> </td></tr> </table> </div><?php if ($xls) { ?> <!-- Native Excel options --> <div id="xls_options"> <table border="0" cellspacing="1" cellpadding="0" width="400"> <tr> <th align="left"> <b><?php echo $strExcelOptions; ?></b> <input type="hidden" name="xls_data" value="xls_data" /> </th> </tr> <tr><td bgcolor="<?php echo $cfg['BgcolorOne']; ?>"> <table border="0" cellspacing="1" cellpadding="0"> <tr> <td> <?php echo $strReplaceNULLBy; ?> </td> <td> <input type="text" name="xls_replace_null" size="20" value="<?php echo $cfg['Export']['xls_null']; ?>" class="textfield" /> </td> </tr> <tr> <td> <input type="checkbox" name="xls_shownames" value="yes" id="checkbox_dump_xls_shownames" <?php PMA_exportCheckboxCheck('xls_columns'); ?> /> <label for="checkbox_dump_xls_shownames"><?php echo $strPutColNames; ?></label> </td> </tr> </table> </td></tr> </table> </div><?php } ?> <div id="none_options"> <table width="400" border="0" cellpadding="3" cellspacing="1"> <tr><th align="left"><?php echo $strXML; ?></th></tr> <tr><td bgcolor="<?php echo $cfg['BgcolorOne']; ?>"> <?php echo $strNoOptions; ?> <input type="hidden" name="xml_data" value="xml_data" /> </td></tr> </table> </div> <script type="text/javascript"> <!-- show_checked_option(); //--> </script> </td> </tr><?phpif (isset($table) && !empty($table) && !isset($num_tables)) {?> <tr> <td colspan="3" align="center"> <div style="background-color: <?php echo $cfg['BgcolorOne']; ?>; padding: 3px; margin: 1px;"> <b><?php echo sprintf($strDumpXRows , '<input type="text" name="limit_to" size="5" value="' . (isset($unlim_num_rows)?$unlim_num_rows: PMA_countRecords($db, $table, TRUE)) . '" class="textfield" style="vertical-align: middle" onfocus="this.select()" style="vertical-align: middle; text-align: center;" />' , '<input type="text" name="limit_from" value="0" size="5" class="textfield" style="vertical-align: middle" onfocus="this.select()" style="vertical-align: middle; text-align: center;" />') . "\n"; ?></b> </div> </td> </tr><?php}?> <tr> <!-- Export to screen or to file --> <td colspan="3"> <table width="100%" border="0" cellpadding="3" cellspacing="1"> <tr> <th align="left"> <input type="checkbox" name="asfile" value="sendit" id="checkbox_dump_asfile" <?php PMA_exportCheckboxCheck('asfile'); ?> style="vertical-align: middle" /> <label for="checkbox_dump_asfile"><b><?php echo $strSend; ?></b></label> </th> </tr> <tr> <td bgcolor="<?php echo $cfg['BgcolorOne']; ?>"> <?php if (isset($cfg['SaveDir']) && !empty($cfg['SaveDir'])) { ?> <input type="checkbox" name="onserver" value="saveit" id="checkbox_dump_onserver" onclick="getElement('checkbox_dump_asfile').checked = true;" <?php PMA_exportCheckboxCheck('onserver'); ?> style="vertical-align: middle" /> <label for="checkbox_dump_onserver"><?php echo sprintf($strSaveOnServer, htmlspecialchars($cfg['SaveDir'])); ?></label>,<br /> <input type="checkbox" name="onserverover" value="saveitover" id="checkbox_dump_onserverover" onclick="getElement('checkbox_dump_onserver').checked = true;getElement('checkbox_dump_asfile').checked = true;" <?php PMA_exportCheckboxCheck('onserver_overwrite'); ?> style="vertical-align: middle" /> <label for="checkbox_dump_onserverover"><?php echo $strOverwriteExisting; ?></label> <br /> <?php } ?> <?php echo $strFileNameTemplate; ?>: <input type="text" name="filename_template" <?php echo ' value="'; if ($export_type == 'database') { if (isset($_COOKIE) && !empty($_COOKIE['pma_db_filename_template'])) { echo $_COOKIE['pma_db_filename_template']; } else { echo '__DB__'; } } elseif ($export_type == 'table') { if (isset($_COOKIE) && !empty($_COOKIE['pma_table_filename_template'])) { echo $_COOKIE['pma_table_filename_template']; } else { echo '__TABLE__'; } } else { if (isset($_COOKIE) && !empty($_COOKIE['pma_server_filename_template'])) { echo $_COOKIE['pma_server_filename_template']; } else { echo '__SERVER__'; } } echo '" '; ?> style="vertical-align: middle" /> ( <input type="checkbox" name="remember_template" id="checkbox_remember_template" <?php PMA_exportCheckboxCheck('remember_file_template'); ?> style="vertical-align: middle" /> <label for="checkbox_remember_template"><?php echo $strFileNameTemplateRemember; ?></label> )* <?php // charset of file if ($cfg['AllowAnywhereRecoding'] && $allow_recoding) { echo '<br /><label for="select_charset_of_file">' . $strCharsetOfFile . '</label>'; echo "\n"; $temp_charset = reset($cfg['AvailableCharsets']); echo '<select id="select_charset_of_file" name="charset_of_file" size="1">' . "\n" . ' <option value="' . $temp_charset . '"'; if ($temp_charset == $charset) { echo ' selected="selected"'; } echo '>' . $temp_charset . '</option>' . "\n"; while ($temp_charset = next($cfg['AvailableCharsets'])) { echo ' <option value="' . $temp_charset . '"'; if ($temp_charset == $charset) { echo ' selected="selected"'; } echo '>' . $temp_charset . '</option>' . "\n"; } // end while echo ' </select>'; } // end if echo "\n"; ?> <br /> <b><?php echo $strCompression; ?></b><br /> <input type="radio" name="compression" value="none" id="radio_compression_none" onclick="getElement('checkbox_dump_asfile').checked = true;" <?php PMA_exportIsActive('compression', 'none'); ?> style="vertical-align: middle" /><label for="radio_compression_none"><?php echo $strNone; ?></label> <?php// zip, gzip and bzip2 encode features$is_zip = (isset($cfg['ZipDump']) && $cfg['ZipDump'] && @function_exists('gzcompress'));$is_gzip = (isset($cfg['GZipDump']) && $cfg['GZipDump'] && @function_exists('gzencode'));$is_bzip = (isset($cfg['BZipDump']) && $cfg['BZipDump'] && @function_exists('bzcompress'));if ($is_zip || $is_gzip || $is_bzip) { if ($is_zip) { ?> <input type="radio" name="compression" value="zip" id="radio_compression_zip" onclick="getElement('checkbox_dump_asfile').checked = true;" <?php PMA_exportIsActive('compression', 'zip'); ?> style="vertical-align: middle" /><label for="radio_compression_zip"><?php echo $strZip; ?></label><?php echo (($is_gzip || $is_bzip) ? ' ' : ''); ?> <?php } if ($is_gzip) { echo "\n" ?> <input type="radio" name="compression" value="gzip" id="radio_compression_gzip" onclick="getElement('checkbox_dump_asfile').checked = true;" <?php PMA_exportIsActive('compression', 'gzip'); ?> style="vertical-align: middle" /><label for="radio_compression_gzip"><?php echo $strGzip; ?></label><?php echo ($is_bzip ? ' ' : ''); ?> <?php } if ($is_bzip) { echo "\n" ?> <input type="radio" name="compression" value="bzip" id="radio_compression_bzip" onclick="getElement('checkbox_dump_asfile').checked = true;" <?php PMA_exportIsActive('compression', 'bzip'); ?> style="vertical-align: middle" /><label for="radio_compression_bzip"><?php echo $strBzip; ?></label> <?php }}echo "\n";?> </td> </tr> </table> </td> </tr><?php// Encoding setting form appended by Y.Kawadaif (function_exists('PMA_set_enc_form')) { ?> <tr> <!-- Japanese encoding setting --> <td colspan="3" align="center"> <?php echo PMA_set_enc_form(' '); ?> </td> </tr> <?php}echo "\n";?> <tr> <td colspan="3" align="right" class="tblFooters"> <input type="submit" value="<?php echo $strGo; ?>" id="buttonGo" /> </td> </tr> </table></form><br /><table border="0" cellpadding="0" cellspacing="0" width="600"><tr> <td valign="top">* </td> <td> <?php echo sprintf($strFileNameTemplateHelp, '<a href="http://www.php.net/manual/function.strftime.php" target="documentation" title="' . $strDocu . '">', '</a>') . "\n"; ?> </td></tr></table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -