source: trunk/admin/inc/FCKeditor/editor/dialog/fck_form.html@ 2

Last change on this file since 2 was 2, checked in by root, 15 years ago

importo il progetto

File size: 2.6 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
2<!--
3 * FCKeditor - The text editor for internet
4 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
5 *
6 * Licensed under the terms of the GNU Lesser General Public License:
7 * http://www.opensource.org/licenses/lgpl-license.php
8 *
9 * For further information visit:
10 * http://www.fckeditor.net/
11 *
12 * "Support Open Source software. What about a donation today?"
13 *
14 * File Name: fck_form.html
15 * Form dialog window.
16 *
17 * File Authors:
18 * Frederico Caldeira Knabben (fredck@fckeditor.net)
19-->
20<html xmlns="http://www.w3.org/1999/xhtml">
21<head>
22 <title></title>
23 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
24 <meta content="noindex, nofollow" name="robots" />
25 <script src="common/fck_dialog_common.js" type="text/javascript"></script>
26 <script type="text/javascript">
27
28var oEditor = window.parent.InnerDialogLoaded() ;
29
30// Gets the document DOM
31var oDOM = oEditor.FCK.EditorDocument ;
32
33var oActiveEl = oEditor.FCKSelection.MoveToAncestorNode( 'FORM' ) ;
34
35window.onload = function()
36{
37 // First of all, translate the dialog box texts
38 oEditor.FCKLanguageManager.TranslatePage(document) ;
39
40 if ( oActiveEl )
41 {
42 GetE('txtName').value = oActiveEl.name ;
43 GetE('txtAction').value = oActiveEl.getAttribute( 'action', 2 ) ;
44 GetE('txtMethod').value = oActiveEl.method ;
45 }
46 else
47 oActiveEl = null ;
48
49 window.parent.SetOkButton( true ) ;
50}
51
52function Ok()
53{
54 if ( !oActiveEl )
55 {
56 oActiveEl = oEditor.FCK.EditorDocument.createElement( 'FORM' ) ;
57 oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ;
58 oActiveEl.innerHTML = '&nbsp;' ;
59 }
60
61 oActiveEl.name = GetE('txtName').value ;
62 SetAttribute( oActiveEl, 'action' , GetE('txtAction').value ) ;
63 oActiveEl.method = GetE('txtMethod').value ;
64
65 return true ;
66}
67
68 </script>
69</head>
70<body style="overflow: hidden">
71 <table width="100%" style="height: 100%">
72 <tr>
73 <td align="center">
74 <table cellspacing="0" cellpadding="0" width="80%" border="0">
75 <tr>
76 <td>
77 <span fcklang="DlgFormName">Name</span><br />
78 <input style="width: 100%" type="text" id="txtName" />
79 </td>
80 </tr>
81 <tr>
82 <td>
83 <span fcklang="DlgFormAction">Action</span><br />
84 <input style="width: 100%" type="text" id="txtAction" />
85 </td>
86 </tr>
87 <tr>
88 <td>
89 <span fcklang="DlgFormMethod">Method</span><br />
90 <select id="txtMethod">
91 <option value="get" selected="selected">GET</option>
92 <option value="post">POST</option>
93 </select>
94 </td>
95 </tr>
96 </table>
97 </td>
98 </tr>
99 </table>
100</body>
101</html>
Note: See TracBrowser for help on using the repository browser.