1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
2<!--
3 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
4 * Copyright (C) 2003-2007 Frederico Caldeira Knabben
5 *
6 * == BEGIN LICENSE ==
7 *
8 * Licensed under the terms of any of the following licenses at your
9 * choice:
10 *
11 *  - GNU General Public License Version 2 or later (the "GPL")
12 *    http://www.gnu.org/licenses/gpl.html
13 *
14 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
15 *    http://www.gnu.org/licenses/lgpl.html
16 *
17 *  - Mozilla Public License Version 1.1 or later (the "MPL")
18 *    http://www.mozilla.org/MPL/MPL-1.1.html
19 *
20 * == END LICENSE ==
21 *
22 * Bulleted List dialog window.
23-->
24<html xmlns="http://www.w3.org/1999/xhtml">
25<head>
26	<title></title>
27	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
28	<meta content="noindex, nofollow" name="robots" />
29	<script src="common/fck_dialog_common.js" type="text/javascript"></script>
30	<script type="text/javascript">
31
32var oEditor = window.parent.InnerDialogLoaded() ;
33
34// Gets the document DOM
35var oDOM = oEditor.FCK.EditorDocument ;
36var sListType = ( location.search == '?OL' ? 'OL' : 'UL' ) ;
37
38var oActiveEl = oEditor.FCKSelection.MoveToAncestorNode( sListType ) ;
39var oActiveSel ;
40
41window.onload = function()
42{
43	// First of all, translate the dialog box texts
44	oEditor.FCKLanguageManager.TranslatePage(document) ;
45
46	if ( sListType == 'UL' )
47		oActiveSel = GetE('selBulleted') ;
48	else
49	{
50		if ( oActiveEl )
51		{
52			oActiveSel = GetE('selNumbered') ;
53			GetE('eStart').style.display = '' ;
54			GetE('txtStartPosition').value	= GetAttribute( oActiveEl, 'start' ) ;
55		}
56	}
57
58	oActiveSel.style.display = '' ;
59
60	if ( oActiveEl )
61	{
62		if ( oActiveEl.getAttribute('type') )
63			oActiveSel.value = oActiveEl.getAttribute('type') ;
64	}
65
66	window.parent.SetOkButton( true ) ;
67}
68
69function Ok()
70{
71	if ( oActiveEl ){
72		SetAttribute( oActiveEl, 'type'	, oActiveSel.value ) ;
73		if(oActiveEl.tagName == 'OL')
74			SetAttribute( oActiveEl, 'start', GetE('txtStartPosition').value ) ;
75	}
76
77	return true ;
78}
79
80	</script>
81</head>
82<body style="overflow: hidden">
83	<table width="100%" style="height: 100%">
84		<tr>
85			<td style="text-align:center">
86				<table cellspacing="0" cellpadding="0" border="0" style="margin-left: auto; margin-right: auto;">
87					<tr>
88						<td id="eStart" style="display: none; padding-right: 5px; padding-left: 5px">
89							<span fcklang="DlgLstStart">Start</span><br />
90							<input type="text" id="txtStartPosition" size="5" />
91						</td>
92						<td style="padding-right: 5px; padding-left: 5px">
93							<span fcklang="DlgLstType">List Type</span><br />
94							<select id="selBulleted" style="display: none">
95								<option value="" selected="selected"></option>
96								<option value="circle" fcklang="DlgLstTypeCircle">Circle</option>
97								<option value="disc" fcklang="DlgLstTypeDisc">Disc</option>
98								<option value="square" fcklang="DlgLstTypeSquare">Square</option>
99							</select>
100							<select id="selNumbered" style="display: none">
101								<option value="" selected="selected"></option>
102								<option value="1" fcklang="DlgLstTypeNumbers">Numbers (1, 2, 3)</option>
103								<option value="a" fcklang="DlgLstTypeLCase">Lowercase Letters (a, b, c)</option>
104								<option value="A" fcklang="DlgLstTypeUCase">Uppercase Letters (A, B, C)</option>
105								<option value="i" fcklang="DlgLstTypeSRoman">Small Roman Numerals (i, ii, iii)</option>
106								<option value="I" fcklang="DlgLstTypeLRoman">Large Roman Numerals (I, II, III)</option>
107							</select>
108							&nbsp;
109						</td>
110					</tr>
111				</table>
112			</td>
113		</tr>
114	</table>
115</body>
116</html>
117