1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
\r
3 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
\r
4 * Copyright (C) 2003-2007 Frederico Caldeira Knabben
\r
6 * == BEGIN LICENSE ==
\r
8 * Licensed under the terms of any of the following licenses at your
\r
11 * - GNU General Public License Version 2 or later (the "GPL")
\r
12 * http://www.gnu.org/licenses/gpl.html
\r
14 * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
\r
15 * http://www.gnu.org/licenses/lgpl.html
\r
17 * - Mozilla Public License Version 1.1 or later (the "MPL")
\r
18 * http://www.mozilla.org/MPL/MPL-1.1.html
\r
22 * Checkbox dialog window.
\r
26 <title>Checkbox Properties</title>
\r
27 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
\r
28 <meta content="noindex, nofollow" name="robots">
\r
29 <script src="common/fck_dialog_common.js" type="text/javascript"></script>
\r
30 <script type="text/javascript">
\r
32 var oEditor = window.parent.InnerDialogLoaded() ;
\r
34 // Gets the document DOM
\r
35 var oDOM = oEditor.FCK.EditorDocument ;
\r
37 var oActiveEl = oEditor.FCKSelection.GetSelectedElement() ;
\r
39 window.onload = function()
\r
41 // First of all, translate the dialog box texts
\r
42 oEditor.FCKLanguageManager.TranslatePage(document) ;
\r
44 if ( oActiveEl && oActiveEl.tagName == 'INPUT' && oActiveEl.type == 'checkbox' )
\r
46 GetE('txtName').value = oActiveEl.name ;
\r
47 GetE('txtValue').value = oEditor.FCKBrowserInfo.IsIE ? oActiveEl.value : GetAttribute( oActiveEl, 'value' ) ;
\r
48 GetE('txtSelected').checked = oActiveEl.checked ;
\r
53 window.parent.SetOkButton( true ) ;
\r
60 oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ;
\r
61 oActiveEl.type = 'checkbox' ;
\r
62 oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ;
\r
65 if ( GetE('txtName').value.length > 0 )
\r
66 oActiveEl.name = GetE('txtName').value ;
\r
68 if ( oEditor.FCKBrowserInfo.IsIE )
\r
69 oActiveEl.value = GetE('txtValue').value ;
\r
71 SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ;
\r
73 var bIsChecked = GetE('txtSelected').checked ;
\r
74 SetAttribute( oActiveEl, 'checked', bIsChecked ? 'checked' : null ) ; // For Firefox
\r
75 oActiveEl.checked = bIsChecked ;
\r
82 <body style="OVERFLOW: hidden" scroll="no">
\r
83 <table height="100%" width="100%">
\r
86 <table border="0" cellpadding="0" cellspacing="0" width="80%">
\r
89 <span fckLang="DlgCheckboxName">Name</span><br>
\r
90 <input type="text" size="20" id="txtName" style="WIDTH: 100%">
\r
95 <span fckLang="DlgCheckboxValue">Value</span><br>
\r
96 <input type="text" size="20" id="txtValue" style="WIDTH: 100%">
\r
100 <td><input type="checkbox" id="txtSelected"><label for="txtSelected" fckLang="DlgCheckboxSelected">Checked</label></td>
\r