Subversion Repositories Applications.papyrus

Rev

Rev 1925 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1925 Rev 2048
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 - http://www.fckeditor.net
3
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
4
 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
4
 * Copyright (C) 2003-2009 Frederico Caldeira Knabben
5
 *
5
 *
6
 * == BEGIN LICENSE ==
6
 * == BEGIN LICENSE ==
7
 *
7
 *
8
 * Licensed under the terms of any of the following licenses at your
8
 * Licensed under the terms of any of the following licenses at your
9
 * choice:
9
 * choice:
10
 *
10
 *
11
 *  - GNU General Public License Version 2 or later (the "GPL")
11
 *  - GNU General Public License Version 2 or later (the "GPL")
12
 *    http://www.gnu.org/licenses/gpl.html
12
 *    http://www.gnu.org/licenses/gpl.html
13
 *
13
 *
14
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
14
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
15
 *    http://www.gnu.org/licenses/lgpl.html
15
 *    http://www.gnu.org/licenses/lgpl.html
16
 *
16
 *
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
18
 *    http://www.mozilla.org/MPL/MPL-1.1.html
18
 *    http://www.mozilla.org/MPL/MPL-1.1.html
19
 *
19
 *
20
 * == END LICENSE ==
20
 * == END LICENSE ==
21
 *
21
 *
22
 * Hidden Field dialog window.
22
 * Hidden Field dialog window.
23
-->
23
-->
24
<html xmlns="http://www.w3.org/1999/xhtml">
24
<html xmlns="http://www.w3.org/1999/xhtml">
25
<head>
25
<head>
26
	<title>Hidden Field Properties</title>
26
	<title>Hidden Field Properties</title>
27
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
27
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
28
	<meta content="noindex, nofollow" name="robots" />
28
	<meta content="noindex, nofollow" name="robots" />
29
	<script src="common/fck_dialog_common.js" type="text/javascript"></script>
29
	<script src="common/fck_dialog_common.js" type="text/javascript"></script>
30
	<script type="text/javascript">
30
	<script type="text/javascript">
31
 
31
 
32
var dialog	= window.parent ;
32
var dialog	= window.parent ;
33
var oEditor = dialog.InnerDialogLoaded() ;
33
var oEditor = dialog.InnerDialogLoaded() ;
34
 
34
 
35
var FCK = oEditor.FCK ;
35
var FCK = oEditor.FCK ;
36
 
36
 
37
// Gets the document DOM
37
// Gets the document DOM
38
var oDOM = FCK.EditorDocument ;
38
var oDOM = FCK.EditorDocument ;
39
 
39
 
40
// Get the selected flash embed (if available).
40
// Get the selected flash embed (if available).
41
var oFakeImage = dialog.Selection.GetSelectedElement() ;
41
var oFakeImage = dialog.Selection.GetSelectedElement() ;
42
var oActiveEl ;
42
var oActiveEl ;
43
 
43
 
44
if ( oFakeImage )
44
if ( oFakeImage )
45
{
45
{
46
	if ( oFakeImage.tagName == 'IMG' && oFakeImage.getAttribute('_fckinputhidden') )
46
	if ( oFakeImage.tagName == 'IMG' && oFakeImage.getAttribute('_fckinputhidden') )
47
		oActiveEl = FCK.GetRealElement( oFakeImage ) ;
47
		oActiveEl = FCK.GetRealElement( oFakeImage ) ;
48
	else
48
	else
49
		oFakeImage = null ;
49
		oFakeImage = null ;
50
}
50
}
51
 
51
 
