OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / scripts / fckeditor2.6.6 / editor / dialog / fck_form.html
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-2010 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 dialog      = window.parent ;
33 var oEditor = dialog.InnerDialogLoaded() ;
34
35 // Gets the document DOM
36 var oDOM = oEditor.FCK.EditorDocument ;
37
38 var oActiveEl = dialog.Selection.GetSelection().MoveToAncestorNode( 'FORM' ) ;
39
40 window.onload = function()
41 {
42         // First of all, translate the dialog box texts
43         oEditor.FCKLanguageManager.TranslatePage(document) ;
44
45         if ( oActiveEl )
46         {
47                 GetE('txtName').value   = oActiveEl.name ;
48                 GetE('txtAction').value = oActiveEl.getAttribute( 'action', 2 ) ;
49                 GetE('txtMethod').value = oActiveEl.method ;
50         }
51         else
52                 oActiveEl = null ;
53
54         dialog.SetOkButton( true ) ;
55         dialog.SetAutoSize( true ) ;
56         SelectField( 'txtName' ) ;
57 }
58
59 function Ok()
60 {
61         if ( !oActiveEl )
62         {
63                 oActiveEl = oEditor.FCK.InsertElement( 'form' ) ;
64
65                 if ( oEditor.FCKBrowserInfo.IsGeckoLike )
66                         oEditor.FCKTools.AppendBogusBr( oActiveEl ) ;
67         }
68
69         oActiveEl.name = GetE('txtName').value ;
70         SetAttribute( oActiveEl, 'action', GetE('txtAction').value ) ;
71         oActiveEl.method = GetE('txtMethod').value ;
72
73         return true ;
74 }
75
76         </script>
77 </head>
78 <body style="overflow: hidden">
79         <table width="100%" style="height: 100%">
80                 <tr>
81                         <td align="center">
82                                 <table cellspacing="0" cellpadding="0" width="80%" border="0">
83                                         <tr>
84                                                 <td>
85                                                         <span fcklang="DlgFormName">Name</span><br />
86                                                         <input style="width: 100%" type="text" id="txtName" />
87                                                 </td>
88                                         </tr>
89                                         <tr>
90                                                 <td>
91                                                         <span fcklang="DlgFormAction">Action</span><br />
92                                                         <input style="width: 100%" type="text" id="txtAction" />
93                                                 </td>
94                                         </tr>
95                                         <tr>
96                                                 <td>
97                                                         <span fcklang="DlgFormMethod">Method</span><br />
98                                                         <select id="txtMethod">
99                                                                 <option value="get" selected="selected">GET</option>
100                                                                 <option value="post">POST</option>
101                                                         </select>
102                                                 </td>
103                                         </tr>
104                                 </table>
105                         </td>
106                 </tr>
107         </table>
108 </body>
109 </html>