2 /* vim: set expandtab sw=4 ts=4 sts=4: */
8 if (! defined('PHPMYADMIN')) {
12 $url_query .= '&goto=tbl_structure.php';
14 $triggers = PMA_DBI_get_triggers($db, $table);
17 echo '<div id="tabletriggers">' . "\n";
18 echo '<table class="data">' . "\n";
19 echo ' <caption class="tblHeaders">' . __('Triggers') . '</caption>' . "\n";
32 foreach ($triggers as $trigger) {
33 $drop_and_create = $trigger['drop'] . $delimiter . "\n" . $trigger['create'] . "\n";
35 echo sprintf('<tr class="%s">
36 <td><strong>%s</strong></td>
42 ($ct%2
== 0) ?
'even' : 'odd',
44 PMA_linkOrButton('tbl_sql.php?' . $url_query . '&sql_query=' . urlencode($drop_and_create) . '&show_query=1&delimiter=' . urlencode($delimiter), $titles['Change']),
45 '<a href="sql.php?' . $url_query . '&sql_query=' . urlencode($trigger['drop']) . '" onclick="return confirmLink(this, \'' . PMA_jsFormat($trigger['drop'], false) . '\')">' . $titles['Drop'] . '</a>',
46 $trigger['action_timing'],
47 $trigger['event_manipulation']);