/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/connectors/test.html |
---|
File deleted |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/connectors/php/io.php |
---|
File deleted |
\ No newline at end of file |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/connectors/php/connector.php |
---|
File deleted |
\ No newline at end of file |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/connectors/php/basexml.php |
---|
File deleted |
\ No newline at end of file |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/connectors/php/util.php |
---|
File deleted |
\ No newline at end of file |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/connectors/php/commands.php |
---|
File deleted |
\ No newline at end of file |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/connectors/php/config.php |
---|
File deleted |
\ No newline at end of file |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/frmresourcetype.html |
---|
1,28 → 1,33 |
<!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: frmresourcetype.html |
* This page shows the list of available resource types. |
* |
* 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 available resource types. |
--> |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<html> |
<head> |
<title>Available types</title> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
<link href="browser.css" type="text/css" rel="stylesheet"> |
<script type="text/javascript" src="js/common.js"></script> |
<script language="javascript"> |
<script type="text/javascript"> |
function SetResourceType( type ) |
{ |
38,21 → 43,24 |
window.onload = function() |
{ |
var oCombo = document.getElementById('cmbType') ; |
oCombo.innerHTML = '' ; |
for ( var i = 0 ; i < aTypes.length ; i++ ) |
{ |
if ( oConnector.ShowAllTypes || aTypes[i][0] == oConnector.ResourceType ) |
AddSelectOption( document.getElementById('cmbType'), aTypes[i][1], aTypes[i][0] ) ; |
AddSelectOption( oCombo, aTypes[i][1], aTypes[i][0] ) ; |
} |
} |
</script> |
</head> |
<body bottomMargin="0" topMargin="0"> |
<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0"> |
<body> |
<table class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0"> |
<tr> |
<td nowrap> |
Resource Type<BR> |
<select id="cmbType" style="WIDTH: 100%" onchange="SetResourceType(this.value);"> |
<option> |
</select> |
</td> |
</tr> |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/images/icons/32/png.gif |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/images/icons/32/png.gif |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/images/icons/png.gif |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/images/icons/png.gif |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/browser.html |
---|
1,36 → 1,74 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" |
"http://www.w3.org/TR/html4/frameset.dtd"> |
<!-- |
* 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: browser.html |
* This page compose the File Browser dialog frameset. |
* |
* 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 compose the File Browser dialog frameset. |
--> |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<html> |
<head> |
<title>FCKeditor - Resources Browser</title> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
<link href="browser.css" type="text/css" rel="stylesheet"> |
<script type="text/javascript" src="js/fckxml.js"></script> |
<script language="javascript"> |
<script type="text/javascript"> |
// Automatically detect the correct document.domain (#1919). |
(function() |
{ |
var d = document.domain ; |
while ( true ) |
{ |
// Test if we can access a parent property. |
try |
{ |
var test = window.opener.document.domain ; |
break ; |
} |
catch( e ) |
{} |
// Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... |
d = d.replace( /.*?(?:\.|$)/, '' ) ; |
if ( d.length == 0 ) |
break ; // It was not able to detect the domain. |
try |
{ |
document.domain = d ; |
} |
catch (e) |
{ |
break ; |
} |
} |
})() ; |
function GetUrlParam( paramName ) |
{ |
var oRegex = new RegExp( '[\?&]' + paramName + '=([^&]+)', 'i' ) ; |
var oMatch = oRegex.exec( window.top.location.search ) ; |
if ( oMatch && oMatch.length > 1 ) |
return unescape( oMatch[1] ) ; |
return decodeURIComponent( oMatch[1] ) ; |
else |
return '' ; |
} |
48,7 → 86,7 |
var sServerPath = GetUrlParam( 'ServerPath' ) ; |
if ( sServerPath.length > 0 ) |
oConnector.ConnectorUrl += 'ServerPath=' + escape( sServerPath ) + '&' ; |
oConnector.ConnectorUrl += 'ServerPath=' + encodeURIComponent( sServerPath ) + '&' ; |
oConnector.ResourceType = GetUrlParam( 'Type' ) ; |
oConnector.ShowAllTypes = ( oConnector.ResourceType.length == 0 ) ; |
60,27 → 98,32 |
{ |
var sUrl = this.ConnectorUrl + 'Command=' + command ; |
sUrl += '&Type=' + this.ResourceType ; |
sUrl += '&CurrentFolder=' + escape( this.CurrentFolder ) ; |
sUrl += '&CurrentFolder=' + encodeURIComponent( this.CurrentFolder ) ; |
if ( params ) sUrl += '&' + params ; |
// Add a random salt to avoid getting a cached version of the command execution |
sUrl += '&uuid=' + new Date().getTime() ; |
var oXML = new FCKXml() ; |
if ( callBackFunction ) |
oXML.LoadUrl( sUrl, callBackFunction ) ; // Asynchronous load. |
else |
return oXML.LoadUrl( sUrl ) ; |
return null ; |
} |
oConnector.CheckError = function( responseXml ) |
{ |
var iErrorNumber = 0 |
var iErrorNumber = 0 ; |
var oErrorNode = responseXml.SelectSingleNode( 'Connector/Error' ) ; |
if ( oErrorNode ) |
{ |
iErrorNumber = parseInt( oErrorNode.attributes.getNamedItem('number').value ) ; |
iErrorNumber = parseInt( oErrorNode.attributes.getNamedItem('number').value, 10 ) ; |
switch ( iErrorNumber ) |
{ |
case 0 : |
110,10 → 153,10 |
var oIcons = new Object() ; |
oIcons.AvailableIconsArray = [ |
oIcons.AvailableIconsArray = [ |
'ai','avi','bmp','cs','dll','doc','exe','fla','gif','htm','html','jpg','js', |
'mdb','mp3','pdf','ppt','rdp','swf','swt','txt','vsd','xls','xml','zip' ] ; |
'mdb','mp3','pdf','png','ppt','rdp','swf','swt','txt','vsd','xls','xml','zip' ] ; |
oIcons.AvailableIcons = new Object() ; |
for ( var i = 0 ; i < oIcons.AvailableIconsArray.length ; i++ ) |
128,6 → 171,15 |
else |
return 'default.icon' ; |
} |
function OnUploadCompleted( errorNumber, fileUrl, fileName, customMsg ) |
{ |
if (errorNumber == "1") |
window.frames['frmUpload'].OnUploadCompleted( errorNumber, customMsg ) ; |
else |
window.frames['frmUpload'].OnUploadCompleted( errorNumber, fileName ) ; |
} |
</script> |
</head> |
<frameset cols="150,*" class="Frame" framespacing="3" bordercolor="#f1f1e3" frameborder="1"> |
141,7 → 193,7 |
<frameset cols="150,*,0" framespacing="0" frameborder="0"> |
<frame name="frmCreateFolder" src="frmcreatefolder.html" scrolling="no" frameborder="0"> |
<frame name="frmUpload" src="frmupload.html" scrolling="no" frameborder="0"> |
<frame name="frmUploadWorker" src="../../../fckblank.html" scrolling="no" frameborder="0"> |
<frame name="frmUploadWorker" src="javascript:void(0)" scrolling="no" frameborder="0"> |
</frameset> |
</frameset> |
</frameset> |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/frmfolders.html |
---|
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> |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/frmcreatefolder.html |
---|
1,43 → 1,48 |
<!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: frmcreatefolder.html |
* Page used to create new folders in 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 == |
* |
* Page used to create new folders in the current folder. |
--> |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<html> |
<head> |
<title>Create Folder</title> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
<link href="browser.css" type="text/css" rel="stylesheet"> |
<script type="text/javascript" src="js/common.js"></script> |
<script language="javascript"> |
<script type="text/javascript"> |
function SetCurrentFolder( resourceType, folderPath ) |
{ |
oConnector.ResourceType = resourceType ; |
oConnector.CurrentFolder = folderPath |
oConnector.CurrentFolder = folderPath ; |
} |
function CreateFolder() |
{ |
var sFolderName ; |
while ( true ) |
while ( true ) |
{ |
sFolderName = prompt( 'Type the name of the new folder:', '' ) ; |
if ( sFolderName == null ) |
return ; |
else if ( sFolderName.length == 0 ) |
45,8 → 50,8 |
else |
break ; |
} |
oConnector.SendCommand( 'CreateFolder', 'NewFolderName=' + escape( sFolderName) , CreateFolderCallBack ) ; |
oConnector.SendCommand( 'CreateFolder', 'NewFolderName=' + encodeURIComponent( sFolderName) , CreateFolderCallBack ) ; |
} |
function CreateFolderCallBack( fckXml ) |
53,12 → 58,12 |
{ |
if ( oConnector.CheckError( fckXml ) == 0 ) |
window.parent.frames['frmResourcesList'].Refresh() ; |
/* |
// Get the current folder path. |
var oNode = fckXml.SelectSingleNode( 'Connector/Error' ) ; |
var iErrorNumber = parseInt( oNode.attributes.getNamedItem('number').value ) ; |
switch ( iErrorNumber ) |
{ |
case 0 : |
89,8 → 94,8 |
} |
</script> |
</head> |
<body bottomMargin="0" topMargin="0"> |
<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0"> |
<body> |
<table class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0"> |
<tr> |
<td> |
<button type="button" style="WIDTH: 100%" onclick="CreateFolder();"> |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/browser.css |
---|
1,47 → 1,49 |
/* |
* 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: browser.css |
* CSS styles used by all pages that compose the File Browser. |
* |
* 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 == |
* |
* CSS styles used by all pages that compose the File Browser. |
*/ |
body |
{ |
background-color: #f1f1e3; |
margin-top:0; |
margin-bottom:0; |
} |
form |
{ |
margin: 0px 0px 0px 0px ; |
padding: 0px 0px 0px 0px ; |
margin: 0; |
padding: 0; |
} |
.Frame |
{ |
background-color: #f1f1e3; |
border-color: #f1f1e3; |
border-right: thin inset; |
border-top: thin inset; |
border-left: thin inset; |
border-bottom: thin inset; |
border: thin inset #f1f1e3; |
} |
body.FileArea |
{ |
background-color: #ffffff; |
margin: 10px; |
} |
body, td, input, select |
65,11 → 67,8 |
.Button, button |
{ |
border-right: #737357 1px solid; |
border-top: #737357 1px solid; |
border-left: #737357 1px solid; |
color: #3b3b1f; |
border-bottom: #737357 1px solid; |
border: #737357 1px solid; |
background-color: #c7c78f; |
} |
81,4 → 80,8 |
.FolderListFolder img |
{ |
background-image: url(images/Folder.gif); |
} |
} |
.fullHeight { |
height: 100%; |
} |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/frmupload.html |
---|
1,25 → 1,31 |
<!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: frmupload.html |
* Page used to upload new files in 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 == |
* |
* Page used to upload new files in the current folder. |
--> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<html> |
<head> |
<link href="browser.css" type="text/css" rel="stylesheet" /> |
<title>File Upload</title> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
<link href="browser.css" type="text/css" rel="stylesheet" > |
<script type="text/javascript" src="js/common.js"></script> |
<script type="text/javascript"> |
27,8 → 33,8 |
{ |
var sUrl = oConnector.ConnectorUrl + 'Command=FileUpload' ; |
sUrl += '&Type=' + resourceType ; |
sUrl += '&CurrentFolder=' + escape( folderPath ) ; |
sUrl += '&CurrentFolder=' + encodeURIComponent( folderPath ) ; |
document.getElementById('frmUpload').action = sUrl ; |
} |
43,7 → 49,7 |
// Set the interface elements. |
document.getElementById('eUploadMessage').innerHTML = 'Upload a new file in this folder (Upload in progress, please wait...)' ; |
document.getElementById('btnUpload').disabled = true ; |
return true ; |
} |
50,18 → 56,18 |
function OnUploadCompleted( errorNumber, data ) |
{ |
// Reset the Upload Worker Frame. |
window.parent.frames['frmUploadWorker'].location = '../../../../../fckblank.html' ; |
// Reset the upload form (On IE we must do a little trick to avout problems). |
window.parent.frames['frmUploadWorker'].location = 'javascript:void(0)' ; |
// Reset the upload form (On IE we must do a little trick to avoid problems). |
if ( document.all ) |
document.getElementById('NewFile').outerHTML = '<input id="NewFile" name="NewFile" style="WIDTH: 100%" type="file">' ; |
else |
document.getElementById('frmUpload').reset() ; |
// Reset the interface elements. |
document.getElementById('eUploadMessage').innerHTML = 'Upload a new file in this folder' ; |
document.getElementById('btnUpload').disabled = false ; |
switch ( errorNumber ) |
{ |
case 0 : |
89,9 → 95,9 |
} |
</script> |
</head> |
<body bottommargin="0" topmargin="0"> |
<body> |
<form id="frmUpload" action="" target="frmUploadWorker" method="post" enctype="multipart/form-data" onsubmit="return OnSubmit();"> |
<table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0"> |
<table class="fullHeight" cellspacing="0" cellpadding="0" width="100%" border="0"> |
<tr> |
<td nowrap="nowrap"> |
<span id="eUploadMessage">Upload a new file in this folder</span><br> |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/js/fckxml.js |
---|
1,23 → 1,28 |
/* |
* 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: fckxml.js |
* Defines the FCKXml object that is used for XML data calls |
* and XML processing. |
* This script is shared by almost all pages that compose the |
* File Browser frameset. |
* |
* 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 == |
* |
* Defines the FCKXml object that is used for XML data calls |
* and XML processing. |
* |
* This script is shared by almost all pages that compose the |
* File Browser frameset. |
*/ |
var FCKXml = function() |
26,16 → 31,18 |
FCKXml.prototype.GetHttpRequest = function() |
{ |
// Gecko / IE7 |
if ( typeof(XMLHttpRequest) != 'undefined' ) |
return new XMLHttpRequest() ; |
try { return new XMLHttpRequest(); } |
catch(e) {} |
// IE6 |
try { return new ActiveXObject("Msxml2.XMLHTTP") ; } |
try { return new ActiveXObject( 'Msxml2.XMLHTTP' ) ; } |
catch(e) {} |
// IE5 |
try { return new ActiveXObject("Microsoft.XMLHTTP") ; } |
try { return new ActiveXObject( 'Microsoft.XMLHTTP' ) ; } |
catch(e) {} |
return null ; |
} |
FCKXml.prototype.LoadUrl = function( urlToCall, asyncFunctionPointer ) |
45,26 → 52,50 |
var bAsync = ( typeof(asyncFunctionPointer) == 'function' ) ; |
var oXmlHttp = this.GetHttpRequest() ; |
oXmlHttp.open( "GET", urlToCall, bAsync ) ; |
if ( bAsync ) |
{ |
oXmlHttp.onreadystatechange = function() |
{ |
oXmlHttp.onreadystatechange = function() |
{ |
if ( oXmlHttp.readyState == 4 ) |
{ |
oFCKXml.DOMDocument = oXmlHttp.responseXML ; |
if ( oXmlHttp.status == 200 || oXmlHttp.status == 304 ) |
asyncFunctionPointer( oFCKXml ) ; |
else |
alert( 'XML request error: ' + oXmlHttp.statusText + ' (' + oXmlHttp.status + ')' ) ; |
var oXml ; |
try |
{ |
// this is the same test for an FF2 bug as in fckxml_gecko.js |
// but we've moved the responseXML assignment into the try{} |
// so we don't even have to check the return status codes. |
var test = oXmlHttp.responseXML.firstChild ; |
oXml = oXmlHttp.responseXML ; |
} |
catch ( e ) |
{ |
try |
{ |
oXml = (new DOMParser()).parseFromString( oXmlHttp.responseText, 'text/xml' ) ; |
} |
catch ( e ) {} |
} |
if ( !oXml || !oXml.firstChild || oXml.firstChild.nodeName == 'parsererror' ) |
{ |
alert( 'The server didn\'t send back a proper XML response. Please contact your system administrator.\n\n' + |
'XML request error: ' + oXmlHttp.statusText + ' (' + oXmlHttp.status + ')\n\n' + |
'Requested URL:\n' + urlToCall + '\n\n' + |
'Response text:\n' + oXmlHttp.responseText ) ; |
return ; |
} |
oFCKXml.DOMDocument = oXml ; |
asyncFunctionPointer( oFCKXml ) ; |
} |
} |
} |
oXmlHttp.send( null ) ; |
if ( ! bAsync ) |
{ |
if ( oXmlHttp.status == 200 || oXmlHttp.status == 304 ) |
84,9 → 115,9 |
{ |
var aNodeArray = new Array(); |
var xPathResult = this.DOMDocument.evaluate( xpath, this.DOMDocument, |
var xPathResult = this.DOMDocument.evaluate( xpath, this.DOMDocument, |
this.DOMDocument.createNSResolver(this.DOMDocument.documentElement), XPathResult.ORDERED_NODE_ITERATOR_TYPE, null) ; |
if ( xPathResult ) |
if ( xPathResult ) |
{ |
var oNode = xPathResult.iterateNext() ; |
while( oNode ) |
94,12 → 125,12 |
aNodeArray[aNodeArray.length] = oNode ; |
oNode = xPathResult.iterateNext(); |
} |
} |
} |
return aNodeArray ; |
} |
} |
FCKXml.prototype.SelectSingleNode = function( xpath ) |
FCKXml.prototype.SelectSingleNode = function( xpath ) |
{ |
if ( navigator.userAgent.indexOf('MSIE') >= 0 ) // IE |
return this.DOMDocument.selectSingleNode( xpath ) ; |
110,7 → 141,7 |
if ( xPathResult && xPathResult.singleNodeValue ) |
return xPathResult.singleNodeValue ; |
else |
else |
return null ; |
} |
} |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/js/common.js |
---|
1,29 → 1,66 |
/* |
* 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: common.js |
* Common objects and functions shared by all pages that compose the |
* File Browser dialog window. |
* |
* 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 == |
* |
* Common objects and functions shared by all pages that compose the |
* File Browser dialog window. |
*/ |
// Automatically detect the correct document.domain (#1919). |
(function() |
{ |
var d = document.domain ; |
while ( true ) |
{ |
// Test if we can access a parent property. |
try |
{ |
var test = window.top.opener.document.domain ; |
break ; |
} |
catch( e ) |
{} |
// Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... |
d = d.replace( /.*?(?:\.|$)/, '' ) ; |
if ( d.length == 0 ) |
break ; // It was not able to detect the domain. |
try |
{ |
document.domain = d ; |
} |
catch (e) |
{ |
break ; |
} |
} |
})() ; |
function AddSelectOption( selectElement, optionText, optionValue ) |
{ |
var oOption = document.createElement("OPTION") ; |
oOption.text = optionText ; |
oOption.value = optionValue ; |
oOption.value = optionValue ; |
selectElement.options.add(oOption) ; |
48,4 → 85,4 |
StringBuilder.prototype.ToString = function() |
{ |
return this._Strings.join( '' ) ; |
} |
} |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/frmactualfolder.html |
---|
1,33 → 1,65 |
<!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: frmactualfolder.html |
* This page shows the actual folder path. |
* |
* 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 actual folder path. |
--> |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<html> |
<head> |
<title>Folder path</title> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
<link href="browser.css" type="text/css" rel="stylesheet"> |
<script type="text/javascript"> |
function OnResize() |
// Automatically detect the correct document.domain (#1919). |
(function() |
{ |
divName.style.width = "1px" ; |
divName.style.width = tdName.offsetWidth + "px" ; |
} |
var d = document.domain ; |
while ( true ) |
{ |
// Test if we can access a parent property. |
try |
{ |
var test = window.top.opener.document.domain ; |
break ; |
} |
catch( e ) |
{} |
// Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... |
d = d.replace( /.*?(?:\.|$)/, '' ) ; |
if ( d.length == 0 ) |
break ; // It was not able to detect the domain. |
try |
{ |
document.domain = d ; |
} |
catch (e) |
{ |
break ; |
} |
} |
})() ; |
function SetCurrentFolder( resourceType, folderPath ) |
{ |
document.getElementById('tdName').innerHTML = folderPath ; |
40,8 → 72,8 |
</script> |
</head> |
<body bottomMargin="0" topMargin="0"> |
<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0"> |
<body> |
<table class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0"> |
<tr> |
<td> |
<button style="WIDTH: 100%" type="button"> |
51,7 → 83,7 |
<td> </td> |
<td id="tdName" width="100%" nowrap class="ActualFolder">/</td> |
<td> </td> |
<td><img height="8" src="images/ButtonArrow.gif" width="12"></td> |
<td><img height="8" src="images/ButtonArrow.gif" width="12" alt=""></td> |
<td> </td> |
</tr> |
</table> |
/branches/livraison_aha/api/fckeditor/editor/filemanager/browser/default/frmresourceslist.html |
---|
1,25 → 1,31 |
<!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: frmresourceslist.html |
* This page shows all resources available in a folder in the File Browser. |
* |
* 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 all resources available in a folder in the File Browser. |
--> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<html> |
<head> |
<link href="browser.css" type="text/css" rel="stylesheet" /> |
<title>Resources</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 type="text/javascript"> |
30,26 → 36,33 |
document.body.innerHTML = '' ; |
} |
function ProtectPath(path) |
{ |
path = path.replace( /\\/g, '\\\\') ; |
path = path.replace( /'/g, '\\\'') ; |
return path ; |
} |
oListManager.GetFolderRowHtml = function( folderName, folderPath ) |
{ |
// Build the link to view the folder. |
var sLink = '<a href="#" onclick="OpenFolder(\'' + folderPath.replace( /'/g, '\\\'') + '\');return false;">' ; |
var sLink = '<a href="#" onclick="OpenFolder(\'' + ProtectPath( folderPath ) + '\');return false;">' ; |
return '<tr>' + |
'<td width="16">' + |
sLink + |
'<img alt="" src="images/Folder.gif" width="16" height="16" border="0"></a>' + |
'</td><td nowrap colspan="2"> ' + |
sLink + |
folderName + |
'</a>' + |
'</td></tr>' ; |
'<img alt="" src="images/Folder.gif" width="16" height="16" border="0"><\/a>' + |
'<\/td><td nowrap colspan="2"> ' + |
sLink + |
folderName + |
'<\/a>' + |
'<\/td><\/tr>' ; |
} |
oListManager.GetFileRowHtml = function( fileName, fileUrl, fileSize ) |
{ |
// Build the link to view the folder. |
var sLink = '<a href="#" onclick="OpenFile(\'' + fileUrl.replace( /'/g, '\\\'') + '\');return false;">' ; |
var sLink = '<a href="#" onclick="OpenFile(\'' + ProtectPath( fileUrl ) + '\');return false;">' ; |
// Get the file icon. |
var sIcon = oIcons.GetIcon( fileName ) ; |
56,16 → 69,16 |
return '<tr>' + |
'<td width="16">' + |
sLink + |
'<img alt="" src="images/icons/' + sIcon + '.gif" width="16" height="16" border="0"></a>' + |
'</td><td> ' + |
sLink + |
fileName + |
'</a>' + |
'</td><td align="right" nowrap> ' + |
fileSize + |
sLink + |
'<img alt="" src="images/icons/' + sIcon + '.gif" width="16" height="16" border="0"><\/a>' + |
'<\/td><td> ' + |
sLink + |
fileName + |
'<\/a>' + |
'<\/td><td align="right" nowrap> ' + |
fileSize + |
' KB' + |
'</td></tr>' ; |
'<\/td><\/tr>' ; |
} |
function OpenFolder( folderPath ) |
76,7 → 89,7 |
function OpenFile( fileUrl ) |
{ |
window.top.opener.SetUrl( fileUrl ) ; |
window.top.opener.SetUrl( encodeURI( fileUrl ).replace( '#', '%23' ) ) ; |
window.top.close() ; |
window.top.opener.focus() ; |
} |
100,16 → 113,22 |
return ; |
// Get the current folder path. |
var oNode = fckXml.SelectSingleNode( 'Connector/CurrentFolder' ) ; |
var sCurrentFolderPath = oNode.attributes.getNamedItem('path').value ; |
var sCurrentFolderUrl = oNode.attributes.getNamedItem('url').value ; |
var oFolderNode = fckXml.SelectSingleNode( 'Connector/CurrentFolder' ) ; |
if ( oFolderNode == null ) |
{ |
alert( 'The server didn\'t reply with a proper XML data. Please check your configuration.' ) ; |
return ; |
} |
var sCurrentFolderPath = oFolderNode.attributes.getNamedItem('path').value ; |
var sCurrentFolderUrl = oFolderNode.attributes.getNamedItem('url').value ; |
// var dTimer = new Date() ; |
var oHtml = new StringBuilder( '<table id="tableFiles" cellspacing="1" cellpadding="0" width="100%" border="0">' ) ; |
// Add the Folders. |
var oNodes = fckXml.SelectNodes( 'Connector/Folders/Folder' ) ; |
// Add the Folders. |
var oNodes ; |
oNodes = fckXml.SelectNodes( 'Connector/Folders/Folder' ) ; |
for ( var i = 0 ; i < oNodes.length ; i++ ) |
{ |
var sFolderName = oNodes[i].attributes.getNamedItem('name').value ; |
116,23 → 135,23 |
oHtml.Append( oListManager.GetFolderRowHtml( sFolderName, sCurrentFolderPath + sFolderName + "/" ) ) ; |
} |
// Add the Files. |
var oNodes = fckXml.SelectNodes( 'Connector/Files/File' ) ; |
for ( var i = 0 ; i < oNodes.length ; i++ ) |
// Add the Files. |
oNodes = fckXml.SelectNodes( 'Connector/Files/File' ) ; |
for ( var j = 0 ; j < oNodes.length ; j++ ) |
{ |
var oNode = oNodes[i] ; |
var oNode = oNodes[j] ; |
var sFileName = oNode.attributes.getNamedItem('name').value ; |
var sFileSize = oNode.attributes.getNamedItem('size').value ; |
// Get the optional "url" attribute. If not available, build the url. |
var oFileUrlAtt = oNodes[i].attributes.getNamedItem('url') ; |
var oFileUrlAtt = oNodes[j].attributes.getNamedItem('url') ; |
var sFileUrl = oFileUrlAtt != null ? oFileUrlAtt.value : sCurrentFolderUrl + sFileName ; |
oHtml.Append( oListManager.GetFileRowHtml( sFileName, sFileUrl, sFileSize ) ) ; |
} |
oHtml.Append( '</table>' ) ; |
oHtml.Append( '<\/table>' ) ; |
document.body.innerHTML = oHtml.ToString() ; |
// window.top.document.title = 'Finished processing in ' + ( ( ( new Date() ) - dTimer ) / 1000 ) + ' seconds' ; |
145,6 → 164,6 |
} |
</script> |
</head> |
<body class="FileArea" bottommargin="10" leftmargin="10" topmargin="10" rightmargin="10"> |
<body class="FileArea"> |
</body> |
</html> |