カテゴリ | |
---|---|
サマリ | header部への検索フォームの設置 |
バージョン | 1.4.5 |
投稿者 | witi |
状態 | 完了 |
投稿日 | 2005-02-06 (日) 01:25:07 |
header部に検索フォーム(可能ならば、OrangeBoxのようなサイト内外の検索を選択できるモノ)を設置することは可能でしょうか。ご教授頂ければ幸いです。よろしくお願いいたします。
<div id="WikiSerch" style="position:absolute;right:20px;top:40px;"> <!-- ↑ styleの設定は適当に編集してください --> <form action="<?php echo $script ?>" method="post"> <div><input name="encode_hint" value="ぷ" type="hidden" /></div> <div> <input name="plugin" value="lookup" type="hidden" /> <input name="refer" value="<?php echo $title ?>" type="hidden" /> <input name="page" size="20" value="" type="text" accesskey="F" title="serch box"/> <input value="Go!" type="submit" accesskey="g"/><br/> <input name="inter" value="検索" type="radio" checked="checked" id="serch_site" /> <label for="serch_site">サイト内</label> <input name="inter" value="Google.jp" type="radio" id="serch_web"/> <label for="serch_web">Web</label> </div> </form> </div>
InterWikiNameに追加 -[http://www.google.co.jp/search?ie=utf8&oe=utf8&q=$1&lr=lang_ja&hl=ja Google.jp] utf8 -[./?cmd=search&word=$1&type=AND 検索]
<div id="WikiSerch" style="position:absolute;right:20px;top:30px;"> <form action="<?php echo $script ?>" method="post"> <div><input name="encode_hint" value="ぷ" type="hidden" /></div> <div> <input name="plugin" value="lookup" type="hidden" /> <input name="refer" value="<?php echo $title ?>" type="hidden" /> <input name="page" size="25" value="" type="text" accesskey="F" title="serch box"/> <input value="Go!" type="submit" accesskey="g"/><br/> <input name="inter" value="AND検索" type="radio" checked="checked" id="serch_site" /> <label for="serch_site">サイト内をAND検索</label> <input name="inter" value="OR検索" type="radio" id="serch_site_or" /> <label for="serch_site_or">OR検索</label><br /> <input name="inter" value="Google.jp" type="radio" id="serch_web"/> <label for="serch_web">Web全体を検索</label> </div> </form> </div>
-[http://www.google.co.jp/search?ie=utf8&oe=utf8&q=$1&lr=lang_ja&hl=ja Google.jp] utf8 -[./?cmd=search&word=$1&type=OR OR検索] -[./?cmd=search&word=$1&type=AND AND検索]
-[./?cmd=search&word=$1&type=AND AND検索]