Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1688 Rev 1921
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: fck_docprops.html
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
15
 * 	Link dialog window.
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
 * Link dialog window.
19
-->
23
-->
20
<html xmlns="http://www.w3.org/1999/xhtml">
24
<html xmlns="http://www.w3.org/1999/xhtml">
21
<head>
25
<head>
22
	<title></title>
26
	<title></title>
23
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
27
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
24
	<meta content="noindex, nofollow" name="robots" />
28
	<meta content="noindex, nofollow" name="robots" />
25
	<script src="common/fck_dialog_common.js" type="text/javascript"></script>
29
	<script src="common/fck_dialog_common.js" type="text/javascript"></script>
26
	<script type="text/javascript">
30
	<script type="text/javascript">
27
 
31
 
28
var oEditor		= window.parent.InnerDialogLoaded() ;
32
var oEditor		= window.parent.InnerDialogLoaded() ;
29
var FCK			= oEditor.FCK ;
33
var FCK			= oEditor.FCK ;
30
var FCKLang		= oEditor.FCKLang ;
34
var FCKLang		= oEditor.FCKLang ;
31
var FCKConfig	= oEditor.FCKConfig ;
35
var FCKConfig	= oEditor.FCKConfig ;
32
 
36
 
33
//#### Dialog Tabs
37
//#### Dialog Tabs
34
 
38
 
35
// Set the dialog tabs.
39
// Set the dialog tabs.
36
window.parent.AddTab( 'General'		, FCKLang.DlgDocGeneralTab ) ;
40
window.parent.AddTab( 'General'		, FCKLang.DlgDocGeneralTab ) ;
37
window.parent.AddTab( 'Background'	, FCKLang.DlgDocBackTab ) ;
41
window.parent.AddTab( 'Background'	, FCKLang.DlgDocBackTab ) ;
38
window.parent.AddTab( 'Colors'		, FCKLang.DlgDocColorsTab ) ;
42
window.parent.AddTab( 'Colors'		, FCKLang.DlgDocColorsTab ) ;
39
window.parent.AddTab( 'Meta'		, FCKLang.DlgDocMetaTab ) ;
43
window.parent.AddTab( 'Meta'		, FCKLang.DlgDocMetaTab ) ;
40
 
44
 
41
// Function called when a dialog tag is selected.
45
// Function called when a dialog tag is selected.
42
function OnDialogTabChange( tabCode )
46
function OnDialogTabChange( tabCode )
43
{
47
{
44
	ShowE( 'divGeneral'		, ( tabCode == 'General' ) ) ;
48
	ShowE( 'divGeneral'		, ( tabCode == 'General' ) ) ;
45
	ShowE( 'divBackground'	, ( tabCode == 'Background' ) ) ;
49
	ShowE( 'divBackground'	, ( tabCode == 'Background' ) ) ;
46
	ShowE( 'divColors'		, ( tabCode == 'Colors' ) ) ;
50
	ShowE( 'divColors'		, ( tabCode == 'Colors' ) ) ;
47
	ShowE( 'divMeta'		, ( tabCode == 'Meta' ) ) ;
51
	ShowE( 'divMeta'		, ( tabCode == 'Meta' ) ) ;
48
 
52
 
49
	ShowE( 'ePreview'		, ( tabCode == 'Background' || tabCode == 'Colors' ) ) ;
53
	ShowE( 'ePreview'		, ( tabCode == 'Background' || tabCode == 'Colors' ) ) ;
50
}
54
}
51
 
55
 
52
//#### Get Base elements from the document: BEGIN
56
//#### Get Base elements from the document: BEGIN
53
 
57
 
54
// The HTML element of the document.
58
// The HTML element of the document.
55
var oHTML = FCK.EditorDocument.getElementsByTagName('html')[0] ;
59
var oHTML = FCK.EditorDocument.getElementsByTagName('html')[0] ;
56
 
60
 
57
// The HEAD element of the document.
61
// The HEAD element of the document.
58
var oHead = oHTML.getElementsByTagName('head')[0] ;
62
var oHead = oHTML.getElementsByTagName('head')[0] ;
59
 
63
 
60
var oBody = FCK.EditorDocument.body ;
64
var oBody = FCK.EditorDocument.body ;
61
 
65
 
62
// This object contains all META tags defined in the document.
66
// This object contains all META tags defined in the document.
63
var oMetaTags = new Object() ;
67
var oMetaTags = new Object() ;
64
 
68
 
65
// Get all META tags defined in the document.
69
// Get all META tags defined in the document.
66
var aMetas = oHead.getElementsByTagName('meta') ;
70
AppendMetaCollection( oMetaTags, oHead.getElementsByTagName('meta') ) ;
-
 
71
AppendMetaCollection( oMetaTags, oHead.getElementsByTagName('fck:meta') ) ;
67
 
72
 
68
// Loop throw all METAs and put it in the HashTable.
-
 
69
for ( var i = 0 ; i < aMetas.length ; i++ )
73
function AppendMetaCollection( targetObject, metaCollection )
70
{
74
{
71
	// Try to get the "name" attribute.
-
 
72
	var sName = GetAttribute( aMetas[i], 'name', GetAttribute( aMetas[i], '___fcktoreplace:name', '' ) ) ;
-
 
73
 
75
	// Loop throw all METAs and put it in the HashTable.
74
	// If no "name", try with the "http-equiv" attribute.
-
 
75
	if ( sName.length == 0 )
76
	for ( var i = 0 ; i < metaCollection.length ; i++ )
-
 
77
	{
-
 
78
		// Try to get the "name" attribute.
-
 
79
		var sName = GetAttribute( metaCollection[i], 'name', GetAttribute( metaCollection[i], '___fcktoreplace:name', '' ) ) ;
-
 
80
 
76
	{
81
		// If no "name", try with the "http-equiv" attribute.
77
		if ( document.all )
82
		if ( sName.length == 0 )
-
 
83
		{
-
 
84
			if ( oEditor.FCKBrowserInfo.IsIE )
78
		{
85
			{
79
			// Get the http-equiv value from the outerHTML.
86
				// Get the http-equiv value from the outerHTML.
80
			var oHttpEquivMatch = aMetas[i].outerHTML.match( oEditor.FCKRegexLib.MetaHttpEquiv ) ;
87
				var oHttpEquivMatch = metaCollection[i].outerHTML.match( oEditor.FCKRegexLib.MetaHttpEquiv ) ;
81
			if ( oHttpEquivMatch )
88
				if ( oHttpEquivMatch )
-
 
89
					sName = oHttpEquivMatch[1] ;
-
 
90
			}
-
 
91
			else
82
				sName = oHttpEquivMatch[1] ;
92
				sName = GetAttribute( metaCollection[i], 'http-equiv', '' ) ;
83
		}
-
 
84
		else
-
 
85
			sName = GetAttribute( aMetas[i], 'http-equiv', '' ) ;
-
 
86
	}
93
		}
87
 
94
 
-
 
95
		if ( sName.length > 0 )
88
	if ( sName.length > 0 )
96
			targetObject[ sName.toLowerCase() ] = metaCollection[i] ;
89
		oMetaTags[ sName.toLowerCase() ] = aMetas[i] ;
97
	}
90
}
98
}
91
 
