tagging as ATutor 1.5.4-release
[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['search_query'])); ?>" /><br /><br />\r
20 <input type="submit" name="submit" value="<?php echo _AT('search'); ?>" class="button" />\r
21 </form>\r
22 \r
23 <?php\r
24 $savant->assign('dropdown_contents', ob_get_contents());\r
25 ob_end_clean();\r
26 \r
27 $savant->assign('title', _AT('google_search'));\r
28 $savant->display('include/box.tmpl.php');\r
29 \r
30 ?>