From 634db1c81de4545f7d63ff92b66f076b2e329f13 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Fri, 15 Oct 2010 13:21:27 -0400 Subject: [PATCH] Inline edit in vertical mode --- libraries/display_tbl.lib.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php index 1be9960cd..2acf36829 100644 --- a/libraries/display_tbl.lib.php +++ b/libraries/display_tbl.lib.php @@ -1107,12 +1107,14 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql) { echo '' . "\n"; } // end if + $alternating_color_class = ($odd_row ? 'odd' : 'even'); + $odd_row = ! $odd_row; + if ($_SESSION['tmp_user_values']['disp_direction'] == 'horizontal' || $_SESSION['tmp_user_values']['disp_direction'] == 'horizontalflipped') { // pointer code part - echo ''; + echo ''; } - $odd_row = ! $odd_row; // 1. Prepares the row @@ -1222,7 +1224,7 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql) { $is_field_truncated = false; //If the previous column had blob data, we need to reset the class // to $data_inline_edit_class - $class = $data_inline_edit_class; + $class = $data_inline_edit_class . ' ' . $alternating_color_class; // See if this column should get highlight because it's used in the // where-query. @@ -1454,7 +1456,7 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql) { } if (!empty($del_url) && $is_display['del_lnk'] != 'kp') { - $vertical_display['row_delete'][$row_no] .= ' ' . "\n" + $vertical_display['row_delete'][$row_no] .= ' ' . "\n" . ' ' . "\n" @@ -1464,7 +1466,7 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql) { } if (isset($edit_url)) { - $vertical_display['edit'][$row_no] .= ' ' . "\n" + $vertical_display['edit'][$row_no] .= ' ' . "\n" . PMA_linkOrButton($edit_url, $edit_str, array(), false) . ' ' . "\n"; } else { @@ -1472,7 +1474,7 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql) { } if (isset($del_url)) { - $vertical_display['delete'][$row_no] .= ' ' . "\n" + $vertical_display['delete'][$row_no] .= ' ' . "\n" . PMA_linkOrButton($del_url, $del_str, (isset($js_conf) ? $js_conf : ''), false) . ' ' . "\n"; } else {