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). |
|
Creates the HTML content for the palette (Horizontally, for display in the top frame) (Used if GET var "backRef" IS set).
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'].' '. 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 }
|