Subversion Repositories Applications.papyrus

Rev

Rev 521 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
431 ddelon 1
<!--
2
 * FCKeditor - The text editor for internet
875 ddelon 3
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
431 ddelon 4
 *
5
 * Licensed under the terms of the GNU Lesser General Public License:
6
 * 		http://www.opensource.org/licenses/lgpl-license.php
7
 *
8
 * For further information visit:
9
 * 		http://www.fckeditor.net/
10
 *
521 ddelon 11
 * "Support Open Source software. What about a donation today?"
12
 *
431 ddelon 13
 * File Name: fck_smiley.html
14
 * 	Smileys (emoticons) dialog window.
15
 *
16
 * File Authors:
17
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
18
-->
19
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
20
<html>
21
	<head>
22
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
23
		<meta name="robots" content="noindex, nofollow" />
24
		<style type="text/css">
25
			.HandIE { cursor: hand ; }
26
			.HandMozilla { cursor: pointer ; }
27
		</style>
28
		<script type="text/javascript">
29
 
30
var oEditor = window.parent.InnerDialogLoaded() ;
31
 
32
window.onload = function ()
33
{
34
	// First of all, translate the dialog box texts
35
	oEditor.FCKLanguageManager.TranslatePage(document) ;
36
}
37
 
38
function InsertSmiley( url )
39
{
40
	var oImg = oEditor.FCK.CreateElement( 'IMG' ) ;
41
	oImg.src = url ;
875 ddelon 42
	oImg.setAttribute( '_fcksavedurl', url ) ;
431 ddelon 43
 
44
	window.parent.Cancel() ;
45
}
46
 
47
function over(td)
48
{
49
	td.className = 'LightBackground HandIE HandMozilla' ;
50
}
51
 
52
function out(td)
53
{
54
	td.className = 'DarkBackground HandIE HandMozilla' ;
55
}
56
		</script>
57
	</head>
58
	<body scroll="no">
59
		<table cellpadding="2" cellspacing="2" align="center" border="0" width="100%" height="100%">
60
			<script type="text/javascript">
61
<!--
62
var FCKConfig = oEditor.FCKConfig ;
63
 
64
var sBasePath = FCKConfig.SmileyPath ;
65
var aImages   = FCKConfig.SmileyImages ;
66
var cols      = FCKConfig.SmileyColumns ;
67
 
68
var i = 0 ;
69
while (i < aImages.length)
70
{
71
	document.write("<TR>") ;
72
	for(var j = 0 ; j < cols ; j++)
73
	{
74
		if (aImages[i])
75
		{
76
			var sUrl = sBasePath + aImages[i] ;
77
			document.write("<TD width='1%' align='center' class='DarkBackground HandIE HandMozilla' onclick='InsertSmiley(\"" + sUrl.replace(/"/g, '\\"' ) + "\")' onmouseover='over(this)' onmouseout='out(this)'>") ;
78
			document.write("<img src='" + sUrl + "' border='0'>") ;
79
		}
80
		else
81
			document.write("<TD width='1%' class='DarkBackground'>&nbsp;") ;
521 ddelon 82
		document.write("<\/TD>") ;
431 ddelon 83
		i++ ;
84
	}
521 ddelon 85
	document.write("<\/TR>") ;
431 ddelon 86
}
87
//-->
88
			</script>
89
		</table>
90
	</body>
91
</html>