home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / modules / wiki / template / find.php < prev    next >
PHP Script  |  2004-03-08  |  1KB  |  34 lines

  1. <?php
  2. // $Id: find.php,v 1.1 2004/01/12 22:14:05 comsubvie Exp $
  3.  
  4. require_once(TemplateDir . '/common.php');
  5.  
  6. // The find template is passed an associative array with the following
  7. // elements:
  8. //
  9. //   find      => A string containing the text that was searched for.
  10. //   pages     => A string containing the XHTML markup for the list of pages
  11. //                found containing the given text.
  12.  
  13. function template_find($args)
  14. {
  15.   template_common_prologue(array('norobots' => 1,
  16.                                  'title'    => TMPL_Find .' '. $args['find'],
  17.                                  'heading'  => TMPL_Find .' '. $args['find'],
  18.                                  'headlink' => '',
  19.                                  'headsufx' => '',
  20.                                  'toolbar'  => 1));
  21. ?>
  22. <div id="body">
  23. <?php print $args['pages']; ?>
  24. </div>
  25. <?php
  26.   template_common_epilogue(array('twin'      => '',
  27.                                  'edit'      => '',
  28.                                  'editver'   => 0,
  29.                                  'history'   => '',
  30.                                  'timestamp' => '',
  31.                                  'nosearch'  => 0));
  32. }
  33. ?>
  34.