Documentation TYPO3 par Ameos

display_tbl_links.lib.php

00001 <?php
00002 /* $Id: display_tbl_links.lib.php,v 2.10 2004/11/03 13:56:52 garvinhicking Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
00004 
00005 // modified 2004-05-08 by Michael Keck <mail_at_michaelkeck_dot_de>
00006 // - bugfix for select all checkboxes
00007 // - copy right to left (or left to right) if user click on a check box
00008 // - reversed the right modify links: 1. drop, 2. edit, 3. checkbox
00009 // - also changes made in libraries/functions.js
00010 
00011 if ( $doWriteModifyAt == 'left' ){
00012 
00013     if (!empty($del_url) && $is_display['del_lnk'] != 'kp') {
00014         echo '    <td width="16" align="center" valign="top" bgcolor="' . $bgcolor . '">' . "\n"
00015            . '        <input type="checkbox" id="id_rows_to_delete' . $row_no . '" name="rows_to_delete[' . $uva_condition . ']"'
00016            . ' onclick="copyCheckboxesRange(\'rowsDeleteForm\', \'id_rows_to_delete' . $row_no . '\',\'l\');"'
00017            . ' value="' . $del_query . '" ' . (isset($GLOBALS['checkall']) ? 'checked="checked"' : '') . ' />' . "\n"
00018            . '    </td>' . "\n";
00019     }
00020     if (!empty($edit_url)) {
00021         echo '    <td width="16" align="center" valign="top" bgcolor="' . $bgcolor . '">' . "\n"
00022            . PMA_linkOrButton($edit_url, $edit_str, '', FALSE)
00023            . $bookmark_go
00024            . '    </td>' . "\n";
00025     }
00026     if (!empty($del_url)) {
00027         echo '    <td width="16" align="center" valign="top" bgcolor="' . $bgcolor . '">' . "\n"
00028            . PMA_linkOrButton($del_url, $del_str, (isset($js_conf) ? $js_conf : ''), FALSE)
00029            . '    </td>' . "\n";
00030     }
00031 } else if ($doWriteModifyAt == 'right') {
00032     if (!empty($del_url)) {
00033         echo '    <td width="16" align="center" valign="top" bgcolor="' . $bgcolor . '">' . "\n"
00034            . PMA_linkOrButton($del_url, $del_str, (isset($js_conf) ? $js_conf : ''), FALSE)
00035            . '    </td>' . "\n";
00036     }
00037     if (!empty($edit_url)) {
00038         echo '    <td width="16" align="center" valign="top" bgcolor="' . $bgcolor . '">' . "\n"
00039            . PMA_linkOrButton($edit_url, $edit_str, '', FALSE)
00040            . $bookmark_go
00041            . '    </td>' . "\n";
00042     }
00043     if (!empty($del_url) && $is_display['del_lnk'] != 'kp') {
00044         echo '    <td width="16" align="center" valign="top" bgcolor="' . $bgcolor . '">' . "\n"
00045            . '        <input type="checkbox" id="id_rows_to_delete' . $row_no . 'r" name="rows_to_delete[' . $uva_condition . ']"'
00046            . ' onclick="copyCheckboxesRange(\'rowsDeleteForm\', \'id_rows_to_delete' . $row_no . '\',\'r\');"'
00047            . ' value="' . $del_query . '" ' . (isset($GLOBALS['checkall']) ? 'checked="checked"' : '') . ' />' . "\n"
00048            . '    </td>' . "\n";
00049     }
00050 }
00051 ?>


Généré par L'expert TYPO3 avec  doxygen 1.4.6