1 |
528
|
doc
|
<!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 |
|
|
|
32 |
|
|
var oEditor = window.parent.InnerDialogLoaded() ;
|
33 |
|
|
|
34 |
|
|
// Gets the document DOM
|
35 |
|
|
var oDOM = oEditor.FCK.EditorDocument ;
|
36 |
|
|
|
37 |
|
|
var oActiveEl = oEditor.FCKSelection.MoveToAncestorNode( 'FORM' ) ;
|
38 |
|
|
|
39 |
|
|
window.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 |
|
|
window.parent.SetAutoSize( true ) ;
|
55 |
|
|
}
|
56 |
|
|
|
57 |
|
|
function Ok()
|
58 |
|
|
{
|
59 |
|
|
if ( !oActiveEl )
|
60 |
|
|
{
|
61 |
|
|
oActiveEl = oEditor.FCK.InsertElement( 'form' ) ;
|
62 |
|
|
|
63 |
|
|
if ( oEditor.FCKBrowserInfo.IsGeckoLike )
|
64 |
|
|
oEditor.FCKTools.AppendBogusBr( oActiveEl ) ;
|
65 |
|
|
}
|
66 |
|
|
|
67 |
|
|
oActiveEl.name = GetE('txtName').value ;
|
68 |
|
|
SetAttribute( oActiveEl, 'action', GetE('txtAction').value ) ;
|
69 |
|
|
oActiveEl.method = GetE('txtMethod').value ;
|
70 |
|
|
|
71 |
|
|
return true ;
|
72 |
|
|
}
|
73 |
|
|
|
74 |
|
|
</script>
|
75 |
|
|
</head>
|
76 |
|
|
<body style="overflow: hidden">
|
77 |
|
|
<table width="100%" style="height: 100%">
|
78 |
|
|
<tr>
|
79 |
|
|
<td align="center">
|
80 |
|
|
<table cellspacing="0" cellpadding="0" width="80%" border="0">
|
81 |
|
|
<tr>
|
82 |
|
|
<td>
|
83 |
|
|
<span fcklang="DlgFormName">Name</span><br />
|
84 |
|
|
<input style="width: 100%" type="text" id="txtName" />
|
85 |
|
|
</td>
|
86 |
|
|
</tr>
|
87 |
|
|
<tr>
|
88 |
|
|
<td>
|
89 |
|
|
<span fcklang="DlgFormAction">Action</span><br />
|
90 |
|
|
<input style="width: 100%" type="text" id="txtAction" />
|
91 |
|
|
</td>
|
92 |
|
|
</tr>
|
93 |
|
|
<tr>
|
94 |
|
|
<td>
|
95 |
|
|
<span fcklang="DlgFormMethod">Method</span><br />
|
96 |
|
|
<select id="txtMethod">
|
97 |
|
|
<option value="get" selected="selected">GET</option>
|
98 |
|
|
<option value="post">POST</option>
|
99 |
|
|
</select>
|
100 |
|
|
</td>
|
101 |
|
|
</tr>
|
102 |
|
|
</table>
|
103 |
|
|
</td>
|
104 |
|
|
</tr>
|
105 |
|
|
</table>
|
106 |
|
|
</body>
|
107 |
|
|
</html>
|