99
 
92
//#### END
100
//#### END
93
 
101
 
94
// Set a META tag in the document.
102
// Set a META tag in the document.
95
function SetMetadata( name, content, isHttp )
103
function SetMetadata( name, content, isHttp )
96
{
104
{
97
	if ( content.length == 0 )
105
	if ( content.length == 0 )
98
	{
106
	{
99
		RemoveMetadata( name ) ;
107
		RemoveMetadata( name ) ;
100
		return ;
108
		return ;
101
	}
109
	}
102
 
110
 
103
	var oMeta = oMetaTags[ name.toLowerCase() ] ;
111
	var oMeta = oMetaTags[ name.toLowerCase() ] ;
104
 
112
 
105
	if ( !oMeta )
113
	if ( !oMeta )
106
	{
114
	{
107
		oMeta = oHead.appendChild( FCK.EditorDocument.createElement('META') ) ;
115
		oMeta = oHead.appendChild( FCK.EditorDocument.createElement('META') ) ;
108
 
116
 
109
		if ( isHttp )
117
		if ( isHttp )
110
			SetAttribute( oMeta, 'http-equiv', name ) ;
118
			SetAttribute( oMeta, 'http-equiv', name ) ;
111
		else
119
		else
112
		{
120
		{
113
			// On IE, it is not possible to set the "name" attribute of the META tag.
121
			// On IE, it is not possible to set the "name" attribute of the META tag.
114
			// So a temporary attribute is used and it is replaced when getting the
122
			// So a temporary attribute is used and it is replaced when getting the
115
			// editor's HTML/XHTML value. This is sad, I know :(
123
			// editor's HTML/XHTML value. This is sad, I know :(
116
			if ( document.all )
124
			if ( oEditor.FCKBrowserInfo.IsIE )
117
				SetAttribute( oMeta, '___fcktoreplace:name', name ) ;
125
				SetAttribute( oMeta, '___fcktoreplace:name', name ) ;
118
			else
126
			else
119
				SetAttribute( oMeta, 'name', name ) ;
127
				SetAttribute( oMeta, 'name', name ) ;
120
		}
128
		}
121
 
129
 
122
		oMetaTags[ name.toLowerCase() ] = oMeta ;
130
		oMetaTags[ name.toLowerCase() ] = oMeta ;
123
	}
131
	}
-
 
132
 
124
 
133
	SetAttribute( oMeta, 'content', content ) ;
125
	oMeta.content = content ;
134
//	oMeta.content = content ;
126
}
135
}
127
 
136
 
128
function RemoveMetadata( name )
137
function RemoveMetadata( name )
129
{
138
{
130
	var oMeta = oMetaTags[ name.toLowerCase() ] ;
139
	var oMeta = oMetaTags[ name.toLowerCase() ] ;
131
 
140
 
132
	if ( oMeta && oMeta != null )
141
	if ( oMeta && oMeta != null )
133
	{
142
	{
134
		oMeta.parentNode.removeChild( oMeta ) ;
143
		oMeta.parentNode.removeChild( oMeta ) ;
135
		oMetaTags[ name.toLowerCase() ] = null ;
144
		oMetaTags[ name.toLowerCase() ] = null ;
136
	}
145
	}
137
}
146
}
138
 
147
 
139
function GetMetadata( name )
148
function GetMetadata( name )
140
{
149
{
141
	var oMeta = oMetaTags[ name.toLowerCase() ] ;
150
	var oMeta = oMetaTags[ name.toLowerCase() ] ;
142
 
151
 
143
	if ( oMeta && oMeta != null )
152
	if ( oMeta && oMeta != null )
144
		return oMeta.content ;
153
		return oMeta.getAttribute( 'content', 2 ) ;
145
	else
154
	else
146
		return '' ;
155
		return '' ;
147
}
156
}
148
 
157
 
149
window.onload = function ()
158
window.onload = function ()
150
{
159
{
151
	// Show/Hide the "Browse Server" button.
160
	// Show/Hide the "Browse Server" button.
152
	GetE('tdBrowse').style.display = oEditor.FCKConfig.ImageBrowser ? "" : "none";
161
	GetE('tdBrowse').style.display = oEditor.FCKConfig.ImageBrowser ? "" : "none";
153
 
162
 
154
	// First of all, translate the dialog box texts
163
	// First of all, translate the dialog box texts
155
	oEditor.FCKLanguageManager.TranslatePage( document ) ;
164
	oEditor.FCKLanguageManager.TranslatePage( document ) ;
156
 
165
 
157
	FillFields() ;
166
	FillFields() ;
158
 
167
 
159
	UpdatePreview() ;
168
	UpdatePreview() ;
160
 
169
 
161
	// Show the "Ok" button.
170
	// Show the "Ok" button.
162
	window.parent.SetOkButton( true ) ;
171
	window.parent.SetOkButton( true ) ;
163
 
172
 
164
	window.parent.SetAutoSize( true ) ;
173
	window.parent.SetAutoSize( true ) ;
165
}
174
}
166
 
175
 
