source: trunk/admin/inc/FCKeditor/editor/dialog/fck_hiddenfield.html@ 161

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

importo il progetto

File size: 2.3 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_hiddenfield.html
15 * Hidden Field dialog window.
16 *
17 * File Authors:
18 * Frederico Caldeira Knabben (fredck@fckeditor.net)
19-->
20<html>
21 <head>
22 <title>Hidden Field Properties</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.GetSelectedElement() ;
34
35window.onload = function()
36{
37 // First of all, translate the dialog box texts
38 oEditor.FCKLanguageManager.TranslatePage(document) ;
39
40 if ( oActiveEl && oActiveEl.tagName == 'INPUT' && oActiveEl.type == 'hidden' )
41 {
42 GetE('txtName').value = oActiveEl.name ;
43 GetE('txtValue').value = oActiveEl.value ;
44 }
45 else
46 oActiveEl = null ;
47
48 window.parent.SetOkButton( true ) ;
49}
50
51
52function Ok()
53{
54 if ( !oActiveEl )
55 {
56 oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ;
57 oActiveEl.type = 'hidden' ;
58 oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ;
59 }
60
61 oActiveEl.name = GetE('txtName').value ;
62 SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ;
63
64 return true ;
65}
66
67 </script>
68 </head>
69 <body style="OVERFLOW: hidden" scroll="no">
70 <table height="100%" width="100%">
71 <tr>
72 <td align="center">
73 <table border="0" class="inhoud" cellpadding="0" cellspacing="0" width="80%">
74 <tr>
75 <td>
76 <span fckLang="DlgHiddenName">Name</span><br>
77 <input type="text" size="20" id="txtName" style="width: 100%">
78 </td>
79 </tr>
80 <tr>
81 <td>
82 <span fckLang="DlgHiddenValue">Value</span><br>
83 <input type="text" size="30" id="txtValue" style="width: 100%">
84 </td>
85 </tr>
86 </table>
87 </td>
88 </tr>
89 </table>
90 </body>
91</html>
Note: See TracBrowser for help on using the repository browser.