import rt 3.8.7
[freeside.git] / rt / share / html / NoAuth / RichText / FCKeditor / editor / dialog / fck_checkbox.html
diff --git a/rt/share/html/NoAuth/RichText/FCKeditor/editor/dialog/fck_checkbox.html b/rt/share/html/NoAuth/RichText/FCKeditor/editor/dialog/fck_checkbox.html
new file mode 100644 (file)
index 0000000..9a5d43c
--- /dev/null
@@ -0,0 +1,104 @@
+<!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-2009 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
+ * Checkbox dialog window.\r
+-->\r
+<html>\r
+       <head>\r
+               <title>Checkbox Properties</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 dialog     = window.parent ;\r
+var oEditor    = dialog.InnerDialogLoaded() ;\r
+\r
+// Gets the document DOM\r
+var oDOM = oEditor.FCK.EditorDocument ;\r
+\r
+var oActiveEl = dialog.Selection.GetSelectedElement() ;\r
+\r
+window.onload = function()\r
+{\r
+       // First of all, translate the dialog box texts\r
+       oEditor.FCKLanguageManager.TranslatePage(document) ;\r
+\r
+       if ( oActiveEl && oActiveEl.tagName == 'INPUT' && oActiveEl.type == 'checkbox' )\r
+       {\r
+               GetE('txtName').value           = oActiveEl.name ;\r
+               GetE('txtValue').value          = oEditor.FCKBrowserInfo.IsIE ? oActiveEl.value : GetAttribute( oActiveEl, 'value' ) ;\r
+               GetE('txtSelected').checked     = oActiveEl.checked ;\r
+       }\r
+       else\r
+               oActiveEl = null ;\r
+\r
+       dialog.SetOkButton( true ) ;\r
+       dialog.SetAutoSize( true ) ;\r
+       SelectField( 'txtName' ) ;\r
+}\r
+\r
+function Ok()\r
+{\r
+       oEditor.FCKUndo.SaveUndoStep() ;\r
+\r
+       oActiveEl = CreateNamedElement( oEditor, oActiveEl, 'INPUT', {name: GetE('txtName').value, type: 'checkbox' } ) ;\r
+\r
+       if ( oEditor.FCKBrowserInfo.IsIE )\r
+               oActiveEl.value = GetE('txtValue').value ;\r
+       else\r
+               SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ;\r
+\r
+       var bIsChecked = GetE('txtSelected').checked ;\r
+       SetAttribute( oActiveEl, 'checked', bIsChecked ? 'checked' : null ) ;   // For Firefox\r
+       oActiveEl.checked = bIsChecked ;\r
+\r
+       return true ;\r
+}\r
+\r
+               </script>\r
+       </head>\r
+       <body style="OVERFLOW: hidden" scroll="no">\r
+               <table height="100%" width="100%">\r
+                       <tr>\r
+                               <td align="center">\r
+                                       <table border="0" cellpadding="0" cellspacing="0" width="80%">\r
+                                               <tr>\r
+                                                       <td>\r
+                                                               <span fckLang="DlgCheckboxName">Name</span><br>\r
+                                                               <input type="text" size="20" id="txtName" style="WIDTH: 100%">\r
+                                                       </td>\r
+                                               </tr>\r
+                                               <tr>\r
+                                                       <td>\r
+                                                               <span fckLang="DlgCheckboxValue">Value</span><br>\r
+                                                               <input type="text" size="20" id="txtValue" style="WIDTH: 100%">\r
+                                                       </td>\r
+                                               </tr>\r
+                                               <tr>\r
+                                                       <td><input type="checkbox" id="txtSelected"><label for="txtSelected" fckLang="DlgCheckboxSelected">Checked</label></td>\r
+                                               </tr>\r
+                                       </table>\r
+                               </td>\r
+                       </tr>\r
+               </table>\r
+       </body>\r
+</html>\r