167
function FillFields()
176
function FillFields()
168
{
177
{
169
	// ### General Info
178
	// ### General Info
170
	GetE('txtPageTitle').value = FCK.EditorDocument.title ;
179
	GetE('txtPageTitle').value = FCK.EditorDocument.title ;
171
 
180
 
172
	GetE('selDirection').value	= GetAttribute( oHTML, 'dir', '' ) ;
181
	GetE('selDirection').value	= GetAttribute( oHTML, 'dir', '' ) ;
173
	GetE('txtLang').value		= GetAttribute( oHTML, 'xml:lang', GetAttribute( oHTML, 'lang', '' ) ) ;	// "xml:lang" takes precedence to "lang".
182
	GetE('txtLang').value		= GetAttribute( oHTML, 'xml:lang', GetAttribute( oHTML, 'lang', '' ) ) ;	// "xml:lang" takes precedence to "lang".
174
 
183
 
175
	// Character Set Encoding.
184
	// Character Set Encoding.
176
//	if ( document.all )
185
//	if ( oEditor.FCKBrowserInfo.IsIE )
177
//		var sCharSet = FCK.EditorDocument.charset ;
186
//		var sCharSet = FCK.EditorDocument.charset ;
178
//	else
187
//	else
179
		var sCharSet = GetMetadata( 'Content-Type' ) ;
188
		var sCharSet = GetMetadata( 'Content-Type' ) ;
180
 
189
 
181
	if ( sCharSet != null && sCharSet.length > 0 )
190
	if ( sCharSet != null && sCharSet.length > 0 )
182
	{
191
	{
183
//		if ( !document.all )
192
//		if ( !oEditor.FCKBrowserInfo.IsIE )
184
			sCharSet = sCharSet.match( /[^=]*$/ ) ;
193
			sCharSet = sCharSet.match( /[^=]*$/ ) ;
185
 
194
 
186
		GetE('selCharSet').value = sCharSet ;
195
		GetE('selCharSet').value = sCharSet ;
187
 
196
 
188
		if ( GetE('selCharSet').selectedIndex == -1 )
197
		if ( GetE('selCharSet').selectedIndex == -1 )
189
		{
198
		{
190
			GetE('selCharSet').value = '...' ;
199
			GetE('selCharSet').value = '...' ;
191
			GetE('txtCustomCharSet').value = sCharSet ;
200
			GetE('txtCustomCharSet').value = sCharSet ;
192
 
201
 
193
			CheckOther( GetE('selCharSet'), 'txtCustomCharSet' ) ;
202
			CheckOther( GetE('selCharSet'), 'txtCustomCharSet' ) ;
194
		}
203
		}
195
	}
204
	}
196
 
205
 
197
	// Document Type.
206
	// Document Type.
198
	if ( FCK.DocTypeDeclaration && FCK.DocTypeDeclaration.length > 0 )
207
	if ( FCK.DocTypeDeclaration && FCK.DocTypeDeclaration.length > 0 )
199
	{
208
	{
200
		GetE('selDocType').value = FCK.DocTypeDeclaration ;
209
		GetE('selDocType').value = FCK.DocTypeDeclaration ;
201
 
210
 
202
		if ( GetE('selDocType').selectedIndex == -1 )
211
		if ( GetE('selDocType').selectedIndex == -1 )
203
		{
212
		{
204
			GetE('selDocType').value = '...' ;
213
			GetE('selDocType').value = '...' ;
205
			GetE('txtDocType').value = FCK.DocTypeDeclaration ;
214
			GetE('txtDocType').value = FCK.DocTypeDeclaration ;
206
 
215
 
207
			CheckOther( GetE('selDocType'), 'txtDocType' ) ;
216
			CheckOther( GetE('selDocType'), 'txtDocType' ) ;
208
		}
217
		}
209
	}
218
	}
210
 
219
 
211
	// Document Type.
220
	// Document Type.
212
	GetE('chkIncXHTMLDecl').checked = ( FCK.XmlDeclaration && FCK.XmlDeclaration.length > 0 ) ;
221
	GetE('chkIncXHTMLDecl').checked = ( FCK.XmlDeclaration && FCK.XmlDeclaration.length > 0 ) ;
213
 
222
 
214
	// ### Background
223
	// ### Background
215
	GetE('txtBackColor').value = GetAttribute( oBody, 'bgColor'		, '' ) ;
224
	GetE('txtBackColor').value = GetAttribute( oBody, 'bgColor'		, '' ) ;
216
	GetE('txtBackImage').value = GetAttribute( oBody, 'background'	, '' ) ;
225
	GetE('txtBackImage').value = GetAttribute( oBody, 'background'	, '' ) ;
217
	GetE('chkBackNoScroll').checked = ( GetAttribute( oBody, 'bgProperties', '' ).toLowerCase() == 'fixed' ) ;
226
	GetE('chkBackNoScroll').checked = ( GetAttribute( oBody, 'bgProperties', '' ).toLowerCase() == 'fixed' ) ;
218
 
227
 
219
	// ### Colors
228
	// ### Colors
220
	GetE('txtColorText').value		= GetAttribute( oBody, 'text'	, '' ) ;
229
	GetE('txtColorText').value		= GetAttribute( oBody, 'text'	, '' ) ;
221
	GetE('txtColorLink').value		= GetAttribute( oBody, 'link'	, '' ) ;
230
	GetE('txtColorLink').value		= GetAttribute( oBody, 'link'	, '' ) ;
222
	GetE('txtColorVisited').value	= GetAttribute( oBody, 'vLink'	, '' ) ;
231
	GetE('txtColorVisited').value	= GetAttribute( oBody, 'vLink'	, '' ) ;
223
	GetE('txtColorActive').value	= GetAttribute( oBody, 'aLink'	, '' ) ;
232
	GetE('txtColorActive').value	= GetAttribute( oBody, 'aLink'	, '' ) ;
224
 
233
 
225
	// ### Margins
234
	// ### Margins
226
	GetE('txtMarginTop').value		= GetAttribute( oBody, 'topMargin'		, '' ) ;
235
	GetE('txtMarginTop').value		= GetAttribute( oBody, 'topMargin'		, '' ) ;
227
	GetE('txtMarginLeft').value		= GetAttribute( oBody, 'leftMargin'		, '' ) ;
236
	GetE('txtMarginLeft').value		= GetAttribute( oBody, 'leftMargin'		, '' ) ;
228
	GetE('txtMarginRight').value	= GetAttribute( oBody, 'rightMargin'	, '' ) ;
237
	GetE('txtMarginRight').value	= GetAttribute( oBody, 'rightMargin'	, '' ) ;
229
	GetE('txtMarginBottom').value	= GetAttribute( oBody, 'bottomMargin'	, '' ) ;
238
	GetE('txtMarginBottom').value	= GetAttribute( oBody, 'bottomMargin'	, '' ) ;
230
 
239
 
231
	// ### Meta Data
240
	// ### Meta Data
232
	GetE('txtMetaKeywords').value		= GetMetadata( 'keywords' ) ;
241
	GetE('txtMetaKeywords').value		= GetMetadata( 'keywords' ) ;
233
	GetE('txtMetaDescription').value	= GetMetadata( 'description' ) ;
242
	GetE('txtMetaDescription').value	= GetMetadata( 'description' ) ;
234
	GetE('txtMetaAuthor').value			= GetMetadata( 'author' ) ;
243
	GetE('txtMetaAuthor').value			= GetMetadata( 'author' ) ;
235
	GetE('txtMetaCopyright').value		= GetMetadata( 'copyright' ) ;
244
	GetE('txtMetaCopyright').value		= GetMetadata( 'copyright' ) ;
236
}
245
}
237
 
246
 
