1,28 → 1,34 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
* |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: frmfolders.html |
* This page shows the list of folders available in the parent folder |
* of the current folder. |
* |
* File Authors: |
* Frederico Caldeira Knabben (fredck@fckeditor.net) |
* FCKeditor - The text editor for Internet - http://www.fckeditor.net |
* Copyright (C) 2003-2008 Frederico Caldeira Knabben |
* |
* == BEGIN LICENSE == |
* |
* Licensed under the terms of any of the following licenses at your |
* choice: |
* |
* - GNU General Public License Version 2 or later (the "GPL") |
* http://www.gnu.org/licenses/gpl.html |
* |
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") |
* http://www.gnu.org/licenses/lgpl.html |
* |
* - Mozilla Public License Version 1.1 or later (the "MPL") |
* http://www.mozilla.org/MPL/MPL-1.1.html |
* |
* == END LICENSE == |
* |
* This page shows the list of folders available in the parent folder |
* of the current folder. |
--> |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<html> |
<head> |
<title>Folders</title> |
<link href="browser.css" type="text/css" rel="stylesheet"> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
<script type="text/javascript" src="js/common.js"></script> |
<script language="javascript"> |
<script type="text/javascript"> |
|
var sActiveFolder ; |
|
36,7 → 42,7 |
this.Table = document.getElementById('tableFiles') ; |
this.UpRow = document.getElementById('trUp') ; |
|
this.TableRows = new Object() ; |
this.TableRows = new Object() ; |
} |
|
oListManager.Clear = function() |
61,13 → 67,13 |
// Add the folder icon cell. |
var oCell = oRow.insertCell(-1) ; |
oCell.width = 16 ; |
oCell.innerHTML = sLink + '<img alt="" src="images/spacer.gif" width="16" height="16" border="0"></a>' ; |
oCell.innerHTML = sLink + '<img alt="" src="images/spacer.gif" width="16" height="16" border="0"><\/a>' ; |
|
// Add the folder name cell. |
oCell = oRow.insertCell(-1) ; |
oCell.noWrap = true ; |
oCell.innerHTML = ' ' + sLink + folderName + '</a>' ; |
|
oCell.innerHTML = ' ' + sLink + folderName + '<\/a>' ; |
|
this.TableRows[ folderPath ] = oRow ; |
} |
|
74,7 → 80,7 |
oListManager.ShowUpFolder = function( upFolderPath ) |
{ |
this.UpRow.style.display = ( upFolderPath != null ? '' : 'none' ) ; |
|
|
if ( upFolderPath != null ) |
{ |
document.getElementById('linkUpIcon').onclick = document.getElementById('linkUp').onclick = function() |
87,8 → 93,8 |
|
function CheckLoaded() |
{ |
if ( window.top.IsLoadedActualFolder |
&& window.top.IsLoadedCreateFolder |
if ( window.top.IsLoadedActualFolder |
&& window.top.IsLoadedCreateFolder |
&& window.top.IsLoadedUpload |
&& window.top.IsLoadedResourcesList ) |
{ |
112,7 → 118,7 |
// Change the style for the select row (to show the opened folder). |
for ( var sFolderPath in oListManager.TableRows ) |
{ |
oListManager.TableRows[ sFolderPath ].className = |
oListManager.TableRows[ sFolderPath ].className = |
( sFolderPath == folderPath ? 'FolderListCurrentFolder' : 'FolderListFolder' ) ; |
} |
|
120,7 → 126,7 |
window.parent.frames['frmActualFolder'].SetCurrentFolder( oConnector.ResourceType, folderPath ) ; |
window.parent.frames['frmCreateFolder'].SetCurrentFolder( oConnector.ResourceType, folderPath ) ; |
window.parent.frames['frmUpload'].SetCurrentFolder( oConnector.ResourceType, folderPath ) ; |
|
|
// Load the resources list for this folder. |
window.parent.frames['frmResourcesList'].LoadResources( oConnector.ResourceType, folderPath ) ; |
} |
137,11 → 143,11 |
|
// Show/Hide the Up Folder. |
oListManager.ShowUpFolder( sParentFolderPath ) ; |
|
|
if ( folderPath != '/' ) |
{ |
sActiveFolder = folderPath ; |
oConnector.CurrentFolder = sParentFolderPath |
oConnector.CurrentFolder = sParentFolderPath ; |
oConnector.SendCommand( 'GetFolders', null, GetFoldersCallBack ) ; |
} |
else |
152,19 → 158,19 |
{ |
if ( oConnector.CheckError( fckXml ) != 0 ) |
return ; |
|
|
// Get the current folder path. |
var oNode = fckXml.SelectSingleNode( 'Connector/CurrentFolder' ) ; |
var sCurrentFolderPath = oNode.attributes.getNamedItem('path').value ; |
|
|
var oNodes = fckXml.SelectNodes( 'Connector/Folders/Folder' ) ; |
|
|
for ( var i = 0 ; i < oNodes.length ; i++ ) |
{ |
var sFolderName = oNodes[i].attributes.getNamedItem('name').value ; |
oListManager.AddItem( sFolderName, sCurrentFolderPath + sFolderName + "/" ) ; |
oListManager.AddItem( sFolderName, sCurrentFolderPath + sFolderName + '/' ) ; |
} |
|
|
OpenFolder( sActiveFolder ) ; |
} |
|
181,7 → 187,7 |
} |
</script> |
</head> |
<body class="FileArea" bottomMargin="10" leftMargin="10" topMargin="10" rightMargin="10"> |
<body class="FileArea"> |
<table id="tableFiles" cellSpacing="0" cellPadding="0" width="100%" border="0"> |
<tr id="trUp" style="DISPLAY: none"> |
<td width="16"><a id="linkUpIcon" href="#"><img alt="" src="images/FolderUp.gif" width="16" height="16" border="0"></a></td> |