Public Member Functions | |
| printPalette ($palArr) | |
| Creates the HTML content for the palette. | |
|
|
Creates the HTML content for the palette. (Vertically, for display in a browser window, not top frame)
Definition at line 163 of file alt_palette.php. 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.'> </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 }
|
1.3.8-20040913