238
// Called when the "Ok" button is clicked.
247
// Called when the "Ok" button is clicked.
239
function Ok()
248
function Ok()
240
{
249
{
241
	// ### General Info
250
	// ### General Info
242
	FCK.EditorDocument.title = GetE('txtPageTitle').value ;
251
	FCK.EditorDocument.title = GetE('txtPageTitle').value ;
243
 
252
 
244
	var oHTML = FCK.EditorDocument.getElementsByTagName('html')[0] ;
253
	var oHTML = FCK.EditorDocument.getElementsByTagName('html')[0] ;
245
 
254
 
246
	SetAttribute( oHTML, 'dir'		, GetE('selDirection').value ) ;
255
	SetAttribute( oHTML, 'dir'		, GetE('selDirection').value ) ;
247
	SetAttribute( oHTML, 'lang'		, GetE('txtLang').value ) ;
256
	SetAttribute( oHTML, 'lang'		, GetE('txtLang').value ) ;
248
	SetAttribute( oHTML, 'xml:lang'	, GetE('txtLang').value ) ;
257
	SetAttribute( oHTML, 'xml:lang'	, GetE('txtLang').value ) ;
249
 
258
 
250
	// Character Set Enconding.
259
	// Character Set Enconding.
251
	var sCharSet = GetE('selCharSet').value ;
260
	var sCharSet = GetE('selCharSet').value ;
252
	if ( sCharSet == '...' )
261
	if ( sCharSet == '...' )
253
		sCharSet = GetE('txtCustomCharSet').value ;
262
		sCharSet = GetE('txtCustomCharSet').value ;
254
 
263
 
255
	if ( sCharSet.length > 0 )
264
	if ( sCharSet.length > 0 )
256
			sCharSet = 'text/html; charset=' + sCharSet ;
265
			sCharSet = 'text/html; charset=' + sCharSet ;
257
 
266
 
258
//	if ( document.all )
267
//	if ( oEditor.FCKBrowserInfo.IsIE )
259
//		FCK.EditorDocument.charset = sCharSet ;
268
//		FCK.EditorDocument.charset = sCharSet ;
260
//	else
269
//	else
261
		SetMetadata( 'Content-Type', sCharSet, true ) ;
270
		SetMetadata( 'Content-Type', sCharSet, true ) ;
262
 
271
 
263
	// Document Type
272
	// Document Type
264
	var sDocType = GetE('selDocType').value ;
273
	var sDocType = GetE('selDocType').value ;
265
	if ( sDocType == '...' )
274
	if ( sDocType == '...' )
266
		sDocType = GetE('txtDocType').value ;
275
		sDocType = GetE('txtDocType').value ;
267
 
276
 
268
	FCK.DocTypeDeclaration = sDocType ;
277
	FCK.DocTypeDeclaration = sDocType ;
269
 
278
 
270
	// XHTML Declarations.
279
	// XHTML Declarations.
271
	if ( GetE('chkIncXHTMLDecl').checked )
280
	if ( GetE('chkIncXHTMLDecl').checked )
272
	{
281
	{
273
		if ( sCharSet.length == 0 )
282
		if ( sCharSet.length == 0 )
274
			sCharSet = 'utf-8' ;
283
			sCharSet = 'utf-8' ;
275
 
284
 
276
		FCK.XmlDeclaration = '<?xml version="1.0" encoding="' + sCharSet + '"?>' ;
285
		FCK.XmlDeclaration = '<' + '?xml version="1.0" encoding="' + sCharSet + '"?>' ;
277
 
286
 
278
		SetAttribute( oHTML, 'xmlns', 'http://www.w3.org/1999/xhtml' ) ;
287
		SetAttribute( oHTML, 'xmlns', 'http://www.w3.org/1999/xhtml' ) ;
279
	}
288
	}
280
	else
289
	else
281
	{
290
	{
282
		FCK.XmlDeclaration = null ;
291
		FCK.XmlDeclaration = null ;
283
		oHTML.removeAttribute( 'xmlns', 0 ) ;
292
		oHTML.removeAttribute( 'xmlns', 0 ) ;
284
	}
293
	}
285
 
294
 
286
	// ### Background
295
	// ### Background
287
	SetAttribute( oBody, 'bgcolor'		, GetE('txtBackColor').value ) ;
296
	SetAttribute( oBody, 'bgcolor'		, GetE('txtBackColor').value ) ;
288
	SetAttribute( oBody, 'background'	, GetE('txtBackImage').value ) ;
297
	SetAttribute( oBody, 'background'	, GetE('txtBackImage').value ) ;
289
	SetAttribute( oBody, 'bgproperties'	, GetE('chkBackNoScroll').checked ? 'fixed' : '' ) ;
298
	SetAttribute( oBody, 'bgproperties'	, GetE('chkBackNoScroll').checked ? 'fixed' : '' ) ;
290
 
299
 
291
	// ### Colors
300
	// ### Colors
292
	SetAttribute( oBody, 'text'	, GetE('txtColorText').value ) ;
301
	SetAttribute( oBody, 'text'	, GetE('txtColorText').value ) ;
293
	SetAttribute( oBody, 'link'	, GetE('txtColorLink').value ) ;
302
	SetAttribute( oBody, 'link'	, GetE('txtColorLink').value ) ;
294
	SetAttribute( oBody, 'vlink', GetE('txtColorVisited').value ) ;
303
	SetAttribute( oBody, 'vlink', GetE('txtColorVisited').value ) ;
295
	SetAttribute( oBody, 'alink', GetE('txtColorActive').value ) ;
304
	SetAttribute( oBody, 'alink', GetE('txtColorActive').value ) ;
296
 
305
 
297
	// ### Margins
306
	// ### Margins
298
	SetAttribute( oBody, 'topmargin'	, GetE('txtMarginTop').value ) ;
307
	SetAttribute( oBody, 'topmargin'	, GetE('txtMarginTop').value ) ;
299
	SetAttribute( oBody, 'leftmargin'	, GetE('txtMarginLeft').value ) ;
308
	SetAttribute( oBody, 'leftmargin'	, GetE('txtMarginLeft').value ) ;
300
	SetAttribute( oBody, 'rightmargin'	, GetE('txtMarginRight').value ) ;
309
	SetAttribute( oBody, 'rightmargin'	, GetE('txtMarginRight').value ) ;
301
	SetAttribute( oBody, 'bottommargin'	, GetE('txtMarginBottom').value ) ;
310
	SetAttribute( oBody, 'bottommargin'	, GetE('txtMarginBottom').value ) ;
302
 
311
 
303
	// ### Meta data
312
	// ### Meta data
304
	SetMetadata( 'keywords'		, GetE('txtMetaKeywords').value ) ;
313
	SetMetadata( 'keywords'		, GetE('txtMetaKeywords').value ) ;
305
	SetMetadata( 'description'	, GetE('txtMetaDescription').value ) ;
314
	SetMetadata( 'description'	, GetE('txtMetaDescription').value ) ;
306
	SetMetadata( 'author'		, GetE('txtMetaAuthor').value ) ;
315
	SetMetadata( 'author'		, GetE('txtMetaAuthor').value ) ;
307
	SetMetadata( 'copyright'	, GetE('txtMetaCopyright').value ) ;
316
	SetMetadata( 'copyright'	, GetE('txtMetaCopyright').value ) ;
308
 
317
 
309
	return true ;
318
	return true ;
310
}
319
}
311
 
