Bug #18714 » 8272_list_warning.diff
typo3/class.db_list_extra.inc (working copy) | ||
---|---|---|
foreach($this->fieldArray as $fCol) {
|
||
if ($fCol==$titleCol) {
|
||
$recTitle = t3lib_BEfunc::getRecordTitle($table,$row,FALSE,TRUE);
|
||
$theData[$fCol] = $this->linkWrapItems($table,$row['uid'],$recTitle,$row);
|
||
// If the record is edit-locked by another user, we will show a little warning sign:
|
||
if ($lockInfo=t3lib_BEfunc::isRecordLocked($table,$row['uid'])) {
|
||
$warning = '<a href="#" onclick="'.htmlspecialchars('alert('.$GLOBALS['LANG']->JScharCode($lockInfo['msg']).');return false;').'">'.
|
||
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/recordlock_warning3.gif','width="17" height="12"').' title="'.htmlspecialchars($lockInfo['msg']).'" alt="" />'.
|
||
'</a>';
|
||
}
|
||
$theData[$fCol] = $warning . $this->linkWrapItems($table,$row['uid'],$recTitle,$row);
|
||
} elseif ($fCol == 'pid') {
|
||
$theData[$fCol]=$row[$fCol];
|
||
} elseif ($fCol == '_PATH_') {
|
||
... | ... | |
}
|
||
}
|
||
// If the record is edit-locked by another user, we will show a little warning sign:
|
||
if ($lockInfo=t3lib_BEfunc::isRecordLocked($table,$row['uid'])) {
|
||
$cells['locked'] = '<a href="#" onclick="'.htmlspecialchars('alert('.$LANG->JScharCode($lockInfo['msg']).');return false;').'">'.
|
||
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/recordlock_warning3.gif','width="17" height="12"').' title="'.htmlspecialchars($lockInfo['msg']).'" alt="" />'.
|
||
'</a>';
|
||
}
|
||
|
||
/**
|
||
* @hook recStatInfoHooks: Allows to insert HTML before record icons on various places
|
||
* @date 2007-09-22
|
- « Previous
- 1
- 2
- 3
- Next »