diff --git a/libraries/Header.class.php b/libraries/Header.class.php index d61dda9fa2..aa95d08de9 100644 --- a/libraries/Header.class.php +++ b/libraries/Header.class.php @@ -495,7 +495,7 @@ class PMA_Header } $retval .= ""; } diff --git a/libraries/TableSearch.class.php b/libraries/TableSearch.class.php index b8b55a4086..cc4221aa20 100644 --- a/libraries/TableSearch.class.php +++ b/libraries/TableSearch.class.php @@ -111,7 +111,7 @@ class PMA_TableSearch * @return array column names */ public function getColumnNames() - { + { return $this->_columnNames; } @@ -260,10 +260,10 @@ class PMA_TableSearch $column_index, $titles, $foreignMaxLimit, $criteriaValues, $column_id, $in_zoom_search_edit = false ) { - $html_output = ''; + $html_output = ''; if (is_array($foreignData['disp_row'])) { - $html_output .= ''; $html_output .= PMA_foreignDropdown( $foreignData['disp_row'], $foreignData['foreign_field'], $foreignData['foreign_display'], '', $foreignMaxLimit @@ -329,9 +329,9 @@ EOT; $html_output .= ''; + $html_output .= ''; // get the relevant list of GIS functions - $funcs = PMA_getGISFunctions($this->_columnTypes[$column_index], true, true); + $funcs = PMA_getGISFunctions( + $this->_columnTypes[$column_index], true, true + ); /** - * For each function in the list of functions, add an option to select list + * For each function in the list of functions, + * add an option to select list */ foreach ($funcs as $func_name => $func) { $name = isset($func['display']) ? $func['display'] : $func_name; @@ -737,8 +755,9 @@ EOT; */ $html_output .= '
' . '' . __('Select columns (at least one):') . '' - . ''; // Displays the list of the fields foreach ($this->_columnNames as $each_field) { $html_output .= ' ' @@ -757,8 +776,8 @@ EOT; . '' . '' . __('Or') . ' ' . __('Add search conditions (body of the "where" clause):') . ''; $html_output .= PMA_showMySQLDocu('SQL-Syntax', 'Functions'); - $html_output .= ''; + $html_output .= ''; $html_output .= '
'; /** @@ -771,7 +790,8 @@ EOT; . ''; /** - * Displays option for ordering search results by a column value (Asc or Desc) + * Displays option for ordering search results + * by a column value (Asc or Desc) */ $html_output .= '
' . '' . __('Display order:') . '' @@ -833,8 +853,9 @@ EOT; $html_output .= ''; $html_output .= ''; - $html_output .= ''; @@ -902,8 +923,8 @@ EOT; //If 'Function' column is present $html_output .= $this->_getGeomFuncHtml($column_index); //Displays column's name, type, collation and value - $html_output .= '' . htmlspecialchars($this->_columnNames[$column_index]) - . ''; + $html_output .= '' + . htmlspecialchars($this->_columnNames[$column_index]) . ''; $properties = $this->getColumnProperties($column_index, $column_index); $html_output .= '' . $properties['type'] . ''; $html_output .= '' . $properties['collation'] . ''; @@ -912,16 +933,19 @@ EOT; $html_output .= ''; //Displays hidden fields $html_output .= ''; - $html_output .= ''; - $html_output .= ''; - $html_output .= ''; + $html_output .= ''; + $html_output .= ''; + $html_output .= ''; + $html_output .= ''; } // end for - + return $html_output; } @@ -971,7 +995,10 @@ EOT; if (isset($_POST['criteriaColumnNames']) && $_POST['criteriaColumnNames'][$i] != 'pma_null' ) { - $key = array_search($_POST['criteriaColumnNames'][$i], $this->_columnNames); + $key = array_search( + $_POST['criteriaColumnNames'][$i], + $this->_columnNames + ); $properties = $this->getColumnProperties($i, $key); $type[$i] = $properties['type']; $collation[$i] = $properties['collation']; @@ -983,7 +1010,7 @@ EOT; //Column Collation $html_output .= '' . (isset($collation[$i]) ? $collation[$i] : '') . ''; - //Select options for column operators + //Select options for column operators $html_output .= '' . (isset($func[$i]) ? $func[$i] : '') . ''; //Inputbox for search criteria value $html_output .= '' . (isset($value[$i]) ? $value[$i] : '') . ''; @@ -1192,8 +1219,9 @@ EOT; //Column's Input box $html_output .= ''; $html_output .= $this->_getInputbox( - $foreignData, $fieldpopup, $this->_columnTypes[$column_index], $column_index, - $titles, $GLOBALS['cfg']['ForeignKeyMaxLimit'], '', false, true + $foreignData, $fieldpopup, $this->_columnTypes[$column_index], + $column_index, $titles, $GLOBALS['cfg']['ForeignKeyMaxLimit'], + '', false, true ); $html_output .= ''; } diff --git a/libraries/sql_query_form.lib.php b/libraries/sql_query_form.lib.php index 8b370000c4..413c87cf36 100644 --- a/libraries/sql_query_form.lib.php +++ b/libraries/sql_query_form.lib.php @@ -267,7 +267,9 @@ function PMA_sqlQueryFormInsert($query = '', $is_querywindow = false, .' cols="' . $GLOBALS['cfg']['TextareaCols'] . '"' .' rows="' . $height . '"' .' dir="' . $GLOBALS['text_dir'] . '"' - .$auto_sel . $locking . '>' . htmlspecialchars($query) . '' . "\n"; + .$auto_sel . $locking . '>' + . htmlspecialchars($query) + . '' . "\n"; // Add buttons to generate query easily for // select all, single select, insert, update and delete if (count($fields_list)) { @@ -289,7 +291,10 @@ function PMA_sqlQueryFormInsert($query = '', $is_querywindow = false, foreach ($fields_list as $field) { echo '' . "\n";