echo $button_strings['Cancel']; ?> " class="bgrp"> </form> <?php } elseif ($s_connected == TRUE) { if (is_array($s_tables)) { $vcnt = 0; foreach ($s_tables as $viewname => $properties) { if ($properties['is_view'] == FALSE) { continue; } $vcnt++; $title = $s_views_counts == TRUE && isset($properties['count']) ? $viewname . ' [' . $properties['count'] . ']' : $viewname; $fold_url = fold_detail_url('view', $properties['status'], $viewname, $title); echo '<div id="' . 'v_' . $viewname . "\" class=\"det\">\n"; if ($properties['status'] == 'open') { echo get_opened_view($viewname, $title, $fold_url); } else { // $properties['status'] == 'close' echo get_closed_detail($title, $fold_url); } echo "</div>\n"; } // foreach $s_tables } echo '<form method="post" action="' . url_session($_SERVER['PHP_SELF']) . "\" name=\"acc_view_form\">\n"; if ($vcnt > 0) { ?> <input type="checkbox" name="acc_show_counts" value="yes"<?php
?> " class="bgrp"> <input type="reset" name="acc_proc_mod_clear" value="<?php echo $button_strings['Reset']; ?> " class="bgrp"> <input type="submit" name="acc_proc_mod_cancel" value="<?php echo $button_strings['Cancel']; ?> " class="bgrp"> </form> <?php } elseif ($s_connected == TRUE) { if (count($s_procedures) > 0) { foreach ($s_procedures as $pname => $properties) { $fold_url = fold_detail_url('procedure', $properties['status'], $pname, $pname); echo '<div id="' . 'p_' . $pname . "\" class=\"det\">\n"; if ($properties['status'] == 'open') { echo get_opened_procedure($pname, $properties, $fold_url); } else { echo get_closed_detail($pname, $fold_url); } echo "</div>\n"; } } echo '<form method="post" action="' . url_session($_SERVER['PHP_SELF']) . "\" name=\"acc_proc_form\">\n"; if (count($s_procedures) > 0) { echo '<input type="submit" name="acc_proc_reload" value="' . $button_strings['Reload'] . "\" class=\"bgrp\">\n"; if (count($s_procedures) > 1) { echo '<input type="submit" name="acc_proc_open" value="' . $button_strings['OpenAll'] . "\" class=\"bgrp\">\n"; echo '<input type="submit" name="acc_proc_close" value="' . $button_strings['CloseAll'] . "\" class=\"bgrp\">\n";
function detail_close($type, $name, $title) { switch ($type) { case 'table': case 'view': $GLOBALS['s_tables'][$name]['status'] = 'close'; break; case 'trigger': $GLOBALS['s_triggers'][$name]['display'] = 'close'; break; case 'procedure': $GLOBALS['s_procedures'][$name]['status'] = 'close'; break; } $url = fold_detail_url($type, 'close', $name, $title); $comment_url = "javascript:requestCommentArea('" . $type . "', '" . $name . "');"; $comment_div = detail_div_prefix($type) . 'c_' . $name; $html = get_closed_detail($title, $url, $comment_url, $comment_div); header('Content-Type: text/html;charset=' . $GLOBALS['charset']); echo $html; }
" class="bgrp"> <input type="reset" name="acc_trigger_mod_clear" value="<?php echo $button_strings['Reset']; ?> " class="bgrp"> <input type="submit" name="acc_trigger_mod_cancel" value="<?php echo $button_strings['Cancel']; ?> " class="bgrp"> </form> <?php } elseif ($s_connected) { if (count($s_triggers) > 0) { foreach ($s_triggers as $tname => $properties) { $display = $properties['display']; $fold_url = fold_detail_url('trigger', $display, $tname, $tname); echo '<div id="' . 'r_' . $tname . "\" class=\"det\">\n"; if ($display == 'open') { echo get_opened_trigger($tname, $properties, $fold_url); } else { echo get_closed_detail($tname, $fold_url); } echo "</div>\n"; } } echo '<form method="post" action="' . url_session($_SERVER['PHP_SELF']) . "\" name=\"acc_trigger_form\">\n"; if (count($s_triggers) > 0) { echo '<input type="submit" name="acc_trigger_reload" value="' . $button_strings['Reload'] . "\"> \n"; if (count($s_triggers) > 1) { echo '<input type="submit" name="acc_trigger_open" value="' . $button_strings['OpenAll'] . "\"> \n"; echo '<input type="submit" name="acc_trigger_close" value="' . $button_strings['CloseAll'] . "\">\n";
// Author Lutz Brueckner <*****@*****.**> // Copyright (c) 2000-2006 by Lutz Brueckner, // published under the terms of the GNU General Public Licence v.2, // see file LICENCE for details $tcnt = 0; if ($s_connected == TRUE && is_array($s_tables)) { foreach ($s_tables as $tablename => $properties) { if ($properties['is_view'] == TRUE) { continue; } $tcnt++; $title = $tablename; if ($s_tables_counts == TRUE && isset($properties['count'])) { $title .= ' [' . $properties['count'] . ']'; } $fold_url = fold_detail_url('table', $properties['status'], $tablename, $title); $comment_url = "javascript:requestCommentArea('table', '" . $tablename . "');"; echo ' <div id="' . 't_' . $tablename . "\" class=\"det\">\n"; if ($properties['status'] == 'open') { echo get_opened_table($tablename, $title, $fold_url, $comment_url, 'tc_' . $tablename); } else { // $properties['status'] == 'close' echo get_closed_detail($title, $fold_url, $comment_url, 'tc_' . $tablename); } echo " </div>\n"; } // foreach $s_tables echo '<form method="post" action="' . url_session($_SERVER['PHP_SELF']) . "#tb_show\" name=\"tb_show_form\">\n" . get_checkbox('tb_show_counts', '1', $s_tables_counts) . ' ' . $tb_strings['DispCounts'] . " \n" . get_checkbox('tb_show_cnames', '1', $s_tables_cnames) . ' ' . $tb_strings['DispCNames'] . " \n" . get_checkbox('tb_show_def', '1', $s_tables_def) . ' ' . $tb_strings['DispDef'] . " \n" . get_checkbox('tb_show_comp', '1', $s_tables_comp) . ' ' . $tb_strings['DispComp'] . " \n" . get_checkbox('tb_show_comments', '1', $s_tables_comment) . ' ' . $tb_strings['DispComm'] . "<br />\n" . ' <input type="submit" name="tb_show_reload" value="' . $button_strings['Reload'] . "\" class=\"bgrp\">\n"; if ($tcnt > 1) { echo ' <input type="submit" name="tb_table_open" value="' . $button_strings['OpenAll'] . "\" class=\"bgrp\">\n" . ' <input type="submit" name="tb_table_close" value="' . $button_strings['CloseAll'] . "\" class=\"bgrp\">\n"; }