Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages | Examples

t3lib_TCEforms_FE Class Reference

Extension class for the rendering of TCEforms in the frontend. More...

Inherits t3lib_TCEforms.

List of all members.

Public Member Functions

 wrapLabels ($str)
 Function for wrapping labels.
 printPalette ($palArr)
 Prints the palette in the frontend editing (forms-on-page?).
 setFancyDesign ()
 Sets the fancy front-end design of the editor.


Detailed Description

Extension class for the rendering of TCEforms in the frontend.

Author:
Kasper Skaarhoj <kasperYYYY@typo3.com>

Definition at line 4859 of file class.t3lib_tceforms.php.


Member Function Documentation

t3lib_TCEforms_FE::printPalette palArr  ) 
 

Prints the palette in the frontend editing (forms-on-page?).

Parameters:
array The palette array to print
Returns:
string HTML output

Definition at line 4877 of file class.t3lib_tceforms.php.

References $out, and table().

04877                                     {
04878       $out='';
04879       reset($palArr);
04880       $bgColor=' bgcolor="#D6DAD0"';
04881       while(list(,$content)=each($palArr))   {
04882          $hRow[]='<td'.$bgColor.'><font face="verdana" size="1">&nbsp;</font></td><td nowrap="nowrap"'.$bgColor.'><font color="#666666" face="verdana" size="1">'.$content['NAME'].'</font></td>';
04883          $iRow[]='<td valign="top">'.
04884                   '<img name="req_'.$content['TABLE'].'_'.$content['ID'].'_'.$content['FIELD'].'" src="clear.gif" width="10" height="10" alt="" />'.
04885                   '<img name="cm_'.$content['TABLE'].'_'.$content['ID'].'_'.$content['FIELD'].'" src="clear.gif" width="7" height="10" alt="" />'.
04886                   '</td><td nowrap="nowrap" valign="top">'.$content['ITEM'].$content['HELP_ICON'].'</td>';
04887       }
04888       $out='<table border="0" cellpadding="0" cellspacing="0">
04889          <tr><td><img src="clear.gif" width="'.intval($this->paletteMargin).'" height="1" alt="" /></td>'.implode('',$hRow).'</tr>
04890          <tr><td></td>'.implode('',$iRow).'</tr>
04891       </table>';
04892 
04893       return $out;
04894    }

t3lib_TCEforms_FE::setFancyDesign  ) 
 

Sets the fancy front-end design of the editor.

Frontend

Returns:
void

Definition at line 4902 of file class.t3lib_tceforms.php.

References table().

04902                               {
04903       $this->fieldTemplate='
04904    <tr>
04905       <td nowrap="nowrap" bgcolor="#F6F2E6">###FIELD_HELP_ICON###<font face="verdana" size="1" color="black"><b>###FIELD_NAME###</b></font>###FIELD_HELP_TEXT###</td>
04906    </tr>
04907    <tr>
04908       <td nowrap="nowrap" bgcolor="#ABBBB4"><img name="req_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" width="10" height="10" alt="" /><img name="cm_###FIELD_TABLE###_###FIELD_ID###_###FIELD_FIELD###" src="clear.gif" width="7" height="10" alt="" /><font face="verdana" size="1" color="black">###FIELD_ITEM###</font>###FIELD_PAL_LINK_ICON###</td>
04909    </tr> ';
04910 
04911       $this->totalWrap='<table border="0" cellpadding="1" cellspacing="0" bgcolor="black"><tr><td><table border="0" cellpadding="2" cellspacing="0">|</table></td></tr></table>';
04912 
04913       $this->palFieldTemplate='
04914    <tr>
04915       <td nowrap="nowrap" bgcolor="#ABBBB4"><font face="verdana" size="1" color="black">###FIELD_PALETTE###</font></td>
04916    </tr> ';
04917       $this->palFieldTemplateHeader='
04918    <tr>
04919       <td nowrap="nowrap" bgcolor="#F6F2E6"><font face="verdana" size="1" color="black"><b>###FIELD_HEADER###</b></font></td>
04920    </tr> ';
04921    }

t3lib_TCEforms_FE::wrapLabels str  ) 
 

Function for wrapping labels.

Parameters:
string The string to wrap
Returns:
string

Definition at line 4867 of file class.t3lib_tceforms.php.

04867                               {
04868       return '<font face="verdana" size="1" color="black">'.$str.'</font>';
04869    }


The documentation for this class was generated from the following file:
Generated on Sun Oct 3 01:07:16 2004 for TYPO3core 3.7.0 dev by  doxygen 1.3.8-20040913