2 /* vim: set expandtab sw=4 ts=4 sts=4: */
5 * - bugfix for select all checkboxes
6 * - copy right to left (or left to right) if user click on a check box
7 * - reversed the right modify links: 1. drop, 2. edit, 3. checkbox
8 * - also changes made in js/functions.js
12 if (! defined('PHPMYADMIN')) {
19 if ($doWriteModifyAt == 'left') {
21 if (!empty($del_url) && $is_display['del_lnk'] != 'kp') {
22 echo ' <td align="center">' . "\n"
23 . ' <input type="checkbox" id="id_rows_to_delete' . $row_no . '" name="rows_to_delete[' . $where_clause_html . ']"'
24 . ' onclick="copyCheckboxesRange(\'rowsDeleteForm\', \'id_rows_to_delete' . $row_no . '\',\'l\');"'
25 . ' value="' . htmlspecialchars($del_query) . '" ' . (isset($GLOBALS['checkall']) ?
'checked="checked"' : '') . ' />' . "\n"
28 if (!empty($edit_url)) {
29 echo ' <td class="' . $edit_anchor_class . '" align="center">' . "\n"
30 . PMA_linkOrButton($edit_url, $edit_str, '', FALSE)
34 if (!empty($del_url)) {
35 echo ' <td align="center">' . "\n"
36 . PMA_linkOrButton($del_url, $del_str, (isset($js_conf) ?
$js_conf : ''), FALSE)
39 } elseif ($doWriteModifyAt == 'right') {
40 if (!empty($del_url)) {
41 echo ' <td align="center">' . "\n"
42 . PMA_linkOrButton($del_url, $del_str, (isset($js_conf) ?
$js_conf : ''), FALSE)
45 if (!empty($edit_url)) {
46 echo ' <td class="' . $edit_anchor_class . '" align="center">' . "\n"
47 . PMA_linkOrButton($edit_url, $edit_str, '', FALSE)
51 if (!empty($del_url) && $is_display['del_lnk'] != 'kp') {
52 echo ' <td align="center">' . "\n"
53 . ' <input type="checkbox" id="id_rows_to_delete' . $row_no . 'r" name="rows_to_delete[' . $where_clause_html . ']"'
54 . ' onclick="copyCheckboxesRange(\'rowsDeleteForm\', \'id_rows_to_delete' . $row_no . '\',\'r\');"'
55 . ' value="' . htmlspecialchars($del_query) . '" ' . (isset($GLOBALS['checkall']) ?
'checked="checked"' : '') . ' />' . "\n"
60 * Where clause for selecting this row uniquely is provided as a hidden input.
61 * Used by jQuery scripts for handling inline editing
63 if( !empty($where_clause)) {
64 echo '<input type="hidden" class="where_clause" value ="' . $where_clause . '" />';