This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * 質問 検索結果 | |
| */ | |
| function entry_search(){ | |
| //検索したい文字列が入る。 | |
| $query = @$_GET["q"]; | |
| //ブログに使われているラベルIDを取得する。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form method="GET" action="/blog/search"> | |
| <input type="text" name="q" id="textfield" value="<?php echo htmlspecialchars($_GET["q"],ENT_QUOTES); ?>" /><br /> | |
| <input type="radio" id="blog_category_cms" name="category" value="blog_category_cms" <?php if(@$_GET["category"] == "blog_category_cms"){ echo 'checked="checked"'; } ?> /><label for="blog_category_cms">SOY CMSの記事のみを検索</label><br /> | |
| <input type="radio" id="blog_category_shop" name="category" value="blog_category_shop" <?php if(@$_GET["category"] == "blog_category_shop"){ echo 'checked="checked"'; } ?> /><label for="blog_category_shop">SOY Shopの記事のみを検索</label><br /> | |
| <input type="submit" name="button" id="button" class="search_button" value="検索" /> | |
| </form> |