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