320
 
312
var bPreviewIsLoaded = false ;
321
var bPreviewIsLoaded = false ;
313
var oPreviewWindow ;
322
var oPreviewWindow ;
314
var oPreviewBody ;
323
var oPreviewBody ;
315
 
324
 
316
// Called by the Preview page when loaded.
325
// Called by the Preview page when loaded.
317
function OnPreviewLoad( previewWindow, previewBody )
326
function OnPreviewLoad( previewWindow, previewBody )
318
{
327
{
319
	oPreviewWindow	= previewWindow ;
328
	oPreviewWindow	= previewWindow ;
320
	oPreviewBody	= previewBody ;
329
	oPreviewBody	= previewBody ;
321
 
330
 
322
	bPreviewIsLoaded = true ;
331
	bPreviewIsLoaded = true ;
323
	UpdatePreview() ;
332
	UpdatePreview() ;
324
}
333
}
325
 
334
 
326
function UpdatePreview()
335
function UpdatePreview()
327
{
336
{
328
	if ( !bPreviewIsLoaded )
337
	if ( !bPreviewIsLoaded )
329
		return ;
338
		return ;
330
 
339
 
331
	// ### Background
340
	// ### Background
332
	SetAttribute( oPreviewBody, 'bgcolor'		, GetE('txtBackColor').value ) ;
341
	SetAttribute( oPreviewBody, 'bgcolor'		, GetE('txtBackColor').value ) ;
333
	SetAttribute( oPreviewBody, 'background'	, GetE('txtBackImage').value ) ;
342
	SetAttribute( oPreviewBody, 'background'	, GetE('txtBackImage').value ) ;
334
	SetAttribute( oPreviewBody, 'bgproperties'	, GetE('chkBackNoScroll').checked ? 'fixed' : '' ) ;
343
	SetAttribute( oPreviewBody, 'bgproperties'	, GetE('chkBackNoScroll').checked ? 'fixed' : '' ) ;
335
 
344
 
336
	// ### Colors
345
	// ### Colors
337
	SetAttribute( oPreviewBody, 'text', GetE('txtColorText').value ) ;
346
	SetAttribute( oPreviewBody, 'text', GetE('txtColorText').value ) ;
338
 
347
 
339
	oPreviewWindow.SetLinkColor( GetE('txtColorLink').value ) ;
348
	oPreviewWindow.SetLinkColor( GetE('txtColorLink').value ) ;
340
	oPreviewWindow.SetVisitedColor( GetE('txtColorVisited').value ) ;
349
	oPreviewWindow.SetVisitedColor( GetE('txtColorVisited').value ) ;
341
	oPreviewWindow.SetActiveColor( GetE('txtColorActive').value ) ;
350
	oPreviewWindow.SetActiveColor( GetE('txtColorActive').value ) ;
342
}
351
}
343
 
352
 
344
function CheckOther( combo, txtField )
353
function CheckOther( combo, txtField )
345
{
354
{
346
	var bNotOther = ( combo.value != '...' ) ;
355
	var bNotOther = ( combo.value != '...' ) ;
347
 
356
 
348
	GetE(txtField).style.backgroundColor = ( bNotOther ? '#cccccc' : '' ) ;
357
	GetE(txtField).style.backgroundColor = ( bNotOther ? '#cccccc' : '' ) ;
349
	GetE(txtField).disabled = bNotOther ;
358
	GetE(txtField).disabled = bNotOther ;
350
}
359
}
351
 
360
 
352
function SetColor( inputId, color ) 
361
function SetColor( inputId, color )
353
{
362
{
354
	GetE( inputId ).value = color + '' ; 
363
	GetE( inputId ).value = color + '' ;
355
	UpdatePreview() ;
364
	UpdatePreview() ;
356
}
365
}
357
 
366
 
358
function SelectBackColor( color )		{ SetColor('txtBackColor', color ) ; }
367
function SelectBackColor( color )		{ SetColor('txtBackColor', color ) ; }
359
function SelectColorText( color )		{ SetColor('txtColorText', color ) ; }
368
function SelectColorText( color )		{ SetColor('txtColorText', color ) ; }
360
function SelectColorLink( color )		{ SetColor('txtColorLink', color ) ; }
369
function SelectColorLink( color )		{ SetColor('txtColorLink', color ) ; }
361
function SelectColorVisited( color )	{ SetColor('txtColorVisited', color ) ; }
370
function SelectColorVisited( color )	{ SetColor('txtColorVisited', color ) ; }
362
function SelectColorActive( color )		{ SetColor('txtColorActive', color ) ; }
371
function SelectColorActive( color )		{ SetColor('txtColorActive', color ) ; }
363
 
372
 
364
function SelectColor( wich )
373
function SelectColor( wich )
365
{
374
{
366
	switch ( wich )
375
	switch ( wich )
367
	{
376
	{
368
		case 'Back'			: oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 400, 330, SelectBackColor, window ) ; return ;
377
		case 'Back'			: oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 410, 320, SelectBackColor, window ) ; return ;
369
		case 'ColorText'	: oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 400, 330, SelectColorText, window ) ; return ;
378
		case 'ColorText'	: oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 410, 320, SelectColorText, window ) ; return ;
370
		case 'ColorLink'	: oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 400, 330, SelectColorLink, window ) ; return ;
379
		case 'ColorLink'	: oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 410, 320, SelectColorLink, window ) ; return ;
371
		case 'ColorVisited'	: oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 400, 330, SelectColorVisited, window ) ; return ;
380
		case 'ColorVisited'	: oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 410, 320, SelectColorVisited, window ) ; return ;
372
		case 'ColorActive'	: oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 400, 330, SelectColorActive, window ) ; return ;
381
		case 'ColorActive'	: oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 410, 320, SelectColorActive, window ) ; return ;
373
	}
382
	}
374
}
383
}
375
 
384
 
376
function BrowseServerBack()
385
function BrowseServerBack()
377
{
386
{
378
	OpenFileBrowser( FCKConfig.ImageBrowserURL, FCKConfig.ImageBrowserWindowWidth, FCKConfig.ImageBrowserWindowHeight ) ;
387
	OpenFileBrowser( FCKConfig.ImageBrowserURL, FCKConfig.ImageBrowserWindowWidth, FCKConfig.ImageBrowserWindowHeight ) ;
379
}
388
}
380
 
