2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Common code for Routines, Triggers and Events.
8 if (! defined('PHPMYADMIN')) {
13 * Include all other files that are common
14 * to routines, triggers and events.
16 require_once './libraries/rte/rte_words.lib.php';
17 require_once './libraries/rte/rte_export.lib.php';
18 require_once './libraries/rte/rte_list.lib.php';
19 require_once './libraries/rte/rte_footer.lib.php';
21 if ($GLOBALS['is_ajax_request'] != true) {
23 * Displays the header and tabs
25 if (! empty($table) && in_array($table, PMA_DBI_get_tables($db))) {
26 include_once './libraries/tbl_common.inc.php';
29 include_once './libraries/db_common.inc.php';
30 include_once './libraries/db_info.inc.php';
34 * Since we did not include some libraries, we need
35 * to manually select the required database and
36 * create the missing $url_query variable
39 PMA_DBI_select_db($db);
40 if (! isset($url_query)) {
41 $url_query = PMA_generate_common_url($db, $table);
47 * Generate the conditional classes that will
48 * be used to attach jQuery events to links
58 'add' => 'class="ajax add_anchor"',
59 'edit' => 'class="ajax edit_anchor"',
60 'exec' => 'class="ajax exec_anchor"',
61 'drop' => 'class="ajax drop_anchor"',
62 'export' => 'class="ajax export_anchor"'
66 * Create labels for the list
68 $titles = PMA_Util
::buildActionTitles();
71 * Keep a list of errors that occured while
72 * processing an 'Add' or 'Edit' operation.
78 * Call the appropriate main function