Exemple #1
0
    echo '<option value="' . $each_lang_key . '"' . $selected . '>' . $lang_name . '</option>' . "\n";
}
echo '</select>';
echo '</form>';
// Check for done action info and set notice message if present
switch ($action_done) {
    case 'config_saved':
        /* Use uniqid to display this message every time configuration is saved */
        PMA_messagesSet('notice', uniqid('config_saved'), __('Configuration saved.'), PMA_sanitize(__('Configuration saved to file config/config.inc.php in phpMyAdmin ' . 'top level directory, copy it to top level one and delete ' . 'directory config to use it.')));
        break;
    default:
        break;
}
echo '<h2>' . __('Overview') . '</h2>';
// message handling
PMA_messagesEnd();
PMA_messagesShowHtml();
echo '<a href="#" id="show_hidden_messages" style="display:none">';
echo __('Show hidden messages (#MSG_COUNT)');
echo '</a>';
echo '<fieldset class="simple"><legend>';
echo __('Servers');
echo '</legend>';
//
// Display server list
//
echo PMA_displayFormTop('index.php', 'get', array('page' => 'servers', 'mode' => 'add'));
echo '<div class="form">';
if ($cf->getServerCount() > 0) {
    echo '<table cellspacing="0" class="datatable" style="table-layout: fixed">';
    echo '<tr>';
 /**
  * Test for PMA_messagesEnd
  *
  * @return void
  */
 public function testPMAmessagesEnd()
 {
     $_SESSION['messages'] = array(array(array('msg' => 'foo', 'active' => false), array('msg' => 'bar', 'active' => true)));
     PMA_messagesEnd();
     $this->assertEquals(array(array('1' => array('msg' => 'bar', 'active' => 1))), $_SESSION['messages']);
 }