2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * modified 2004-05-08 by Michael Keck <mail_at_michaelkeck_dot_de>
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
13 if (! defined('PHPMYADMIN')) {
20 if ($doWriteModifyAt == 'left') {
22 if (!empty($del_url) && $is_display['del_lnk'] != 'kp') {
23 echo ' <td align="center">' . "\n"
24 . ' <input type="checkbox" id="id_rows_to_delete' . $row_no . '" name="rows_to_delete[' . $where_clause_html . ']"'
25 . ' onclick="copyCheckboxesRange(\'rowsDeleteForm\', \'id_rows_to_delete' . $row_no . '\',\'l\');"'
26 . ' value="' . htmlspecialchars($del_query) . '" ' . (isset($GLOBALS['checkall']) ?
'checked="checked"' : '') . ' />' . "\n"
29 if (!empty($edit_url)) {
30 echo ' <td align="center">' . "\n"
31 . PMA_linkOrButton($edit_url, $edit_str, '', FALSE)
35 if (!empty($del_url)) {
36 echo ' <td align="center">' . "\n"
37 . PMA_linkOrButton($del_url, $del_str, (isset($js_conf) ?
$js_conf : ''), FALSE)
40 } elseif ($doWriteModifyAt == 'right') {
41 if (!empty($del_url)) {
42 echo ' <td align="center">' . "\n"
43 . PMA_linkOrButton($del_url, $del_str, (isset($js_conf) ?
$js_conf : ''), FALSE)
46 if (!empty($edit_url)) {
47 echo ' <td align="center">' . "\n"
48 . PMA_linkOrButton($edit_url, $edit_str, '', FALSE)
52 if (!empty($del_url) && $is_display['del_lnk'] != 'kp') {
53 echo ' <td align="center">' . "\n"
54 . ' <input type="checkbox" id="id_rows_to_delete' . $row_no . 'r" name="rows_to_delete[' . $where_clause_html . ']"'
55 . ' onclick="copyCheckboxesRange(\'rowsDeleteForm\', \'id_rows_to_delete' . $row_no . '\',\'r\');"'
56 . ' value="' . htmlspecialchars($del_query) . '" ' . (isset($GLOBALS['checkall']) ?
'checked="checked"' : '') . ' />' . "\n"