[or-cvs] r14992: (ticket:92) Adding modifications to the general header (torstatus/trunk/web)

kasimir at seul.org kasimir at seul.org
Fri Jun 6 15:34:33 UTC 2008


Author: kasimir
Date: 2008-06-06 11:34:33 -0400 (Fri, 06 Jun 2008)
New Revision: 14992

Modified:
   torstatus/trunk/web/header.php
Log:
(ticket:92) Adding modifications to the general header

Modified: torstatus/trunk/web/header.php
===================================================================
--- torstatus/trunk/web/header.php	2008-06-06 15:30:56 UTC (rev 14991)
+++ torstatus/trunk/web/header.php	2008-06-06 15:34:33 UTC (rev 14992)
@@ -55,14 +55,18 @@
 <form action="/index.php" method="post" name="search">
 <input type="hidden" name="CSMod" value="Contains" />
 <input type="hidden" name="CSField" value="Name" />
-<input type="text" class="searchbox" value="<?php echo ($CSInput)?htmlspecialchars($CSInput, ENT_QUOTES):"search for a router";?>" onfocus="javascript:if(this.value=='search for a router') { this.style.color = 'black';this.value=''; }" id="searchbox" name="CSInput"/><a href="javascript:document.search.submit();" class="searchbox"><img class="searchbox" alt="Search" src="/img/blank.gif" /></a><noscript><input type="submit" value="Search"/></noscript>
+<input type="text" class="searchbox" value="<?php echo ($CSInput)?htmlspecialchars($CSInput, ENT_QUOTES):"";?>" onfocus="javascript:if(this.value=='search by name or fingerprint') { this.style.color = 'black';this.value=''; }" id="searchbox" name="CSInput"/><a href="javascript:document.search.submit();" class="searchbox" id="searchbutton"></a><noscript><input type="submit" value="Name/Fingerprint Search"/></noscript>
 </form>
 </td></tr></table>
 <?php if (!$CSInput) { ?>
 <script type="text/javascript">
 	document.getElementById('searchbox').style.color = 'gray';
+	document.getElementById('searchbox').value = 'search by name or fingerprint';
 </script>
 <?php } ?>
+<script type="text/javascript">
+	document.getElementById('searchbutton').innerHTML = '<img class="searchbox" alt="Search" src="/img/blank.gif" />';
+</script>
 </div>
 <div class="separator"></div>
 <div class="mirrorbar">



More information about the tor-commits mailing list