Bug #19035 » 8853_2.diff
typo3/stylesheet.css (working copy) | ||
---|---|---|
- - - - - - - - - - - - - - - - - - - - - */
|
||
body#typo3-pagetree {
|
||
body#typo3-pagetree,
|
||
body#typo3-alt-file-navframe-php {
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
... | ... | |
visibility: hidden;
|
||
}
|
||
#typo3-pagetree #typo3-docheader img {
|
||
#typo3-pagetree #typo3-docheader img,
|
||
#typo3-alt-file-navframe-php #typo3-docheader img {
|
||
margin: 2px 1px;
|
||
}
|
||
... | ... | |
min-width: 260px;
|
||
}
|
||
#typo3-pagetree #typo3-docheader {
|
||
#typo3-pagetree #typo3-docheader,
|
||
#typo3-alt-file-navframe-php #typo3-docheader {
|
||
min-width: 0px;
|
||
}
|
||
typo3/alt_file_navframe.php (working copy) | ||
---|---|---|
// Create template object:
|
||
$this->doc = t3lib_div::makeInstance('template');
|
||
$this->doc->backPath = $BACK_PATH;
|
||
$this->doc->setModuleTemplate('templates/alt_file_navframe.html');
|
||
$this->doc->docType = 'xhtml_trans';
|
||
// Adding javascript code for AJAX (prototype), drag&drop and the filetree as well as the click menu code
|
||
... | ... | |
// Produce browse-tree:
|
||
$tree = $this->foldertree->getBrowsableTree();
|
||
// Start page
|
||
$this->content = $this->doc->startPage('TYPO3 Folder Tree');
|
||
// Outputting page tree:
|
||
$this->content.= $tree;
|
||
// Outputting refresh-link
|
||
$this->content.= '
|
||
<p class="c-refresh">
|
||
<a href="'.htmlspecialchars(t3lib_div::getIndpEnv('REQUEST_URI')).'">'.
|
||
'<img'.t3lib_iconWorks::skinImg('','gfx/refresh_n.gif','width="14" height="14"').' title="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:labels.refresh',1).'" alt="" />'.
|
||
$LANG->sL('LLL:EXT:lang/locallang_core.php:labels.refresh',1).'</a>
|
||
</p>
|
||
<br />';
|
||
// CSH icon:
|
||
$this->content.= t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'filetree', $GLOBALS['BACK_PATH']);
|
||
// Adding javascript for drag & drop activation and highlighting
|
||
$this->content .=$this->doc->wrapScriptTags('
|
||
'.($this->doHighlight ? 'Tree.highlightActiveItem("", top.fsMod.navFrameHighlightedID["file"]);' : '').'
|
||
'.(!$this->doc->isCMlayers() ? 'Tree.activateDragDrop = false;' : 'Tree.registerDragDropHandlers();')
|
||
);
|
||
// Setting up the buttons and markers for docheader
|
||
$docHeaderButtons = $this->getButtons();
|
||
$markers = array(
|
||
'IMG_RESET' => '<img' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/close_gray.gif', ' width="16" height="16"') . ' id="treeFilterReset" alt="Reset Filter" />',
|
||
'CONTENT' => $this->content
|
||
);
|
||
$subparts = array();
|
||
// Possible filter/search like in page tree
|
||
$subparts['###SECOND_ROW###'] = '';
|
||
// Build the <body> for the module
|
||
$this->content = $this->doc->startPage('TYPO3 Folder Tree');
|
||
$this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers, $subparts);
|
||
$this->content.= $this->doc->endPage();
|
||
$this->content = $this->doc->insertStylesAndJS($this->content);
|
||
}
|
||
/**
|
||
* Outputting the accumulated content to screen
|
||
*
|
||
* @return void
|
||
*/
|
||
function printContent() {
|
||
$this->content.= $this->doc->endPage();
|
||
$this->content = $this->doc->insertStylesAndJS($this->content);
|
||
echo $this->content;
|
||
}
|
||
/**
|
||
* Create the panel of buttons for submitting the form or otherwise perform operations.
|
||
*
|
||
* @return array all available buttons as an assoc. array
|
||
*/
|
||
protected function getButtons() {
|
||
$buttons = array(
|
||
'csh' => '',
|
||
'refresh' => '',
|
||
);
|
||
// Refresh
|
||
$buttons['refresh'] = '<a href="' . htmlspecialchars(t3lib_div::getIndpEnv('REQUEST_URI')) . '">' .
|
||
'<img' . t3lib_iconWorks::skinImg('','gfx/refresh_n.gif','width="14" height="14"') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.refresh',1) . '" alt="" /></a>';
|
||
// CSH
|
||
$buttons['csh'] = str_replace('typo3-csh-inline','typo3-csh-inline show-right',t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'filetree', $GLOBALS['BACK_PATH']));
|
||
return $buttons;
|
||
}
|
||
/**********************************
|
||
*
|
||
* AJAX Calls
|
typo3/templates/alt_file_navframe.html (revision 0) | ||
---|---|---|
<!-- ###FULLDOC### begin -->
|
||
<div class="typo3-fullDoc">
|
||
<!-- Page header with buttons, path details and csh -->
|
||
<div id="typo3-docheader">
|
||
<div id="typo3-docheader-row1">
|
||
<div class="buttonsleft">###BUTTONLIST_LEFT###</div>
|
||
<div class="buttonsright no-border">###BUTTONLIST_RIGHT###</div>
|
||
</div>
|
||
<div id="typo3-docheader-row2">
|
||
<!-- ###SECOND_ROW### -->
|
||
<div id="treeFilterBox" class="bgColor4">
|
||
<div id="searchBubble">
|
||
<input type="text" value="" name="treeFilter" id="treeFilter" />
|
||
###IMG_RESET###
|
||
</div>
|
||
</div>
|
||
<!-- ###SECOND_ROW### -->
|
||
</div>
|
||
</div>
|
||
<!-- Content of module, for instance listing, info or editing -->
|
||
<div id="typo3-docbody">
|
||
<div id="typo3-inner-docbody">
|
||
###CONTENT###
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!-- ###FULLDOC### end -->
|
||
<!-- Grouping the icons on top -->
|
||
<!-- ###BUTTON_GROUP_WRAP### -->
|
||
<div class="buttongroup">###BUTTONS###</div>
|
||
<!-- ###BUTTON_GROUP_WRAP### -->
|
||
<!-- ###BUTTON_GROUPS_LEFT### -->
|
||
<!-- ###BUTTON_GROUP4### --> <!-- ###BUTTON_GROUP4### -->
|
||
<!-- ###BUTTON_GROUPS_LEFT### -->
|
||
<!-- ###BUTTON_GROUPS_RIGHT### -->
|
||
<!-- ###BUTTON_GROUP1### -->###REFRESH######CSH###<!-- ###BUTTON_GROUP1### -->
|
||
<!-- ###BUTTON_GROUPS_RIGHT### -->
|
- « Previous
- 1
- 2
- 3
- Next »