Absolut Engine PHP Cross Reference Web Portal Systems

Source: /search.php - 51 lines - 1700 bytes - Text - Print

   1  <form action="search.php" method="post">
   2  <fieldset>
   3  Search articles: <input type="text" name="query" /><br />
   4  <input type="submit" name="submit" value="Search" />
   5  </fieldset>
   6  </form>
   7  <?
   8  define('TEMPDIR','admin/');
   9  require(TEMPDIR."coreclass.php");
  10  $aepublic=new CArticles();
  11  $aepublic->PublicInitialize();
  12  $aepublic->RequestVariables();
  13  if (isset($aepublic->query))
  14     {
  15     $settings=array(
  16     "query"=>$aepublic->query,
  17     "searchin"=>"title,beginning,text",
  18     "style"=>"anypart"
  19     );
  20     $aepublic->SearchArchive($settings);
  21     while ($aepublic->DBGetRow())
  22           {
  23           $aepublic->GetArticle();
  24           $temp=$aepublic->outcome;
  25           $aepublic->GetArticleImageSet($aepublic->imagesetID);
  26           if ($aepublic->DBGetRow())
  27              {
  28              echo '<img src="files/',$aepublic->GetImageName(),'" alt="',$aepublic->GetImageDescription(),'"><br />';
  29              }
  30           $aepublic->outcome=$temp;
  31           echo '<h1>';
  32           if ($aepublic->cleanurls)
  33              {
  34              if ($aepublic->filename) echo '<a href="',$aepublic->GetArticleFilename(),'">';
  35              else echo '<a href="showarticle.php?articleID=',$aepublic->GetArticleID(),'">';
  36              }
  37           else echo '<a href="showarticle.php?articleID=',$aepublic->GetArticleID(),'">';
  38           $aepublic->GetArticleTitle();
  39           echo '</a></h1>';
  40           $aepublic->GetArticleAuthor();
  41           echo ' | ';
  42           $aepublic->GetArticleDate();
  43           echo ' | ';
  44           $aepublic->GetArticleTime();
  45           echo '<p>';
  46           // $aepublic->GetArticleBeginning();

  47           $aepublic->GetArticleSummary();
  48           echo '</p>';
  49           }
  50     }
  51  ?>

title

Description

title

Description

title

Description

title

title

Body