1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
2<!--
3 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
4 * Copyright (C) 2003-2007 Frederico Caldeira Knabben
5 *
6 * == BEGIN LICENSE ==
7 *
8 * Licensed under the terms of any of the following licenses at your
9 * choice:
10 *
11 *  - GNU General Public License Version 2 or later (the "GPL")
12 *    http://www.gnu.org/licenses/gpl.html
13 *
14 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
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 *
20 * == END LICENSE ==
21 *
22 * Form dialog window.
23-->
24<html xmlns="http://www.w3.org/1999/xhtml">
25<head>
26	<title></title>
27	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
28	<meta content="noindex, nofollow" name="robots" />
29	<script src="common/fck_dialog_common.js" type="text/javascript"></script>
30	<script type="text/javascript">
31
32var oEditor = window.parent.InnerDialogLoaded() ;
33
34// Gets the document DOM
35var oDOM = oEditor.FCK.EditorDocument ;
36
37var oActiveEl = oEditor.FCKSelection.MoveToAncestorNode( 'FORM' ) ;
38
39window.onload = function()
40{
41	// First of all, translate the dialog box texts
42	oEditor.FCKLanguageManager.TranslatePage(document) ;
43
44	if ( oActiveEl )
45	{
46		GetE('txtName').value	= oActiveEl.name ;
47		GetE('txtAction').value	= oActiveEl.getAttribute( 'action', 2 ) ;
48		GetE('txtMethod').value	= oActiveEl.method ;
49	}
50	else
51		oActiveEl = null ;
52
53	window.parent.SetOkButton( true ) ;
54}
55
56function Ok()
57{
58	if ( !oActiveEl )
59	{
60		oActiveEl = oEditor.FCK.InsertElement( 'form' ) ;
61
62		if ( oEditor.FCKBrowserInfo.IsGeckoLike )
63			oEditor.FCKTools.AppendBogusBr( oActiveEl ) ;
64	}
65
66	oActiveEl.name = GetE('txtName').value ;
67	SetAttribute( oActiveEl, 'action', GetE('txtAction').value ) ;
68	oActiveEl.method = GetE('txtMethod').value ;
69
70	return true ;
71}
72
73	</script>
74</head>
75<body style="overflow: hidden">
76	<table width="100%" style="height: 100%">
77		<tr>
78			<td align="center">
79				<table cellspacing="0" cellpadding="0" width="80%" border="0">
80					<tr>
81						<td>
82							<span fcklang="DlgFormName">Name</span><br />
83							<input style="width: 100%" type="text" id="txtName" />
84						</td>
85					</tr>
86					<tr>
87						<td>
88							<span fcklang="DlgFormAction">Action</span><br />
89							<input style="width: 100%" type="text" id="txtAction" />
90						</td>
91					</tr>
92					<tr>
93						<td>
94							<span fcklang="DlgFormMethod">Method</span><br />
95							<select id="txtMethod">
96								<option value="get" selected="selected">GET</option>
97								<option value="post">POST</option>
98							</select>
99						</td>
100					</tr>
101				</table>
102			</td>
103		</tr>
104	</table>
105</body>
106</html>
107