home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / phpMyAdmin / libraries / display_tbl_links.lib.php < prev    next >
Encoding:
PHP Script  |  2008-06-23  |  2.3 KB  |  60 lines

  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  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
  9.  *
  10.  * @version $Id: display_tbl_links.lib.php 11326 2008-06-17 21:32:48Z lem9 $
  11.  */
  12. if (! defined('PHPMYADMIN')) {
  13.     exit;
  14. }
  15.  
  16. /**
  17.  *
  18.  */
  19. if ($doWriteModifyAt == 'left') {
  20.  
  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[' . $unique_condition . ']"'
  24.            . ' onclick="copyCheckboxesRange(\'rowsDeleteForm\', \'id_rows_to_delete' . $row_no . '\',\'l\');"'
  25.            . ' value="' . $del_query . '" ' . (isset($GLOBALS['checkall']) ? 'checked="checked"' : '') . ' />' . "\n"
  26.            . '    </td>' . "\n";
  27.     }
  28.     if (!empty($edit_url)) {
  29.         echo '    <td align="center">' . "\n"
  30.            . PMA_linkOrButton($edit_url, $edit_str, '', FALSE)
  31.            . $bookmark_go
  32.            . '    </td>' . "\n";
  33.     }
  34.     if (!empty($del_url)) {
  35.         echo '    <td align="center">' . "\n"
  36.            . PMA_linkOrButton($del_url, $del_str, (isset($js_conf) ? $js_conf : ''), FALSE)
  37.            . '    </td>' . "\n";
  38.     }
  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)
  43.            . '    </td>' . "\n";
  44.     }
  45.     if (!empty($edit_url)) {
  46.         echo '    <td align="center">' . "\n"
  47.            . PMA_linkOrButton($edit_url, $edit_str, '', FALSE)
  48.            . $bookmark_go
  49.            . '    </td>' . "\n";
  50.     }
  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[' . $unique_condition . ']"'
  54.            . ' onclick="copyCheckboxesRange(\'rowsDeleteForm\', \'id_rows_to_delete' . $row_no . '\',\'r\');"'
  55.            . ' value="' . $del_query . '" ' . (isset($GLOBALS['checkall']) ? 'checked="checked"' : '') . ' />' . "\n"
  56.            . '    </td>' . "\n";
  57.     }
  58. }
  59. ?>
  60.