Project

General

Profile

Bug #20908 » 11759_trunk.diff

Administrator Admin, 2010-11-18 13:05

View differences:

typo3/class.db_list.inc (working copy)
// Setting form-elements, if applicable:
$formElements=array('','');
if ($formFields) {
$formElements=array('<form action="'.htmlspecialchars($this->listURL()).'" method="post">','</form>');
$formElements=array('<form action="'.htmlspecialchars($this->listURL('', -1, 'firstElementNumber')).'" method="post">','</form>');
}
// Make level selector:
......
*/
function linkWrapTable($table,$code) {
if ($this->table!=$table) {
return '<a href="'.htmlspecialchars($this->listURL('',$table)).'">'.$code.'</a>';
return '<a href="'.htmlspecialchars($this->listURL('',$table, 'firstElementNumber')).'">'.$code.'</a>';
} else {
return '<a href="'.htmlspecialchars($this->listURL('','','sortField,sortRev,table')).'">'.$code.'</a>';
return '<a href="'.htmlspecialchars($this->listURL('','','sortField,sortRev,table,firstElementNumber')).'">'.$code.'</a>';
}
}
......
default:
// Output the label now:
if ($table=='pages') {
$code = '<a href="'.htmlspecialchars($this->listURL($uid,'')).'" onclick="setHighlight('.$uid.')">'.$code.'</a>';
$code = '<a href="'.htmlspecialchars($this->listURL($uid,'', 'firstElementNumber')).'" onclick="setHighlight('.$uid.')">'.$code.'</a>';
} else {
$code = $this->linkUrlMail($code,$origCode);
}
......
*
* @param string Alternative id value. Enter blank string for the current id ($this->id)
* @param string Tablename to display. Enter "-1" for the current table.
* @param string Commalist of fields NOT to include ("sortField" or "sortRev")
* @param string Commalist of fields NOT to include ("sortField", "firstElementNumber" or "sortRev")
* @return string URL
*/
function listURL($altId='',$table=-1,$exclList='') {
......
($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, 'firstElementNumber')) && $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) : '');
typo3/class.db_list_extra.inc (working copy)
'</a>';
// Up one level
$buttons['level_up'] = '<a href="' . htmlspecialchars($this->listURL($this->pageRow['pid'])) . '" onclick="setHighlight(' . $this->pageRow['pid'] . ')" title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.upOneLevel', TRUE) . '">' .
$buttons['level_up'] = '<a href="' . htmlspecialchars($this->listURL($this->pageRow['pid'], '-1', 'firstElementNumber')) . '" onclick="setHighlight(' . $this->pageRow['pid'] . ')" title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.upOneLevel', TRUE) . '">' .
t3lib_iconWorks::getSpriteIcon('actions-view-go-up') .
'</a>';
......
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,firstElementNumber').'&table='.$table.'&sortField='.$field.'&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:
(2-2/2)