| Line 1... |
Line 1... |
| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
| 2 |
<!--
|
2 |
<!--
|
| 3 |
* FCKeditor - The text editor for internet
|
3 |
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
| 4 |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
|
4 |
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
|
| - |
|
5 |
*
|
| - |
|
6 |
* == BEGIN LICENSE ==
|
| 5 |
*
|
7 |
*
|
| 6 |
* Licensed under the terms of the GNU Lesser General Public License:
|
8 |
* Licensed under the terms of any of the following licenses at your
|
| 7 |
* http://www.opensource.org/licenses/lgpl-license.php
|
9 |
* choice:
|
| 8 |
*
|
10 |
*
|
| 9 |
* For further information visit:
|
11 |
* - GNU General Public License Version 2 or later (the "GPL")
|
| 10 |
* http://www.fckeditor.net/
|
12 |
* http://www.gnu.org/licenses/gpl.html
|
| 11 |
*
|
13 |
*
|
| 12 |
* "Support Open Source software. What about a donation today?"
|
14 |
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
| - |
|
15 |
* http://www.gnu.org/licenses/lgpl.html
|
| 13 |
*
|
16 |
*
|
| 14 |
* File Name: frmupload.html
|
17 |
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
| 15 |
* Page used to upload new files in the current folder.
|
18 |
* http://www.mozilla.org/MPL/MPL-1.1.html
|
| 16 |
*
|
19 |
*
|
| 17 |
* File Authors:
|
20 |
* == END LICENSE ==
|
| - |
|
21 |
*
|
| 18 |
* Frederico Caldeira Knabben (fredck@fckeditor.net)
|
22 |
* Page used to upload new files in the current folder.
|
| 19 |
-->
|
23 |
-->
|
| 20 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
24 |
<html>
|
| 21 |
<head>
|
25 |
<head>
|
| - |
|
26 |
<title>File Upload</title>
|
| - |
|
27 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
| 22 |
<link href="browser.css" type="text/css" rel="stylesheet" />
|
28 |
<link href="browser.css" type="text/css" rel="stylesheet" >
|
| 23 |
<script type="text/javascript" src="js/common.js"></script>
|
29 |
<script type="text/javascript" src="js/common.js"></script>
|
| 24 |
<script type="text/javascript">
|
30 |
<script type="text/javascript">
|
| Line 25... |
Line 31... |
| 25 |
|
31 |
|
| 26 |
function SetCurrentFolder( resourceType, folderPath )
|
32 |
function SetCurrentFolder( resourceType, folderPath )
|
| 27 |
{
|
33 |
{
|
| 28 |
var sUrl = oConnector.ConnectorUrl + 'Command=FileUpload' ;
|
34 |
var sUrl = oConnector.ConnectorUrl + 'Command=FileUpload' ;
|
| 29 |
sUrl += '&Type=' + resourceType ;
|
35 |
sUrl += '&Type=' + resourceType ;
|
| 30 |
sUrl += '&CurrentFolder=' + escape( folderPath ) ;
|
36 |
sUrl += '&CurrentFolder=' + encodeURIComponent( folderPath ) ;
|
| 31 |
|
37 |
|
| 32 |
document.getElementById('frmUpload').action = sUrl ;
|
38 |
document.getElementById('frmUpload').action = sUrl ;
|
| Line 33... |
Line 39... |
| 33 |
}
|
39 |
}
|
| 34 |
|
40 |
|
| Line 41... |
Line 47... |
| 41 |
}
|
47 |
}
|
| Line 42... |
Line 48... |
| 42 |
|
48 |
|
| 43 |
// Set the interface elements.
|
49 |
// Set the interface elements.
|
| 44 |
document.getElementById('eUploadMessage').innerHTML = 'Upload a new file in this folder (Upload in progress, please wait...)' ;
|
50 |
document.getElementById('eUploadMessage').innerHTML = 'Upload a new file in this folder (Upload in progress, please wait...)' ;
|
| 45 |
document.getElementById('btnUpload').disabled = true ;
|
51 |
document.getElementById('btnUpload').disabled = true ;
|
| 46 |
|
52 |
|
| 47 |
return true ;
|
53 |
return true ;
|
| Line 48... |
Line 54... |
| 48 |
}
|
54 |
}
|
| 49 |
|
55 |
|
| 50 |
function OnUploadCompleted( errorNumber, data )
|
56 |
function OnUploadCompleted( errorNumber, data )
|
| 51 |
{
|
57 |
{
|
| 52 |
// Reset the Upload Worker Frame.
|
58 |
// Reset the Upload Worker Frame.
|
| 53 |
window.parent.frames['frmUploadWorker'].location = '../../../../../fckblank.html' ;
|
59 |
window.parent.frames['frmUploadWorker'].location = 'javascript:void(0)' ;
|
| 54 |
|
60 |
|
| 55 |
// Reset the upload form (On IE we must do a little trick to avout problems).
|
61 |
// Reset the upload form (On IE we must do a little trick to avoid problems).
|
| 56 |
if ( document.all )
|
62 |
if ( document.all )
|
| 57 |
document.getElementById('NewFile').outerHTML = '<input id="NewFile" name="NewFile" style="WIDTH: 100%" type="file">' ;
|
63 |
document.getElementById('NewFile').outerHTML = '<input id="NewFile" name="NewFile" style="WIDTH: 100%" type="file">' ;
|
| 58 |
else
|
64 |
else
|
| 59 |
document.getElementById('frmUpload').reset() ;
|
65 |
document.getElementById('frmUpload').reset() ;
|
| 60 |
|
66 |
|
| 61 |
// Reset the interface elements.
|
67 |
// Reset the interface elements.
|
| 62 |
document.getElementById('eUploadMessage').innerHTML = 'Upload a new file in this folder' ;
|
68 |
document.getElementById('eUploadMessage').innerHTML = 'Upload a new file in this folder' ;
|
| 63 |
document.getElementById('btnUpload').disabled = false ;
|
69 |
document.getElementById('btnUpload').disabled = false ;
|
| 64 |
|
70 |
|
| 65 |
switch ( errorNumber )
|
71 |
switch ( errorNumber )
|
| 66 |
{
|
72 |
{
|
| 67 |
case 0 :
|
73 |
case 0 :
|
| Line 87... |
Line 93... |
| 87 |
{
|
93 |
{
|
| 88 |
window.top.IsLoadedUpload = true ;
|
94 |
window.top.IsLoadedUpload = true ;
|
| 89 |
}
|
95 |
}
|
| 90 |
</script>
|
96 |
</script>
|
| 91 |
</head>
|
97 |
</head>
|
| 92 |
<body bottommargin="0" topmargin="0">
|
98 |
<body>
|
| 93 |
<form id="frmUpload" action="" target="frmUploadWorker" method="post" enctype="multipart/form-data" onsubmit="return OnSubmit();">
|
99 |
<form id="frmUpload" action="" target="frmUploadWorker" method="post" enctype="multipart/form-data" onsubmit="return OnSubmit();">
|
| 94 |
<table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
|
100 |
<table class="fullHeight" cellspacing="0" cellpadding="0" width="100%" border="0">
|
| 95 |
<tr>
|
101 |
<tr>
|
| 96 |
<td nowrap="nowrap">
|
102 |
<td nowrap="nowrap">
|
| 97 |
<span id="eUploadMessage">Upload a new file in this folder</span><br>
|
103 |
<span id="eUploadMessage">Upload a new file in this folder</span><br>
|
| 98 |
<table cellspacing="0" cellpadding="0" width="100%" border="0">
|
104 |
<table cellspacing="0" cellpadding="0" width="100%" border="0">
|
| 99 |
<tr>
|
105 |
<tr>
|