Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Show entire file | Regard 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
 * 
5
 *
6
 * Licensed under the terms of the GNU Lesser General Public License:
6
 * == BEGIN LICENSE ==
7
 * 		http://www.opensource.org/licenses/lgpl-license.php
-
 
8
 * 
7
 *
9
 * For further information visit:
8
 * Licensed under the terms of any of the following licenses at your
10
 * 		http://www.fckeditor.net/
9
 * choice:
11
 * 
10
 *
12
 * "Support Open Source software. What about a donation today?"
11
 *  - GNU General Public License Version 2 or later (the "GPL")
-
 
12
 *    http://www.gnu.org/licenses/gpl.html
13
 * 
13
 *
-
 
14
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
14
 * File Name: fck_form.html
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
 *
15
 * 	Form dialog window.
20
 * == END LICENSE ==
16
 * 
21
 *
17
 * File Authors:
22
 * Form dialog window.
18
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
-
 
19
-->
23
-->
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 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">
30
	<script type="text/javascript">
Line -... Line 31...
-
 
31
 
27
 
32
var dialog	= window.parent ;
Line 28... Line 33...
28
var oEditor = window.parent.InnerDialogLoaded() ;
33
var oEditor = dialog.InnerDialogLoaded() ;
29
 
34
 
Line 30... Line 35...
30
// Gets the document DOM
35
// Gets the document DOM
Line 31... Line 36...
31
var oDOM = oEditor.FCK.EditorDocument ;
36
var oDOM = oEditor.FCK.EditorDocument ;
32
 
37
 
33
var oActiveEl = oEditor.FCKSelection.MoveToAncestorNode( 'FORM' ) ;
38
var oActiveEl = dialog.Selection.GetSelection().MoveToAncestorNode( 'FORM' ) ;
34
 
39
 
Line 44... Line 49...
44
		GetE('txtMethod').value	= oActiveEl.method ;
49
		GetE('txtMethod').value	= oActiveEl.method ;
45
	}
50
	}
46
	else
51
	else
47
		oActiveEl = null ;
52
		oActiveEl = null ;
Line 48... Line 53...
48
 
53
 
-
 
54
	dialog.SetOkButton( true ) ;
-
 
55
	dialog.SetAutoSize( true ) ;
49
	window.parent.SetOkButton( true ) ;
56
	SelectField( 'txtName' ) ;
Line 50... Line 57...
50
}
57
}
51
 
58
 
52
function Ok()
59
function Ok()
53
{
60
{
54
	if ( !oActiveEl )
61
	if ( !oActiveEl )
-
 
62
	{
55
	{
63
		oActiveEl = oEditor.FCK.InsertElement( 'form' ) ;
56
		oActiveEl = oEditor.FCK.EditorDocument.createElement( 'FORM' ) ;
64
 
57
		oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ;
65
		if ( oEditor.FCKBrowserInfo.IsGeckoLike )
Line 58... Line 66...
58
		oActiveEl.innerHTML = '&nbsp;' ;
66
			oEditor.FCKTools.AppendBogusBr( oActiveEl ) ;
59
	}
67
	}
60
	
68