389
 
381
function SetUrl( url )
390
function SetUrl( url )
382
{
391
{
383
	GetE('txtBackImage').value = url ;
392
	GetE('txtBackImage').value = url ;
384
	UpdatePreview() ;
393
	UpdatePreview() ;
385
}
394
}
386
 
395
 
387
	</script>
396
	</script>
388
</head>
397
</head>
389
<body style="overflow: hidden">
398
<body style="overflow: hidden">
390
	<table cellspacing="0" cellpadding="0" width="100%" border="0" style="height: 100%">
399
	<table cellspacing="0" cellpadding="0" width="100%" border="0" style="height: 100%">
391
		<tr>
400
		<tr>
392
			<td valign="top" style="height: 100%">
401
			<td valign="top" style="height: 100%">
393
				<div id="divGeneral">
402
				<div id="divGeneral">
394
					<span fcklang="DlgDocPageTitle">Page Title</span><br />
403
					<span fcklang="DlgDocPageTitle">Page Title</span><br />
395
					<input id="txtPageTitle" style="width: 100%" type="text" />
404
					<input id="txtPageTitle" style="width: 100%" type="text" />
396
					<br />
405
					<br />
397
					<table cellspacing="0" cellpadding="0" border="0">
406
					<table cellspacing="0" cellpadding="0" border="0">
398
						<tr>
407
						<tr>
399
							<td>
408
							<td>
400
								<span fcklang="DlgDocLangDir">Language Direction</span><br />
409
								<span fcklang="DlgDocLangDir">Language Direction</span><br />
401
								<select id="selDirection">
410
								<select id="selDirection">
402
									<option value="" selected="selected"></option>
411
									<option value="" selected="selected"></option>
403
									<option value="ltr" fcklang="DlgDocLangDirLTR">Left to Right (LTR)</option>
412
									<option value="ltr" fcklang="DlgDocLangDirLTR">Left to Right (LTR)</option>
404
									<option value="rtl" fcklang="DlgDocLangDirRTL">Right to Left (RTL)</option>
413
									<option value="rtl" fcklang="DlgDocLangDirRTL">Right to Left (RTL)</option>
405
								</select>
414
								</select>
406
							</td>
415
							</td>
407
							<td>
416
							<td>
408
								&nbsp;&nbsp;&nbsp;</td>
417
								&nbsp;&nbsp;&nbsp;</td>
409
							<td>
418
							<td>
410
								<span fcklang="DlgDocLangCode">Language Code</span><br />
419
								<span fcklang="DlgDocLangCode">Language Code</span><br />
411
								<input id="txtLang" type="text" />
420
								<input id="txtLang" type="text" />
412
							</td>
421
							</td>
413
						</tr>
422
						</tr>
414
					</table>
423
					</table>
415
					<br />
424
					<br />
416
					<table cellspacing="0" cellpadding="0" width="100%" border="0">
425
					<table cellspacing="0" cellpadding="0" width="100%" border="0">
417
						<tr>
426
						<tr>
418
							<td style="white-space: nowrap">
427
							<td style="white-space: nowrap">
419
								<span fcklang="DlgDocCharSet">Character Set Encoding</span><br />
428
								<span fcklang="DlgDocCharSet">Character Set Encoding</span><br />
420
								<select id="selCharSet" onchange="CheckOther( this, 'txtCustomCharSet' );">
429
								<select id="selCharSet" onchange="CheckOther( this, 'txtCustomCharSet' );">
421
									<option value="" selected="selected"></option>
430
									<option value="" selected="selected"></option>
422
									<option value="us-ascii">ASCII</option>
431
									<option value="us-ascii">ASCII</option>
423
									<option fcklang="DlgDocCharSetCE" value="iso-8859-2">Central European</option>
432
									<option fcklang="DlgDocCharSetCE" value="iso-8859-2">Central European</option>
424
									<option fcklang="DlgDocCharSetCT" value="big5">Chinese Traditional (Big5)</option>
433
									<option fcklang="DlgDocCharSetCT" value="big5">Chinese Traditional (Big5)</option>
425
									<option fcklang="DlgDocCharSetCR" value="iso-8859-5">Cyrillic</option>
434
									<option fcklang="DlgDocCharSetCR" value="iso-8859-5">Cyrillic</option>
426
									<option fcklang="DlgDocCharSetGR" value="iso-8859-7">Greek</option>
435
									<option fcklang="DlgDocCharSetGR" value="iso-8859-7">Greek</option>
427
									<option fcklang="DlgDocCharSetJP" value="iso-2022-jp">Japanese</option>
436
									<option fcklang="DlgDocCharSetJP" value="iso-2022-jp">Japanese</option>
428
									<option fcklang="DlgDocCharSetKR" value="iso-2022-kr">Korean</option>
437
									<option fcklang="DlgDocCharSetKR" value="iso-2022-kr">Korean</option>
429
									<option fcklang="DlgDocCharSetTR" value="iso-8859-9">Turkish</option>
438
									<option fcklang="DlgDocCharSetTR" value="iso-8859-9">Turkish</option>
430
									<option fcklang="DlgDocCharSetUN" value="utf-8">Unicode (UTF-8)</option>
439
									<option fcklang="DlgDocCharSetUN" value="utf-8">Unicode (UTF-8)</option>
431
									<option fcklang="DlgDocCharSetWE" value="iso-8859-1">Western European</option>
440
									<option fcklang="DlgDocCharSetWE" value="iso-8859-1">Western European</option>
432
									<option fcklang="DlgOpOther" value="...">&lt;Other&gt;</option>
441
									<option fcklang="DlgOpOther" value="...">&lt;Other&gt;</option>
433
								</select>
442
								</select>
434
							</td>
443
							</td>
435
							<td>
444
							<td>
436
								&nbsp;&nbsp;&nbsp;</td>
445
								&nbsp;&nbsp;&nbsp;</td>
437
							<td width="100%">
446
							<td width="100%">
438
								<span fcklang="DlgDocCharSetOther">Other Character Set Encoding</span><br />
447
								<span fcklang="DlgDocCharSetOther">Other Character Set Encoding</span><br />
439
								<input id="txtCustomCharSet" style="width: 100%; background-color: #cccccc" disabled="disabled"
448
								<input id="txtCustomCharSet" style="width: 100%; background-color: #cccccc" disabled="disabled"
440
									type="text" />
449
									type="text" />
441
							</td>
450
							</td>
442
						</tr>
451
						</tr>
443
						<tr>
452
						<tr>
444
							<td colspan="3">
453
							<td colspan="3">
445
								&nbsp;</td>
454
								&nbsp;</td>
446
						</tr>
455
						</tr>
447
						<tr>
456
						<tr>
448
							<td nowrap="nowrap">
