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

formRender_vert Class Reference

Inherits t3lib_TCEforms.

List of all members.

Public Member Functions

 printPalette ($palArr)
 Creates the HTML content for the palette.


Member Function Documentation

formRender_vert::printPalette palArr  ) 
 

Creates the HTML content for the palette.

(Vertically, for display in a browser window, not top frame)

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

Definition at line 163 of file alt_palette.php.

References $out, and table().

00163                                     {
00164       $out='';
00165       $bgColor=' bgcolor="'.$this->colorScheme[2].'"';
00166 
00167          // For each element on the palette, write a few table cells with the field name, content and control images:
00168       foreach($palArr as $content)  {
00169          $iRow[]='
00170             <tr>
00171                <td><img src="clear.gif" width="'.intval($this->paletteMargin).'" height="1" alt="" /></td>
00172                <td'.$bgColor.'>&nbsp;</td>
00173                <td nowrap="nowrap"'.$bgColor.'><font color="'.$this->colorScheme[4].'">'.$content['NAME'].'</font></td>
00174             </tr>';
00175          $iRow[]='
00176             <tr>
00177                <td></td>
00178                <td valign="top"><img name="req_'.$content['TABLE'].'_'.$content['ID'].'_'.$content['FIELD'].'" src="clear.gif" width="10" height="10" vspace="4" alt="" /><img name="cm_'.$content['TABLE'].'_'.$content['ID'].'_'.$content['FIELD'].'" src="clear.gif" width="7" height="10" vspace="4" alt="" /></td>
00179                <td nowrap="nowrap" valign="top">'.$content['ITEM'].$content['HELP_ICON'].'</td>
00180             </tr>';
00181       }
00182 
00183          // Adding the close button:
00184       $iRow[]='
00185          <tr>
00186             <td></td>
00187             <td></td>
00188             <td nowrap="nowrap" valign="top">
00189                <br />
00190                <input type="submit" value="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.close',1).'" onclick="closePal(); return false;" />
00191             </td>
00192          </tr>';
00193 
00194          // Finally, wrap it all in a table:
00195       $out='
00196          <table border="0" cellpadding="0" cellspacing="0" id="typo3-TCEforms-palette-vert">
00197             '.implode('',$iRow).'
00198          </table>';
00199 
00200          // Return content:
00201       return $out;
00202    }


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