More MySQL documentation links for routines and triggers

This commit is contained in:
Rouslan Placella 2011-06-24 13:39:19 +01:00
parent 5bafd840b7
commit eef43b22b2
2 changed files with 10 additions and 8 deletions

View File

@ -1196,15 +1196,13 @@ function PMA_RTN_getRoutinesList()
$class1 = '';
$class2 = ' hide';
}
/**
* Generate output
*/
$retval = "";
$retval .= "\n\n<span id='js_query_display'></span>\n\n";
$retval .= "<!-- LIST OF ROUTINES START -->\n";
$retval = "<!-- LIST OF ROUTINES START -->\n";
$retval .= "<fieldset>\n";
$retval .= " <legend>" . __('Routines') . "</legend>\n";
$retval .= " <legend>" . __('Routines');
$retval .= PMA_showMySQLDocu('SQL-Syntax', 'STORED_ROUTINES') . "</legend>\n";
$retval .= " <div class='$class1' id='nothing2display'>\n";
$retval .= " " . __('There are no routines to display.') . "\n";
$retval .= " </div>\n";

View File

@ -57,9 +57,10 @@ if (! empty($_GET['exporttrigger']) && ! empty($_GET['triggername'])) {
/**
* Display a list of available triggers
*/
echo "\n\n<span id='js_query_display'></span>\n\n";
echo '<fieldset>' . "\n";
echo ' <legend>' . __('Triggers') . '</legend>' . "\n";
echo ' <legend>' . __('Triggers')
. PMA_showMySQLDocu('SQL-Syntax', 'TRIGGERS') . "\n" .
'</legend>' . "\n";
if (! $triggers) {
echo __('There are no triggers to display.');
} else {
@ -116,8 +117,11 @@ echo '</fieldset>';
* Display the form for adding a new trigger
*/
echo '<fieldset>' . "\n"
. " <legend>" . __('New')
. PMA_showMySQLDocu('SQL-Syntax', 'CREATE_TRIGGER')
. "</legend>\n"
. ' <a href="tbl_triggers.php?' . $url_query . '&amp;addtrigger=1" class="' . $conditional_class_add . '">' . "\n"
. PMA_getIcon('b_trigger_add.png') . __('Add a new Trigger') . '</a>' . "\n"
. PMA_getIcon('b_trigger_add.png') . __('Add trigger') . '</a>' . "\n"
. '</fieldset>' . "\n";
?>