Support for exporting any query into CSV/LaTeX/XML.

This commit is contained in:
Michal Čihař
2003-06-25 18:15:24 +00:00
parent a38823e9f3
commit 21a073a2c9
3 changed files with 47 additions and 13 deletions

View File

@@ -666,11 +666,17 @@ else {
// Export link, if only one table
// (the url_query has extra parameters that won't be used to export)
if (!isset($printview)
&& isset($analyzed_sql[0]['table_ref'][0]['table_true_name'])
&& !isset($analyzed_sql[0]['table_ref'][1]['table_true_name'])) {
echo ' <!-- Export -->' . "\n"
. ' <a href="tbl_properties_export.php3' . $url_query . '&amp;unlim_num_rows=' . $unlim_num_rows . '">' . $strExport . '</a>' . "\n";
if (!isset($printview)) {
if (isset($analyzed_sql[0]['table_ref'][0]['table_true_name']) && !isset($analyzed_sql[0]['table_ref'][1]['table_true_name'])) {
$single_table = '&amp;single_table=true';
} else {
$single_table = '';
}
echo ' <!-- Export -->' . "\n"
. ' <a href="tbl_properties_export.php3' . $url_query
. '&amp;unlim_num_rows=' . $unlim_num_rows
. $single_table
. '">' . $strExport . '</a>' . "\n";
}
// Bookmark Support if required