diff --git a/ChangeLog b/ChangeLog index 72a21a65b..95937d3a8 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,7 +5,11 @@ phpMyAdmin - Changelog $Id$ $Source$ -2006-03-24 Michal Čihař +2006-04-25 Sebastian Mendel + * db_details_qbe.php: + style upgrade + +2006-04-24 Michal Čihař * main.php: Fix logout link (bug #1474694). 2006-04-21 Michal Čihař diff --git a/db_details_qbe.php b/db_details_qbe.php index 263e12aa4..be33b15fd 100644 --- a/db_details_qbe.php +++ b/db_details_qbe.php @@ -9,9 +9,9 @@ /** * requirements */ -require_once('./libraries/common.lib.php'); +require_once './libraries/common.lib.php'; require_once './libraries/Table.class.php'; -require_once('./libraries/relation.lib.php'); +require_once './libraries/relation.lib.php'; /** @@ -23,23 +23,23 @@ $cfgRelation = PMA_getRelationsParam(); /** * A query has been submitted -> execute it, else display the headers */ -if ( isset( $_REQUEST['submit_sql'] ) - && preg_match('@^SELECT@i', $_REQUEST['encoded_sql_query']) ) { +if (isset($_REQUEST['submit_sql']) + && preg_match('@^SELECT@i', $_REQUEST['encoded_sql_query'])) { $goto = 'db_details.php'; $zero_rows = htmlspecialchars($GLOBALS['strSuccess']); $sql_query = urldecode($_REQUEST['encoded_sql_query']); - require('./sql.php'); - exit(); + require './sql.php'; + exit; } else { $sub_part = '_qbe'; - require('./libraries/db_details_common.inc.php'); + require './libraries/db_details_common.inc.php'; $url_query .= '&goto=db_details_qbe.php'; $url_params['goto'] = 'db_details_qbe.php'; - require('./libraries/db_details_db_info.inc.php'); + require './libraries/db_details_db_info.inc.php'; } -if ( isset($_REQUEST['submit_sql'] ) - && ! preg_match('@^SELECT@i', $_REQUEST['encoded_sql_query']) ) { +if (isset($_REQUEST['submit_sql']) + && ! preg_match('@^SELECT@i', $_REQUEST['encoded_sql_query'])) { echo '
' . $GLOBALS['strHaveToShow'] . '
'; } @@ -47,31 +47,31 @@ if ( isset($_REQUEST['submit_sql'] ) /** * Initialize some variables */ -$col_cnt = isset( $_REQUEST['col_cnt'] ) ? (int) $_REQUEST['col_cnt'] : 3; -$add_col = isset( $_REQUEST['add_col'] ) ? (int) $_REQUEST['add_col'] : 0; -$add_row = isset( $_REQUEST['add_row'] ) ? (int) $_REQUEST['add_row'] : 0; +$col_cnt = isset($_REQUEST['col_cnt']) ? (int) $_REQUEST['col_cnt'] : 3; +$add_col = isset($_REQUEST['add_col']) ? (int) $_REQUEST['add_col'] : 0; +$add_row = isset($_REQUEST['add_row']) ? (int) $_REQUEST['add_row'] : 0; -$rows = isset( $_REQUEST['rows'] ) ? (int) $_REQUEST['rows'] : 0; -$ins_col = isset( $_REQUEST['ins_col'] ) ? $_REQUEST['ins_col'] : array(); -$del_col = isset( $_REQUEST['del_col'] ) ? $_REQUEST['del_col'] : array(); +$rows = isset($_REQUEST['rows']) ? (int) $_REQUEST['rows'] : 0; +$ins_col = isset($_REQUEST['ins_col']) ? $_REQUEST['ins_col'] : array(); +$del_col = isset($_REQUEST['del_col']) ? $_REQUEST['del_col'] : array(); -$prev_criteria = isset( $_REQUEST['prev_criteria'] ) +$prev_criteria = isset($_REQUEST['prev_criteria']) ? $_REQUEST['prev_criteria'] : array(); -$criteria = isset( $_REQUEST['criteria'] ) +$criteria = isset($_REQUEST['criteria']) ? $_REQUEST['criteria'] : array_fill(0, $col_cnt, ''); -$ins_row = isset( $_REQUEST['ins_row'] ) +$ins_row = isset($_REQUEST['ins_row']) ? $_REQUEST['ins_row'] : array_fill(0, $col_cnt, ''); -$del_row = isset( $_REQUEST['del_row'] ) +$del_row = isset($_REQUEST['del_row']) ? $_REQUEST['del_row'] : array_fill(0, $col_cnt, ''); -$and_or_row = isset( $_REQUEST['and_or_row'] ) +$and_or_row = isset($_REQUEST['and_or_row']) ? $_REQUEST['and_or_row'] : array_fill(0, $col_cnt, ''); -$and_or_col = isset( $_REQUEST['and_or_col'] ) +$and_or_col = isset($_REQUEST['and_or_col']) ? $_REQUEST['and_or_col'] : array_fill(0, $col_cnt, ''); @@ -90,8 +90,8 @@ if (!empty($TableList)) { } // end if -$columns = PMA_DBI_get_columns_full( $GLOBALS['db'] ); -$tables = PMA_DBI_get_columns_full( $GLOBALS['db'] ); +$columns = PMA_DBI_get_columns_full($GLOBALS['db']); +$tables = PMA_DBI_get_columns_full($GLOBALS['db']); /** @@ -144,15 +144,15 @@ $realwidth = $form_column_width . 'ex'; * Displays the Query by example form */ -function showColumnSelectCell( $columns, $column_number, $selected = '' ) +function showColumnSelectCell($columns, $column_number, $selected = '') { ?> - - - - - + + + - - + ' . $strDescending . '' . "\n"; ?> - - + + - + - - - - - + + + : - - - + + + - - /> - + + /> + - + - - - - - + + + : - - - + + + - - - - + + + + - + - + - - - - - - - - - - - - - - -
- : - - - : - - /> -   -
- : - - - : - - /> -   -
- + + + + + + + + + + + + + + +
+ : + + + : + + /> +   +
+ : + + + : + + /> +   +
+ - - - + + + - - - + + + - + - - - - - - - - - - - - - - -
- : - - - : - - /> -
- : - - - : - - /> -
- + + + + + + + + + + + + + + +
+ : + + + : + + /> +
+ : + + + : + + /> +
+ - - - + + + - - - + + + - + - - - - - - + + + : - - : - /> -   : - /> -
- - -    - - + + : + /> +   : + /> +
+ + +    + + - - : - /> -   : - /> -
- - -    - - + + : + /> +   : + /> +
+ + +    + + - + +
- - - - - - - - -
- - - - : - -  : - -  

+ + + : + + +   + : + + +   + + + + +
- - - - - - - -
    
+ + - - - - - - - - - - - + + + +
+ +
+ +
+
+ $val) { $numTableListOptions++; } ?> - + -
   - - -