diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 8913de35..68be3a0b 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -112,7 +112,7 @@ function nl_br($string) { * @param string * @param string * @param string -* @return string +* @param string * @return string */ function checkbox($name, $value, $checked, $label = "", $onclick = "", $class = "", $labelled_by = "") { @@ -154,11 +154,15 @@ function optionlist($options, $selected = null, $use_keys = false) { * @param array * @param string * @param string true for no onchange, false for radio +* @param string * @return string */ -function html_select($name, $options, $value = "", $onchange = true) { +function html_select($name, $options, $value = "", $onchange = true, $labelled_by = "") { if ($onchange) { - return ""; + return ""; } $return = ""; foreach ($options as $key => $val) { diff --git a/adminer/indexes.inc.php b/adminer/indexes.inc.php index c6c2950b..ca69d5dd 100644 --- a/adminer/indexes.inc.php +++ b/adminer/indexes.inc.php @@ -93,9 +93,9 @@ if (!$row) {
-
+ - +  
" . html_select("indexes[$j][type]", array(-1 => "") + $index_types, $index["type"], ($j == count($row["indexes"]) ? "indexesAddRow(this);" : 1)); + echo "
" . html_select("indexes[$j][type]", array(-1 => "") + $index_types, $index["type"], ($j == count($row["indexes"]) ? "indexesAddRow(this);" : 1), "label-type"); echo ""; ksort($index["columns"]); $i = 1; foreach ($index["columns"] as $key => $column) { echo "" . select_input( - " name='indexes[$j][columns][$i]' onchange=\"" . ($i == count($index["columns"]) ? "indexesAddColumn" : "indexesChangeColumn") . "(this, '" . h(js_escape($jush == "sql" ? "" : $_GET["indexes"] . "_")) . "');\"", + " name='indexes[$j][columns][$i]' onchange=\"" . ($i == count($index["columns"]) ? "indexesAddColumn" : "indexesChangeColumn") . "(this, '" . h(js_escape($jush == "sql" ? "" : $_GET["indexes"] . "_")) . "');\" title='" . lang('Column') . "'", ($fields ? array_combine($fields, $fields) : $fields), $column ); - echo ($jush == "sql" || $jush == "mssql" ? "" : ""); + echo ($jush == "sql" || $jush == "mssql" ? "" : ""); echo ($jush != "sql" ? checkbox("indexes[$j][descs][$i]", 1, $index["descs"][$key], lang('descending')) : ""); echo " "; $i++; } - echo "\n"; + echo "\n"; echo "\n"; } $j++;