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">' . $strTriggers . '</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 '<a href="tbl_sql.php?' . $url_query . '&sql_query=' . urlencode($drop_and_create) . '&show_query=1&delimiter=' . urlencode($delimiter) . '">' . $titles['Change'] . '</a>',
44 '<a href="sql.php?' . $url_query . '&sql_query=' . urlencode($trigger['drop']) . '" onclick="return confirmLink(this, \'' . PMA_jsFormat($trigger['drop'], false) . '\')">' . $titles['Drop'] . '</a>',
45 $trigger['action_timing'],
46 $trigger['event_manipulation']);