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

formRender Class Reference

Inherits t3lib_TCEforms.

List of all members.

Public Member Functions

 printPalette ($palArr)
 Creates the HTML content for the palette (Horizontally, for display in the top frame) (Used if GET var "backRef" IS set).


Member Function Documentation

formRender::printPalette palArr  ) 
 

Creates the HTML content for the palette (Horizontally, for display in the top frame) (Used if GET var "backRef" IS set).

Parameters:
array Array of information from which the fields are built.
Returns:
string HTML output

Definition at line 91 of file alt_palette.php.

References $content, $out, and table().

00091                                     {
00092       $out='';
00093 
00094          // For each element on the palette, write a few table cells with the field name, content and control images:
00095       foreach($palArr as $content)  {
00096          $iRow[]='
00097             <td>'.
00098                '<img name="req_'.$content['TABLE'].'_'.$content['ID'].'_'.$content['FIELD'].'" class="c-reqIcon" src="clear.gif" width="10" height="10" alt="" />'.
00099                '<img name="cm_'.$content['TABLE'].'_'.$content['ID'].'_'.$content['FIELD'].'" class="c-cmIcon" src="clear.gif" width="7" height="10" alt="" />'.
00100             '</td>
00101             <td class="c-label">'.
00102                $content['NAME'].'&nbsp;'.
00103             '</td>
00104             <td class="c-csh">'.
00105                $content['ITEM'].$content['HELP_ICON'].
00106             '</td>';
00107       }
00108 
00109          // Finally, wrap it all in a table:
00110       $out='
00111 
00112 
00113 
00114          <!--
00115             TCEforms palette, rendered in top frame.
00116          -->
00117          <table border="0" cellpadding="0" cellspacing="0" id="typo3-TCEforms-palette">
00118             <tr>
00119                <td class="c-close">'.
00120                '<a href="#" onclick="closePal();return false;"><img'.t3lib_iconWorks::skinImg('','gfx/close_12h.gif','width="11" height="12"').' title="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.close',1).'" alt="" /></a>'.
00121                '</td>'.
00122             implode('',$iRow).'
00123             </tr>
00124          </table>
00125 
00126          ';
00127 
00128          // Return the result:
00129       return $out;
00130    }


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