Rev Author Line No. Line
250 kaklik 1 <?php
2 /* $Id: display_tbl_links.lib.php,v 2.13 2006/01/17 17:02:30 cybot_tm Exp $ */
3 // vim: expandtab sw=4 ts=4 sts=4:
4  
5 // modified 2004-05-08 by Michael Keck <mail_at_michaelkeck_dot_de>
6 // - bugfix for select all checkboxes
7 // - copy right to left (or left to right) if user click on a check box
8 // - reversed the right modify links: 1. drop, 2. edit, 3. checkbox
9 // - also changes made in js/functions.js
10  
11 if ( $doWriteModifyAt == 'left' ){
12  
13 if (!empty($del_url) && $is_display['del_lnk'] != 'kp') {
14 echo ' <td align="center">' . "\n"
15 . ' <input type="checkbox" id="id_rows_to_delete' . $row_no . '" name="rows_to_delete[' . $uva_condition . ']"'
16 . ' onclick="copyCheckboxesRange(\'rowsDeleteForm\', \'id_rows_to_delete' . $row_no . '\',\'l\');"'
17 . ' value="' . $del_query . '" ' . (isset($GLOBALS['checkall']) ? 'checked="checked"' : '') . ' />' . "\n"
18 . ' </td>' . "\n";
19 }
20 if (!empty($edit_url)) {
21 echo ' <td align="center">' . "\n"
22 . PMA_linkOrButton($edit_url, $edit_str, '', FALSE)
23 . $bookmark_go
24 . ' </td>' . "\n";
25 }
26 if (!empty($del_url)) {
27 echo ' <td align="center">' . "\n"
28 . PMA_linkOrButton($del_url, $del_str, (isset($js_conf) ? $js_conf : ''), FALSE)
29 . ' </td>' . "\n";
30 }
31 } elseif ($doWriteModifyAt == 'right') {
32 if (!empty($del_url)) {
33 echo ' <td align="center">' . "\n"
34 . PMA_linkOrButton($del_url, $del_str, (isset($js_conf) ? $js_conf : ''), FALSE)
35 . ' </td>' . "\n";
36 }
37 if (!empty($edit_url)) {
38 echo ' <td align="center">' . "\n"
39 . PMA_linkOrButton($edit_url, $edit_str, '', FALSE)
40 . $bookmark_go
41 . ' </td>' . "\n";
42 }
43 if (!empty($del_url) && $is_display['del_lnk'] != 'kp') {
44 echo ' <td align="center">' . "\n"
45 . ' <input type="checkbox" id="id_rows_to_delete' . $row_no . 'r" name="rows_to_delete[' . $uva_condition . ']"'
46 . ' onclick="copyCheckboxesRange(\'rowsDeleteForm\', \'id_rows_to_delete' . $row_no . '\',\'r\');"'
47 . ' value="' . $del_query . '" ' . (isset($GLOBALS['checkall']) ? 'checked="checked"' : '') . ' />' . "\n"
48 . ' </td>' . "\n";
49 }
50 }
51 ?>