[gui] Events management: minimal support on db structure page

This commit is contained in:
Marc Delisle
2008-02-25 22:10:53 +00:00
parent 64df53455c
commit 2ffa06dfd6
58 changed files with 131 additions and 0 deletions

View File

@@ -41,6 +41,8 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
+ [lang] Norwegian update, thanks to Sven-Erik Andersen
+ [lang] Japanese update, thanks to Ishigaki Kenichi
+ [lang] Italian update, thanks to Luca Rebellato
+ [gui] Events management: minimal support on db structure page
(work in progress)
2.11.5.0 (not yet released)
- bug #1862661 [GUI] Warn about rename deleting database

View File

@@ -520,6 +520,11 @@ PMA_listNavigator($total_num_tables, $pos, $_url_params, 'db_structure.php', 'fr
// Routines
require './libraries/db_routines.inc.php';
// Events
if (PMA_MYSQL_INT_VERSION > 50100) {
require './libraries/db_events.inc.php';
}
/**
* Work on the database
* redesigned 2004-05-08 by mkkeck

View File

@@ -1071,4 +1071,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1070,4 +1070,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1072,4 +1072,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1067,4 +1067,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1064,4 +1064,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1047,4 +1047,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1046,4 +1046,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1070,4 +1070,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1044,4 +1044,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1067,4 +1067,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1040,4 +1040,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1072,4 +1072,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1051,4 +1051,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1045,4 +1045,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1046,4 +1046,5 @@ $strYes = 'Ano';
$strZeroRemovesTheLimit = 'Poznámka: Nastavení těchto parametrů na 0 (nulu) odstraní omezení.';
$strZip = '„zazipováno“';
$strEvents = 'Events'; //to translate
?>

View File

@@ -1046,4 +1046,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1068,4 +1068,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -277,6 +277,7 @@ $strEscapeWildcards = 'Wildcards _ and % should be escaped with a \ to use them
$strEsperanto = 'Esperanto';
$strEstonian = 'Estonian';
$strEvent = 'Event';
$strEvents = 'Events';
$strExcelEdition = 'Excel edition';
$strExecuteBookmarked = 'Execute bookmarked query';
$strExplain = 'Explain SQL';

View File

@@ -1052,4 +1052,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1046,4 +1046,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1043,4 +1043,5 @@ $strYes = 'Oui';
$strZeroRemovesTheLimit = 'Note: Une valeur de 0 (zero) enlève la limite.';
$strZip = '"zippé"';
$strEvents = 'Events'; //to translate
?>

View File

@@ -1045,4 +1045,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1072,4 +1072,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1052,4 +1052,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1069,4 +1069,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1064,4 +1064,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1072,4 +1072,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1063,4 +1063,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1062,4 +1062,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1047,4 +1047,5 @@ $strInterface = 'Interface'; //to translate
$strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1063,4 +1063,5 @@ $strTexyText = 'Texy!テキスト'; //to translate
$strWebServerInformation = 'ウェブサーバ情報'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1067,4 +1067,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1069,4 +1069,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1062,4 +1062,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1047,4 +1047,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1084,4 +1084,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1067,4 +1067,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1044,4 +1044,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1069,4 +1069,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1040,4 +1040,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1073,4 +1073,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1065,4 +1065,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1047,4 +1047,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1046,4 +1046,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1046,4 +1046,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1049,4 +1049,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1047,4 +1047,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1066,4 +1066,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1042,4 +1042,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1045,4 +1045,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server körs med Suhosin. Se %sdokumentation%s för möjliga frågor.';
$strEvents = 'Events'; //to translate
?>

View File

@@ -1058,4 +1058,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1068,4 +1068,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1052,4 +1052,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1066,4 +1066,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate
$strWebServerInformation = 'Web server information'; //to translate
$strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate
$strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate
$strEvents = 'Events'; //to translate
?>

View File

@@ -1223,6 +1223,21 @@ function PMA_DBI_get_procedure_or_function_def($db, $which, $proc_or_function_na
$query = 'SHOW CREATE ' . $which . ' ' . PMA_backquote($db) . '.' . PMA_backquote($proc_or_function_name);
return(PMA_DBI_fetch_value($query, 0, $returned_field[$which]));
}
/**
* returns the definition of a specific EVENT
*
* @uses PMA_DBI_fetch_value()
* @param string $db db name
* @param string $event_name
* @param resource $link mysql link
*
* @return string the event's definition
*/
function PMA_DBI_get_event_def($db, $event_name, $link = null)
{
$query = 'SHOW CREATE EVENT' . ' ' . PMA_backquote($db) . '.' . PMA_backquote($event_name);
return(PMA_DBI_fetch_value($query, 0, 'Create Event'));
}
/**
* returns details about the TRIGGERs of a specific table

View File

@@ -0,0 +1,55 @@
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
*
* @version $Id$
*/
$url_query .= '&amp;goto=db_structure.php';
$events = PMA_DBI_fetch_result('SELECT EVENT_NAME, EVENT_TYPE FROM information_schema.EVENTS WHERE EVENT_SCHEMA= \'' . PMA_sqlAddslashes($db,true) . '\';');
if ($events) {
PMA_generate_slider_effect('events', $strEvents);
echo '<div id="events">' . "\n";
echo '<fieldset>' . "\n";
echo ' <legend>' . $strEvents . '</legend>' . "\n";
echo '<table border="0">';
echo sprintf('<tr>
<th>%s</th>
<th>&nbsp;</th>
<th>&nbsp;</th>
<th>%s</th>
</tr>',
$strName,
$strType);
$ct=0;
$delimiter = '//';
foreach ($events as $event) {
// information_schema (at least in MySQL 5.1.22) does not return
// the full CREATE EVENT statement in a way that could be useful for us
// so we rely on PMA_DBI_get_event_def() which uses SHOW CREATE EVENT
$definition = 'DROP EVENT ' . PMA_backquote($event['EVENT_NAME']) . $delimiter . "\n"
. PMA_DBI_get_event_def($db, $event['EVENT_NAME'])
. "\n";
$sqlDrop = 'DROP EVENT ' . PMA_backquote($event['EVENT_NAME']);
echo sprintf('<tr class="%s">
<td><b>%s</b></td>
<td>%s</td>
<td>%s</td>
<td>%s</td>
</tr>',
($ct%2 == 0) ? 'even' : 'odd',
$event['EVENT_NAME'],
! empty($definition) ? PMA_linkOrButton('db_sql.php?' . $url_query . '&amp;sql_query=' . urlencode($definition) . '&amp;show_query=1&amp;delimiter=' . urlencode($delimiter), $titles['Structure']) : '&nbsp;',
'<a href="sql.php?' . $url_query . '&sql_query=' . urlencode($sqlDrop) . '" onclick="return confirmLink(this, \'' . PMA_jsFormat($sqlDrop, false) . '\')">' . $titles['Drop'] . '</a>',
$event['EVENT_TYPE']);
$ct++;
}
echo '</table>';
echo '</fieldset>' . "\n";
echo '</div>' . "\n";
}
?>