/**
  * Test for PMA_getSubmitTypeDropDown
  *
  * @return void
  */
 public function testGetSubmitTypeDropDown()
 {
     $result = PMA_getSubmitTypeDropDown(true, 2, 2);
     $this->assertTag(PMA_getTagArray('<select name="submit_type" class="control_at_footer" tabindex="5">'), $result);
     $this->assertTag(PMA_getTagArray('<option value="save">', array('content' => 'Save')), $result);
 }
/**
 * Get action panel
 *
 * @param array   $where_clause       where clause
 * @param string  $after_insert       insert mode, e.g. new_insert, same_insert
 * @param integer $tabindex           tab index
 * @param integer $tabindex_for_value offset for the values tabindex
 * @param boolean $found_unique_key   boolean variable for unique key
 *
 * @return string an html snippet
 */
function PMA_getActionsPanel($where_clause, $after_insert, $tabindex, $tabindex_for_value, $found_unique_key)
{
    $html_output = '<fieldset id="actions_panel">' . '<table cellpadding="5" cellspacing="0">' . '<tr>' . '<td class="nowrap vmiddle">' . PMA_getSubmitTypeDropDown($where_clause, $tabindex, $tabindex_for_value) . "\n";
    $html_output .= '</td>' . '<td class="vmiddle">' . '&nbsp;&nbsp;&nbsp;<strong>' . __('and then') . '</strong>&nbsp;&nbsp;&nbsp;' . '</td>' . '<td class="nowrap vmiddle">' . PMA_getAfterInsertDropDown($where_clause, $after_insert, $found_unique_key) . '</td>' . '</tr>';
    $html_output .= '<tr>' . PMA_getSubmitAndResetButtonForActionsPanel($tabindex, $tabindex_for_value) . '</tr>' . '</table>' . '</fieldset>';
    return $html_output;
}
 /**
  * Test for PMA_getSubmitTypeDropDown
  *
  * @return void
  */
 public function testGetSubmitTypeDropDown()
 {
     $result = PMA_getSubmitTypeDropDown(array(), 2, 2);
     $this->assertContains('<select name="submit_type" class="control_at_footer" tabindex="5">', $result);
     $this->assertContains('<option value="save">', $result);
 }