~alexharrington/xibo/pyclient-1.1.0a22

« back to all changes in this revision

Viewing changes to server/3rdparty/fckeditor/editor/dialog/fck_button.html

  • Committer: Alex Harrington
  • Date: 2009-03-02 17:27:19 UTC
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: alex@longhill.org.uk-20090302172719-7qigtqo1mjydo4b3
[core] Created folder to hold code used for central services to Xibo instances

Show diffs side-by-side

added added

removed removed

Lines of Context:
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-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
 
 * Button dialog window.
23
 
-->
24
 
<html xmlns="http://www.w3.org/1999/xhtml">
25
 
<head>
26
 
        <title>Button Properties</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.GetSelectedElement() ;
38
 
 
39
 
window.onload = function()
40
 
{
41
 
        // First of all, translate the dialog box texts
42
 
        oEditor.FCKLanguageManager.TranslatePage(document) ;
43
 
 
44
 
        if ( oActiveEl && oActiveEl.tagName.toUpperCase() == "INPUT" && ( oActiveEl.type == "button" || oActiveEl.type == "submit" || oActiveEl.type == "reset" ) )
45
 
        {
46
 
                GetE('txtName').value   = oActiveEl.name ;
47
 
                GetE('txtValue').value  = oActiveEl.value ;
48
 
                GetE('txtType').value   = oActiveEl.type ;
49
 
 
50
 
                GetE('txtType').disabled = true ;
51
 
        }
52
 
        else
53
 
                oActiveEl = null ;
54
 
 
55
 
        window.parent.SetOkButton( true ) ;
56
 
        window.parent.SetAutoSize( true ) ;
57
 
}
58
 
 
59
 
function Ok()
60
 
{
61
 
        oEditor.FCKUndo.SaveUndoStep() ;
62
 
        
63
 
        if ( !oActiveEl )
64
 
        {
65
 
                oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ;
66
 
                oActiveEl.type = GetE('txtType').value ;
67
 
                oActiveEl = oEditor.FCK.InsertElement( oActiveEl ) ;
68
 
        }
69
 
 
70
 
        oActiveEl.name = GetE('txtName').value ;
71
 
        SetAttribute( oActiveEl, 'value', GetE('txtValue').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 border="0" cellpadding="0" cellspacing="0" width="80%">
83
 
                                        <tr>
84
 
                                                <td colspan="">
85
 
                                                        <span fcklang="DlgCheckboxName">Name</span><br />
86
 
                                                        <input type="text" size="20" id="txtName" style="width: 100%" />
87
 
                                                </td>
88
 
                                        </tr>
89
 
                                        <tr>
90
 
                                                <td>
91
 
                                                        <span fcklang="DlgButtonText">Text (Value)</span><br />
92
 
                                                        <input type="text" id="txtValue" style="width: 100%" />
93
 
                                                </td>
94
 
                                        </tr>
95
 
                                        <tr>
96
 
                                                <td>
97
 
                                                        <span fcklang="DlgButtonType">Type</span><br />
98
 
                                                        <select id="txtType">
99
 
                                                                <option fcklang="DlgButtonTypeBtn" value="button" selected="selected">Button</option>
100
 
                                                                <option fcklang="DlgButtonTypeSbm" value="submit">Submit</option>
101
 
                                                                <option fcklang="DlgButtonTypeRst" value="reset">Reset</option>
102
 
                                                        </select>
103
 
                                                </td>
104
 
                                        </tr>
105
 
                                </table>
106
 
                        </td>
107
 
                </tr>
108
 
        </table>
109
 
</body>
110
 
</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-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
 * Button dialog window.
 
23
-->
 
24
<html xmlns="http://www.w3.org/1999/xhtml">
 
25
<head>
 
26
        <title>Button Properties</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.GetSelectedElement() ;
 
38
 
 
39
window.onload = function()
 
40
{
 
41
        // First of all, translate the dialog box texts
 
42
        oEditor.FCKLanguageManager.TranslatePage(document) ;
 
43
 
 
44
        if ( oActiveEl && oActiveEl.tagName.toUpperCase() == "INPUT" && ( oActiveEl.type == "button" || oActiveEl.type == "submit" || oActiveEl.type == "reset" ) )
 
45
        {
 
46
                GetE('txtName').value   = oActiveEl.name ;
 
47
                GetE('txtValue').value  = oActiveEl.value ;
 
48
                GetE('txtType').value   = oActiveEl.type ;
 
49
 
 
50
                GetE('txtType').disabled = true ;
 
51
        }
 
52
        else
 
53
                oActiveEl = null ;
 
54
 
 
55
        window.parent.SetOkButton( true ) ;
 
56
        window.parent.SetAutoSize( true ) ;
 
57
}
 
58
 
 
59
function Ok()
 
60
{
 
61
        oEditor.FCKUndo.SaveUndoStep() ;
 
62
        
 
63
        if ( !oActiveEl )
 
64
        {
 
65
                oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ;
 
66
                oActiveEl.type = GetE('txtType').value ;
 
67
                oActiveEl = oEditor.FCK.InsertElement( oActiveEl ) ;
 
68
        }
 
69
 
 
70
        oActiveEl.name = GetE('txtName').value ;
 
71
        SetAttribute( oActiveEl, 'value', GetE('txtValue').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 border="0" cellpadding="0" cellspacing="0" width="80%">
 
83
                                        <tr>
 
84
                                                <td colspan="">
 
85
                                                        <span fcklang="DlgCheckboxName">Name</span><br />
 
86
                                                        <input type="text" size="20" id="txtName" style="width: 100%" />
 
87
                                                </td>
 
88
                                        </tr>
 
89
                                        <tr>
 
90
                                                <td>
 
91
                                                        <span fcklang="DlgButtonText">Text (Value)</span><br />
 
92
                                                        <input type="text" id="txtValue" style="width: 100%" />
 
93
                                                </td>
 
94
                                        </tr>
 
95
                                        <tr>
 
96
                                                <td>
 
97
                                                        <span fcklang="DlgButtonType">Type</span><br />
 
98
                                                        <select id="txtType">
 
99
                                                                <option fcklang="DlgButtonTypeBtn" value="button" selected="selected">Button</option>
 
100
                                                                <option fcklang="DlgButtonTypeSbm" value="submit">Submit</option>
 
101
                                                                <option fcklang="DlgButtonTypeRst" value="reset">Reset</option>
 
102
                                                        </select>
 
103
                                                </td>
 
104
                                        </tr>
 
105
                                </table>
 
106
                        </td>
 
107
                </tr>
 
108
        </table>
 
109
</body>
 
110
</html>