Bug #16116 » tslib_content-submit.diff
class.tslib_content.php 2006-05-15 22:50:06.000000000 +0200 | ||
---|---|---|
$value=trim($parts[2]);
|
||
if ($conf['image.']) {
|
||
$this->data[$this->currentValKey]=$value;
|
||
$image=$this->IMAGE($conf['image.']);
|
||
} else $image='';
|
||
if($image) {
|
||
$fieldCode = str_replace('<img','<input type="image"'.$addParams.' name="'.$confData['fieldname'].'"' ,$image);
|
||
$image=$this->IMAGE_RESOURCE($conf['image.']);
|
||
} else {
|
||
$image='';
|
||
}
|
||
if ($image) {
|
||
$fieldCode=sprintf('<input type="image" name="%s"'.$elementIdAttribute.' src="%s" />', $confData['fieldname']);
|
||
} else {
|
||
$fieldCode=sprintf('<input type="submit" name="%s"'.$elementIdAttribute.' value="%s"'.$addParams.' />',
|
||
$confData['fieldname'], t3lib_div::deHSCentities(htmlspecialchars($value)));
|
||
... | ... | |
$GLOBALS['TSFE']->set_no_cache(); // Special content is about to be shown, so the cache must be disabled.
|
||
$style = $conf['styleAttribute'] ? ' style="'.htmlspecialchars($conf['styleAttribute']).'"' : '';
|
||
$iconTitle = $this->stdWrap($conf['iconTitle'],$conf['iconTitle.']);
|
||
$iconImg = $conf['iconImg'] ? $conf['iconImg'] : '<img src="'.TYPO3_mainDir.'gfx/edit_fe.gif" width="11" height="12" border="0" align="top" title="'.t3lib_div::deHSCentities(htmlspecialchars($iconTitle)).'"'.$style.' class="frontEndEditIcons" alt="" title="" />';
|
||
$iconImg = $conf['iconImg'] ? $conf['iconImg'] : '<img src="'.TYPO3_mainDir.'gfx/edit_fe.gif" width="11" height="12" border="0" align="top" title="'.t3lib_div::deHSCentities(htmlspecialchars($iconTitle)).'"'.$style.' class="frontEndEditIcons" alt="" />';
|
||
$nV=t3lib_div::_GP('ADMCMD_view')?1:0;
|
||
$adminURL = t3lib_div::getIndpEnv('TYPO3_SITE_URL').TYPO3_mainDir;
|
||
$icon = $this->editPanelLinkWrap_doWrap($iconImg, $adminURL.'alt_doc.php?edit['.$rParts[0].']['.$editUid.']=edit&columnsOnly='.rawurlencode($fieldList).'&noView='.$nV.$addUrlParamStr,implode(':',$rParts));
|