Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1688 Rev 1921
Line -... Line 1...
-
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
1
<!--
2
<!--
2
 * FCKeditor - The text editor for internet
3
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
3
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
4
 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
-
 
5
 *
-
 
6
 * == BEGIN LICENSE ==
4
 * 
7
 *
5
 * Licensed under the terms of the GNU Lesser General Public License:
8
 * Licensed under the terms of any of the following licenses at your
6
 * 		http://www.opensource.org/licenses/lgpl-license.php
9
 * choice:
7
 * 
10
 *
8
 * For further information visit:
11
 *  - GNU General Public License Version 2 or later (the "GPL")
9
 * 		http://www.fckeditor.net/
12
 *    http://www.gnu.org/licenses/gpl.html
10
 * 
13
 *
11
 * "Support Open Source software. What about a donation today?"
14
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
-
 
15
 *    http://www.gnu.org/licenses/lgpl.html
12
 * 
16
 *
13
 * File Name: fck_smiley.html
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
14
 * 	Smileys (emoticons) dialog window.
18
 *    http://www.mozilla.org/MPL/MPL-1.1.html
15
 * 
19
 *
16
 * File Authors:
20
 * == END LICENSE ==
-
 
21
 *
17
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
22
 * Smileys (emoticons) dialog window.
18
-->
23
-->
19
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
-
 
20
<html xmlns="http://www.w3.org/1999/xhtml">
24
<html xmlns="http://www.w3.org/1999/xhtml">
21
<head>
25
<head>
22
	<title></title>
26
	<title></title>
23
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
27
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
24
	<meta name="robots" content="noindex, nofollow" />
28
	<meta name="robots" content="noindex, nofollow" />
Line 27... Line 31...
27
		{
31
		{
28
			cursor: pointer;
32
			cursor: pointer;
29
			cursor: hand;
33
			cursor: hand;
30
		}
34
		}
31
	</style>
35
	</style>
-
 
36
	<script src="common/fck_dialog_common.js" type="text/javascript"></script>
32
	<script type="text/javascript">
37
	<script type="text/javascript">
Line -... Line 38...
-
 
38
 
33
 
39
var dialog	= window.parent ;
Line 34... Line 40...
34
var oEditor = window.parent.InnerDialogLoaded() ;
40
var oEditor = dialog.InnerDialogLoaded() ;
35
 
41
 
36
window.onload = function ()
42
window.onload = function ()
37
{
43
{
-
 
44
	// First of all, translate the dialog box texts
-
 
45
	oEditor.FCKLanguageManager.TranslatePage(document) ;
38
	// First of all, translate the dialog box texts
46
 
Line 39... Line 47...
39
	oEditor.FCKLanguageManager.TranslatePage(document) ;
47
	dialog.SetAutoSize( true ) ;
40
}
48
}
-
 
49
 
-
 
50
function InsertSmiley( url )
41
 
51
{
42
function InsertSmiley( url )
52
	oEditor.FCKUndo.SaveUndoStep() ;
43
{
53
 
44
	var oImg = oEditor.FCK.CreateElement( 'IMG' ) ;
54
	var oImg = oEditor.FCK.InsertElement( 'img' ) ;
45
	oImg.src = url ;
55
	oImg.src = url ;
46
	oImg.setAttribute( '_fcksavedurl', url ) ;
56
	oImg.setAttribute( '_fcksavedurl', url ) ;
47
	
57
 
48
	// For long smileys list, it seams that IE continues loading the images in
58
	// For long smileys list, it seams that IE continues loading the images in
Line 49... Line 59...
49
	// the background when you quickly select one image. so, let's clear
59
	// the background when you quickly select one image. so, let's clear
50
	// everything before closing.
60
	// everything before closing.
Line 51... Line 61...
51
	document.body.innerHTML = '' ;
61
	document.body.innerHTML = '' ;
52
 
62
 
53
	window.parent.Cancel() ;
63
	dialog.Cancel() ;
Line 62... Line 72...
62
{
72
{
63
	td.className = 'DarkBackground Hand' ;
73
	td.className = 'DarkBackground Hand' ;
64
}
74
}
65
	</script>
75
	</script>
66
</head>
76
</head>
67
<body scroll="no">
77
<body style="overflow: hidden">
68
	<table cellpadding="2" cellspacing="2" align="center" border="0" width="100%" height="100%">
78
	<table cellpadding="2" cellspacing="2" align="center" border="0" width="100%" height="100%">
69
		<script type="text/javascript">
79
		<script type="text/javascript">
Line 70... Line 80...
70
 
80
 
Line 71... Line 81...
71
var FCKConfig = oEditor.FCKConfig ;
81
var FCKConfig = oEditor.FCKConfig ;
72
 
82
 
73
var sBasePath	= FCKConfig.SmileyPath ;
83
var sBasePath	= FCKConfig.SmileyPath ;
74
var aImages		= FCKConfig.SmileyImages ;
84
var aImages		= FCKConfig.SmileyImages ;
Line 75... Line 85...
75
var iCols		= FCKConfig.SmileyColumns ;
85
var iCols		= FCKConfig.SmileyColumns ;
76
var iColWidth	= parseInt( 100 / iCols ) ;
86
var iColWidth	= parseInt( 100 / iCols, 10 ) ;
77
 
87
 
78
var i = 0 ;
88
var i = 0 ;