457
							<td nowrap="nowrap">
449
								<span fcklang="DlgDocDocType">Document Type Heading</span><br />
458
								<span fcklang="DlgDocDocType">Document Type Heading</span><br />
450
								<select id="selDocType" name="selDocType" onchange="CheckOther( this, 'txtDocType' );">
459
								<select id="selDocType" name="selDocType" onchange="CheckOther( this, 'txtDocType' );">
451
									<option value="" selected="selected"></option>
460
									<option value="" selected="selected"></option>
452
									<option value='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'>HTML
461
									<option value='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'>HTML
453
										4.01 Transitional</option>
462
										4.01 Transitional</option>
454
									<option value='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">'>
463
									<option value='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">'>
455
										HTML 4.01 Strict</option>
464
										HTML 4.01 Strict</option>
456
									<option value='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">'>
465
									<option value='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">'>
457
										HTML 4.01 Frameset</option>
466
										HTML 4.01 Frameset</option>
458
									<option value='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'>
467
									<option value='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'>
459
										XHTML 1.0 Transitional</option>
468
										XHTML 1.0 Transitional</option>
460
									<option value='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'>
469
									<option value='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'>
461
										XHTML 1.0 Strict</option>
470
										XHTML 1.0 Strict</option>
462
									<option value='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">'>
471
									<option value='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">'>
463
										XHTML 1.0 Frameset</option>
472
										XHTML 1.0 Frameset</option>
464
									<option value='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'>
473
									<option value='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'>
465
										XHTML 1.1</option>
474
										XHTML 1.1</option>
466
									<option value='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">'>HTML 3.2</option>
475
									<option value='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">'>HTML 3.2</option>
467
									<option value='<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">'>HTML 2.0</option>
476
									<option value='<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">'>HTML 2.0</option>
468
									<option value="..." fcklang="DlgOpOther">&lt;Other&gt;</option>
477
									<option value="..." fcklang="DlgOpOther">&lt;Other&gt;</option>
469
								</select>
478
								</select>
470
							</td>
479
							</td>
471
							<td>
480
							<td>
472
							</td>
481
							</td>
473
							<td width="100%">
482
							<td width="100%">
474
								<span fcklang="DlgDocDocTypeOther">Other Document Type Heading</span><br />
483
								<span fcklang="DlgDocDocTypeOther">Other Document Type Heading</span><br />
475
								<input id="txtDocType" style="width: 100%; background-color: #cccccc" disabled="disabled"
484
								<input id="txtDocType" style="width: 100%; background-color: #cccccc" disabled="disabled"
476
									type="text" />
485
									type="text" />
477
							</td>
486
							</td>
478
						</tr>
487
						</tr>
479
					</table>
488
					</table>
480
					<br />
489
					<br />
481
					<input id="chkIncXHTMLDecl" type="checkbox" />
490
					<input id="chkIncXHTMLDecl" type="checkbox" />
482
					<label for="chkIncXHTMLDecl" fcklang="DlgDocIncXHTML">
491
					<label for="chkIncXHTMLDecl" fcklang="DlgDocIncXHTML">
483
						Include XHTML Declarations</label>
492
						Include XHTML Declarations</label>
484
				</div>
493
				</div>
485
				<div id="divBackground" style="display: none">
494
				<div id="divBackground" style="display: none">
486
					<span fcklang="DlgDocBgColor">Background Color</span><br />
495
					<span fcklang="DlgDocBgColor">Background Color</span><br />
487
					<input id="txtBackColor" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" />&nbsp;<input
496
					<input id="txtBackColor" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" />&nbsp;<input
488
						id="btnSelBackColor" onclick="SelectColor( 'Back' )" type="button" value="Select..."
497
						id="btnSelBackColor" onclick="SelectColor( 'Back' )" type="button" value="Select..."
489
						fcklang="DlgCellBtnSelect" /><br />
498
						fcklang="DlgCellBtnSelect" /><br />
490
					<br />
499
					<br />
491
					<span fcklang="DlgDocBgImage">Background Image URL</span><br />
500
					<span fcklang="DlgDocBgImage">Background Image URL</span><br />
492
					<table cellspacing="0" cellpadding="0" width="100%" border="0">
501
					<table cellspacing="0" cellpadding="0" width="100%" border="0">
493
						<tr>
502
						<tr>
494
							<td width="100%">
503
							<td width="100%">
495
								<input id="txtBackImage" style="width: 100%" type="text" onchange="UpdatePreview();"
504
								<input id="txtBackImage" style="width: 100%" type="text" onchange="UpdatePreview();"
496
									onkeyup="UpdatePreview();" /></td>
505
									onkeyup="UpdatePreview();" /></td>
497
							<td id="tdBrowse" nowrap="nowrap">
506
							<td id="tdBrowse" nowrap="nowrap">
498
								&nbsp;<input id="btnBrowse" onclick="BrowseServerBack();" type="button" fcklang="DlgBtnBrowseServer"
507
								&nbsp;<input id="btnBrowse" onclick="BrowseServerBack();" type="button" fcklang="DlgBtnBrowseServer"
499
									value="Browse Server" /></td>
508
									value="Browse Server" /></td>
500
						</tr>
509
						</tr>
501
					</table>
510
					</table>
502
					<input id="chkBackNoScroll" type="checkbox" onclick="UpdatePreview();" />
511
					<input id="chkBackNoScroll" type="checkbox" onclick="UpdatePreview();" />
503
					<label for="chkBackNoScroll" fcklang="DlgDocBgNoScroll">
512
					<label for="chkBackNoScroll" fcklang="DlgDocBgNoScroll">
504
						Nonscrolling Background</label>
513
						Nonscrolling Background</label>
505
				</div>
514
				</div>
506
				<div id="divColors" style="display: none">
515
				<div id="divColors" style="display: none">
507
					<table cellspacing="0" cellpadding="0" width="100%" border="0">
516
					<table cellspacing="0" cellpadding="0" width="100%" border="0">
508
						<tr>
517
						<tr>
509
							<td>
518
							<td>
510
								<span fcklang="DlgDocCText">Text</span><br />
519
								<span fcklang="DlgDocCText">Text</span><br />
511
								<input id="txtColorText" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" /><input
520
								<input id="txtColorText" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" /><input
512
									onclick="SelectColor( 'ColorText' )" type="button" value="Select..." fcklang="DlgCellBtnSelect" />
521
									onclick="SelectColor( 'ColorText' )" type="button" value="Select..." fcklang="DlgCellBtnSelect" />
513
								<br />
522
								<br />
514
								<span fcklang="DlgDocCLink">Link</span><br />
523
								<span fcklang="DlgDocCLink">Link</span><br />
515
								<input id="txtColorLink" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" /><input
524
								<input id="txtColorLink" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" /><input
