slider for Routines

This commit is contained in:
Marc Delisle
2008-01-17 14:11:54 +00:00
parent 15bdf8def6
commit 4b25f91359
2 changed files with 7 additions and 0 deletions

View File

@@ -11,6 +11,9 @@
require_once './libraries/common.inc.php'; require_once './libraries/common.inc.php';
require_once './libraries/Table.class.php'; require_once './libraries/Table.class.php';
$GLOBALS['js_include'][] = 'mootools.js';
$GLOBALS['js_include'][] = 'mootools-domready.js';
/** /**
* Prepares the tables list if the user where not redirected to this script * Prepares the tables list if the user where not redirected to this script
* because there is no table in the database ($is_info is true) * because there is no table in the database ($is_info is true)

View File

@@ -19,6 +19,9 @@ $url_query .= '&goto=db_structure.php';
$routines = PMA_DBI_fetch_result('SELECT SPECIFIC_NAME,ROUTINE_NAME,ROUTINE_TYPE,DTD_IDENTIFIER FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA= \'' . PMA_sqlAddslashes($db,true) . '\';'); $routines = PMA_DBI_fetch_result('SELECT SPECIFIC_NAME,ROUTINE_NAME,ROUTINE_TYPE,DTD_IDENTIFIER FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA= \'' . PMA_sqlAddslashes($db,true) . '\';');
if ($routines) { if ($routines) {
PMA_generate_slider_effect('routines', $strRoutines);
echo '<div id="routines_anchor"></div>';
echo '<div id="routines">' . "\n";
echo '<fieldset>' . "\n"; echo '<fieldset>' . "\n";
echo ' <legend>' . $strRoutines . '</legend>' . "\n"; echo ' <legend>' . $strRoutines . '</legend>' . "\n";
echo '<table border="0">'; echo '<table border="0">';
@@ -79,5 +82,6 @@ if ($routines) {
} }
echo '</table>'; echo '</table>';
echo '</fieldset>' . "\n"; echo '</fieldset>' . "\n";
echo '</div>' . "\n";
} }
?> ?>