1414<link rel="stylesheet" type="text/css" href="multiple-results.css">
1515</head>
1616
17- <body class="results" onLoad="top.document.getElementById ('loadingMask').style.visibility = 'hidden'">
17+ <body class="results" onLoad="top.get ('loadingMask').style.visibility = 'hidden'">
1818
1919<h1 id="title"></h1>
2020<div class="resultsPane" id="resultsPane">
9090 }
9191 }
9292 if (userTarget.indexOf("all")>-1 || (userTarget.indexOf("selected")>-1 && foundInSelected)) {
93- resultsDisplay += '<a href="javascript:top.ICEcoder.openFile(\'<?php echo $ docRoot ;?> '+targetURL.replace(/\|/g,"/").replace(/_perms/g,"")+'\');top.ICEcoder.showHide(\'hide\',top.document.getElementById (\'blackMask\'))">';
93+ resultsDisplay += '<a href="javascript:top.ICEcoder.openFile(\'<?php echo $ docRoot ;?> '+targetURL.replace(/\|/g,"/").replace(/_perms/g,"")+'\');top.ICEcoder.showHide(\'hide\',top.get (\'blackMask\'))">';
9494 resultsDisplay += targetURL.replace(/\|/g,"/").replace(/_perms/g,"").replace(/<?php echo str_replace ("/ " ,"\/ " ,strtolower ($ findText )); ?> /g,"<b>"+findText.toLowerCase()+"</b>");
9595 resultsDisplay += '</a><br>';
9696 <?php if (!isset ($ _GET ['replace ' ])) { ?>
@@ -135,7 +135,7 @@ function phpGrep($q, $path, $base) {
135135 }
136136 }
137137 if (!$ bFile && (count ($ selectedFiles )==0 || count ($ selectedFiles )>0 && $ foundInSelFile )) {
138- $ ret .= "<a href= \\\"javascript:top.ICEcoder.openFile(' " .$ fullPath ."');top.ICEcoder.showHide('hide',top.document.getElementById ('blackMask')) \\\"> " ;
138+ $ ret .= "<a href= \\\"javascript:top.ICEcoder.openFile(' " .$ fullPath ."');top.ICEcoder.showHide('hide',top.get ('blackMask')) \\\"> " ;
139139 $ ret .= str_replace ($ base ,"" ,$ fullPath )."</a><div id= \\\"foundCount " .$ r ."\\\">Found " .substr_count (strtolower (toUTF8noBOM (file_get_contents ($ fullPath ,false ,$ context ),false )),$ q )." times</div> " ;
140140 if (isset ($ _GET ['replace ' ])) {
141141 $ ret .= "<div class= \\\"replace \\\" id= \\\"replace \\\" onClick= \\\"replaceInFileSingle(' " .$ fullPath ."');this.style.display=\'none\' \\\">replace</div> " ;
@@ -157,7 +157,7 @@ function phpGrep($q, $path, $base) {
157157}
158158?>
159159showHide = foundArray.length==0 ? "hide" : "show";
160- top.ICEcoder.showHide(showHide,top.document.getElementById ('blackMask'));
160+ top.ICEcoder.showHide(showHide,top.get ('blackMask'));
161161if (foundArray.length==0) {top.ICEcoder.message('No matches found')};
162162<?php if (isset ($ _GET ['replace ' ])) { ?>
163163if (foundArray.length!=0) {document.getElementById('replaceAll').style.opacity = 1};
@@ -170,22 +170,22 @@ function phpGrep($q, $path, $base) {
170170
171171var gotoTab = function(tab) {
172172 top.ICEcoder.switchTab(tab);
173- top.ICEcoder.showHide('hide',top.document.getElementById ('blackMask'));
173+ top.ICEcoder.showHide('hide',top.get ('blackMask'));
174174}
175175
176176var replaceSingle = function(tab) {
177177 top.ICEcoder.switchTab(tab);
178178 cM = top.ICEcoder.getcMInstance();
179179 content = cM.getValue();
180- cM.setValue(cM.getValue().replace(rExp,top.document.getElementById ('replace').value));
180+ cM.setValue(cM.getValue().replace(rExp,top.get ('replace').value));
181181 document.getElementById('foundCount'+tab).innerHTML = document.getElementById('foundCount'+tab).innerHTML.replace('Found','Replaced');
182182}
183183
184184var replaceAll = function() {
185185 for (var i=0;i<=foundArray.length-1;i++) {
186186 replaceSingle(foundArray[i]);
187187 }
188- top.ICEcoder.showHide('hide',top.document.getElementById ('blackMask'));
188+ top.ICEcoder.showHide('hide',top.get ('blackMask'));
189189}
190190
191191var replaceInFileSingle = function(fileRef) {
@@ -196,7 +196,7 @@ function phpGrep($q, $path, $base) {
196196 for (var i=0;i<=foundArray.length-1;i++) {
197197 replaceInFileSingle(foundArray[i]);
198198 }
199- top.ICEcoder.showHide('hide',top.document.getElementById ('blackMask'));
199+ top.ICEcoder.showHide('hide',top.get ('blackMask'));
200200}
201201
202202var renameSingle = function(arrayRef) {
@@ -209,7 +209,7 @@ function phpGrep($q, $path, $base) {
209209 for (var i=0;i<=foundArray.length-1;i++) {
210210 renameSingle(foundArray[i]);
211211 }
212- top.ICEcoder.showHide('hide',top.document.getElementById ('blackMask'));
212+ top.ICEcoder.showHide('hide',top.get ('blackMask'));
213213}
214214</script>
215215
0 commit comments