2 /* vim: set expandtab sw=4 ts=4 sts=4: */
7 if (! defined('PHPMYADMIN')) {
11 $url_query .= '&goto=tbl_structure.php';
13 $triggers = PMA_DBI_get_triggers($db, $table);
16 echo '<div id="tabletriggers">' . "\n";
17 echo '<table class="data">' . "\n";
18 echo ' <caption class="tblHeaders">' . __('Triggers') . '</caption>' . "\n";
31 if ($GLOBALS['cfg']['AjaxEnable']) {
32 $conditional_class = 'class="drop_trigger_anchor"';
34 $conditional_class = '';
37 foreach ($triggers as $trigger) {
38 $drop_and_create = $trigger['drop'] . $delimiter . "\n" . $trigger['create'] . "\n";
40 echo sprintf('<tr class="%s">
41 <td><strong>%s</strong></td>
47 ($ct%2
== 0) ?
'even' : 'odd',
49 PMA_linkOrButton('tbl_sql.php?' . $url_query . '&sql_query=' . urlencode($drop_and_create) . '&show_query=1&delimiter=' . urlencode($delimiter), $titles['Change']),
50 '<a ' . $conditional_class . ' href="sql.php?' . $url_query . '&sql_query=' . urlencode($trigger['drop']) . '" >' . $titles['Drop'] . '</a>',
51 $trigger['action_timing'],
52 $trigger['event_manipulation']);