Fix page title when browsing views and add object name (table or view)
authorJehan-Guillaume de Rorthais <ioguix@free.fr>
Sun, 17 Nov 2013 23:40:09 +0000 (00:40 +0100)
committerJehan-Guillaume de Rorthais <ioguix@free.fr>
Sun, 17 Nov 2013 23:40:09 +0000 (00:40 +0100)
display.php

index 1a76d822984222bceffca5896d544c82419276f9..89bf92acdd20f4d71d606128cd57f0ad29872325 100644 (file)
        $scripts .= "</script>\n";
 
        // If a table is specified, then set the title differently
-       if (isset($_REQUEST['subject']) && isset($_REQUEST[$_REQUEST['subject']]))
-               $misc->printHeader($lang['strtables'], $scripts);
+       if (isset($_REQUEST['subject']) && isset($_REQUEST[$_REQUEST['subject']])) {
+               if ($_REQUEST['subject'] == 'table') {
+                       $misc->printHeader(
+                               $lang['strtables'].': '.$_REQUEST[$_REQUEST['subject']],
+                               $scripts
+                       );
+               }
+               else if ($_REQUEST['subject'] == 'view') {
+                       $misc->printHeader(
+                               $lang['strviews'].': '.$_REQUEST[$_REQUEST['subject']],
+                               $scripts
+                       );
+               }
+       }
        else    
                $misc->printHeader($lang['strqueryresults']);