For Insert row and Export: use post when query is too big

This commit is contained in:
Marc Delisle
2005-07-12 17:17:26 +00:00
parent 6950dc7100
commit 6c92b913ef
2 changed files with 16 additions and 10 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2005-07-12 Marc Delisle <lem9@users.sourceforge.net>
* sql.php: for Insert row and Export, use post when the query is too big
2005-07-11 Marc Delisle <lem9@users.sourceforge.net> 2005-07-11 Marc Delisle <lem9@users.sourceforge.net>
* tbl_relations.php: bug #1227710, unsaved relations lost when changing * tbl_relations.php: bug #1227710, unsaved relations lost when changing
field to display field to display

23
sql.php
View File

@@ -790,8 +790,12 @@ else {
. '&amp;sql_query=' . urlencode($sql_query) . '&amp;sql_query=' . urlencode($sql_query)
. '&amp;goto=' . urlencode($lnk_goto); . '&amp;goto=' . urlencode($lnk_goto);
echo ' <!-- Insert a new row -->' . "\n" echo ' <!-- Insert a new row -->' . "\n";
. ' <a href="tbl_change.php' . $url_query . '">' . ($cfg['PropertiesIconic'] ? '<img src="' . $pmaThemeImage . 'b_insrow.png" border="0" height="16" width="16" align="middle" hspace="2" alt="' . $strInsertNewRow . '"/>' : '') . $strInsertNewRow . '</a>'; echo PMA_linkOrButton(
'tbl_change.php' . $url_query,
($cfg['PropertiesIconic'] ? '<img src="' . $pmaThemeImage . 'b_insrow.png" border="0" height="16" width="16" align="middle" hspace="2" alt="' . $strInsertNewRow . '"/>' : '') . $strInsertNewRow,
'', TRUE, TRUE, '') . "\n";
if ($disp_mode[9] == '1') { if ($disp_mode[9] == '1') {
echo '&nbsp;&nbsp;'; echo '&nbsp;&nbsp;';
} }
@@ -815,7 +819,7 @@ else {
'', TRUE, TRUE, 'print_view') . "\n"; '', TRUE, TRUE, 'print_view') . "\n";
if (!$dontlimitchars) { if (!$dontlimitchars) {
echo ' &nbsp;&nbsp;' . "\n"; echo ' &nbsp;&nbsp;' . "\n";
echo PMA_linkOrButton( echo PMA_linkOrButton(
'sql.php' . $url_query . '&amp;dontlimitchars=1', 'sql.php' . $url_query . '&amp;dontlimitchars=1',
($cfg['PropertiesIconic'] ? '<img src="' . $pmaThemeImage . 'b_print.png" border="0" height="16" width="16" align="middle" hspace="2" alt="' . $strPrintViewFull . '"/>' : '') . $strPrintViewFull, ($cfg['PropertiesIconic'] ? '<img src="' . $pmaThemeImage . 'b_print.png" border="0" height="16" width="16" align="middle" hspace="2" alt="' . $strPrintViewFull . '"/>' : '') . $strPrintViewFull,
@@ -836,13 +840,12 @@ else {
} else { } else {
$single_table = ''; $single_table = '';
} }
echo ' <!-- Export -->' . "\n" echo ' <!-- Export -->' . "\n";
. ' &nbsp;&nbsp;<a href="tbl_properties_export.php' . $url_query echo ' &nbsp;&nbsp;' . "\n";
. '&amp;unlim_num_rows=' . $unlim_num_rows echo PMA_linkOrButton(
. $single_table 'tbl_properties_export.php' . $url_query . '&amp;unlim_num_rows=' . $unlim_num_rows . $single_table,
. '">' ($cfg['PropertiesIconic'] ? '<img src="' . $pmaThemeImage . 'b_tblexport.png" border="0" height="16" width="16" align="middle" hspace="2" alt="' . $strExport . '" />' : '') . $strExport,
. ($cfg['PropertiesIconic'] ? '<img src="' . $pmaThemeImage . 'b_tblexport.png" border="0" height="16" width="16" align="middle" hspace="2" alt="' . $strExport . '" />' : '') '', TRUE, TRUE, '') . "\n";
. $strExport . '</a>' . "\n";
} }
// Bookmark Support if required // Bookmark Support if required