event refactor, landing on HEAD!
[freeside.git] / httemplate / elements / fckeditor / editor / dialog / fck_listprop.html
diff --git a/httemplate/elements/fckeditor/editor/dialog/fck_listprop.html b/httemplate/elements/fckeditor/editor/dialog/fck_listprop.html
new file mode 100644 (file)
index 0000000..a0a927e
--- /dev/null
@@ -0,0 +1,116 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >\r
+<!--\r
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
+ * Copyright (C) 2003-2007 Frederico Caldeira Knabben\r
+ *\r
+ * == BEGIN LICENSE ==\r
+ *\r
+ * Licensed under the terms of any of the following licenses at your\r
+ * choice:\r
+ *\r
+ *  - GNU General Public License Version 2 or later (the "GPL")\r
+ *    http://www.gnu.org/licenses/gpl.html\r
+ *\r
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
+ *    http://www.gnu.org/licenses/lgpl.html\r
+ *\r
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")\r
+ *    http://www.mozilla.org/MPL/MPL-1.1.html\r
+ *\r
+ * == END LICENSE ==\r
+ *\r
+ * Bulleted List dialog window.\r
+-->\r
+<html xmlns="http://www.w3.org/1999/xhtml">\r
+<head>\r
+       <title></title>\r
+       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
+       <meta content="noindex, nofollow" name="robots" />\r
+       <script src="common/fck_dialog_common.js" type="text/javascript"></script>\r
+       <script type="text/javascript">\r
+\r
+var oEditor = window.parent.InnerDialogLoaded() ;\r
+\r
+// Gets the document DOM\r
+var oDOM = oEditor.FCK.EditorDocument ;\r
+var sListType = ( location.search == '?OL' ? 'OL' : 'UL' ) ;\r
+\r
+var oActiveEl = oEditor.FCKSelection.MoveToAncestorNode( sListType ) ;\r
+var oActiveSel ;\r
+\r
+window.onload = function()\r
+{\r
+       // First of all, translate the dialog box texts\r
+       oEditor.FCKLanguageManager.TranslatePage(document) ;\r
+\r
+       if ( sListType == 'UL' )\r
+               oActiveSel = GetE('selBulleted') ;\r
+       else\r
+       {\r
+               if ( oActiveEl )\r
+               {\r
+                       oActiveSel = GetE('selNumbered') ;\r
+                       GetE('eStart').style.display = '' ;\r
+                       GetE('txtStartPosition').value  = GetAttribute( oActiveEl, 'start' ) ;\r
+               }\r
+       }\r
+\r
+       oActiveSel.style.display = '' ;\r
+\r
+       if ( oActiveEl )\r
+       {\r
+               if ( oActiveEl.getAttribute('type') )\r
+                       oActiveSel.value = oActiveEl.getAttribute('type') ;\r
+       }\r
+\r
+       window.parent.SetOkButton( true ) ;\r
+}\r
+\r
+function Ok()\r
+{\r
+       if ( oActiveEl ){\r
+               SetAttribute( oActiveEl, 'type' , oActiveSel.value ) ;\r
+               if(oActiveEl.tagName == 'OL')\r
+                       SetAttribute( oActiveEl, 'start', GetE('txtStartPosition').value ) ;\r
+       }\r
+\r
+       return true ;\r
+}\r
+\r
+       </script>\r
+</head>\r
+<body style="overflow: hidden">\r
+       <table width="100%" style="height: 100%">\r
+               <tr>\r
+                       <td style="text-align:center">\r
+                               <table cellspacing="0" cellpadding="0" border="0" style="margin-left: auto; margin-right: auto;">\r
+                                       <tr>\r
+                                               <td id="eStart" style="display: none; padding-right: 5px; padding-left: 5px">\r
+                                                       <span fcklang="DlgLstStart">Start</span><br />\r
+                                                       <input type="text" id="txtStartPosition" size="5" />\r
+                                               </td>\r
+                                               <td style="padding-right: 5px; padding-left: 5px">\r
+                                                       <span fcklang="DlgLstType">List Type</span><br />\r
+                                                       <select id="selBulleted" style="display: none">\r
+                                                               <option value="" selected="selected"></option>\r
+                                                               <option value="circle" fcklang="DlgLstTypeCircle">Circle</option>\r
+                                                               <option value="disc" fcklang="DlgLstTypeDisc">Disc</option>\r
+                                                               <option value="square" fcklang="DlgLstTypeSquare">Square</option>\r
+                                                       </select>\r
+                                                       <select id="selNumbered" style="display: none">\r
+                                                               <option value="" selected="selected"></option>\r
+                                                               <option value="1" fcklang="DlgLstTypeNumbers">Numbers (1, 2, 3)</option>\r
+                                                               <option value="a" fcklang="DlgLstTypeLCase">Lowercase Letters (a, b, c)</option>\r
+                                                               <option value="A" fcklang="DlgLstTypeUCase">Uppercase Letters (A, B, C)</option>\r
+                                                               <option value="i" fcklang="DlgLstTypeSRoman">Small Roman Numerals (i, ii, iii)</option>\r
+                                                               <option value="I" fcklang="DlgLstTypeLRoman">Large Roman Numerals (I, II, III)</option>\r
+                                                       </select>\r
+                                                       &nbsp;\r
+                                               </td>\r
+                                       </tr>\r
+                               </table>\r
+                       </td>\r
+               </tr>\r
+       </table>\r
+</body>\r
+</html>\r