Set row span when there are more privileges

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
Madhura Jayaratne 2015-03-18 12:03:43 +05:30
parent 9f1f0e6bc1
commit 24db9d5cde

View File

@ -2293,8 +2293,12 @@ function PMA_getHtmlTableBodyForSpecificDbOrTablePrivs($privMap, $db)
. ($odd_row ? 'odd' : 'even') . '">';
$value = htmlspecialchars($current_user . '&amp;#27;' . $current_host);
$html_output .= '<td>'
. '<input type="checkbox" class="checkall" name="selected_usr[]" '
$html_output .= '<td';
if ($nbPrivileges > 1) {
$html_output .= ' rowspan="' . $nbPrivileges . '"';
}
$html_output .= '>';
$html_output .= '<input type="checkbox" class="checkall" name="selected_usr[]" '
. 'id="checkbox_sel_users_' . ($index_checkbox++) . '" '
. 'value="' . $value . '" /></td>' . "\n";