Subversion Repositories Applications.papyrus

Rev

Rev 431 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 431 Rev 875
Line 1... Line 1...
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
<!--
2
<!--
3
 * FCKeditor - The text editor for internet
3
 * FCKeditor - The text editor for internet
4
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
4
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
5
 * 
5
 * 
6
 * Licensed under the terms of the GNU Lesser General Public License:
6
 * Licensed under the terms of the GNU Lesser General Public License:
7
 * 		http://www.opensource.org/licenses/lgpl-license.php
7
 * 		http://www.opensource.org/licenses/lgpl-license.php
8
 * 
8
 * 
9
 * For further information visit:
9
 * For further information visit:
10
 * 		http://www.fckeditor.net/
10
 * 		http://www.fckeditor.net/
11
 * 
11
 * 
-
 
12
 * "Support Open Source software. What about a donation today?"
-
 
13
 * 
12
 * File Name: fck_find.html
14
 * File Name: fck_find.html
13
 * 	"Find" dialog window.
15
 * 	"Find" dialog window.
14
 * 
16
 * 
15
 * File Authors:
17
 * File Authors:
16
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
18
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
17
-->
19
-->
-
 
20
<html xmlns="http://www.w3.org/1999/xhtml">
18
<html>
21
<head>
19
	<head>
22
	<title></title>
20
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
23
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
21
		<meta content="noindex, nofollow" name="robots">
24
	<meta content="noindex, nofollow" name="robots" />
22
		<script type="text/javascript">
25
	<script type="text/javascript">
Line 23... Line 26...
23
 
26
 
Line 24... Line 27...
24
var oEditor = window.parent.InnerDialogLoaded() ;
27
var oEditor = window.parent.InnerDialogLoaded() ;
25
 
28
 
Line 78... Line 81...
78
function GetCase()
81
function GetCase()
79
{
82
{
80
	return ( document.getElementById('chkCase').checked ? '' : 'i' ) ;
83
	return ( document.getElementById('chkCase').checked ? '' : 'i' ) ;
81
}
84
}
Line 82... Line -...
82
 
-
 
83
var oRange = oEditor.FCK.EditorDocument.body.createTextRange() ;
-
 
84
 
85
 
85
function Ok()
86
function Ok()
86
{
87
{
87
	if ( document.getElementById('txtFind').value.length == 0 )
88
	if ( document.getElementById('txtFind').value.length == 0 )
Line 91... Line 92...
91
		FindIE() ;
92
		FindIE() ;
92
	else
93
	else
93
		FindGecko() ;
94
		FindGecko() ;
94
}
95
}
Line -... Line 96...
-
 
96
 
-
 
97
var oRange ;
-
 
98
 
-
 
99
if ( oEditor.FCKBrowserInfo.IsIE )
-
 
100
	oRange = oEditor.FCK.EditorDocument.body.createTextRange() ;
95
 
101
 
96
function FindIE()
102
function FindIE()
97
{
103
{
Line 98... Line 104...
98
	var iFlags = 0 ;
104
	var iFlags = 0 ;
Line 126... Line 132...
126
 
132
 
127
	// window.find( searchString, caseSensitive, backwards, wrapAround, wholeWord, searchInFrames, showDialog ) ;
133
	// window.find( searchString, caseSensitive, backwards, wrapAround, wholeWord, searchInFrames, showDialog ) ;
Line 128... Line 134...
128
	oEditor.FCK.EditorWindow.find( document.getElementById('txtFind').value, bCase, false, false, bWord, false, false ) ;
134
	oEditor.FCK.EditorWindow.find( document.getElementById('txtFind').value, bCase, false, false, bWord, false, false ) ;
-
 
135
 
-
 
136
}
-
 
137
 
-
 
138
function FindGecko()
-
 
139
{
-
 
140
	var bCase = document.getElementById('chkCase').checked ;
-
 
141
	var bWord = document.getElementById('chkWord').checked ;
-
 
142
 
-
 
143
	// window.find( searchString, caseSensitive, backwards, wrapAround, wholeWord, searchInFrames, showDialog ) ;
-
 
144
	if ( !oEditor.FCK.EditorWindow.find( document.getElementById('txtFind').value, bCase, false, false, bWord, false, false ) )
129
 
145
		alert( oEditor.FCKLang.DlgFindNotFoundMsg ) ;
130
}
146
}
131
		</script>
147
	</script>
132
	</head>
148
</head>
133
	<body onload="OnLoad()" scroll="no" style="OVERFLOW: hidden">
149
<body onload="OnLoad()" scroll="no" style="overflow: hidden">
134
		<table cellSpacing="3" cellPadding="2" width="100%" border="0">
150
	<table cellspacing="3" cellpadding="2" width="100%" border="0">
135
			<tr>
151
		<tr>
-
 
152
			<td nowrap="nowrap">
136
				<td nowrap>
153
				<label for="txtFind" fcklang="DlgReplaceFindLbl">
137
					<label for="txtFind" fckLang="DlgReplaceFindLbl">Find what:</label>&nbsp;
154
					Find what:</label>&nbsp;
138
				</td>
155
			</td>
139
				<td width="100%">
156
			<td width="100%">
140
					<input id="txtFind" style="WIDTH: 100%" tabIndex="1" type="text">
157
				<input id="txtFind" style="width: 100%" tabindex="1" type="text" />
141
				</td>
158
			</td>
142
				<td>
159
			<td>
143
					<input id="btnFind" style="WIDTH: 100%; PADDING-RIGHT: 5px; PADDING-LEFT: 5px" onclick="Ok();"
160
				<input id="btnFind" style="padding-right: 5px; padding-left: 5px" onclick="Ok();"
144
						type="button" value="Find" fckLang="DlgFindFindBtn">
161
					type="button" value="Find" fcklang="DlgFindFindBtn" />
145
				</td>
162
			</td>
146
			</tr>
163
		</tr>
147
			<tr>
164
		<tr>
148
				<td valign="bottom" colSpan="3">
165
			<td valign="bottom" colspan="3">
149
					&nbsp;<input id="chkCase" tabIndex="3" type="checkbox"><label for="chkCase" fckLang="DlgReplaceCaseChk">Match 
166
				&nbsp;<input id="chkCase" tabindex="3" type="checkbox" /><label for="chkCase" fcklang="DlgReplaceCaseChk">Match
150
						case</label>
167
					case</label>
151
					<br>
168
				<br />
152
					<div id="divWord" style="DISPLAY: none">
169
				<div id="divWord" style="display: none">
153
						&nbsp;<input id="chkWord" tabIndex="4" type="checkbox"><label for="chkWord" fckLang="DlgReplaceWordChk">Match 
170
					&nbsp;<input id="chkWord" tabindex="4" type="checkbox" /><label for="chkWord" fcklang="DlgReplaceWordChk">Match
154
							whole word</label>
171
					whole word</label>
155
					</div>
172
				</div>
156
				</td>
173
			</td>
157
			</tr>
174
		</tr>
158
		</table>
175
	</table>