Subversion Repositories Applications.papyrus

Rev

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