import rt 3.8.7
[freeside.git] / rt / share / html / NoAuth / RichText / FCKeditor / editor / dialog / fck_smiley.html
diff --git a/rt/share/html/NoAuth/RichText/FCKeditor/editor/dialog/fck_smiley.html b/rt/share/html/NoAuth/RichText/FCKeditor/editor/dialog/fck_smiley.html
new file mode 100644 (file)
index 0000000..bd2eaea
--- /dev/null
@@ -0,0 +1,111 @@
+<!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
+ * Smileys (emoticons) 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 name="robots" content="noindex, nofollow" />\r
+       <style type="text/css">\r
+               .Hand\r
+               {\r
+                       cursor: pointer;\r
+                       cursor: hand;\r
+               }\r
+       </style>\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
+window.onload = function ()\r
+{\r
+       // First of all, translate the dialog box texts\r
+       oEditor.FCKLanguageManager.TranslatePage(document) ;\r
+\r
+       dialog.SetAutoSize( true ) ;\r
+}\r
+\r
+function InsertSmiley( url )\r
+{\r
+       oEditor.FCKUndo.SaveUndoStep() ;\r
+\r
+       var oImg = oEditor.FCK.InsertElement( 'img' ) ;\r
+       oImg.src = url ;\r
+       oImg.setAttribute( '_fcksavedurl', url ) ;\r
+\r
+       // For long smileys list, it seams that IE continues loading the images in\r
+       // the background when you quickly select one image. so, let's clear\r
+       // everything before closing.\r
+       document.body.innerHTML = '' ;\r
+\r
+       dialog.Cancel() ;\r
+}\r
+\r
+function over(td)\r
+{\r
+       td.className = 'LightBackground Hand' ;\r
+}\r
+\r
+function out(td)\r
+{\r
+       td.className = 'DarkBackground Hand' ;\r
+}\r
+       </script>\r
+</head>\r
+<body style="overflow: hidden">\r
+       <table cellpadding="2" cellspacing="2" align="center" border="0" width="100%" height="100%">\r
+               <script type="text/javascript">\r
+\r
+var FCKConfig = oEditor.FCKConfig ;\r
+\r
+var sBasePath  = FCKConfig.SmileyPath ;\r
+var aImages            = FCKConfig.SmileyImages ;\r
+var iCols              = FCKConfig.SmileyColumns ;\r
+var iColWidth  = parseInt( 100 / iCols, 10 ) ;\r
+\r
+var i = 0 ;\r
+while (i < aImages.length)\r
+{\r
+       document.write( '<tr>' ) ;\r
+       for(var j = 0 ; j < iCols ; j++)\r
+       {\r
+               if (aImages[i])\r
+               {\r
+                       var sUrl = sBasePath + aImages[i] ;\r
+                       document.write( '<td width="' + iColWidth + '%" align="center" class="DarkBackground Hand" onclick="InsertSmiley(\'' + sUrl.replace(/'/g, "\\'" ) + '\')" onmouseover="over(this)" onmouseout="out(this)">' ) ;\r
+                       document.write( '<img src="' + sUrl + '" border="0" />' ) ;\r
+               }\r
+               else\r
+                       document.write( '<td width="' + iColWidth + '%" class="DarkBackground">&nbsp;' ) ;\r
+               document.write( '<\/td>' ) ;\r
+               i++ ;\r
+       }\r
+       document.write('<\/tr>') ;\r
+}\r
+\r
+               </script>\r
+       </table>\r
+</body>\r
+</html>\r