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 1... Line 1...
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
2
<!--
2
<!--
3
 * FCKeditor - The text editor for internet
3
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
4
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
4
 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
-
 
5
 *
-
 
6
 * == BEGIN LICENSE ==
5
 * 
7
 *
6
 * Licensed under the terms of the GNU Lesser General Public License:
8
 * Licensed under the terms of any of the following licenses at your
7
 * 		http://www.opensource.org/licenses/lgpl-license.php
9
 * choice:
8
 * 
10
 *
9
 * For further information visit:
11
 *  - GNU General Public License Version 2 or later (the "GPL")
10
 * 		http://www.fckeditor.net/
12
 *    http://www.gnu.org/licenses/gpl.html
11
 * 
13
 *
12
 * "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
13
 * 
16
 *
14
 * File Name: fck_select.html
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
15
 * 	Select dialog window.
18
 *    http://www.mozilla.org/MPL/MPL-1.1.html
16
 * 
19
 *
17
 * File Authors:
20
 * == END LICENSE ==
-
 
21
 *
18
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
22
 * Select dialog window.
19
-->
23
-->
20
<html>
24
<html>
21
	<head>
25
	<head>
22
		<title>Select Properties</title>
26
		<title>Select Properties</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 content="noindex, nofollow" name="robots">
28
		<meta content="noindex, nofollow" name="robots">
25
		<script src="common/fck_dialog_common.js" type="text/javascript"></script>
29
		<script src="common/fck_dialog_common.js" type="text/javascript"></script>
26
		<script type="text/javascript" src="fck_select/fck_select.js"></script>
30
		<script type="text/javascript" src="fck_select/fck_select.js"></script>
27
		<script type="text/javascript">
31
		<script type="text/javascript">
Line -... Line 32...
-
 
32
 
28
 
33
var dialog	= window.parent ;
Line 29... Line 34...
29
var oEditor = window.parent.InnerDialogLoaded() ;
34
var oEditor = dialog.InnerDialogLoaded() ;
30
 
35
 
Line 31... Line 36...
31
// Gets the document DOM
36
// Gets the document DOM
Line 32... Line 37...
32
var oDOM = oEditor.FCK.EditorDocument ;
37
var oDOM = oEditor.FCK.EditorDocument ;
33
 
38
 
Line 34... Line 39...
34
var oActiveEl = oEditor.FCKSelection.GetSelectedElement() ;
39
var oActiveEl = dialog.Selection.GetSelectedElement() ;
Line 42... Line 47...
42
	oEditor.FCKLanguageManager.TranslatePage(document) ;
47
	oEditor.FCKLanguageManager.TranslatePage(document) ;
Line 43... Line 48...
43
 
48
 
44
	oListText	= document.getElementById( 'cmbText' ) ;
49
	oListText	= document.getElementById( 'cmbText' ) ;
Line -... Line 50...
-
 
50
	oListValue	= document.getElementById( 'cmbValue' ) ;
-
 
51
 
-
 
52
	// Fix the lists widths. (Bug #970)
-
 
53
	oListText.style.width = oListText.offsetWidth ;
45
	oListValue	= document.getElementById( 'cmbValue' ) ;
54
	oListValue.style.width = oListValue.offsetWidth ;
46
 
55
 
47
	if ( oActiveEl && oActiveEl.tagName == 'SELECT' )
56
	if ( oActiveEl && oActiveEl.tagName == 'SELECT' )
48
	{
57
	{
49
		GetE('txtName').value		= oActiveEl.name ;
58
		GetE('txtName').value		= oActiveEl.name ;
50
		GetE('txtSelValue').value	= oActiveEl.value ;
59
		GetE('txtSelValue').value	= oActiveEl.value ;
Line 51... Line 60...
51
		GetE('txtLines').value		= GetAttribute( oActiveEl, 'size' ) ;
60
		GetE('txtLines').value		= GetAttribute( oActiveEl, 'size' ) ;
52
		GetE('chkMultiple').checked	= oActiveEl.multiple ;
61
		GetE('chkMultiple').checked	= oActiveEl.multiple ;
53
 
62
 
54
		// Load the actual options
63
		// Load the actual options
55
		for ( var i = 0 ; i < oActiveEl.options.length ; i++ )
64
		for ( var i = 0 ; i < oActiveEl.options.length ; i++ )
Line 56... Line 65...
56
		{
65
		{
57
			var sText	= oActiveEl.options[i].innerHTML ;
66
			var sText	= HTMLDecode( oActiveEl.options[i].innerHTML ) ;
58
			var sValue	= oActiveEl.options[i].value ;
67
			var sValue	= oActiveEl.options[i].value ;
59
 
68
 
60
			AddComboOption( oListText, sText, sText ) ;
69
			AddComboOption( oListText, sText, sText ) ;
61
			AddComboOption( oListValue, sValue, sValue ) ;
70
			AddComboOption( oListValue, sValue, sValue ) ;
Line 62... Line 71...
62
		}
71
		}
-
 
72
	}
-
 
73
	else
63
	}
74
		oActiveEl = null ;
Line 64... Line 75...
64
	else
75
 
65
		oActiveEl = null ;
76
	dialog.SetOkButton( true ) ;
-
 
77
	dialog.SetAutoSize( true ) ;
-
 
78
	SelectField( 'txtName' ) ;
66
 
79
}
67
	window.parent.SetOkButton( true ) ;
80
 
68
}
81
function Ok()
Line 69... Line -...
69
 
-
 
70
function Ok()
-
 
71
{
82
{
72
	var sSize = GetE('txtLines').value ;
-
 
73
	if ( sSize == null || isNaN( sSize ) || sSize <= 1 )
-
 
Line 74... Line -...
74
		sSize = '' ;
-
 
75
 
83
	oEditor.FCKUndo.SaveUndoStep() ;
76
	if ( !oActiveEl )
84
 
Line 77... Line 85...
77
	{
85
	var sSize = GetE('txtLines').value ;
78
		oActiveEl = oEditor.FCK.EditorDocument.createElement( 'SELECT' ) ;
86
	if ( sSize == null || isNaN( sSize ) || sSize <= 1 )
Line 106... Line 114...
106
	return true ;
114
	return true ;
107
}
115
}
Line 108... Line 116...
108
 
116
 
109
		</script>
117
		</script>
110
	</head>
118
	</head>
111
	<body style='OVERFLOW: hidden' scroll='no'>
119
	<body style="overflow: hidden">
112
		<table width="100%" height="100%">
120
		<table width="100%" height="100%">
113
			<tr>
121
			<tr>
114
				<td>
122
				<td>
115
					<table width="100%">
123
					<table width="100%">