516
									onclick="SelectColor( 'ColorLink' )" type="button" value="Select..." fcklang="DlgCellBtnSelect" />
525
									onclick="SelectColor( 'ColorLink' )" type="button" value="Select..." fcklang="DlgCellBtnSelect" />
517
								<br />
526
								<br />
518
								<span fcklang="DlgDocCVisited">Visited Link</span><br />
527
								<span fcklang="DlgDocCVisited">Visited Link</span><br />
519
								<input id="txtColorVisited" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" /><input
528
								<input id="txtColorVisited" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" /><input
520
									onclick="SelectColor( 'ColorVisited' )" type="button" value="Select..." fcklang="DlgCellBtnSelect" />
529
									onclick="SelectColor( 'ColorVisited' )" type="button" value="Select..." fcklang="DlgCellBtnSelect" />
521
								<br />
530
								<br />
522
								<span fcklang="DlgDocCActive">Active Link</span><br />
531
								<span fcklang="DlgDocCActive">Active Link</span><br />
523
								<input id="txtColorActive" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" /><input
532
								<input id="txtColorActive" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" /><input
524
									onclick="SelectColor( 'ColorActive' )" type="button" value="Select..." fcklang="DlgCellBtnSelect" />
533
									onclick="SelectColor( 'ColorActive' )" type="button" value="Select..." fcklang="DlgCellBtnSelect" />
525
							</td>
534
							</td>
526
							<td valign="middle" align="center">
535
							<td valign="middle" align="center">
527
								<table cellspacing="2" cellpadding="0" border="0">
536
								<table cellspacing="2" cellpadding="0" border="0">
528
									<tr>
537
									<tr>
529
										<td>
538
										<td>
530
											<span fcklang="DlgDocMargins">Page Margins</span></td>
539
											<span fcklang="DlgDocMargins">Page Margins</span></td>
531
									</tr>
540
									</tr>
532
									<tr>
541
									<tr>
533
										<td style="border: #000000 1px solid; padding: 5px">
542
										<td style="border: #000000 1px solid; padding: 5px">
534
											<table cellpadding="0" cellspacing="0" border="0" dir="ltr">
543
											<table cellpadding="0" cellspacing="0" border="0" dir="ltr">
535
												<tr>
544
												<tr>
536
													<td align="center" colspan="3">
545
													<td align="center" colspan="3">
537
														<span fcklang="DlgDocMaTop">Top</span><br />
546
														<span fcklang="DlgDocMaTop">Top</span><br />
538
														<input id="txtMarginTop" type="text" size="3" />
547
														<input id="txtMarginTop" type="text" size="3" />
539
													</td>
548
													</td>
540
												</tr>
549
												</tr>
541
												<tr>
550
												<tr>
542
													<td align="left">
551
													<td align="left">
543
														<span fcklang="DlgDocMaLeft">Left</span><br />
552
														<span fcklang="DlgDocMaLeft">Left</span><br />
544
														<input id="txtMarginLeft" type="text" size="3" />
553
														<input id="txtMarginLeft" type="text" size="3" />
545
													</td>
554
													</td>
546
													<td>
555
													<td>
547
														&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
556
														&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
548
													<td align="right">
557
													<td align="right">
549
														<span fcklang="DlgDocMaRight">Right</span><br />
558
														<span fcklang="DlgDocMaRight">Right</span><br />
550
														<input id="txtMarginRight" type="text" size="3" />
559
														<input id="txtMarginRight" type="text" size="3" />
551
													</td>
560
													</td>
552
												</tr>
561
												</tr>
553
												<tr>
562
												<tr>
554
													<td align="center" colspan="3">
563
													<td align="center" colspan="3">
555
														<span fcklang="DlgDocMaBottom">Bottom</span><br />
564
														<span fcklang="DlgDocMaBottom">Bottom</span><br />
556
														<input id="txtMarginBottom" type="text" size="3" />
565
														<input id="txtMarginBottom" type="text" size="3" />
557
													</td>
566
													</td>
558
												</tr>
567
												</tr>
559
											</table>
568
											</table>
560
										</td>
569
										</td>
561
									</tr>
570
									</tr>
562
								</table>
571
								</table>
563
							</td>
572
							</td>
564
						</tr>
573
						</tr>
565
					</table>
574
					</table>
566
				</div>
575
				</div>
567
				<div id="divMeta" style="display: none">
576
				<div id="divMeta" style="display: none">
568
					<span fcklang="DlgDocMeIndex">Document Indexing Keywords (comma separated)</span><br />
577
					<span fcklang="DlgDocMeIndex">Document Indexing Keywords (comma separated)</span><br />
569
					<textarea id="txtMetaKeywords" style="width: 100%" rows="2" cols="20"></textarea>
578
					<textarea id="txtMetaKeywords" style="width: 100%" rows="2" cols="20"></textarea>
570
					<br />
579
					<br />
571
					<span fcklang="DlgDocMeDescr">Document Description</span><br />
580
					<span fcklang="DlgDocMeDescr">Document Description</span><br />
572
					<textarea id="txtMetaDescription" style="width: 100%" rows="4" cols="20"></textarea>
581
					<textarea id="txtMetaDescription" style="width: 100%" rows="4" cols="20"></textarea>
573
					<br />
582
					<br />
574
					<span fcklang="DlgDocMeAuthor">Author</span><br />
583
					<span fcklang="DlgDocMeAuthor">Author</span><br />
575
					<input id="txtMetaAuthor" style="width: 100%" type="text" /><br />
584
					<input id="txtMetaAuthor" style="width: 100%" type="text" /><br />
576
					<br />
585
					<br />
577
					<span fcklang="DlgDocMeCopy">Copyright</span><br />
586
					<span fcklang="DlgDocMeCopy">Copyright</span><br />
578
					<input id="txtMetaCopyright" type="text" style="width: 100%" />
587
					<input id="txtMetaCopyright" type="text" style="width: 100%" />
579
				</div>
588
				</div>
580
			</td>
589
			</td>
581
		</tr>
590
		</tr>
582
		<tr id="ePreview" style="display: none">
591
		<tr id="ePreview" style="display: none">
583
			<td>
592
			<td>
584
				<span fcklang="DlgDocPreview">Preview</span><br />
593
				<span fcklang="DlgDocPreview">Preview</span><br />
585
				<iframe id="frmPreview" src="fck_docprops/fck_document_preview.html" width="100%"
594
				<iframe id="frmPreview" src="fck_docprops/fck_document_preview.html" width="100%"
586
					height="100"></iframe>
595
					height="100"></iframe>
587
			</td>
596
			</td>
588
		</tr>
597
		</tr>
589
	</table>
598
	</table>
590
</body>
599
</body>
591
</html>
600
</html>