<html>
<head>
<title>img0ch - 掲示板内全文検索</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="VERSION" content="<?cs var:html_escape(VERSION) ?>">
<script src="<?cs var:html_escape(StaticURI) ?>/js/img0ch.js" charset="UTF-8"></script>
<script type="text/javascript">
//<!--
var app = Img0ch.App;
app.enableUTF8();
app.setBBS("<?cs var:html_escape(BBS) ?>");
app.setBBSURI("<?cs var:html_escape(BBSURI) ?>");
app.setCGIURI("<?cs var:html_escape(CGIURI) ?>");
app.setStaticURI("<?cs var:html_escape(StaticURI) ?>");
jQuery(function(){
    jQuery("//input[@name='query']").get(0).focus();
});
function redir(element) {
    app.redirectRenderer(element);
    return true;
}
//-->
</script>
<style type="text/css">
<!--
.clear { clear: both; }
.icon-align { vertical-align: top; }
.image { border: none; float: left; }
-->
</style>
<?cs var:META ?>
</head>

<body bgcolor="<?cs var:html_escape(BBS_BG_COLOR) ?>" text="<?cs var:html_escape(BBS_TEXT_COLOR) ?>" link="<?cs var:html_escape(BBS_LINK_COLOR) ?>" alink="<?cs var:html_escape(BBS_ALINK_COLOR) ?>" vlink="<?cs var:html_escape(BBS_VLINK_COLOR) ?>" background="<?cs var:html_escape(BBS_BG_PICTURE) ?>">
<?cs if:Banner ?><table border="1" cellspacing="7" cellpadding="3" width="100%" bgcolor="#ccffcc" align="center"><tr><td><?cs var:Banner ?></td></tr></table><hr><?cs /if ?>

<table border="1" align="center" cellspacing="7" cellpadding="3" width="95%" bgcolor="<?cs var:html_escape(BBS_MENU_COLOR) ?>">
<tr><td>
<a href="<?cs var:html_escape(BBSURI) ?>/">掲示板に戻る</a>
<a href="<?cs var:html_escape(CGIURI) ?>/img0ch-st.cgi/<?cs var:html_escape(BBS) ?>/">検索フォーム</a>
<a href="<?cs var:html_escape(CGIURI) ?>/img0ch-sf.cgi/<?cs var:html_escape(BBS) ?>/">添付ファイル検索</a>
<br>
<form action="<?cs var:html_escape(CGIURI) ?>/img0ch-st.cgi" method="post">
<center>
<input type="text" name="query" value="<?cs var:html_escape(Query) ?>" size="50">
<select name="type">
<option value="subject"<?cs if:SelectedSubject ?> selected<?cs /if ?>>スレッドの題名</option>
<option value="FROM"<?cs if:SelectedFrom ?> selected<?cs /if ?>>名前</option>
<option value="mail"<?cs if:SelectedMail ?> selected<?cs /if ?>>メール欄</option>
<option value="date"<?cs if:SelectedDate ?> selected<?cs /if ?>>時刻</option>
<option value="id"<?cs if:SelectedId ?> selected<?cs /if ?>>ID</option>
<option value="MESSAGE"<?cs if:SelectedMessage ?> selected<?cs /if ?>>本文</option>
</select><br>
<input type="hidden" name="bbs" value="<?cs var:html_escape(BBS) ?>">
<input type="submit" value="検索開始"<?cs if:Disabled ?> disabled<?cs /if ?>>
</center>
</form>
</td></tr>
<tr><td><div id="footer"><a href="http://img0ch.sourceforge.jp">img0ch-st.cgi - img0ch BBS</a></div></td></tr>
</table>

<?cs if:Query ?>
<hr>
<table border="1" align="center" cellspacing="7" cellpadding="3" width="95%" bgcolor="<?cs var:html_escape(BBS_MENU_COLOR) ?>">
<tr><td>
「<?cs var:html_escape(Query) ?>」の検索結果：<?cs var:html_escape(Total) ?>件<br>
<?cs if:Prev ?><a href="<?cs var:CGIURI ?>/img0ch-st.cgi?bbs=<?cs var:html_escape(BBS) ?>&word=<?cs var:html_escape(QueryURLEscaped) ?>&entries=<?cs var:html_escape(Item) ?>&offset=<?cs var:html_escape(Prev) ?>&type=<?cs var:html_escape(SearchType) ?>">&lt;&lt;前</a><?cs /if ?>
<?cs each:item = Pages ?><a href="<?cs var:CGIURI ?>/img0ch-st.cgi?bbs=<?cs var:html_escape(BBS) ?>&word=<?cs var:html_escape(QueryURLEscaped) ?>&entries=<?cs var:html_escape(Item) ?>&offset=<?cs var:html_escape(item.num) ?>&type=<?cs var:html_escape(SearchType) ?>">[<?cs var:html_escape(item.num) ?>]</a>
<?cs /each ?>
<?cs if:Next ?><a href="<?cs var:CGIURI ?>/img0ch-st.cgi?bbs=<?cs var:html_escape(BBS) ?>&word=<?cs var:html_escape(QueryURLEscaped) ?>&entries=<?cs var:html_escape(Item) ?>&offset=<?cs var:html_escape(Next) ?>&type=<?cs var:html_escape(SearchType) ?>">次&gt;&gt;</a><?cs /if ?>
</td></tr>
</table><hr>
<table align="center" border="1" cellspacing="7" cellpadding="3" width="95%" bgcolor="<?cs var:html_escape(BBS_THREAD_COLOR) ?>">
<tr><td><dl>
<?cs each:item = Result ?><dt><?cs var:html_escape(item.resno) ?> 名前：<?cs if:item.mail ?><a href="mailto:<?cs var:html_escape(item.mail) ?>"><b><?cs var:item.name ?></b></a><?cs else ?><b><font color="<?cs var:html_escape(BBS_NAME_COLOR) ?>"><?cs var:item.name ?></font></b><?cs /if ?></b>：<?cs var:item.date ?></dt><dd><?cs var:item.text ?><br><br><hr><a href="<?cs var:CGIURI ?>/read.cgi/<?cs var:BBS ?>/<?cs var:item.key ?>/l50" onclick="redir(this)"><?cs var:html_escape(item.subject) ?></a><?cs if:item.found ?>&nbsp;(<?cs var:item.count ?>レスのうち<?cs var:item.found  ?>件が該当)<?cs /if ?><br><br></dd>
<?cs /each ?>
</dl></td></tr>
</table>
<?cs /if ?>

</body>
</html>
