Project

General

Profile

Bug #21518 » 12541.diff

Administrator Admin, 2009-11-10 12:48

View differences:

typo3/class.db_list.inc (working copy)
// "Edit" link: ( Only if permissions to edit the page-record of the content of the parent page ($this->id)
if ($permsEdit) {
$params='&edit['.$table.']['.$row['uid'].']=edit';
$params='&edit['.$table.']['.$row['uid'].']=edit';
$code = '<a href="#" onclick="'.htmlspecialchars(t3lib_BEfunc::editOnClick($params,$this->backPath,-1)).'" title="'.$LANG->getLL('edit',1).'">'.
$code.
'</a>';
......
function listURL($altId='',$table=-1,$exclList='') {
return $GLOBALS['BACK_PATH'] . $this->script.
'?id='.(strcmp($altId,'')?$altId:$this->id).
'&table='.rawurlencode($table==-1?$this->table:$table).
($this->thumbs?'&imagemode='.$this->thumbs:'').
($this->returnUrl?'&returnUrl='.rawurlencode($this->returnUrl):'').
($this->searchString?'&search_field='.rawurlencode($this->searchString):'').
($this->searchLevels?'&search_levels='.rawurlencode($this->searchLevels):'').
($this->showLimit?'&showLimit='.rawurlencode($this->showLimit):'').
($this->firstElementNumber?'&pointer='.rawurlencode($this->firstElementNumber):'').
((!$exclList || !t3lib_div::inList($exclList,'sortField')) && $this->sortField?'&sortField='.rawurlencode($this->sortField):'').
((!$exclList || !t3lib_div::inList($exclList,'sortRev')) && $this->sortRev?'&sortRev='.rawurlencode($this->sortRev):'')
'&amp;table='.rawurlencode($table==-1?$this->table:$table).
($this->thumbs?'&amp;imagemode='.$this->thumbs:'').
($this->returnUrl?'&amp;returnUrl='.rawurlencode($this->returnUrl):'').
($this->searchString?'&amp;search_field='.rawurlencode($this->searchString):'').
($this->searchLevels?'&amp;search_levels='.rawurlencode($this->searchLevels):'').
($this->showLimit?'&amp;showLimit='.rawurlencode($this->showLimit):'').
($this->firstElementNumber?'&amp;pointer='.rawurlencode($this->firstElementNumber):'').
((!$exclList || !t3lib_div::inList($exclList,'sortField')) && $this->sortField?'&amp;sortField='.rawurlencode($this->sortField):'').
((!$exclList || !t3lib_div::inList($exclList,'sortRev')) && $this->sortRev?'&amp;sortRev='.rawurlencode($this->sortRev):'')
;
}
......
if (is_array($localizedRecord)) {
// Create parameters and finally run the classic page module for creating a new page translation
$params = '&edit['.$table.']['.$localizedRecord['uid'].']=edit';
$returnUrl = '&returnUrl='.rawurlencode($this->listURL());
$params = '&amp;edit['.$table.']['.$localizedRecord['uid'].']=edit';
$returnUrl = '&amp;returnUrl='.rawurlencode($this->listURL());
$location = $GLOBALS['BACK_PATH'].'alt_doc.php?'.$params.$returnUrl;
t3lib_div::redirect($location);
typo3/class.db_list_extra.inc (working copy)
if ($localCalcPerms&2 && !empty($this->id)) {
// Edit
$params = '&edit[pages][' . $this->pageRow['uid'] . ']=edit';
$params = '&amp;edit[pages][' . $this->pageRow['uid'] . ']=edit';
$buttons['edit'] = '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::editOnClick($params, $this->backPath, -1)) . '">' .
'<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/edit2.gif') . ' title="' . $LANG->getLL('editPage', 1) . '" alt="" />' .
'</a>';
// Unhide
if ($this->pageRow['hidden']) {
$params = '&data[pages][' . $this->pageRow['uid'] . '][hidden]=0';
$params = '&amp;data[pages][' . $this->pageRow['uid'] . '][hidden]=0';
$buttons['hide_unhide'] = '<a href="#" onclick="' . htmlspecialchars('return jumpToUrl(\'' . $GLOBALS['SOBE']->doc->issueCommand($params, -1) . '\');') . '">' .
'<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/button_unhide.gif') . ' title="' . $LANG->getLL('unHidePage', 1) . '" alt="" />' .
'</a>';
// Hide
} else {
$params = '&data[pages][' . $this->pageRow['uid'] . '][hidden]=1';
$params = '&amp;data[pages][' . $this->pageRow['uid'] . '][hidden]=1';
$buttons['hide_unhide'] = '<a href="#" onclick="' . htmlspecialchars('return jumpToUrl(\'' . $GLOBALS['SOBE']->doc->issueCommand($params, -1) . '\');') . '">'.
'<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/button_hide.gif') . ' title="' . $LANG->getLL('hidePage', 1) . '" alt="" />' .
'</a>';
}
// Move
$buttons['move'] = '<a href="#" onclick="' . htmlspecialchars('return jumpExt(\'' . $this->backPath . 'move_el.php?table=pages&uid=' . $this->pageRow['uid'] . '\');') . '">' .
$buttons['move'] = '<a href="#" onclick="' . htmlspecialchars('return jumpExt(\'' . $this->backPath . 'move_el.php?table=pages&amp;uid=' . $this->pageRow['uid'] . '\');') . '">' .
'<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/move_' . ($this->table == 'tt_content' ? 'record' : 'page') . '.gif') . ' title="' . $LANG->getLL('move_page', 1) . '" alt="" />' .
'</a>';
......
}
// Cache
$buttons['cache'] = '<a href="' . htmlspecialchars($this->listURL() . '&clear_cache=1') . '">' .
$buttons['cache'] = '<a href="' . htmlspecialchars($this->listURL() . '&amp;clear_cache=1') . '">' .
'<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/clear_cache.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.clear_cache', 1) . '" alt="" />' .
'</a>';
if ($this->table) {
// CSV
$buttons['csv'] = '<a href="' . htmlspecialchars($this->listURL() . '&csv=1') . '">' .
$buttons['csv'] = '<a href="' . htmlspecialchars($this->listURL() . '&amp;csv=1') . '">' .
'<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/csv.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.csv', 1) . '" alt="" />' .
'</a>';
// Export
if (t3lib_extMgm::isLoaded('impexp')) {
$url = $this->backPath . t3lib_extMgm::extRelPath('impexp') . 'app/index.php?tx_impexp[action]=export';
$buttons['export'] = '<a href="' . htmlspecialchars($url . '&tx_impexp[list][]=' . rawurlencode($this->table . ':' . $this->id)) . '">' . '<img' . t3lib_iconWorks::skinImg($this->backPath, t3lib_extMgm::extRelPath('impexp') . 'export.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:rm.export', 1) . '" alt="" />' .
$buttons['export'] = '<a href="' . htmlspecialchars($url . '&amp;tx_impexp[list][]=' . rawurlencode($this->table . ':' . $this->id)) . '">' . '<img' . t3lib_iconWorks::skinImg($this->backPath, t3lib_extMgm::extRelPath('impexp') . 'export.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:rm.export', 1) . '" alt="" />' .
'</a>';
}
......
// Render collapse button if in multi table mode
$collapseIcon = '';
if (!$this->table) {
$collapseIcon = '<a href="' . htmlspecialchars($this->listURL()) . '&collapse[' . $table . ']=' . ($tableCollapsed ? '0' : '1') . '"><img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/arrow' . ($tableCollapsed ? 'right' : 'down') . '.png') . ' class="collapseIcon" alt="" title="' . ($tableCollapsed ? $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.expandTable',1) : $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.collapseTable',1)) . '" /></a>';
$collapseIcon = '<a href="' . htmlspecialchars($this->listURL()) . '&amp;collapse[' . $table . ']=' . ($tableCollapsed ? '0' : '1') . '"><img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/arrow' . ($tableCollapsed ? 'right' : 'down') . '.png') . ' class="collapseIcon" alt="" title="' . ($tableCollapsed ? $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.expandTable',1) : $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.collapseTable',1)) . '" /></a>';
}
$out .= $this->addelement(1, $collapseIcon, $theData, ' class="c-headLineTable"', '');
}
......
$countOnFirstPage = $this->totalItems > $this->itemsLimitSingleTable ? $this->itemsLimitSingleTable : $this->totalItems;
$hasMore = ($this->totalItems > $this->itemsLimitSingleTable);
$iOut .= '<tr><td colspan="' . count($this->fieldArray) . '" style="padding:5px;">
<a href="'.htmlspecialchars($this->listURL() . '&table=' . rawurlencode($table)) . '">' .
<a href="'.htmlspecialchars($this->listURL() . '&amp;table=' . rawurlencode($table)) . '">' .
'<img' . t3lib_iconWorks::skinImg($this->backPath,'gfx/pildown.gif', 'width="14" height="14"') .' alt="" />'.
' <i>[1 - ' . $countOnFirstPage . ($hasMore ? '+' : '') . ']</i></a>
</td></tr>';
......
// The "edit marked" link:
$editIdList = implode(',',$currentIdList);
$editIdList = "'+editList('".$table."','".$editIdList."')+'";
$params='&edit['.$table.']['.$editIdList.']=edit&disHelp=1';
$params='&amp;edit['.$table.']['.$editIdList.']=edit&amp;disHelp=1';
$cells['edit']='<a href="#" onclick="'.htmlspecialchars(t3lib_BEfunc::editOnClick($params,$this->backPath,-1)).'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/edit2.gif','width="11" height="12"').' title="'.$LANG->getLL('clip_editMarked',1).'" alt="" />'.
'</a>';
......
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/new_'.($table=='pages'?'page':'el').'.gif','width="'.($table=='pages'?13:11).'" height="12"').' title="'.$LANG->getLL('new',1).'" alt="" />'.
'</a>';
} elseif ($table=='pages' && $this->newWizards) {
$icon = '<a href="'.htmlspecialchars($this->backPath.'db_new.php?id='.$this->id.'&pagesOnly=1&returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))).'">'.
$icon = '<a href="'.htmlspecialchars($this->backPath.'db_new.php?id='.$this->id.'&amp;pagesOnly=1&amp;returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))).'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/new_'.($table=='pages'?'page':'el').'.gif','width="'.($table=='pages'?13:11).'" height="12"').' title="'.$LANG->getLL('new',1).'" alt="" />'.
'</a>';
} else {
$params = '&edit['.$table.']['.$this->id.']=new';
$params = '&amp;edit['.$table.']['.$this->id.']=new';
if ($table == 'pages_language_overlay') {
$params .= '&overrideVals[pages_language_overlay][doktype]=' . (int) $this->pageRow['doktype'];
$params .= '&amp;overrideVals[pages_language_overlay][doktype]=' . (int) $this->pageRow['doktype'];
}
$icon = '<a href="#" onclick="'.htmlspecialchars(t3lib_BEfunc::editOnClick($params,$this->backPath,-1)).'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/new_'.($table=='pages'?'page':'el').'.gif','width="'.($table=='pages'?13:11).'" height="12"').' title="'.$LANG->getLL('new',1).'" alt="" />'.
......
if ($permsEdit && $this->table && is_array($currentIdList)) {
$editIdList = implode(',',$currentIdList);
if ($this->clipNumPane()) $editIdList = "'+editList('".$table."','".$editIdList."')+'";
$params = '&edit['.$table.']['.$editIdList.']=edit&columnsOnly='.implode(',',$this->fieldArray).'&disHelp=1';
$params = '&amp;edit['.$table.']['.$editIdList.']=edit&amp;columnsOnly='.implode(',',$this->fieldArray).'&amp;disHelp=1';
$icon .= '<a href="#" onclick="'.htmlspecialchars(t3lib_BEfunc::editOnClick($params,$this->backPath,-1)).'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/edit2.gif','width="11" height="12"').' title="'.$LANG->getLL('editShownColumns',1).'" alt="" />'.
'</a>';
......
// If the numeric clipboard pads are selected, show duplicate sorting link:
if ($this->clipNumPane()) {
$theData[$fCol].='<a href="'.htmlspecialchars($this->listURL('',-1).'&duplicateField='.$fCol).'">'.
$theData[$fCol].='<a href="'.htmlspecialchars($this->listURL('',-1).'&amp;duplicateField='.$fCol).'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/select_duplicates.gif','width="11" height="11"').' title="'.$LANG->getLL('clip_duplicates',1).'" alt="" />'.
'</a>';
}
......
if (!$TCA[$table]['ctrl']['readOnly'] && $permsEdit && $TCA[$table]['columns'][$fCol]) {
$editIdList = implode(',',$currentIdList);
if ($this->clipNumPane()) $editIdList = "'+editList('".$table."','".$editIdList."')+'";
$params='&edit['.$table.']['.$editIdList.']=edit&columnsOnly='.$fCol.'&disHelp=1';
$params='&amp;edit['.$table.']['.$editIdList.']=edit&amp;columnsOnly='.$fCol.'&amp;disHelp=1';
$iTitle = sprintf($LANG->getLL('editThisColumn'),rtrim(trim($LANG->sL(t3lib_BEfunc::getItemLabel($table,$fCol))),':'));
$theData[$fCol].='<a href="#" onclick="'.htmlspecialchars(t3lib_BEfunc::editOnClick($params,$this->backPath,-1)).'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/edit2.gif','width="11" height="12"').' title="'.htmlspecialchars($iTitle).'" alt="" />'.
......
if ($currentPage > 1) {
$labelFirst = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:first');
$first = '<a href="' . $listURL . '&pointer=0">
$first = '<a href="' . $listURL . '&amp;pointer=0">
<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/control_first.gif')
. 'alt="' . $labelFirst . '" title="' . $labelFirst . '" />
</a>';
......
if (($currentPage - 1) > 0) {
$labelPrevious = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:previous');
$previous = '<a href="' . $listURL . '&pointer=' . (($currentPage - 2) * $this->iLimit) . '">
$previous = '<a href="' . $listURL . '&amp;pointer=' . (($currentPage - 2) * $this->iLimit) . '">
<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/control_previous.gif')
. 'alt="' . $labelPrevious . '" title="' . $labelPrevious . '" />
</a>';
......
if (($currentPage + 1) <= $totalPages) {
$labelNext = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:next');
$next = '<a href="' . $listURL . '&pointer=' . (($currentPage) * $this->iLimit) . '">
$next = '<a href="' . $listURL . '&amp;pointer=' . (($currentPage) * $this->iLimit) . '">
<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/control_next.gif')
. 'alt="' . $labelNext . '" title="' . $labelNext . '" />
</a>';
......
if ($currentPage != $totalPages) {
$labelLast = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:last');
$last = '<a href="' . $listURL . '&pointer=' . (($totalPages - 1) * $this->iLimit) . '">
$last = '<a href="' . $listURL . '&amp;pointer=' . (($totalPages - 1) * $this->iLimit) . '">
<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/control_last.gif')
. 'alt="' . $labelLast . '" title="' . $labelLast . '" />
</a>';
......
}
$reload = '<a href="#" onclick="document.dblistForm.action=\''
. $listURL . '&pointer=\'+calculatePointer(); document.dblistForm.submit(); return true;">
. $listURL . '&amp;pointer=\'+calculatePointer(); document.dblistForm.submit(); return true;">
<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/refresh_n.gif')
. 'alt="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:reload')
. '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:reload')
......
$pageNumberInput = '<span>
<input type="text" value="' . $currentPage
. '" size="3" id="jumpPage" name="jumpPage" onkeyup="if (event.keyCode == Event.KEY_RETURN) { document.dblistForm.action=\'' . $listURL . '&pointer=\'+calculatePointer(); document.dblistForm.submit(); } return true;" />
. '" size="3" id="jumpPage" name="jumpPage" onkeyup="if (event.keyCode == Event.KEY_RETURN) { document.dblistForm.action=\'' . $listURL . '&amp;pointer=\'+calculatePointer(); document.dblistForm.submit(); } return true;" />
</span>';
$pageIndicator = '<span class="pageIndicator">'
. sprintf($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_web_list.xml:pageIndicator'), $pageNumberInput, $totalPages)
......
// "Show" link (only pages and tt_content elements)
if ($table=='pages' || $table=='tt_content') {
$params='&edit['.$table.']['.$row['uid'].']=edit';
$params='&amp;edit['.$table.']['.$row['uid'].']=edit';
$cells['view']='<a href="#" onclick="'.htmlspecialchars(t3lib_BEfunc::viewOnClick($table=='tt_content'?$this->id.'#'.$row['uid']:$row['uid'], $this->backPath)).'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/zoom.gif','width="12" height="12"').' title="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:labels.showPage',1).'" alt="" />'.
'</a>';
......
// "Edit" link: ( Only if permissions to edit the page-record of the content of the parent page ($this->id)
if ($permsEdit) {
$params='&edit['.$table.']['.$row['uid'].']=edit';
$params='&amp;edit['.$table.']['.$row['uid'].']=edit';
$cells['edit']='<a href="#" onclick="'.htmlspecialchars(t3lib_BEfunc::editOnClick($params,$this->backPath,-1)).'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/edit2'.(!$TCA[$table]['ctrl']['readOnly']?'':'_d').'.gif','width="11" height="12"').' title="'.$LANG->getLL('edit',1).'" alt="" />'.
'</a>';
......
// "Move" wizard link for pages/tt_content elements:
if (($table=="tt_content" && $permsEdit) || ($table=='pages')) {
$cells['move']='<a href="#" onclick="'.htmlspecialchars('return jumpExt(\''.$this->backPath.'move_el.php?table='.$table.'&uid='.$row['uid'].'\');').'">'.
$cells['move']='<a href="#" onclick="'.htmlspecialchars('return jumpExt(\''.$this->backPath.'move_el.php?table='.$table.'&amp;uid='.$row['uid'].'\');').'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/move_'.($table=='tt_content'?'record':'page').'.gif','width="11" height="12"').' title="'.$LANG->getLL('move_'.($table=='tt_content'?'record':'page'),1).'" alt="" />'.
'</a>';
} elseif(!$this->table) {
......
$lab = 'V';
}
$cells['version']='<a href="'.htmlspecialchars($this->backPath.t3lib_extMgm::extRelPath('version')).'cm1/index.php?table='.rawurlencode($table).'&uid='.rawurlencode($row['uid']).'" title="'.$LANG->getLL('displayVersions',1).'" class="typo3-ctrl-versioning ' . $class . '">'.
$cells['version']='<a href="'.htmlspecialchars($this->backPath.t3lib_extMgm::extRelPath('version')).'cm1/index.php?table='.rawurlencode($table).'&amp;uid='.rawurlencode($row['uid']).'" title="'.$LANG->getLL('displayVersions',1).'" class="typo3-ctrl-versioning ' . $class . '">'.
$lab.
'</a>';
} elseif(!$this->table) {
......
// "Edit Perms" link:
if ($table=='pages' && $GLOBALS['BE_USER']->check('modules','web_perm')) {
$cells['perms']='<a href="'.htmlspecialchars('mod/web/perm/index.php?id='.$row['uid'].'&return_id='.$row['uid'].'&edit=1').'">'.
$cells['perms']='<a href="'.htmlspecialchars('mod/web/perm/index.php?id='.$row['uid'].'&return_id='.$row['uid'].'&amp;edit=1').'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/perm.gif','width="7" height="12"').' title="'.$LANG->getLL('permissions',1).'" alt="" />'.
'</a>';
} elseif(!$this->table && $GLOBALS['BE_USER']->check('modules','web_perm')) {
......
($table=='pages' && ($this->calcPerms&8)) // For pages, must have permission to create new pages here.
) {
if ($this->showNewRecLink($table)) {
$params='&edit['.$table.']['.(-($row['_MOVE_PLH']?$row['_MOVE_PLH_uid']:$row['uid'])).']=new';
$params='&amp;edit['.$table.']['.(-($row['_MOVE_PLH']?$row['_MOVE_PLH_uid']:$row['uid'])).']=new';
$cells['new']='<a href="#" onclick="'.htmlspecialchars(t3lib_BEfunc::editOnClick($params,$this->backPath,-1)).'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/new_'.($table=='pages'?'page':'el').'.gif','width="'.($table=='pages'?13:11).'" height="12"').' title="'.$LANG->getLL('new'.($table=='pages'?'Page':'Record'),1).'" alt="" />'.
'</a>';
......
// "Up/Down" links
if ($permsEdit && $TCA[$table]['ctrl']['sortby'] && !$this->sortField && !$this->searchLevels) {
if (isset($this->currentTable['prev'][$row['uid']])) { // Up
$params='&cmd['.$table.']['.$row['uid'].'][move]='.$this->currentTable['prev'][$row['uid']];
$params='&amp;cmd['.$table.']['.$row['uid'].'][move]='.$this->currentTable['prev'][$row['uid']];
$cells['moveUp']='<a href="#" onclick="'.htmlspecialchars('return jumpToUrl(\''.$SOBE->doc->issueCommand($params,-1).'\');').'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/button_up.gif','width="11" height="10"').' title="'.$LANG->getLL('moveUp',1).'" alt="" />'.
'</a>';
......
$cells['moveUp'] = $this->spaceIcon;
}
if ($this->currentTable['next'][$row['uid']]) { // Down
$params='&cmd['.$table.']['.$row['uid'].'][move]='.$this->currentTable['next'][$row['uid']];
$params='&amp;cmd['.$table.']['.$row['uid'].'][move]='.$this->currentTable['next'][$row['uid']];
$cells['moveDown']='<a href="#" onclick="'.htmlspecialchars('return jumpToUrl(\''.$SOBE->doc->issueCommand($params,-1).'\');').'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/button_down.gif','width="11" height="10"').' title="'.$LANG->getLL('moveDown',1).'" alt="" />'.
'</a>';
......
$hiddenField = $TCA[$table]['ctrl']['enablecolumns']['disabled'];
if ($permsEdit && $hiddenField && $TCA[$table]['columns'][$hiddenField] && (!$TCA[$table]['columns'][$hiddenField]['exclude'] || $GLOBALS['BE_USER']->check('non_exclude_fields',$table.':'.$hiddenField))) {
if ($row[$hiddenField]) {
$params='&data['.$table.']['.$row['uid'].']['.$hiddenField.']=0';
$params='&amp;data['.$table.']['.$row['uid'].']['.$hiddenField.']=0';
$cells['hide']='<a href="#" onclick="'.htmlspecialchars('return jumpToUrl(\''.$SOBE->doc->issueCommand($params,-1).'\');').'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/button_unhide.gif','width="11" height="10"').' title="'.$LANG->getLL('unHide'.($table=='pages'?'Page':''),1).'" alt="" />'.
'</a>';
} else {
$params='&data['.$table.']['.$row['uid'].']['.$hiddenField.']=1';
$params='&amp;data['.$table.']['.$row['uid'].']['.$hiddenField.']=1';
$cells['hide']='<a href="#" onclick="'.htmlspecialchars('return jumpToUrl(\''.$SOBE->doc->issueCommand($params,-1).'\');').'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/button_hide.gif','width="11" height="10"').' title="'.$LANG->getLL('hide'.($table=='pages'?'Page':''),1).'" alt="" />'.
'</a>';
......
if (($table=='pages' && ($localCalcPerms&4)) || ($table!='pages' && ($this->calcPerms&16))) {
$titleOrig = t3lib_BEfunc::getRecordTitle($table,$row,FALSE,TRUE);
$title = t3lib_div::slashJS(t3lib_div::fixed_lgd_cs($titleOrig, $this->fixedL), 1);
$params = '&cmd['.$table.']['.$row['uid'].'][delete]=1';
$params = '&amp;cmd['.$table.']['.$row['uid'].'][delete]=1';
$refCountMsg = t3lib_BEfunc::referenceCount($table, $row['uid'], ' ' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.referencesToRecord'), count($this->references)) .
t3lib_BEfunc::translationCount($table, $row['uid'], ' ' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.translationsOfRecord')) . ")";
......
// Up (Paste as the page right after the current parent page)
if ($this->calcPerms&8) {
$params='&cmd['.$table.']['.$row['uid'].'][move]='.-$this->id;
$params='&amp;cmd['.$table.']['.$row['uid'].'][move]='.-$this->id;
$cells['moveLeft']='<a href="#" onclick="'.htmlspecialchars('return jumpToUrl(\''.$SOBE->doc->issueCommand($params,-1).'\');').'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/button_left.gif','width="11" height="10"').' title="'.$LANG->getLL('prevLevel',1).'" alt="" />'.
'</a>';
......
if ($this->currentTable['prevUid'][$row['uid']]) {
$localCalcPerms = $GLOBALS['BE_USER']->calcPerms(t3lib_BEfunc::getRecord('pages',$this->currentTable['prevUid'][$row['uid']]));
if ($localCalcPerms&8) {
$params='&cmd['.$table.']['.$row['uid'].'][move]='.$this->currentTable['prevUid'][$row['uid']];
$params='&amp;cmd['.$table.']['.$row['uid'].'][move]='.$this->currentTable['prevUid'][$row['uid']];
$cells['moveRight']='<a href="#" onclick="'.htmlspecialchars('return jumpToUrl(\''.$SOBE->doc->issueCommand($params,-1).'\');').'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/button_right.gif','width="11" height="10"').' title="'.$LANG->getLL('nextLevel',1).'" alt="" />'.
'</a>';
......
foreach($this->pageOverlays as $lUid_OnPage => $lsysRec) {
if (!isset($translations['translations'][$lUid_OnPage]) && $GLOBALS['BE_USER']->checkLanguageAccess($lUid_OnPage)) {
$href = $GLOBALS['TBE_TEMPLATE']->issueCommand(
'&cmd['.$table.']['.$row['uid'].'][localize]='.$lUid_OnPage,
$this->listURL().'&justLocalized='.rawurlencode($table.':'.$row['uid'].':'.$lUid_OnPage)
'&amp;cmd['.$table.']['.$row['uid'].'][localize]='.$lUid_OnPage,
$this->listURL().'&amp;justLocalized='.rawurlencode($table.':'.$row['uid'].':'.$lUid_OnPage)
);
$lC = ($this->languageIconTitles[$lUid_OnPage]['flagIcon'] ? '<img src="'.$this->languageIconTitles[$lUid_OnPage]['flagIcon'].'" class="absmiddle" alt="" />' : $this->languageIconTitles[$lUid_OnPage]['title']);
......
if ($field=='_PATH_') $field=pid;
// Create the sort link:
$sortUrl = $this->listURL('',-1,'sortField,sortRev,table').'&table='.$table.'&sortField='.$field.'&sortRev='.($this->sortRev || ($this->sortField!=$field)?0:1);
$sortUrl = $this->listURL('',-1,'sortField,sortRev,table').'&amp;table='.$table.'&amp;sortField='.$field.'&amp;sortRev='.($this->sortRev || ($this->sortField!=$field)?0:1);
$sortArrow = ($this->sortField==$field?'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/red'.($this->sortRev?'up':'down').'.gif','width="7" height="4"').' alt="" />':'');
// Return linked field:
......
* @return string
*/
function makeReturnUrl() {
return '&returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'));
return '&amp;returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'));
}
typo3/db_list.php (working copy)
}
function jumpExt(URL,anchor) { //
var anc = anchor?anchor:"";
window.location.href = URL+(T3_THIS_LOCATION?"&returnUrl="+T3_THIS_LOCATION:"")+anc;
window.location.href = URL+(T3_THIS_LOCATION?"&amp;returnUrl="+T3_THIS_LOCATION:"")+anc;
return false;
}
function jumpSelf(URL) { //
window.location.href = URL+(T3_RETURN_URL?"&returnUrl="+T3_RETURN_URL:"");
window.location.href = URL+(T3_RETURN_URL?"&amp;returnUrl="+T3_RETURN_URL:"");
return false;
}
......
'.$dblist->CBfunctions().'
function editRecords(table,idList,addParams,CBflag) { //
window.location.href="'.$BACK_PATH.'alt_doc.php?returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')).
'&edit["+table+"]["+idList+"]=edit"+addParams;
'&amp;edit["+table+"]["+idList+"]=edit"+addParams;
}
function editList(table,idList) { //
var list="";
......
<div id="typo3-listOptions">
<form action="" method="post">';
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[bigControlPanel]',$this->MOD_SETTINGS['bigControlPanel'],'db_list.php',($this->table?'&table='.$this->table:''),'id="checkLargeControl"').' <label for="checkLargeControl">'.$LANG->getLL('largeControl',1).'</label><br />';
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[bigControlPanel]',$this->MOD_SETTINGS['bigControlPanel'],'db_list.php',($this->table?'&amp;table='.$this->table:''),'id="checkLargeControl"').' <label for="checkLargeControl">'.$LANG->getLL('largeControl',1).'</label><br />';
if ($dblist->showClipboard) {
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[clipBoard]',$this->MOD_SETTINGS['clipBoard'],'db_list.php',($this->table?'&table='.$this->table:''),'id="checkShowClipBoard"').' <label for="checkShowClipBoard">'.$LANG->getLL('showClipBoard',1).'</label><br />';
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[clipBoard]',$this->MOD_SETTINGS['clipBoard'],'db_list.php',($this->table?'&amp;table='.$this->table:''),'id="checkShowClipBoard"').' <label for="checkShowClipBoard">'.$LANG->getLL('showClipBoard',1).'</label><br />';
}
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[localization]',$this->MOD_SETTINGS['localization'],'db_list.php',($this->table?'&table='.$this->table:''),'id="checkLocalization"').' <label for="checkLocalization">'.$LANG->getLL('localization',1).'</label><br />';
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[localization]',$this->MOD_SETTINGS['localization'],'db_list.php',($this->table?'&amp;table='.$this->table:''),'id="checkLocalization"').' <label for="checkLocalization">'.$LANG->getLL('localization',1).'</label><br />';
$this->body.='
</form>
</div>';
(1-1/2)