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 foreach ($triggers as $trigger) {
32 $drop_and_create = $trigger['drop'] . $delimiter . "\n" . $trigger['create'] . "\n";
34 echo sprintf('<tr class="%s">
35 <td><strong>%s</strong></td>
41 ($ct%2
== 0) ?
'even' : 'odd',
43 PMA_linkOrButton('tbl_sql.php?' . $url_query . '&sql_query=' . urlencode($drop_and_create) . '&show_query=1&delimiter=' . urlencode($delimiter), $titles['Change']),
44 '<a class="drop_trigger_anchor" href="sql.php?' . $url_query . '&sql_query=' . urlencode($trigger['drop']) . '" >' . $titles['Drop'] . '</a>',
45 $trigger['action_timing'],
46 $trigger['event_manipulation']);