home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / modules / search / index.php
PHP Script  |  2004-03-08  |  2KB  |  58 lines

  1. <?php
  2. /*
  3. Copyright Intermesh 2003
  4. Author: Merijn Schering <mschering@intermesh.nl>
  5. Version: 1.0 Release date: 08 July 2003
  6.  
  7. This program is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the
  9. Free Software Foundation; either version 2 of the License, or (at your
  10. option) any later version.
  11. */
  12. require("../../Group-Office.php");
  13. $GO_SECURITY->authenticate();
  14. $GO_MODULES->authenticate('search');
  15. require($GO_LANGUAGE->get_language_file('search'));
  16.  
  17. $page_title = $search_title;
  18. require($GO_THEME->theme_path."header.inc");
  19.  
  20. ?>
  21. <table border="0" cellspacing="0" cellpadding="15">
  22. <tr>
  23.     <td>
  24.         <h1><?php echo $search_title; ?></h1>
  25.         <?php echo $search_text; ?><br />
  26.         <form method="get" action="http://www.google.com/search">
  27.         <table border="0" cellpadding="0" cellspacing="3">
  28.         <tr>
  29.                 <td>
  30.                 <input type="text" name="q" size="31" maxlength="255" class="textbox" value="">
  31.                 </td>
  32.                 <td align="right">
  33.                   
  34.                 <?php
  35.                 $button = new button($cmdSearch, 'javascript:document.forms[0].submit()');
  36.                 ?>
  37.                 </td>
  38.         </tr>
  39.         <tr>
  40.             <td colspan="2" >
  41.             <br /><br />
  42.             <a href="http://www.google.com/" target="_blank" title="Google"><img src="<?php echo $GO_THEME->images['google']; ?>" border="0" width="143" height="53" /></a>
  43.             </td>
  44.         </tr>
  45.         </table>
  46.         </form>
  47.  
  48.     </td>
  49. </tr>
  50. </table>
  51. <script type="text/javascript">
  52. document.forms[0].q.focus();
  53. </script>
  54. <?php
  55. require($GO_THEME->theme_path."footer.inc");
  56. ?>
  57.  
  58.