import torrus 1.0.9
[freeside.git] / httemplate / elements / fckeditor / editor / dialog / fck_specialchar.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  * Special Chars Selector dialog window.\r
23 -->\r
24 <html>\r
25         <head>\r
26                 <meta name="robots" content="noindex, nofollow">\r
27                 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
28                 <style type="text/css">\r
29                                 .Hand\r
30                                 {\r
31                                         cursor: pointer ;\r
32                                         cursor: hand ;\r
33                                 }\r
34                                 .Sample { font-size: 24px; }\r
35                 </style>\r
36                 <script src="common/fck_dialog_common.js" type="text/javascript"></script>\r
37                 <script type="text/javascript">\r
38 \r
39 var oEditor = window.parent.InnerDialogLoaded() ;\r
40 \r
41 var oSample ;\r
42 \r
43 function insertChar(charValue)\r
44 {\r
45         oEditor.FCKUndo.SaveUndoStep() ;\r
46         oEditor.FCK.InsertHtml( charValue || "" ) ;\r
47         window.parent.Cancel() ;\r
48 }\r
49 \r
50 function over(td)\r
51 {\r
52         if ( ! oSample )\r
53                 return ;\r
54         oSample.innerHTML = td.innerHTML ;\r
55         td.className = 'LightBackground SpecialCharsOver Hand' ;\r
56 }\r
57 \r
58 function out(td)\r
59 {\r
60         if ( ! oSample )\r
61                 return ;\r
62         oSample.innerHTML = "&nbsp;" ;\r
63         td.className = 'DarkBackground SpecialCharsOut Hand' ;\r
64 }\r
65 \r
66 function setDefaults()\r
67 {\r
68         // Gets the sample placeholder.\r
69         oSample = document.getElementById("SampleTD") ;\r
70 \r
71         // First of all, translates the dialog box texts.\r
72         oEditor.FCKLanguageManager.TranslatePage(document) ;\r
73 \r
74         window.parent.SetAutoSize( true ) ;\r
75 }\r
76 \r
77                 </script>\r
78         </head>\r
79         <body onload="setDefaults()" style="overflow: hidden">\r
80                 <table cellpadding="0" cellspacing="0" width="100%" height="100%">\r
81                         <tr>\r
82                                 <td width="100%">\r
83                                         <table cellpadding="1" cellspacing="1" align="center" border="0" width="100%" height="100%">\r
84                                                 <script type="text/javascript">\r
85 var aChars = ["!","&quot;","#","$","%","&amp;","\\'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&not;","&reg;","&macr;","&deg;","&plusmn;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&raquo;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"] ;\r
86 \r
87 var cols = 20 ;\r
88 \r
89 var i = 0 ;\r
90 while (i < aChars.length)\r
91 {\r
92         document.write("<TR>") ;\r
93         for(var j = 0 ; j < cols ; j++)\r
94         {\r
95                 if (aChars[i])\r
96                 {\r
97                         document.write('<TD width="1%" class="DarkBackground SpecialCharsOut Hand" align="center" onclick="insertChar(\'' + aChars[i].replace(/&/g, "&amp;") + '\')" onmouseover="over(this)" onmouseout="out(this)">') ;\r
98                         document.write(aChars[i]) ;\r
99                 }\r
100                 else\r
101                         document.write("<TD class='DarkBackground SpecialCharsOut'>&nbsp;") ;\r
102                 document.write("<\/TD>") ;\r
103                 i++ ;\r
104         }\r
105         document.write("<\/TR>") ;\r
106 }\r
107                                                 </script>\r
108                                         </table>\r
109                                 </td>\r
110                                 <td nowrap>&nbsp;&nbsp;&nbsp;&nbsp;</td>\r
111                                 <td valign="top">\r
112                                         <table width="40" cellpadding="0" cellspacing="0" border="0">\r
113                                                 <tr>\r
114                                                         <td id="SampleTD" width="40" height="40" align="center" class="DarkBackground SpecialCharsOut Sample">&nbsp;</td>\r
115                                                 </tr>\r
116                                         </table>\r
117                                 </td>\r
118                         </tr>\r
119                 </table>\r
120         </body>\r
121 </html>\r