Search_Mnogosearch
[ class tree: Search_Mnogosearch ] [ index: Search_Mnogosearch ] [ all elements ]

Source for file examples.php

Documentation is available at examples.php

  1. <?php
  2. print "
  3. <HTML>
  4. <HEAD>
  5. <META NAME=\"Content-Type\" Content=\"text/html; charset=iso-8859-1\">
  6.  
  7. <TITLE>Search_Mnogosearch Examples</TITLE>
  8. <link rel=\"stylesheet\" href=\"style.css\">
  9. </head>
  10. <body bgcolor=\"#ffffff\">";
  11.  
  12. print "<a href=\"".$_SERVER['SCRIPT_NAME']."?demo=1\">Example with default Renderer</a><br/>\n";
  13. print "<a href=\"".$_SERVER['SCRIPT_NAME']."?demo=2\">Example with Sigma Renderer</a><br/>\n";
  14. print "<a href=\"http://ohrwurm.net\">german Jobsearch Engine</a><br/>\n";
  15.  
  16. if (isset($_GET['demo'])) {
  17.     $demo $_GET['demo'];
  18.     $_SESSION['demo'$demo;
  19. elseif (isset($_SESSION['demo'])) {
  20.     $demo $_SESSION['demo'];
  21. }
  22. /**
  23. */
  24.  
  25. if ($demo==1{
  26.     include_once('search-example.php');
  27.     if (!isset($_GET['show'])) {
  28.         print "<a href=\"".$_SERVER['SCRIPT_NAME']."?demo=1&amp;show=1\">show source</a><br/>\n";
  29.     else {
  30.         print "<br><b>Source of search-example.php</b><table width=\"100%\" class=\"source\"><tr><td width=\"100%\" valign=\"top\">";
  31.         highlight_file('search-example.php');
  32.         print "</td></tr></table>";
  33.     }
  34. }
  35. if ($demo==2{
  36.     include_once('sigma-example.php');
  37.     if (!isset($_GET['show'])) {
  38.         print "<a href=\"".$_SERVER['SCRIPT_NAME']."?demo=2&amp;show=1\">show source</a><br/>\n";
  39.     else 
  40.         print "<br><b>Source of sigma-example.php</b><table width=\"100%\" class=\"source\"><tr><td width=\"100%\" valign=\"top\">";
  41.         highlight_file('sigma-example.php');
  42.         print "</td></tr></table>";
  43.     }
  44. }
  45.  
  46.  
  47.  
  48. print "</body></html>";
  49. ?>

Documentation generated on Mon, 11 Mar 2019 14:31:31 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.