Subversion Repositories Applications.papyrus

Rev

Rev 1925 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1925 jp_milcent 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
2
<!--
3
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
2048 gduche 4
 * Copyright (C) 2003-2009 Frederico Caldeira Knabben
1925 jp_milcent 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
 
32
var dialog	= window.parent ;
33
var oEditor = dialog.InnerDialogLoaded() ;
34
 
35
// Gets the document DOM
36
var oDOM = oEditor.FCK.EditorDocument ;
37
var sListType = ( location.search == '?OL' ? 'OL' : 'UL' ) ;
38
 
39
var oActiveEl = dialog.Selection.GetSelection().MoveToAncestorNode( sListType ) ;
40
var oActiveSel ;
41
 
42
window.onload = function()
43
{
44
	// First of all, translate the dialog box texts
45
	oEditor.FCKLanguageManager.TranslatePage(document) ;
46
 
47
	if ( sListType == 'UL' )
48
		oActiveSel = GetE('selBulleted') ;
49
	else
50
	{
51
		if ( oActiveEl )
52
		{
53
			oActiveSel = GetE('selNumbered') ;
54
			GetE('eStart').style.display = '' ;
55
			GetE('txtStartPosition').value	= GetAttribute( oActiveEl, 'start' ) ;
56
		}
57
	}
58
 
59
	oActiveSel.style.display = '' ;
60
 
61
	if ( oActiveEl )
62
	{
63
		if ( oActiveEl.getAttribute('type') )
64
			oActiveSel.value = oActiveEl.getAttribute('type') ;
65
	}
66
 
67
	dialog.SetOkButton( true ) ;
68
	dialog.SetAutoSize( true ) ;
69
 
70
	SelectField( sListType == 'OL' ? 'txtStartPosition' : 'selBulleted' ) ;
71
}
72
 
73
function Ok()
74
{
75
	if ( oActiveEl ){
76
		SetAttribute( oActiveEl, 'type'	, oActiveSel.value ) ;
77
		if(oActiveEl.tagName == 'OL')
78
			SetAttribute( oActiveEl, 'start', GetE('txtStartPosition').value ) ;
79
	}
80
 
81
	return true ;
82
}
83
 
84
	</script>
85
</head>
86
<body style="overflow: hidden">
87
	<table width="100%" style="height: 100%">
88
		<tr>
89
			<td style="text-align:center">
90
				<table cellspacing="0" cellpadding="0" border="0" style="margin-left: auto; margin-right: auto;">
91
					<tr>
92
						<td id="eStart" style="display: none; padding-right: 5px; padding-left: 5px">
93
							<span fcklang="DlgLstStart">Start</span><br />
94
							<input type="text" id="txtStartPosition" size="5" />
95
						</td>
96
						<td style="padding-right: 5px; padding-left: 5px">
97
							<span fcklang="DlgLstType">List Type</span><br />
98
							<select id="selBulleted" style="display: none">
99
								<option value="" selected="selected"></option>
100
								<option value="circle" fcklang="DlgLstTypeCircle">Circle</option>
101
								<option value="disc" fcklang="DlgLstTypeDisc">Disc</option>
102
								<option value="square" fcklang="DlgLstTypeSquare">Square</option>
103
							</select>
104
							<select id="selNumbered" style="display: none">
105
								<option value="" selected="selected"></option>
106
								<option value="1" fcklang="DlgLstTypeNumbers">Numbers (1, 2, 3)</option>
107
								<option value="a" fcklang="DlgLstTypeLCase">Lowercase Letters (a, b, c)</option>
108
								<option value="A" fcklang="DlgLstTypeUCase">Uppercase Letters (A, B, C)</option>
109
								<option value="i" fcklang="DlgLstTypeSRoman">Small Roman Numerals (i, ii, iii)</option>
110
								<option value="I" fcklang="DlgLstTypeLRoman">Large Roman Numerals (I, II, III)</option>
111
							</select>
112
							&nbsp;
113
						</td>
114
					</tr>
115
				</table>
116
			</td>
117
		</tr>
118
	</table>
119
</body>
120
</html>