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