/**
 * Get HTML for Delete data or table (truncate table, drop table)
 *
 * @param array $truncate_table_url_params url parameter array for truncate table
 * @param array $dropTableUrlParams        url parameter array for drop table
 *
 * @return string $html_output
 */
function PMA_getHtmlForDeleteDataOrTable($truncate_table_url_params, $dropTableUrlParams)
{
    $html_output = '<div class="operations_half_width">' . '<fieldset class="caution">' . '<legend>' . __('Delete data or table') . '</legend>';
    $html_output .= '<ul>';
    if (!empty($truncate_table_url_params)) {
        $html_output .= PMA_getDeleteDataOrTablelink($truncate_table_url_params, 'TRUNCATE_TABLE', __('Empty the table (TRUNCATE)'), 'truncate_tbl_anchor');
    }
    if (!empty($dropTableUrlParams)) {
        $html_output .= PMA_getDeleteDataOrTablelink($dropTableUrlParams, 'DROP_TABLE', __('Delete the table (DROP)'), 'drop_tbl_anchor');
    }
    $html_output .= '</ul></fieldset></div>';
    return $html_output;
}
 /**
  * Test for PMA_getDeleteDataOrTablelink
  *
  * @return void
  */
 public function testGetDeleteDataOrTablelink()
 {
     $this->assertRegExp('/.*TRUNCATE.TABLE.foo.*id_truncate.*Truncate table.*/m', PMA_getDeleteDataOrTablelink(array("sql" => 'TRUNCATE TABLE foo'), "TRUNCATE_TABLE", "Truncate table", "id_truncate"));
 }