Salome HOME
Duplicated menu after a second study opening is fixed.
[tools/siman.git] / Workspace / Siman / WebContent / rtef / replace.htm
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--Thanks to Tom Bovingdon and Rob Rix-->
3 <html>
4 <head> 
5 <script>document.write("<title>"+window.opener.lblSearch+"</title>");</script>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7 <style type="text/css">
8 <!-- 
9 body { background-color: #EFEDDE; margin: 10px;}
10 table { font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 12px; }
11 legend { font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 14px; padding-left: 5px; padding-right: 8px; }
12 .style2 {font-size: 18px; background:black; font-weight:bold; color:white; display:block; width:100%; }
13 .show {left:auto;top:auto;position:auto;}
14 .hide {left:-1000px;top:-1000px;position:absolute;}
15 -->
16 </style>
17 <script language="JavaScript" type="text/javascript"> 
18 <!-- 
19 if(opener.isIE7) {
20   window.resizeTo(515, 250);
21 } else if(document.all) {
22   window.resizeTo(515, 240);
23 } else {
24         window.resizeTo(503, 236);
25 }
26
27 function submitForm() {
28         if(document.getElementById("searchText").value == ""){
29     alert(window.opener.lblSearchVal0);
30                 return;
31         }
32   var searchText = document.getElementById("searchText").value;
33   var replaceText = document.getElementById("replaceText").value;
34   window.opener.SearchAndReplace(searchText, replaceText, document.getElementById("matchCase").checked, document.getElementById("wholeWord").checked);
35         window.close();
36         return false;
37 }
38 //--> 
39 </script> 
40 </head><body><form name="linkForm">
41 <table cellpadding="0" cellspacing="0" border="0" width=100%><tr>
42 <td><fieldset style="margin-left: 5px;"><legend><script>document.write(window.opener.lblSearch);</script></legend>
43 <div style="padding: 2px;"></div><table cellpadding="4" cellspacing="0" border="0" width=100%>
44    <tr>
45       <td align="right" nowrap><script>document.write(window.opener.lblSearchFind);</script>:&nbsp;</td>
46       <td><input name="searchText" type="text" id="searchText" style="width:250px;height:18px;font-size:14px" value=""></td>
47    </tr>
48    <tr>
49       <td align="right" nowrap><script>document.write(window.opener.lblSearchReplace);</script>:&nbsp;</td>
50       <td><input name="replaceText" type="text" id="replaceText" style="width:250px;height:18px;font-size:14px" value=""></td>
51    </tr> 
52    <tr>
53       <td align="right" nowrap>&nbsp;</td>
54       <td align="left">
55          <input id=matchCase name=matchCase type=checkbox><script>document.write(window.opener.lblSearchMatch);</script><br>
56                                  <input id=wholeWord name=wholeWord type=checkbox><script>document.write(window.opener.lblSearchWholeWord);</script>
57       </td> 
58    </tr>
59 </table> 
60 <div style="padding: 2px;"></div>
61 </fieldset></td><td><td align="left" valign="top" style="padding: 8px;">
62 <input type="button" name="btnsubmit" value="" style="width:100px" onclick="submitForm();"/><br>
63 <input type="button" name="btncancel" value="" style="width:100px;" onClick="window.close();"/>
64 </td></tr></table></form></body></html>
65 <script>
66 document.linkForm.btnsubmit.value = window.opener.lblSearchSubmit;
67 document.linkForm.btncancel.value = window.opener.lblSearchCancel;
68 </script>