52
window.onload = function()
52
window.onload = function()
53
{
53
{
54
	// First of all, translate the dialog box texts
54
	// First of all, translate the dialog box texts
55
	oEditor.FCKLanguageManager.TranslatePage(document) ;
55
	oEditor.FCKLanguageManager.TranslatePage(document) ;
56
 
56
 
57
	if ( oActiveEl )
57
	if ( oActiveEl )
58
	{
58
	{
59
		GetE('txtName').value		= oActiveEl.name ;
59
		GetE('txtName').value		= oActiveEl.name ;
60
		GetE('txtValue').value		= oActiveEl.value ;
60
		GetE('txtValue').value		= oActiveEl.value ;
61
	}
61
	}
62
 
62
 
63
	dialog.SetOkButton( true ) ;
63
	dialog.SetOkButton( true ) ;
64
	dialog.SetAutoSize( true ) ;
64
	dialog.SetAutoSize( true ) ;
65
	SelectField( 'txtName' ) ;
65
	SelectField( 'txtName' ) ;
66
}
66
}
67
 
67
 
68
 
68
 
69
function Ok()
69
function Ok()
70
{
70
{
71
	oEditor.FCKUndo.SaveUndoStep() ;
71
	oEditor.FCKUndo.SaveUndoStep() ;
72
 
72
 
73
	oActiveEl = CreateNamedElement( oEditor, oActiveEl, 'INPUT', {name: GetE('txtName').value, type: 'hidden' } ) ;
73
	oActiveEl = CreateNamedElement( oEditor, oActiveEl, 'INPUT', {name: GetE('txtName').value, type: 'hidden' } ) ;
74
 
74
 
75
	SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ;
75
	SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ;
76
 
76
 
77
	if ( !oFakeImage )
77
	if ( !oFakeImage )
78
	{
78
	{
79
		oFakeImage	= oEditor.FCKDocumentProcessor_CreateFakeImage( 'FCK__InputHidden', oActiveEl ) ;
79
		oFakeImage	= oEditor.FCKDocumentProcessor_CreateFakeImage( 'FCK__InputHidden', oActiveEl ) ;
80
		oFakeImage.setAttribute( '_fckinputhidden', 'true', 0 ) ;
80
		oFakeImage.setAttribute( '_fckinputhidden', 'true', 0 ) ;
81
 
81
 
82
		oActiveEl.parentNode.insertBefore( oFakeImage, oActiveEl ) ;
82
		oActiveEl.parentNode.insertBefore( oFakeImage, oActiveEl ) ;
83
		oActiveEl.parentNode.removeChild( oActiveEl ) ;
83
		oActiveEl.parentNode.removeChild( oActiveEl ) ;
84
	}
84
	}
85
	else
85
	else
86
		oEditor.FCKUndo.SaveUndoStep() ;
86
		oEditor.FCKUndo.SaveUndoStep() ;
87
 
87
 
88
	return true ;
88
	return true ;
89
}
89
}
90
 
90
 
91
	</script>
91
	</script>
92
</head>
92
</head>
93
<body style="overflow: hidden" scroll="no">
93
<body style="overflow: hidden" scroll="no">
94
	<table height="100%" width="100%">
94
	<table height="100%" width="100%">
95
		<tr>
95
		<tr>
96
			<td align="center">
96
			<td align="center">
97
				<table border="0" class="inhoud" cellpadding="0" cellspacing="0" width="80%">
97
				<table border="0" class="inhoud" cellpadding="0" cellspacing="0" width="80%">
98
					<tr>
98
					<tr>
99
						<td>
99
						<td>
100
							<span fcklang="DlgHiddenName">Name</span><br />
100
							<span fcklang="DlgHiddenName">Name</span><br />
101
							<input type="text" size="20" id="txtName" style="width: 100%" />
101
							<input type="text" size="20" id="txtName" style="width: 100%" />
102
						</td>
102
						</td>
103
					</tr>
103
					</tr>
104
					<tr>
104
					<tr>
105
						<td>
105
						<td>
106
							<span fcklang="DlgHiddenValue">Value</span><br />
106
							<span fcklang="DlgHiddenValue">Value</span><br />
107
							<input type="text" size="30" id="txtValue" style="width: 100%" />
107
							<input type="text" size="30" id="txtValue" style="width: 100%" />
108
						</td>
108
						</td>
109
					</tr>
109
					</tr>
110
				</table>
110
				</table>
111
			</td>
111
			</td>
112
		</tr>
112
		</tr>
113
	</table>
113
	</table>
114
</body>
114
</body>
115
</html>
115
</html>