Subversion Repositories Applications.papyrus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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