From: Robert Treat Date: Sat, 7 Feb 2015 20:52:44 +0000 (-0500) Subject: Enable querying over inspected tables / views. This was based on a patch by Felipe... X-Git-Tag: REL_7-12-1~33^2~19 X-Git-Url: http://git.postgresql.org/gitweb/review?a=commitdiff_plain;h=832f5fc65506bb4a94337dbb6a3191a20373d967;p=phppgadmin.git Enable querying over inspected tables / views. This was based on a patch by Felipe Figueroa resolves #22 --- diff --git a/display.php b/display.php index 89bf92ac..87771db4 100644 --- a/display.php +++ b/display.php @@ -525,6 +525,21 @@ if ($save_history && is_object($rs) && ($type == 'QUERY')) //{ $misc->saveScriptHistory($_REQUEST['query']); + echo '

'; + if (is_object($rs) && $rs->recordCount() > 0) { // Show page navigation $misc->printPages($_REQUEST['page'], $max_pages, $_gets); @@ -814,7 +829,7 @@ $scripts .= "};\n"; $scripts .= "\n"; - // If a table is specified, then set the title differently + // Set the title based on the subject of the request if (isset($_REQUEST['subject']) && isset($_REQUEST[$_REQUEST['subject']])) { if ($_REQUEST['subject'] == 'table') { $misc->printHeader( @@ -827,7 +842,13 @@ $lang['strviews'].': '.$_REQUEST[$_REQUEST['subject']], $scripts ); - } + } + else if ($_REQUEST['subject'] == 'column') { + $misc->printHeader( + $lang['strcolumn'].': '.$_REQUEST[$_REQUEST['subject']], + $scripts + ); + } } else $misc->printHeader($lang['strqueryresults']);