using the common header function to render header

This commit is contained in:
xmujay 2013-06-24 23:35:08 +08:00
parent 5302867b26
commit e7ced6eb0f
2 changed files with 5 additions and 6 deletions

View File

@ -20,6 +20,9 @@ function PMA_getSubPageHeader($type)
{
$res = array();
$res['engines']['icon'] = 'b_engine.png';
$res['engines']['text'] = __('Storage Engines');
$res['plugins']['icon'] = 'b_engine.png';
$res['plugins']['text'] = __('Plugins');

View File

@ -21,16 +21,12 @@ require 'libraries/server_engines.lib.php';
/**
* Displays the sub-page heading
*/
$html = '<h2>' . "\n"
. PMA_Util::getImage('b_engine.png')
. "\n" . __('Storage Engines') . "\n"
. '</h2>' . "\n";
$response = PMA_Response::getInstance();
$response->addHTML(PMA_getSubPageHeader('engines'));
/**
* start output
*/
$response = PMA_Response::getInstance();
$response->addHTML($html);
$response->addHTML(PMA_getHtmlForServerEngines());
exit;