Project

General

Profile

Bug #19892 » 10234.diff

Administrator Admin, 2009-01-23 00:53

View differences:

typo3/db_new.php (working copy)
</tr>
';
}
// New pages AFTER this pages
if ($this->newPagesAfter
&& $this->isTableAllowedForThisPage($this->pidInfo,'pages')
&& $BE_USER->check('tables_modify','pages')
&& $BE_USER->workspaceCreateNewRecord($this->pidInfo['uid'], 'pages')
) {
// Create link to new page after
$t = 'pages';
$v = $TCA[$t];
$rowContent = '<img'.t3lib_iconWorks::skinImg($BACK_PATH,'gfx/ol/join.gif','width="18" height="16"').' alt="" />'.
$this->linkWrap(
t3lib_iconWorks::getIconImage($t,array(),$BACK_PATH,'').
$LANG->sL($v['ctrl']['title'],1).' ('.$LANG->sL('LLL:EXT:lang/locallang_core.php:db_new.php.after',1).')',
'pages',
-$this->id
);
// Half-line added:
$rowContent.= '<br /><img'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/ol/halfline.gif','width="18" height="8"').' alt="" />';
// Compile table row:
$tRows[] = '
<tr>
<td nowrap="nowrap">'.$rowContent.'</td>
<td>'.t3lib_BEfunc::cshItem($t,'',$GLOBALS['BACK_PATH'],'',$doNotShowFullDescr).'</td>
</tr>
';
}
// New tables (but not pages) INSIDE this pages
if ($this->newContentInto) {
if (is_array($TCA)) {
......
}
}
// New pages AFTER this pages
if ($this->newPagesAfter
&& $this->isTableAllowedForThisPage($this->pidInfo,'pages')
&& $BE_USER->check('tables_modify','pages')
&& $BE_USER->workspaceCreateNewRecord($this->pidInfo['uid'], 'pages')
) {
// Compile table row:
$tRows[]='
<tr>
<td><img'.t3lib_iconWorks::skinImg($BACK_PATH,'gfx/ol/stopper.gif','width="18" height="16"').' alt="" /></td>
<td></td>
</tr>
';
// Create link to new page after
$t = 'pages';
$v = $TCA[$t];
$rowContent = $this->linkWrap(
t3lib_iconWorks::getIconImage($t,array(),$BACK_PATH,'').
$LANG->sL($v['ctrl']['title'],1).' ('.$LANG->sL('LLL:EXT:lang/locallang_core.php:db_new.php.after',1).')',
'pages',
-$this->id
);
// Compile table row:
$tRows[] = '
<tr>
<td nowrap="nowrap">'.$rowContent.'</td>
<td>'.t3lib_BEfunc::cshItem($t,'',$GLOBALS['BACK_PATH'],'',$doNotShowFullDescr).'</td>
</tr>
';
} else {
// Compile table row:
$tRows[]='
<tr>
<td><img'.t3lib_iconWorks::skinImg($BACK_PATH,'gfx/ol/stopper.gif','width="18" height="16"').' alt="" /></td>
<td></td>
</tr>
';
}
// Make table:
$this->code.='
<table border="0" cellpadding="0" cellspacing="0" id="typo3-newRecord">
(3-3/3)