summaryrefslogtreecommitdiff
path: root/modules/search/views/search.html.php
blob: 86a29db5b01983ad4bda5fa4e13d48fef21de833 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?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() ?>