Subversion Repositories Applications.papyrus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
431 ddelon 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
2
<!--
3
 * FCKeditor - The text editor for internet
4
 * Copyright (C) 2003-2005 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
 * File Name: fck_radiobutton.html
13
 * 	Radio Button dialog window.
14
 *
15
 * File Authors:
16
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
17
-->
18
<html>
19
	<head>
20
		<title>Radio Button Properties</title>
21
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
22
		<meta content="noindex, nofollow" name="robots">
23
		<script src="common/fck_dialog_common.js" type="text/javascript"></script>
24
		<script type="text/javascript">
25
 
26
var oEditor = window.parent.InnerDialogLoaded() ;
27
 
28
// Gets the document DOM
29
var oDOM = oEditor.FCK.EditorDocument ;
30
 
31
var oActiveEl = oEditor.FCKSelection.GetSelectedElement() ;
32
 
33
window.onload = function()
34
{
35
	// First of all, translate the dialog box texts
36
	oEditor.FCKLanguageManager.TranslatePage(document) ;
37
 
38
	if ( oActiveEl && oActiveEl.tagName.toUpperCase() == 'INPUT' && oActiveEl.type == 'radio' )
39
	{
40
		GetE('txtName').value		= oActiveEl.name ;
41
		GetE('txtValue').value		= oActiveEl.value ;
42
		GetE('txtSelected').checked	= oActiveEl.checked ;
43
	}
44
	else
45
		oActiveEl = null ;
46
 
47
	window.parent.SetOkButton( true ) ;
48
}
49
 
50
function Ok()
51
{
52
	if ( !oActiveEl )
53
	{
54
		oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ;
55
		oActiveEl.type = 'radio' ;
56
		oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ;
57
	}
58
 
59
	oActiveEl.name = GetE('txtName').value ;
60
	SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ;
61
 
62
	if ( GetE('txtSelected').checked )
63
	{
64
		SetAttribute( oActiveEl, 'checked', 'checked' ) ;
65
		oActiveEl.checked = GetE('txtSelected').checked ;
66
	}
67
 
68
	return true ;
69
}
70
 
71
		</script>
72
	</head>
73
	<body style="OVERFLOW: hidden" scroll="no">
74
		<table height="100%" width="100%">
75
			<tr>
76
				<td align="center">
77
					<table border="0" cellpadding="0" cellspacing="0" width="80%">
78
						<tr>
79
							<td>
80
								<span fckLang="DlgCheckboxName">Name</span><br>
81
								<input type="text" size="20" id="txtName" style="WIDTH: 100%">
82
							</td>
83
						</tr>
84
						<tr>
85
							<td>
86
								<span fckLang="DlgCheckboxValue">Value</span><br>
87
								<input type="text" size="20" id="txtValue" style="WIDTH: 100%">
88
							</td>
89
						</tr>
90
						<tr>
91
							<td><input type="checkbox" id="txtSelected"><label for="txtSelected" fckLang="DlgCheckboxSelected">Checked</label></td>
92
						</tr>
93
					</table>
94
				</td>
95
			</tr>
96
		</table>
97
	</body>
98
</html>