move code up one directory
[atutor.git] / mods / _standard / google_search / side_menu.inc.php
1 <?php\r
2 global $savant, $_config, $stripslashes;\r
3 ob_start(); \r
4 ?>\r
5 \r
6 <?php if ($_config['gsearch']): ?>\r
7         <form action="<?php echo $_base_path; ?>mods/_standard/google_search/index.php" method="get" name="gsearchform">\r
8 <?php else: ?>\r
9         <form action="http://www.google.com/search" method="get" target="_new">\r
10         <input type="hidden" name="l" value="<?php echo $_SESSION['lang']; ?>" />\r
11 <?php endif; ?>\r
12 \r
13 <?php if (!$_config['gsearch']): ?>\r
14         <?php echo _AT('google_new_window'); ?>\r
15 <?php endif; ?>\r
16 \r
17 <input type="hidden" name="search" value="1" />\r
18 \r
19 <input type="text" name="q" class="formfield" size="20" value="<?php echo $stripslashes(htmlspecialchars($_GET['q'])); ?>" /><br /><br />\r
20 <input type="hidden" name="submit" value="<?php echo _AT('search'); ?>" />\r
21 <input type="submit" class="button" />\r
22 </form>\r
23 \r
24 <?php\r
25 $savant->assign('dropdown_contents', ob_get_contents());\r
26 ob_end_clean();\r
27 \r
28 $savant->assign('title', _AT('google_search'));\r
29 $savant->display('include/box.tmpl.php');\r
30 \r
31 ?>