Files
gallery3/modules/search/views/search.html.php
Bharat Mediratta d568a1e9fd Implement relevance ranked boolean searching on a full text index of
item and comment data.  Whew!

It's not pretty yet.  And you have to manually update the index
currently in admin/maintenance.  But it works.
2009-01-17 00:52:50 +00:00

36 lines
732 B
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gSearch">
<form action="<?= url::site("/search") ?>">
<fieldset>
<legend>
<?= t("Search") ?>
</legend>
<ul>
<li>
<input name="q" type="text" value="<?= $q ?>"/>
</li>
<li>
<input type="submit"/>
</li>
</ul>
</fieldset>
</form>
<ul>
<? foreach ($items as $item): ?>
<li>
<a href="<?= url::site("items/$item->id") ?>">
<?= $item->thumb_tag() ?>
<p>
<?= $item->title ?>
</p>
<p>
<?= $item->description ?>
</p>
</a>
</li>
<? endforeach ?>
</ul>
</div>
<?= $theme->pager() ?>