<html>
<head>
<title>img0ch - 掲示板内全文検索</title>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<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/jquery-1.1.js?v=<?cs var:html_escape(SecuredVersion) ?>"></script>
<script src="<?cs var:html_escape(StaticURI) ?>/js/img0ch/app.js?v=<?cs var:html_escape(SecuredVersion) ?>" charset="UTF-8"></script>
<script type="text/javascript">
//<!--
var app = Img0ch.App;
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>
<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="FROM">名前</option>
<option value="mail">メール欄</option>
<option value="date">時刻</option>
<option value="id">ID</option>
<option value="MESSAGE" selected>本文</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:html_escape(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:item.subject ?></a>&nbsp;(<?cs var:item.count ?>レスのうち<?cs var:item.found  ?>件が該当)<br><br></dd>
<?cs /each ?>
</dl></td></tr>
</table>
<?cs /if ?>

</body>
</html>
