~bestpractical/rt/master

« back to all changes in this revision

Viewing changes to html/NoAuth/RichText/FCKeditor/editor/dialog/fck_smiley.html

  • Committer: sunnavy
  • Date: 2008-05-14 13:22:46 UTC
  • Revision ID: git-v1:0f0c8baef62a06a13d6fb54683d6c7d75d5f1283
source layout change! html now lives in share/html

git-svn-id: svn+ssh://svn.bestpractical.com/svn/bps-public/rt/branches/3.8-TESTING@12308 e417ac7c-1bcc-0310-8ffa-8f5827389a85

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
2
 
<!--
3
 
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
4
 
 * Copyright (C) 2003-2007 Frederico Caldeira Knabben
5
 
 *
6
 
 * == BEGIN LICENSE ==
7
 
 *
8
 
 * Licensed under the terms of any of the following licenses at your
9
 
 * choice:
10
 
 *
11
 
 *  - GNU General Public License Version 2 or later (the "GPL")
12
 
 *    http://www.gnu.org/licenses/gpl.html
13
 
 *
14
 
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
15
 
 *    http://www.gnu.org/licenses/lgpl.html
16
 
 *
17
 
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
18
 
 *    http://www.mozilla.org/MPL/MPL-1.1.html
19
 
 *
20
 
 * == END LICENSE ==
21
 
 *
22
 
 * Smileys (emoticons) dialog window.
23
 
-->
24
 
<html xmlns="http://www.w3.org/1999/xhtml">
25
 
<head>
26
 
        <title></title>
27
 
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
28
 
        <meta name="robots" content="noindex, nofollow" />
29
 
        <style type="text/css">
30
 
                .Hand
31
 
                {
32
 
                        cursor: pointer;
33
 
                        cursor: hand;
34
 
                }
35
 
        </style>
36
 
        <script type="text/javascript">
37
 
 
38
 
var oEditor = window.parent.InnerDialogLoaded() ;
39
 
 
40
 
window.onload = function ()
41
 
{
42
 
        // First of all, translate the dialog box texts
43
 
        oEditor.FCKLanguageManager.TranslatePage(document) ;
44
 
 
45
 
        window.parent.SetAutoSize( true ) ;
46
 
}
47
 
 
48
 
function InsertSmiley( url )
49
 
{
50
 
        oEditor.FCKUndo.SaveUndoStep() ;
51
 
        var oImg = oEditor.FCK.InsertElement( 'img' ) ;
52
 
        oImg.src = url ;
53
 
        oImg.setAttribute( '_fcksavedurl', url ) ;
54
 
 
55
 
        // For long smileys list, it seams that IE continues loading the images in
56
 
        // the background when you quickly select one image. so, let's clear
57
 
        // everything before closing.
58
 
        document.body.innerHTML = '' ;
59
 
 
60
 
        window.parent.Cancel() ;
61
 
}
62
 
 
63
 
function over(td)
64
 
{
65
 
        td.className = 'LightBackground Hand' ;
66
 
}
67
 
 
68
 
function out(td)
69
 
{
70
 
        td.className = 'DarkBackground Hand' ;
71
 
}
72
 
        </script>
73
 
</head>
74
 
<body style="overflow: hidden">
75
 
        <table cellpadding="2" cellspacing="2" align="center" border="0" width="100%" height="100%">
76
 
                <script type="text/javascript">
77
 
 
78
 
var FCKConfig = oEditor.FCKConfig ;
79
 
 
80
 
var sBasePath   = FCKConfig.SmileyPath ;
81
 
var aImages             = FCKConfig.SmileyImages ;
82
 
var iCols               = FCKConfig.SmileyColumns ;
83
 
var iColWidth   = parseInt( 100 / iCols, 10 ) ;
84
 
 
85
 
var i = 0 ;
86
 
while (i < aImages.length)
87
 
{
88
 
        document.write( '<tr>' ) ;
89
 
        for(var j = 0 ; j < iCols ; j++)
90
 
        {
91
 
                if (aImages[i])
92
 
                {
93
 
                        var sUrl = sBasePath + aImages[i] ;
94
 
                        document.write( '<td width="' + iColWidth + '%" align="center" class="DarkBackground Hand" onclick="InsertSmiley(\'' + sUrl.replace(/'/g, "\\'" ) + '\')" onmouseover="over(this)" onmouseout="out(this)">' ) ;
95
 
                        document.write( '<img src="' + sUrl + '" border="0" />' ) ;
96
 
                }
97
 
                else
98
 
                        document.write( '<td width="' + iColWidth + '%" class="DarkBackground">&nbsp;' ) ;
99
 
                document.write( '<\/td>' ) ;
100
 
                i++ ;
101
 
        }
102
 
        document.write('<\/tr>') ;
103
 
}
104
 
 
105
 
                </script>
106
 
        </table>
107
 
</body>
108
 
</html>