| 1 |
<?cs include:"header.cs"?> |
|---|
| 2 |
<script type="text/javascript"> |
|---|
| 3 |
addEvent(window, 'load', function() { document.getElementById('q').focus()}); |
|---|
| 4 |
</script> |
|---|
| 5 |
<div id="ctxtnav" class="nav"><?cs |
|---|
| 6 |
with:links = chrome.links ?><?cs |
|---|
| 7 |
if:len(links.prev) || len(links.next) ?><ul><?cs |
|---|
| 8 |
if:len(links.prev) ?> |
|---|
| 9 |
<li class="first<?cs if:!len(links.up) && !len(links.next) ?> last<?cs /if ?>"> |
|---|
| 10 |
← <a href="<?cs var:links.prev.0.href ?>"><?cs |
|---|
| 11 |
var:links.prev.0.title ?></a> |
|---|
| 12 |
</li><?cs |
|---|
| 13 |
/if ?><?cs |
|---|
| 14 |
if:len(links.next) ?> |
|---|
| 15 |
<li class="<?cs if:!len(links.prev) && !len(links.up) ?>first <?cs /if ?>last"> |
|---|
| 16 |
<a href="<?cs var:links.next.0.href ?>"><?cs |
|---|
| 17 |
var:links.next.0.title ?></a> → |
|---|
| 18 |
</li><?cs |
|---|
| 19 |
/if ?></ul><?cs |
|---|
| 20 |
/if ?><?cs |
|---|
| 21 |
/with ?> |
|---|
| 22 |
</div> |
|---|
| 23 |
|
|---|
| 24 |
<div id="content" class="search"> |
|---|
| 25 |
|
|---|
| 26 |
<h1><label for="q">検索</label></h1> |
|---|
| 27 |
<form action="<?cs var:trac.href.search ?>" method="get"> |
|---|
| 28 |
<p> |
|---|
| 29 |
<input type="text" id="q" name="q" size="40" value="<?cs var:search.q ?>" /> |
|---|
| 30 |
<input type="hidden" name="noquickjump" value="1" /> |
|---|
| 31 |
<input type="submit" value="検索実行" /> |
|---|
| 32 |
</p> |
|---|
| 33 |
<p><?cs |
|---|
| 34 |
each filter=search.filters ?> |
|---|
| 35 |
<input type="checkbox" id="<?cs var:filter.name?>" |
|---|
| 36 |
name="<?cs var:filter.name?>" <?cs |
|---|
| 37 |
if:filter.active ?>checked="checked"<?cs /if ?> /> |
|---|
| 38 |
<label for="<?cs var:filter.name ?>"><?cs var:filter.label?></label><?cs |
|---|
| 39 |
/each ?> |
|---|
| 40 |
</p> |
|---|
| 41 |
</form><?cs |
|---|
| 42 |
|
|---|
| 43 |
if:len(search.result) || len(search.quickjump) ?> |
|---|
| 44 |
<hr /><?cs |
|---|
| 45 |
if:len(search.result) ?> |
|---|
| 46 |
<h2>検索結果 <?cs |
|---|
| 47 |
if:search.n_pages > 1 ?>( <?cs |
|---|
| 48 |
var:search.n_hits?> 件中 <?cs |
|---|
| 49 |
var:(search.page-1) * search.page_size + 1 ?> - <?cs |
|---|
| 50 |
var:(search.page-1) * search.page_size + len(search.result) ?> |
|---|
| 51 |
件目)<?cs |
|---|
| 52 |
/if ?></h2><?cs |
|---|
| 53 |
/if ?> |
|---|
| 54 |
<div id="searchable"> |
|---|
| 55 |
<dl id="results"><?cs |
|---|
| 56 |
if:len(search.quickjump) ?> |
|---|
| 57 |
<dt id=quickjump><a href="<?cs var:search.quickjump.href ?>"><?cs var:search.quickjump.name ?> にクイックジャンプする</a></dt> |
|---|
| 58 |
<dd><?cs var:search.quickjump.description ?></dd><?cs |
|---|
| 59 |
/if ?><?cs |
|---|
| 60 |
each item=search.result ?> |
|---|
| 61 |
<dt><a href="<?cs var:item.href ?>"><?cs var:item.title ?></a></dt> |
|---|
| 62 |
<dd><?cs var:item.excerpt ?></dd> |
|---|
| 63 |
<dd> |
|---|
| 64 |
<span class="author">更新者: <?cs var:item.author ?></span> — |
|---|
| 65 |
<span class="date">更新日時: <?cs var:item.date ?></span><?cs |
|---|
| 66 |
if:item.keywords ?> &mdash |
|---|
| 67 |
<span class="keywords">キーワード: <em><?cs var:item.keywords ?></em></span><?cs |
|---|
| 68 |
/if ?> |
|---|
| 69 |
</dd><?cs |
|---|
| 70 |
/each ?> |
|---|
| 71 |
</dl> |
|---|
| 72 |
<hr /> |
|---|
| 73 |
</div><?cs |
|---|
| 74 |
if search.n_pages > 1 ?> |
|---|
| 75 |
<div id="paging"><?cs |
|---|
| 76 |
if len(chrome.links.prev) ?> |
|---|
| 77 |
<a href="<?cs var:chrome.links.prev.0.href ?>" title="<?cs |
|---|
| 78 |
var:chrome.links.prev.0.title ?>">←</a> <?cs |
|---|
| 79 |
/if ?><?cs |
|---|
| 80 |
loop:p = 1, search.n_pages ?><?cs |
|---|
| 81 |
if p == search.page ?><?cs var:p ?><?cs |
|---|
| 82 |
else ?><a href="<?cs var:search.page_href + "&page=" + p?>"><?cs |
|---|
| 83 |
var:p ?></a><?cs |
|---|
| 84 |
/if ?> <?cs |
|---|
| 85 |
/loop ?><?cs |
|---|
| 86 |
if len(chrome.links.next) ?> |
|---|
| 87 |
<a href="<?cs var:chrome.links.next.0.href ?>" title="<?cs |
|---|
| 88 |
var:chrome.links.next.0.title ?>">→</a><?cs |
|---|
| 89 |
/if ?> |
|---|
| 90 |
</div><?cs |
|---|
| 91 |
/if ?><?cs |
|---|
| 92 |
|
|---|
| 93 |
elif:search.q && !search.quickjump ?> |
|---|
| 94 |
<div id="notfound">検索条件にマッチするWikiページ、チケット、チェンジセットが見つかりません。</div><?cs |
|---|
| 95 |
/if ?> |
|---|
| 96 |
|
|---|
| 97 |
<div id="help"> |
|---|
| 98 |
<strong>Note:</strong> 検索についてのヘルプは <a href="<?cs |
|---|
| 99 |
var:trac.href.wiki ?>/TracSearch">TracSearch</a> を参照してください。 |
|---|
| 100 |
</div> |
|---|
| 101 |
|
|---|
| 102 |
</div> |
|---|
| 103 |
<?cs include:"footer.cs"?> |
|---|