Subversion Repositories Applications.papyrus

Rev

Rev 431 | Go to most recent revision | Details | Compare with Previous | 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
 *
521 ddelon 12
 * "Support Open Source software. What about a donation today?"
13
 *
431 ddelon 14
 * File Name: fck_form.html
15
 * 	Checkbox dialog window.
16
 *
17
 * File Authors:
18
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
19
-->
20
<html>
21
	<head>
22
		<title>Checkbox 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
 
28
var oEditor = window.parent.InnerDialogLoaded() ;
29
 
30
// Gets the document DOM
31
var oDOM = oEditor.FCK.EditorDocument ;
32
 
33
var oActiveEl = oEditor.FCKSelection.MoveToAncestorNode( 'FORM' ) ;
34
 
35
window.onload = function()
36
{
37
	// First of all, translate the dialog box texts
38
	oEditor.FCKLanguageManager.TranslatePage(document) ;
39
 
40
	if ( oActiveEl )
41
	{
42
		GetE('txtName').value	= oActiveEl.name ;
43
		GetE('txtAction').value	= oActiveEl.action ;
44
		GetE('txtMethod').value	= oActiveEl.method ;
45
	}
46
	else
47
		oActiveEl = null ;
48
 
49
	window.parent.SetOkButton( true ) ;
50
}
51
 
52
function Ok()
53
{
54
	if ( !oActiveEl )
55
	{
56
		oActiveEl = oEditor.FCK.EditorDocument.createElement( 'FORM' ) ;
57
		oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ;
58
		oActiveEl.innerHTML = '&nbsp;' ;
59
	}
60
 
61
	oActiveEl.name = GetE('txtName').value ;
62
	SetAttribute( oActiveEl, 'action'	, GetE('txtAction').value ) ;
63
	oActiveEl.method = GetE('txtMethod').value ;
64
 
65
	return true ;
66
}
67
 
68
		</script>
69
	</head>
70
	<body style="OVERFLOW: hidden" scroll="no">
71
		<table height="100%" width="100%">
72
			<tr>
73
				<td>
74
					<table cellspacing="0" cellpadding="0" width="80%" border="0" valign="top" align="center">
75
						<tr>
76
							<td>
77
								<span fckLang="DlgFormName">Name</span><br>
78
								<input style="WIDTH: 100%" type="text" id="txtName">
79
							</td>
80
						</tr>
81
						<tr>
82
							<td>
83
								<span fckLang="DlgFormAction">Action</span><br>
84
								<input style="WIDTH: 100%" type="text" id="txtAction">
85
							</td>
86
						</tr>
87
						<tr>
88
							<td>
89
								<span fckLang="DlgFormMethod">Method</span><br>
90
								<select id="txtMethod">
91
									<option value="get" selected>GET</option>
92
									<option value="post">POST</option>
93
								</select>
94
							</td>
95
						</tr>
96
					</table>
97
				</td>
98
			</tr>
99
		</table>
100
	</body>
101
</html>