Show all.
1,异常处理
$o_flashMessage = t3lib_div::makeInstance(
't3lib_FlashMessage',
$GLOBALS['LANG']->getLL('function1.file_upload_success', true),
'Info',
t3lib_FlashMessage::OK
);
t3lib_FlashMessageQueue::addMessage($o_flashMessage);
$content .= t3lib_FlashMessageQueue::renderFlashMessages();
2,使用typo3后台自带的选项卡
$menus = array();
if($rowsForCreate){
$menus[] = array(
'label' => 'Create Records',
'content' => $thead.$rowsForCreate.$tfoot
);
}
if($rowsForOverride){
$menus[] = array(
'label' => 'Override Records',
'content' => $thead.$rowsForOverride.$tfoot
);
}
if($rowsForDelete){
$menus[] = array(
'label' => 'Delete Records',
'content' => $thead.$rowsForDelete.$tfoot
);
}
if($rowsForKeep){
$menus[] = array(
'label' => 'Keep Records',
'content' => $thead.$rowsForKeep.$tfoot
);
}
if(empty($menus))throw new Exception("Nothing need to be change. Records in database are the same as in the csv file.", 1);
$content .= $this->doc->getDynTabMenu($menus, 'records_tabs');
3,使用表格样式,只要class一样就自动有了样式
$thead = '
KAM Nachname | '. 'KAM Vorname | '. 'NAME | '. 'STR | '. 'PLZ | '. 'ORT | '. 'Land | '. 'TU Number | '. 'Check All | '. '
---|
' . $label . ' |
---|
' . $tree . ' |
DEMO:
$this->doc->JScode = '';
function moduleContent(){
$thead = '
KAM Nachname | '. 'KAM Vorname | '. 'NAME | '. 'STR | '. 'PLZ | '. 'ORT | '. 'Land | '. 'TU Number | '. 'Check All | '. '
---|