Index: typo3/alt_doc.php
===================================================================
--- typo3/alt_doc.php (revision 3069)
+++ typo3/alt_doc.php (working copy)
@@ -139,6 +139,7 @@
* @var mediumDoc
*/
var $doc;
+ var $template; // a static HTML template, usually in templates/alt_doc.html
var $content; // Content accumulation
var $retUrl; // Return URL script, processed. This contains the script (if any) that we should RETURN TO from the alt_doc.php script IF we press the close button. Thus this variable is normally passed along from the calling script so we can properly return if needed.
@@ -425,6 +426,8 @@
$this->recTitle = t3lib_div::_GP('recTitle');
$this->disHelp = t3lib_div::_GP('disHelp');
$this->noView = t3lib_div::_GP('noView');
+
+ $this->perms_clause = $BE_USER->getPagePermsClause(1);
// Set other internal variables:
$this->R_URL_getvars['returnUrl']=$this->retUrl;
@@ -446,13 +449,11 @@
// Create an instance of the document template object
$this->doc = t3lib_div::makeInstance('template');
- $this->doc->divClass = 'typo3-fullDoc';
$this->doc->backPath = $BACK_PATH;
+ $this->doc->setModuleTemplate('templates/alt_doc.html');
$this->doc->docType = 'xhtml_trans';
- $this->doc->inDocStylesArray[] = 'html { overflow: hidden; }';
-
- $this->doc->form='
';
-
- // List Module CSH:
- if ($this->id) {
- $this->content.= t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'list_module', $GLOBALS['BACK_PATH'],' |');
- }
-
-
// If a listing was produced, create the page footer with search form etc:
if ($dblist->HTMLcode) {
// Making field select box (when extended view for a single table is enabled):
if ($dblist->table) {
- $this->content.=$dblist->fieldSelectBox($dblist->table);
+ $this->body.=$dblist->fieldSelectBox($dblist->table);
}
// Adding checkbox options for extended listing and clipboard display:
- $this->content.='
+ $this->body.='
-
';
- }
-
// Search box:
- $this->content.=$dblist->getSearchBox();
+ $this->body.=$dblist->getSearchBox();
// Display sys-notes, if any are found:
- $this->content.=$dblist->showSysNotesForPage();
-
- // ShortCut:
- if ($BE_USER->mayMakeShortcut()) {
- $this->content.=' '.$this->doc->makeShortcutIcon('id,imagemode,pointer,table,search_field,search_levels,showLimit,sortField,sortRev',implode(',',array_keys($this->MOD_MENU)),$this->MCONF['name']);
- }
+ $this->body.=$dblist->showSysNotesForPage();
}
- // Finally, close off the page:
+ // Setting up the buttons and markers for docheader
+ $docHeaderButtons = $dblist->getButtons();
+ $markerArray = array(
+ 'CSH' => $docHeaderButtons['csh'],
+ 'CONTENT' => $this->body
+ );
+
+ // Build the for the module
+ $this->content = $this->doc->startPage('DB list');
+ $this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markerArray);
$this->content.= $this->doc->endPage();
+ $this->content = $this->doc->insertStylesAndJS($this->content);
}
/**
Index: typo3/sysext/lang/locallang_mod_web_list.xml
===================================================================
--- typo3/sysext/lang/locallang_mod_web_list.xml (revision 3069)
+++ typo3/sysext/lang/locallang_mod_web_list.xml (working copy)
@@ -50,6 +50,7 @@
+
\ No newline at end of file
Index: typo3/templates/db_list.html
===================================================================
--- typo3/templates/db_list.html (revision 0)
+++ typo3/templates/db_list.html (revision 0)
@@ -0,0 +1,35 @@
+
+
+
+
+
+
###BUTTONLIST_LEFT###
+
###BUTTONLIST_RIGHT###
+
+
+
###CSH######PAGEPATH###
+
###PAGEINFO###
+
+
+
+
+ ###CONTENT###
+
+
+
+
+
+
+
###BUTTONS###
+
+
+
+###LEVEL_UP######BACK###
+###NEW_RECORD######PASTE###
+###VIEW######EDIT######HIDE_UNHIDE######MOVE###
+###CSV######EXPORT###
+
+
+
+###CACHE######RELOAD######SHORTCUT###
+
\ No newline at end of file
Index: typo3/templates/alt_doc.html
===================================================================
--- typo3/templates/alt_doc.html (revision 0)
+++ typo3/templates/alt_doc.html (revision 0)
@@ -0,0 +1,40 @@
+
+
+
+
+
+
###BUTTONLIST_LEFT###
+
###BUTTONLIST_RIGHT###
+
+
+
###CSH######PAGEPATH###
+
###LANGSELECTOR######PAGEINFO###
+
+ ###EXTRAHEADER###
+
+
+
+ ###CONTENT###
+
+
+
+
+
+
###EXTRAHEADER###
+
+
+
+
+
+
###BUTTONS###
+
+
+
+###CLOSE###
+###SAVE######SAVE_VIEW######SAVE_CLOSE######SAVE_NEW###
+###DELETE######UNDO######HISTORY###
+
+
+
+###SHORTCUT######COLUMNS_ONLY######OPEN_IN_NEW_WINDOW###
+
\ No newline at end of file
Index: typo3/templates/alt_doc.html
===================================================================
--- typo3/templates/alt_doc.html (revision 0)
+++ typo3/templates/alt_doc.html (revision 0)
@@ -0,0 +1,40 @@
+
+
+
+
+
+
###BUTTONLIST_LEFT###
+
###BUTTONLIST_RIGHT###
+
+
+
###CSH######PAGEPATH###
+
###LANGSELECTOR######PAGEINFO###
+
+ ###EXTRAHEADER###
+
+
+
+ ###CONTENT###
+
+
+
+
+
+
###EXTRAHEADER###
+
+
+
+
+
+
###BUTTONS###
+
+
+
+###CLOSE###
+###SAVE######SAVE_VIEW######SAVE_CLOSE######SAVE_NEW###
+###DELETE######UNDO######HISTORY###
+
+
+
+###SHORTCUT######COLUMNS_ONLY######OPEN_IN_NEW_WINDOW###
+
\ No newline at end of file
Index: typo3/templates/db_list.html
===================================================================
--- typo3/templates/db_list.html (revision 0)
+++ typo3/templates/db_list.html (revision 0)
@@ -0,0 +1,35 @@
+
+
+
+
+
+
###BUTTONLIST_LEFT###
+
###BUTTONLIST_RIGHT###
+
+
+
###CSH######PAGEPATH###
+
###PAGEINFO###
+
+
+
+
+ ###CONTENT###
+
+
+
+
+
+
+
###BUTTONS###
+
+
+
+###LEVEL_UP######BACK###
+###NEW_RECORD######PASTE###
+###VIEW######EDIT######HIDE_UNHIDE######MOVE###
+###CSV######EXPORT###
+
+
+
+###CACHE######RELOAD######SHORTCUT###
+
\ No newline at end of file