Location: PHPKode > projects > Absolut Engine > absolut-engine-33870/searcharchive.php
<?
define(TEMPDIR,'admin/');
require(TEMPDIR."coreclass.php");
$aepublic=new CArticles();
$aepublic->PublicInitialize();
$aepublic->RequestVariables();
echo '<form action="searcharchive.php" method="post">';
echo 'Search articles: <input type="text" name="searchstring">';
echo '<input type="submit" name="submit" value="Search">';
echo '</form>';
if ($aepublic->searchstring)
{
$aepublic->SearchArchive($aepublic->searchstring);
while ($aepublic->DBAccess())
{
$aepublic->GetArticle();
echo '<h1>';
if ($aepublic->cleanurls)
   {
   if ($aepublic->filename) echo '<a href="',$aepublic->GetArticleFilename(),'">';
   else echo '<a href="showarticle.php?articleID=',$aepublic->GetArticleID(),'">';
   }
else echo '<a href="showarticle.php?articleID=',$aepublic->GetArticleID(),'">';
$aepublic->GetArticleTitle();
echo '</a></h1>';
//$aepublic->GetAuthorPhoto();
$aepublic->GetArticleAuthor();
echo ' | ';
$aepublic->GetArticleDate();
echo ' | ';
$aepublic->GetArticleTime();
echo ' | ';
$aepublic->GetArticleSection();
echo '<p>';
// show first image only if no author's photo has been found:
if (!$this->authorphoto) $aepublic->GetArticleImages("","",1,1);
$aepublic->GetArticleBeginning();
echo '</p>';
}
}
?>
Return current item: Absolut Engine