Advertisement
Guest User

dada

a guest
Apr 24th, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <div id="searchfield">
  2. <form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
  3. <a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
  4. <input class="biginput" type="text" name="search" value="', $txt['search'], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\'', $txt['search'], '...\';" style="width: 170px;" /> ';
  5.  
  6. // Search within current topic?
  7. if (!empty($context['current_topic']))
  8. echo '
  9. <input type="hidden" name="topic" value="', $context['current_topic'], '" />';
  10.  
  11. // If we're on a certain board, limit it to this board ;).
  12. elseif (!empty($context['current_board']))
  13. echo '
  14. <input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';
  15.  
  16. echo '
  17. </form>
  18. </div>
  19. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement