mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-24 21:39:11 -04:00
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.
36 lines
732 B
PHP
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() ?>
|