2 /* vim: set expandtab sw=4 ts=4 sts=4: */
8 $url_query .= '&goto=tbl_structure.php';
10 $triggers = PMA_DBI_get_triggers($db, $table);
13 echo '<div id="tabletriggers">' . "\n";
14 echo '<table class="data">' . "\n";
15 echo ' <caption class="tblHeaders">' . $strTriggers . '</caption>' . "\n";
28 foreach ($triggers as $trigger) {
29 $drop_and_create = $trigger['drop'] . $delimiter . "\n" . $trigger['create'] . "\n";
31 echo sprintf('<tr class="%s">
38 ($ct%2
== 0) ?
'even' : 'odd',
40 '<a href="tbl_sql.php?' . $url_query . '&sql_query=' . urlencode($drop_and_create) . '&show_query=1&delimiter=' . urlencode($delimiter) . '">' . $titles['Change'] . '</a>',
41 '<a href="sql.php?' . $url_query . '&sql_query=' . urlencode($trigger['drop']) . '" onclick="return confirmLink(this, \'' . PMA_jsFormat($trigger['drop'], false) . '\')">' . $titles['Drop'] . '</a>',
42 $trigger['action_timing'],
43 $trigger['event_manipulation']);