event refactor, landing on HEAD!
[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-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  * 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 type="text/javascript">\r
37 \r
38 var oEditor = window.parent.InnerDialogLoaded() ;\r
39 \r
40 var oSample ;\r
41 \r
42 function insertChar(charValue)\r
43 {\r
44         oEditor.FCK.InsertHtml( charValue || "" ) ;\r
45         window.parent.Cancel() ;\r
46 }\r
47 \r
48 function over(td)\r
49 {\r
50         oSample.innerHTML = td.innerHTML ;\r
51         td.className = 'LightBackground SpecialCharsOver Hand' ;\r
52 }\r
53 \r
54 function out(td)\r
55 {\r
56         oSample.innerHTML = "&nbsp;" ;\r
57         td.className = 'DarkBackground SpecialCharsOut Hand' ;\r
58 }\r
59 \r
60 function setDefaults()\r
61 {\r
62         // Gets the sample placeholder.\r
63         oSample = document.getElementById("SampleTD") ;\r
64 \r
65         // First of all, translates the dialog box texts.\r
66         oEditor.FCKLanguageManager.TranslatePage(document) ;\r
67 }\r
68 \r
69                 </script>\r
70         </HEAD>\r
71         <BODY onload="setDefaults()" scroll="no">\r
72                 <table cellpadding="0" cellspacing="0" width="100%" height="100%">\r
73                         <tr>\r
74                                 <td width="100%">\r
75                                         <table cellpadding="1" cellspacing="1" align="center" border="0" width="100%" height="100%">\r
76                                                 <script type="text/javascript">\r
77 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;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"] ;\r
78 \r
79 var cols = 20 ;\r
80 \r
81 var i = 0 ;\r
82 while (i < aChars.length)\r
83 {\r
84         document.write("<TR>") ;\r
85         for(var j = 0 ; j < cols ; j++)\r
86         {\r
87                 if (aChars[i])\r
88                 {\r
89                         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
90                         document.write(aChars[i]) ;\r
91                 }\r
92                 else\r
93                         document.write("<TD class='DarkBackground SpecialCharsOut'>&nbsp;") ;\r
94                 document.write("<\/TD>") ;\r
95                 i++ ;\r
96         }\r
97         document.write("<\/TR>") ;\r
98 }\r
99                                                 </script>\r
100                                         </table>\r
101                                 </td>\r
102                                 <td nowrap>&nbsp;&nbsp;&nbsp;&nbsp;</td>\r
103                                 <td valign="top">\r
104                                         <table width="40" cellpadding="0" cellspacing="0" border="0">\r
105                                                 <tr>\r
106                                                         <td id="SampleTD" width="40" height="40" align="center" class="DarkBackground SpecialCharsOut Sample">&nbsp;</td>\r
107                                                 </tr>\r
108                                         </table>\r
109                                 </td>\r
110                         </tr>\r
111                 </table>\r
112         </BODY>\r
113 </HTML>