Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1688 Rev 1921
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
-
 
9
 * choice:
-
 
10
 *
-
 
11
 *  - GNU General Public License Version 2 or later (the "GPL")
7
 * 		http://www.opensource.org/licenses/lgpl-license.php
12
 *    http://www.gnu.org/licenses/gpl.html
8
 * 
13
 *
9
 * For further information visit:
14
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
10
 * 		http://www.fckeditor.net/
15
 *    http://www.gnu.org/licenses/lgpl.html
11
 * 
16
 *
12
 * "Support Open Source software. What about a donation today?"
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
-
 
18
 *    http://www.mozilla.org/MPL/MPL-1.1.html
13
 * 
19
 *
14
 * File Name: fckdebug.html
20
 * == END LICENSE ==
-
 
21
 *
15
 * 	This is the Debug window.
22
 * This is the Debug window.
16
 * 	It automatically popups if the Debug = true in the configuration file.
23
 * It automatically popups if the Debug = true in the configuration file.
17
 * 
-
 
18
 * File Authors:
-
 
19
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
-
 
20
-->
24
-->
21
<html xmlns="http://www.w3.org/1999/xhtml">
25
<html xmlns="http://www.w3.org/1999/xhtml">
22
<head>
26
<head>
23
	<title>FCKeditor Debug Window</title>
27
	<title>FCKeditor Debug Window</title>
24
	<meta name="robots" content="noindex, nofollow" />
28
	<meta name="robots" content="noindex, nofollow" />
Line 37... Line 41...
37
	oWindow.document.write( '<div id="divMsg"><\/div>' ) ;
41
	oWindow.document.write( '<div id="divMsg"><\/div>' ) ;
38
	oWindow.document.close() ;
42
	oWindow.document.close() ;
39
	oDiv	= oWindow.document.getElementById('divMsg') ;
43
	oDiv	= oWindow.document.getElementById('divMsg') ;
40
}
44
}
Line 41... Line 45...
41
 
45
 
42
function Output( message, color )
46
function Output( message, color, noParse )
-
 
47
{
-
 
48
	if ( !noParse && message != null && isNaN( message ) )
-
 
49
		message = message.replace(/</g, "&lt;") ;
43
{
50
 
44
	if ( color )
51
	if ( color )
45
		message = '<font color="' + color + '">' + message + '<\/font>' ;
52
		message = '<font color="' + color + '">' + message + '<\/font>' ;
46
		
53
 
47
	window.FCKMessages[ window.FCKMessages.length ] = message ;
54
	window.FCKMessages[ window.FCKMessages.length ] = message ;
48
	StartTimer() ;
55
	StartTimer() ;
Line -... Line 56...
-
 
56
}
-
 
57
 
-
 
58
function OutputObject( anyObject, color )
-
 
59
{
-
 
60
	var message ;
-
 
61
 
-
 
62
	if ( anyObject != null )
-
 
63
	{
-
 
64
		message = 'Properties of: ' + anyObject + '</b><blockquote>' ;
-
 
65
 
-
 
66
		for (var prop in anyObject)
-
 
67
		{
-
 
68
			try
-
 
69
			{
-
 
70
				var sVal = anyObject[ prop ] != null ? anyObject[ prop ] + '' : '[null]' ;
-
 
71
				message += '<b>' + prop + '</b> : ' + sVal.replace(/</g, '&lt;') + '<br>' ;
-
 
72
			}
-
 
73
			catch (e)
-
 
74
			{
-
 
75
				try
-
 
76
				{
-
 
77
					message += '<b>' + prop + '</b> : [' + typeof( anyObject[ prop ] ) + ']<br>' ;
-
 
78
				}
-
 
79
				catch (e)
-
 
80
				{
-
 
81
					message += '<b>' + prop + '</b> : [-error-]<br>' ;
-
 
82
				}
-
 
83
			}
-
 
84
		}
-
 
85
 
-
 
86
		message += '</blockquote><b>' ;
-
 
87
	} else
-
 
88
		message = 'OutputObject : Object is "null".' ;
-
 
89
 
-
 
90
	Output( message, color, true ) ;
49
}
91
}
50
 
92
 
51
function StartTimer()
93
function StartTimer()
52
{
94
{
Line 57... Line 99...
57
{
99
{
58
	if ( window.FCKMessages.length > 0 )
100
	if ( window.FCKMessages.length > 0 )
59
	{
101
	{
60
		// Get the first item in the queue
102
		// Get the first item in the queue
61
		var sMessage = window.FCKMessages[0] ;
103
		var sMessage = window.FCKMessages[0] ;
62
		
104
 
63
		// Removes the first item from the queue
105
		// Removes the first item from the queue
64
		var oTempArray = new Array() ;
106
		var oTempArray = new Array() ;
65
		for ( i = 1 ; i < window.FCKMessages.length ; i++ )
107
		for ( i = 1 ; i < window.FCKMessages.length ; i++ )
66
			oTempArray[ i - 1 ] = window.FCKMessages[ i ] ;
108
			oTempArray[ i - 1 ] = window.FCKMessages[ i ] ;
67
		window.FCKMessages = oTempArray ;
109
		window.FCKMessages = oTempArray ;
68
		
110
 
69
		var d = new Date() ;
111
		var d = new Date() ;
70
		var sTime = 
112
		var sTime =
71
			( d.getHours() + 100 + '' ).substr( 1,2 ) + ':' + 
113
			( d.getHours() + 100 + '' ).substr( 1,2 ) + ':' +
72
			( d.getMinutes() + 100 + '' ).substr( 1,2 ) + ':' + 
114
			( d.getMinutes() + 100 + '' ).substr( 1,2 ) + ':' +
73
			( d.getSeconds() + 100 + '' ).substr( 1,2 ) + ':' + 
115
			( d.getSeconds() + 100 + '' ).substr( 1,2 ) + ':' +
74
			( d.getMilliseconds() + 1000 + '' ).substr( 1,3 ) ;
116
			( d.getMilliseconds() + 1000 + '' ).substr( 1,3 ) ;
Line 75... Line 117...
75
 
117
 
76
		var oMsgDiv = oWindow.document.createElement( 'div' ) ;
118
		var oMsgDiv = oWindow.document.createElement( 'div' ) ;
77
		oMsgDiv.innerHTML = sTime + ': <b>' + sMessage + '<\/b>' ;
119
		oMsgDiv.innerHTML = sTime + ': <b>' + sMessage + '<\/b>' ;
Line 100... Line 142...
100
				</table>
142
				</table>
101
			</td>
143
			</td>
102
		</tr>
144
		</tr>
103
		<tr style="height: 100%">
145
		<tr style="height: 100%">
104
			<td style="border: #696969 1px solid">
146
			<td style="border: #696969 1px solid">
105
				<iframe id="xOutput" width="100%" height="100%" scrolling="auto" src="fckblank.html"
147
				<iframe id="xOutput" width="100%" height="100%" scrolling="auto" src="javascript:void(0)"
106
					frameborder="0"></iframe>
148
					frameborder="0"></iframe>
107
			</td>
149
			</td>
108
		</tr>
150
		</tr>
109
	</table>
151
	</table>
110
</body>
152
</body>