Thread: [Phpcms-plugins-cvs] admin4phpCMS/modules/filemanager layout.filemanager.xml,1.2,1.3 class.module_fi
Brought to you by:
mjahn
From: Martin J. <mj...@us...> - 2004-12-07 06:35:07
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/filemanager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13210/modules/filemanager Modified Files: layout.filemanager.xml class.module_filemanager.php Log Message: prepration of first Alpha-Preview Index: layout.filemanager.xml =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/filemanager/layout.filemanager.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- layout.filemanager.xml 29 Sep 2004 20:10:46 -0000 1.2 +++ layout.filemanager.xml 7 Dec 2004 06:34:49 -0000 1.3 @@ -4,22 +4,101 @@ <layout:insert name="fm_list"> <![CDATA[ + <style> + <!-- + #filelist { + list-style-type:none; + padding:0; + margin:0.1em 0; + } + #filelist li, + #filelist li * { + font-family:monospace; + } + + #filelist li input, + #filelist li a, + #filelist li img { + float:left; + } + #filelist a.filename { + float:none; + text-decoration:none; + color:#029544; + } + #filelist li .filemtime, + #filelist li .filesize, + #filelist li .chmod { + float:right; + } + #filelist li .input { + margin-right:0.5em; + } + #filelist li { + max-width:50em; + clear:left; + clear:right; + padding-right:0.3em; + } + #filelist li.header, + #filelist li.footer { + border:1px outset #029544; + color:#029544; + background:#ddd; + margin:0.1em 0; + } + #filelist li.header *, + #filelist li.footer * { + color:#029544; + } + #filelist li.header { + padding-top:0.2em; + } + #filelist li.footer { + padding-top:0.1em; + padding-bottom:0,1em; + } + #fm-options { + margin-left:1em; + } + #fm-options { + font-family:monospace; + padding:0; + margin:1em 0; + } + .filename { + padding-left:1em; + line-height:16px; + } + .filemtime { + width:13em; + } + .filesize { + width:5em; + text-align:right; + } + .chmod { + width:7em; + text-align:right; + } + + --> + </style> <h2>Verzeichnis: <layout:replace name="basedir" default="" /></h2> - <div class="iconbar"> <a href="?moduleid=filemanager&basedir=/&action=viewdir" accesskey="h" alt="Alt+H" title="Heimatverzeichnis [Alt + H]">Home</a> <a href="#" onclick="Javascript:location.reload(); return false;" onkeypress="Javascript:location.reload(); return false;" accesskey="r" alt="Alt+R" title="Anzeige neu laden [Alt + R]">Reload</a> - <button type="submit" name="fm-delete-selection" title="Lösche ausgwählte Einträge">Löschen</button> + <button type="submit" name="fm-delete-selection" title="Lösche ausgwählte Einträge">Löschen</button> </div> <ul id="filelist"> <li class="header"> - <img src="modules/filemanager/img/empty.gif" width="16" height="16" title="" alt="" class="input" /> - <img src="modules/filemanager/img/empty.gif" width="16" height="16" title="" alt="" class="input" /> - <img src="modules/filemanager/img/empty.gif" width="16" height="16" title="" alt="" class="input" /> + <img src="<layout:replace name="imgpath" default="modules/filemanager/img/" />empty.gif" width="16" height="16" title="" alt="" class="input" /> + <img src="<layout:replace name="imgpath" default="modules/filemanager/img/" />empty.gif" width="16" height="16" title="" alt="" class="input" /> + <img src="<layout:replace name="imgpath" default="modules/filemanager/img/" />empty.gif" width="16" height="16" title="" alt="" class="input" /> <span class="chmod" title="Besitzer: UID\nGruppe: GID">Rechte</span> - <span class="filesize" title="Dateigröße">Größe</span> - <span class="filemtime" title="Last modified">Letzte Änderung</span> + <span class="filesize" title="Dateigröße">Größe</span> + <span class="filemtime" title="Last modified">Letzte Änderung</span> <span class="filename">Name</span> </li> <layout:replace name="content" default="" /> @@ -32,14 +111,14 @@ <![CDATA[ <li <layout:replace name="extra" default="" />> <input type="checkbox" name="select[<layout:replace name="filename" default="" />]" value="selected" id="select[<layout:replace name="filename" default="" />]" class="input" /> - <a href="?moduleid=filemanager&basedir=<layout:replace name="basedir" default="/" />&file=<layout:replace name="filename" default="" />&action=viewdir" title="Verzeichnis öffnen" > - <img src="modules/filemanager/img/filetypes/<layout:replace name="filetype" default="" />.gif" width="16" height="16" title="" alt="open" class="input" /> + <a href="?moduleid=filemanager&basedir=<layout:replace name="basedir" default="/" />&filename=<layout:replace name="filename" default="" />&action=viewdir" title="Verzeichnis öffnen" > + <img src="<layout:replace name="imgpath" default="modules/filemanager/img/" />filetypes/<layout:replace name="filetype" default="" />.gif" width="16" height="16" title="" alt="open" class="input" /> </a> - <img src="modules/filemanager/img/empty.gif" width="16" height="16" title="" alt="" class="input" /> + <img src="<layout:replace name="imgpath" default="modules/filemanager/img/" />empty.gif" width="16" height="16" title="" alt="" class="input" /> <span class="chmod" title="Besitzer: <layout:replace name="uid" default="" /> <> Gruppe: <layout:replace name="gid" default="" />"> <layout:replace name="chmod" default="0000" /></span> - <span class="filesize" title="Dateigröße"><layout:replace name="filesize" default="1 kB" /></span> + <span class="filesize" title="Dateigröße"><layout:replace name="filesize" default="1 kB" /></span> <span class="filemtime" title="Last modified"><layout:replace name="filemtime" default="" /></span> - <a href="?moduleid=filemanager&basedir=<layout:replace name="basedir" default="/" />&file=<layout:replace name="filename" default="" />&action=viewdir" title="Verzeichnis öffnen" class="filename"> + <a href="?moduleid=filemanager&basedir=<layout:replace name="basedir" default="/" />&filename=<layout:replace name="filename" default="" />&action=viewdir" title="Verzeichnis öffnen" class="filename"> <layout:replace name="filename" default="" /> </a> </li> @@ -50,11 +129,11 @@ <layout:insert name="fm_dir_inactive"> <![CDATA[ <li <layout:replace name="extra" default="" />> - <img src="modules/filemanager/img/empty.gif" width="16" height="16" title="" alt="" class="input" /> - <img src="modules/filemanager/img/filetypes/<layout:replace name="filetype" default="" />.gif" width="16" height="16" title="" alt="" class="input" /> - <img src="modules/filemanager/img/empty.gif" width="16" height="16" title="" alt="" class="input" /> + <img src="<layout:replace name="imgpath" default="modules/filemanager/img/" />empty.gif" width="16" height="16" title="" alt="" class="input" /> + <img src="<layout:replace name="imgpath" default="modules/filemanager/img/" />filetypes/<layout:replace name="filetype" default="" />.gif" width="16" height="16" title="" alt="" class="input" /> + <img src="<layout:replace name="imgpath" default="modules/filemanager/img/" />empty.gif" width="16" height="16" title="" alt="" class="input" /> <span class="chmod" title="Besitzer: <layout:replace name="uid" default="" /> <> Gruppe: <layout:replace name="gid" default="" />"> <layout:replace name="chmod" default="0000" /></span> - <span class="filesize" title="Dateigröße"><layout:replace name="filesize" default="1 kB" /></span> + <span class="filesize" title="Dateigröße"><layout:replace name="filesize" default="1 kB" /></span> <span class="filemtime" title="Last modified"><layout:replace name="filemtime" default="" /></span> <span class="filename"><layout:replace name="filename" default="" /></span> </li> @@ -66,14 +145,14 @@ <![CDATA[ <li <layout:replace name="extra" default="" />> <input type="checkbox" name="select[<layout:replace name="filename" default="" />]" value="selected" id="select[<layout:replace name="filename" default="" />]" class="input" /> - <a href="?moduleid=editor&basedir=<layout:replace name="basedir" default="/" />&file=<layout:replace name="basedir" default="/" /><layout:replace name="filename" default="" />&action=viewfile" title="Datei anzeigen" > - <img src="modules/filemanager/img/filetypes/<layout:replace name="filetype" default="" />" width="16" height="16" title="" alt="view" class="input" /> + <a href="?moduleid=editor&basedir=<layout:replace name="basedir" default="/" />&filename=<layout:replace name="basedir" default="/" /><layout:replace name="filename" default="" />&action=viewfile" title="Datei anzeigen" > + <img src="<layout:replace name="imgpath" default="modules/filemanager/img/" />filetypes/<layout:replace name="filetype" default="" />" width="16" height="16" title="" alt="view" class="input" /> </a> - <a href="?moduleid=editor&basedir=<layout:replace name="basedir" default="/" />&file=<layout:replace name="basedir" default="/" /><layout:replace name="filename" default="" />&action=editfile" title="Datei editieren" > - <img src="modules/filemanager/img/edit.gif" width="16" height="16" title="" alt="edit" class="input" /> + <a href="?moduleid=editor&basedir=<layout:replace name="basedir" default="/" />&filename=<layout:replace name="basedir" default="/" /><layout:replace name="filename" default="" />&action=editfile" title="Datei editieren" > + <img src="<layout:replace name="imgpath" default="modules/filemanager/img/" />edit.gif" width="16" height="16" title="" alt="edit" class="input" /> </a> <span class="chmod" title="Besitzer: <layout:replace name="uid" default="" /> <> Gruppe: <layout:replace name="gid" default="" />"><layout:replace name="chmod" default="0000" /></span> - <span class="filesize" title="Dateigröße"><layout:replace name="filesize" default="1 kB" /></span> + <span class="filesize" title="Dateigröße"><layout:replace name="filesize" default="1 kB" /></span> <span class="filemtime" title="Last modified"><layout:replace name="filemtime" default="00.00.0000 00:00:00" /></span> <span class="filename"><layout:replace name="filename" default="" /></span> </li> @@ -84,13 +163,13 @@ <layout:insert name="fm_file_inactive"> <![CDATA[ <li <layout:replace name="extra" default="" />> - <img src="modules/filemanager/img/empty.gif" width="16" height="16" title="" alt="" class="input" /> - <a href="?moduleid=editor&basedir=<layout:replace name="basedir" default="/" />&file=<layout:replace name="basedir" default="/" /><layout:replace name="filename" default="" />&action=viewfile" title="Datei anzeigen" > - <img src="modules/filemanager/img/filetypes/<layout:replace name="filetype" default="" />" width="16" height="16" title="" alt="view" class="input" /> + <img src="<layout:replace name="imgpath" default="modules/filemanager/img/" />empty.gif" width="16" height="16" title="" alt="" class="input" /> + <a href="?moduleid=editor&basedir=<layout:replace name="basedir" default="/" />&filename=<layout:replace name="basedir" default="/" /><layout:replace name="filename" default="" />&action=viewfile" title="Datei anzeigen" > + <img src="<layout:replace name="imgpath" default="modules/filemanager/img/" />filetypes/<layout:replace name="filetype" default="" />" width="16" height="16" title="" alt="view" class="input" /> </a> - <img src="modules/filemanager/img/edit_inactive.gif" width="16" height="16" title="" alt="" class="input" /> + <img src="<layout:replace name="imgpath" default="modules/filemanager/img/" />edit_inactive.gif" width="16" height="16" title="" alt="" class="input" /> <span class="chmod" title="Besitzer: <layout:replace name="uid" default="" /> <> Gruppe: <layout:replace name="gid" default="" />"><layout:replace name="chmod" default="0000" /></span> - <span class="filesize" title="Dateigröße"><layout:replace name="filesize" default="1 kB" /></span> + <span class="filesize" title="Dateigröße"><layout:replace name="filesize" default="1 kB" /></span> <span class="filemtime" title="Last modified"><layout:replace name="filemtime" default="00.00.0000 00:00:00" /></span> <span class="filename"><layout:replace name="filename" default="" /></span> </li> @@ -101,9 +180,9 @@ <layout:insert name="fm_sum"> <![CDATA[ <li class="footer"> - <img src="modules/filemanager/img/arrow.gif" width="16" height="16" title="" alt="" class="input" /> - <input type="image" name="fm-delete-selection" src="modules/filemanager/img/delete.gif" alt="del" title="Lösche ausgwählte Einträge" /> - <img src="modules/filemanager/img/empty.gif" width="16" height="16" title="" alt="" class="input" /> + <img src="<layout:replace name="imgpath" default="modules/filemanager/img/" />arrow.gif" width="16" height="16" title="" alt="" class="input" /> + <input type="image" name="fm-delete-selection" src="<layout:replace name="imgpath" default="modules/filemanager/img/" />delete.gif" alt="del" title="Lösche ausgwählte Einträge" /> + <img src="<layout:replace name="imgpath" default="modules/filemanager/img/" />empty.gif" width="16" height="16" title="" alt="" class="input" /> <span class="chmod"> </span> <span class="filesize" title=""><layout:replace name="sumsize" default="1 kB" /></span> <span class="filemtime"> </span> @@ -118,7 +197,7 @@ <fieldset> <legend>Datei anlegen</legend> <label title="Im aktuelen Verzeichnis eine neue Datei anlegen">Neuer Dateiname <input type="text" name="fm-new-file-name" value="Neuer Dateiname" /></label> - <label title="Vorlagen für die neue Datei, Leer ist Standard">Template auswählen <select name="fm-new-file-tpl" size="1"><option value="empty">Leer</option><option value="projectfile">phpCMS-Projektdatei</option><option value="menufile">phpCMS-Menüdatei</option></select></label> + <label title="Vorlagen für die neue Datei, Leer ist Standard">Template auswählen <select name="fm-new-file-tpl" size="1"><option value="empty">Leer</option><option value="projectfile">phpCMS-Projektdatei</option><option value="menufile">phpCMS-Menüdatei</option></select></label> </fieldset> <fieldset> @@ -134,7 +213,7 @@ <![CDATA[ <fieldset> <legend>Datei auf den Server laden</legend> - <label title="Datei in das aktuelle Verzeichnis auf dem Server laden">Datei wählen <input type="file" name="fm-upload-file-name" /></label> + <label title="Datei in das aktuelle Verzeichnis auf dem Server laden">Datei wählen <input type="file" name="fm-upload-file-name" /></label> <label title=""><input type="checkbox" name="fm-upload-archiv" value="1" />Archiv entpacken</label> </fieldset> @@ -175,13 +254,13 @@ <legend>Aktion</legend> <label title="Auswahl aus dem Verzeichnis in die Zwischenablage kopieren"><input type="radio" name="fm-clipboard-action" value="copy-select" /> Auswahl in Zwischenablage</label> <label title="Auswahl aus der Zwischenablage in das Verzeichnis kopieren"><input type="radio" name="fm-clipboard-action" value="insert-select" /> Auswahl in Verzeichnis</label> - <label title="Auswahl aus der Zwischenablage löschen"><input type="radio" name="fm-clipboard-action" value="delete-select" /> Auswahl löschen</label> + <label title="Auswahl aus der Zwischenablage löschen"><input type="radio" name="fm-clipboard-action" value="delete-select" /> Auswahl löschen</label> </fieldset> <fieldset> <legend>Inhalt der Zwischenablage</legend> <layout:replace name="content" default="" /> </fieldset> - <button type="submit" name="fm-clipboard-submit" value="1">Aktion ausführen</button> + <button type="submit" name="fm-clipboard-submit" value="1">Aktion ausführen</button> ]]> </layout:insert> Index: class.module_filemanager.php =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/filemanager/class.module_filemanager.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- class.module_filemanager.php 29 Sep 2004 20:10:46 -0000 1.8 +++ class.module_filemanager.php 7 Dec 2004 06:34:49 -0000 1.9 @@ -28,6 +28,9 @@ /* * $Log$ +* Revision 1.9 2004/12/07 06:34:49 mjahn +* prepration of first Alpha-Preview +* * Revision 1.8 2004/09/29 20:10:46 mjahn * completed phpCMS-config-part * began the statistic part @@ -59,6 +62,7 @@ * Include the file-utility-class **/ include_once (dirname (__FILE__).'/class.file_util.php'); +define ('FM_IMGPATH', MODULE_PATH.'/filemanager/img/'); /** * Filemanager-class for administrative work in the filesystem * @@ -77,10 +81,10 @@ $this->docroot = realpath ($_SERVER['DOCUMENT_ROOT']); - $actiondata1 = array ('module'=>'filemanager'); + $actiondata1 = array ('module'=>'filemanager', 'format'=>'array'); $this->_callEvent ('CONFIG_GET', $actiondata1); $this->CONF =& $actiondata1 ['config']; - + include_once (dirname (__FILE__).'/config.filemanager.php'); } @@ -108,16 +112,16 @@ $this->basedir = $actiondata['request']['basedir']; } - if ($this->action == 'viewfile' && isset ($actiondata['request']['file'])) { - $this->viewfile = $actiondata['request']['file']; + if ($this->action == 'viewfile' && isset ($actiondata['request']['filename'])) { + $this->viewfile = $actiondata['request']['filename']; } - if ($this->action == 'viewdir' && isset ($actiondata['request']['file'])) { - $this->viewdir = $actiondata['request']['file']; + if ($this->action == 'viewdir' && isset ($actiondata['request']['filename'])) { + $this->viewdir = $actiondata['request']['filename']; } - if ($this->action == 'editfile' && isset ($actiondata['request']['file'])) { - $this->editfile = $actiondata['request']['file']; + if ($this->action == 'editfile' && isset ($actiondata['request']['filename'])) { + $this->editfile = $actiondata['request']['filename']; } if ($this->display && $this->_USER ['isLoggedIn']) { @@ -235,8 +239,12 @@ unset ($files, $dirs); $num = count ($entries); - $actiondata1 = array ('_type'=>'fm_list', '_id'=>'filelist', '_root'=>$root, - 'basedir'=>htmlentities ($this->basedir)); + $actiondata1 = array ('_type'=>'form', '_id'=>'fm_form', '_root'=>$root, + 'action'=>INDEX_FILE.'?moduleid=filemanager', 'imgpath' => FM_IMGPATH, 'method'=>'post'); + $this->_callEvent ('LAYOUT_ADD_ELEMENT', $actiondata1); + + $actiondata1 = array ('_type'=>'fm_list', '_id'=>'filelist', '_root'=>'fm_form', + 'basedir'=>htmlentities ($this->basedir), 'imgpath' => FM_IMGPATH); $this->_callEvent ('LAYOUT_ADD_ELEMENT', $actiondata1); $alternate = 1; @@ -305,7 +313,7 @@ $nolink = true; } - $actiondata1 = array ('_root'=>'filelist', '_id'=>'dir-'.$entry, 'basedir'=>$this->basedir, 'filename'=>htmlentities ($entry), 'filesize'=>$file ['filesize'], 'fileatime'=>$file ['fileatime'], 'filectime'=>$file ['filectime'], 'filemtime'=>$file ['filemtime'], 'gid'=>$file ['gid'] ['str'], 'uid'=>$file ['uid'] ['str'], 'chmod'=>$file ['chmod'] ['str'], 'extra'=>'class="line'.$alternate++.'"', 'filetype'=>$type); + $actiondata1 = array ('_root'=>'filelist', 'imgpath' => FM_IMGPATH, '_id'=>'dir-'.$entry, 'basedir'=>$this->basedir, 'filename'=>htmlentities ($entry), 'filesize'=>$file ['filesize'], 'fileatime'=>$file ['fileatime'], 'filectime'=>$file ['filectime'], 'filemtime'=>$file ['filemtime'], 'gid'=>$file ['gid'] ['str'], 'uid'=>$file ['uid'] ['str'], 'chmod'=>$file ['chmod'] ['str'], 'extra'=>'class="line'.$alternate++.'"', 'filetype'=>$type); if ($nolink) { // set no link for open directory $actiondata1 ['_type'] = 'fm_dir_inactive'; @@ -334,7 +342,7 @@ $type = 'symlink.gif'; } - $actiondata1 = array ('_root'=>'filelist', '_id'=>'file-'.$entry, 'filename'=>$entry, 'basedir'=>$this->basedir, 'filename'=>htmlentities ($entry), 'filesize'=>$file ['filesize'], 'fileatime'=>$file ['fileatime'], 'filectime'=>$file ['filectime'], 'filemtime'=>$file ['filemtime'], 'gid'=>$file ['gid'] ['str'], 'uid'=>$file ['uid'] ['str'], 'chmod'=>$file ['chmod'] ['str'], 'extra'=>'class="line'.$alternate++.'"', 'filetype'=>$type); + $actiondata1 = array ('_root'=>'filelist', 'imgpath' => FM_IMGPATH, '_id'=>'file-'.$entry, 'filename'=>$entry, 'basedir'=>$this->basedir, 'filename'=>htmlentities ($entry), 'filesize'=>$file ['filesize'], 'fileatime'=>$file ['fileatime'], 'filectime'=>$file ['filectime'], 'filemtime'=>$file ['filemtime'], 'gid'=>$file ['gid'] ['str'], 'uid'=>$file ['uid'] ['str'], 'chmod'=>$file ['chmod'] ['str'], 'extra'=>'class="line'.$alternate++.'"', 'filetype'=>$type); // check if file is writeable if (!is_writeable ($dir.'/'.$entry)) { @@ -347,19 +355,19 @@ $this->_callEvent ('LAYOUT_ADD_ELEMENT', $actiondata1); } } - $actiondata1 = array ('_root'=>'filelist', '_id'=>'filelist-summary', '_type'=>'fm_sum', 'dirs'=>$num_dirs, 'files'=>$num_files, 'sumsize'=>file_util::filesize ($sum_size)); + $actiondata1 = array ('_root'=>'filelist', 'imgpath' => FM_IMGPATH, '_id'=>'filelist-summary', '_type'=>'fm_sum', 'dirs'=>$num_dirs, 'files'=>$num_files, 'sumsize'=>file_util::filesize ($sum_size)); $this->_callEvent ('LAYOUT_ADD_ELEMENT', $actiondata1); // set options-box - $actiondata1 = array ('_root'=>$root, '_id'=>'fm-options', '_type'=>'block', 'extra'=>'id="fm-options"'); + $actiondata1 = array ('_root'=>'fm_form', 'imgpath' => FM_IMGPATH, '_id'=>'fm-options', '_type'=>'block', 'extra'=>'id="fm-options"'); $this->_callEvent ('LAYOUT_ADD_ELEMENT', $actiondata1); // set tablist - $actiondata1 = array ('_root'=>'fm-options', '_id'=>'tablist', '_type'=>'ulist', 'extra'=>'class="tabbed"'); + $actiondata1 = array ('_root'=>'fm-options', 'imgpath' => FM_IMGPATH, '_id'=>'tablist', '_type'=>'ulist', 'extra'=>'class="tabbed"'); $this->_callEvent ('LAYOUT_ADD_ELEMENT', $actiondata1); // set tabbox - $actiondata1 = array ('_root'=>'fm-options', '_id'=>'tabbox', '_type'=>'block', 'extra'=>'class="tabbox"'); + $actiondata1 = array ('_root'=>'fm-options', 'imgpath' => FM_IMGPATH, '_id'=>'tabbox', '_type'=>'block', 'extra'=>'class="tabbox"'); $this->_callEvent ('LAYOUT_ADD_ELEMENT', $actiondata1); $tabs = array ( @@ -373,41 +381,49 @@ for ($i = 0; $i < $num; $i++) { // set tab-list - $actiondata1 = array ('_root'=>'tablist', '_id'=>'tablistitem-'.$tabs [$i] ['id'], '_type'=>'list_entry'); + $actiondata1 = array ('_root'=>'tablist', 'imgpath' => FM_IMGPATH, '_id'=>'tablistitem-'.$tabs [$i] ['id'], '_type'=>'list_entry'); $this->_callEvent ('LAYOUT_ADD_ELEMENT', $actiondata1); // set tab-script - $actiondata1 = array ('_root'=>'tablist', '_id'=>'tablistscript-'.$tabs [$i] ['id'], '_type'=>'script', 'content'=>'registerTab (\'tabbox-'.$tabs [$i] ['id'].'\');'); + $actiondata1 = array ('_root'=>'tablist', 'imgpath' => FM_IMGPATH, '_id'=>'tablistscript-'.$tabs [$i] ['id'], '_type'=>'script', 'content'=>'registerTab (\'tabbox-'.$tabs [$i] ['id'].'\');'); $this->_callEvent ('LAYOUT_ADD_ELEMENT', $actiondata1); // set the tab-link - $actiondata1 = array ('_root'=>'tablistitem-'.$tabs [$i] ['id'], '_id'=>'tablink-'.$tabs [$i] ['id'], '_type'=>'link', 'href'=>'#tabbox-'.$tabs [$i] ['id'], 'content'=>$tabs [$i] ['name'], 'extra'=>'class="" id="tabbox-'.$tabs [$i] ['id'].'-nav" onclick="displayTab (\'tabbox-'.$tabs [$i] ['id'].'\')" onkeypress="displayTab (\'tabbox-'.$tabs [$i] ['id'].'\')"'); + $actiondata1 = array ('_root'=>'tablistitem-'.$tabs [$i] ['id'], 'imgpath' => FM_IMGPATH, '_id'=>'tablink-'.$tabs [$i] ['id'], '_type'=>'link', 'href'=>'#tabbox-'.$tabs [$i] ['id'], 'content'=>$tabs [$i] ['name'], 'extra'=>'class="" id="tabbox-'.$tabs [$i] ['id'].'-nav" onclick="displayTab (\'tabbox-'.$tabs [$i] ['id'].'\')" onkeypress="displayTab (\'tabbox-'.$tabs [$i] ['id'].'\')"'); $this->_callEvent ('LAYOUT_ADD_ELEMENT', $actiondata1); // set the tab-box container - $actiondata1 = array ('_root'=>'tabbox', '_id'=>'tabbox-'.$tabs [$i] ['id'], '_type'=>'block', 'extra'=>'id="tabbox-'.$tabs [$i] ['id'].'"'); + $actiondata1 = array ('_root'=>'tabbox', 'imgpath' => FM_IMGPATH, '_id'=>'tabbox-'.$tabs [$i] ['id'], '_type'=>'block', 'extra'=>'id="tabbox-'.$tabs [$i] ['id'].'"'); $this->_callEvent ('LAYOUT_ADD_ELEMENT', $actiondata1); } // set the tab-box (new) - $actiondata1 = array ('_root'=>'tabbox-new', '_id'=>'tabbox-new-content', '_type'=>'fm_new'); + $actiondata1 = array ('_root'=>'tabbox-new', 'imgpath' => FM_IMGPATH, '_id'=>'tabbox-new-content', '_type'=>'fm_new'); $this->_callEvent ('LAYOUT_ADD_ELEMENT', $actiondata1); // set the tab-box (upload) - $actiondata1 = array ('_root'=>'tabbox-upload', '_id'=>'tabbox-upload-content', '_type'=>'fm_upload'); + $actiondata1 = array ('_root'=>'tabbox-upload', 'imgpath' => FM_IMGPATH, '_id'=>'tabbox-upload-content', '_type'=>'fm_upload'); $this->_callEvent ('LAYOUT_ADD_ELEMENT', $actiondata1); // set the tab-box (backup) - $actiondata1 = array ('_root'=>'tabbox-backup', '_id'=>'tabbox-backup-content', '_type'=>'fm_backup'); + $actiondata1 = array ('_root'=>'tabbox-backup', 'imgpath' => FM_IMGPATH, '_id'=>'tabbox-backup-content', '_type'=>'fm_backup'); $this->_callEvent ('LAYOUT_ADD_ELEMENT', $actiondata1); // set the tab-box (clipboard) - $actiondata1 = array ('_root'=>'tabbox-clipboard', '_id'=>'tabbox-clipboard-content', '_type'=>'fm_clipboard'); + $actiondata1 = array ('_root'=>'tabbox-clipboard', 'imgpath' => FM_IMGPATH, '_id'=>'tabbox-clipboard-content', '_type'=>'fm_clipboard'); $this->_callEvent ('LAYOUT_ADD_ELEMENT', $actiondata1); } + /** + * Let the user et the chmod of a file + * + * @param array $actiondata + **/ + function getContentChmod (&$actiondata) { + } + function _userSort (&$dirs, &$files) { sort ($dirs); sort ($files); |