Project

General

Profile

Bug #20719 ยป 11476.diff

Administrator Admin, 2009-07-04 23:50

View differences:

t3lib/class.t3lib_tceforms.php (working copy)
*/
function helpTextIcon($table,$field,$force=0) {
if ($this->globalShowHelp && $GLOBALS['TCA_DESCR'][$table]['columns'][$field] && (($this->edit_showFieldHelp=='icon'&&!$this->doLoadTableDescr($table)) || $force)) {
$aOnClick = 'vHWin=window.open(\''.$this->backPath.'view_help.php?tfID='.($table.'.'.$field).'\',\'viewFieldHelp\',\'height=400,width=600,status=0,menubar=0,scrollbars=1\');vHWin.focus();return false;';
if ($this->edit_showFieldHelp=='icon') {
$text = t3lib_befunc::helpText($table,$field,$BACK_PATH, '');
$text = '<span class="typo3-csh-inline">'.$GLOBALS['LANG']->hscAndCharConv($text, false).'</span>';
}
return '<a class="typo3-csh-link" href="#" onclick="'.htmlspecialchars($aOnClick).'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/helpbubble.gif','width="14" height="14"').' hspace="2" border="0" class="absmiddle"'.($GLOBALS['CLIENT']['FORMSTYLE']?' style="cursor:help;"':'').' alt="" />'.$text.
'</a>';
return t3lib_BEfunc::helpTextIcon($table, $field, $this->backPath, $force);
} else {
// Detects fields with no CSH and outputs dummy line to insert into CSH locallang file:
return '<span class="nbsp">&nbsp;</span>';
    (1-1/1)