$message->addParam('<a href="' . $cfg['PmaAbsoluteUri'] . 'chk_rel.php?' . $url_query . '">', false); $message->addParam('</a>', false); /* Show error if user has configured something, notice elsewhere */ if (!empty($cfg['Servers'][$server]['pmadb'])) { $message->isError(true); } $response->addHTML('<div class="operations_full_width">'); $response->addHTML($message->getDisplay()); $response->addHTML('</div>'); } // end if } // end if (!$is_information_schema) $response->addHTML('</div>'); // not sure about displaying the PDF dialog in case db is information_schema if ($cfgRelation['pdfwork'] && $num_tables > 0) { // We only show this if we find something in the new pdf_pages table $test_query = ' SELECT * FROM ' . PMA_Util::backquote($GLOBALS['cfgRelation']['db']) . '.' . PMA_Util::backquote($cfgRelation['pdf_pages']) . ' WHERE db_name = \'' . PMA_Util::sqlAddSlashes($db) . '\''; $test_rs = PMA_queryAsControlUser($test_query, false, PMA_DatabaseInterface::QUERY_STORE); /* * Export Relational Schema View */ $response->addHTML(PMA_getHtmlForExportRelationalSchemaView($url_query)); } // end if ?> >>>>>>> b875702c9c06ab5012e52ff4337439b03918f453
/** * Test for PMA_getHtmlForExportRelationalSchemaView * * @return void */ public function testGetHtmlForExportRelationalSchemaView() { $this->assertRegExp( '/.*schema_edit.php.*Edit or export relational schema<.*/', PMA_getHtmlForExportRelationalSchemaView("id=001&name=pma") ); }