| 1 | <!--{* |
---|
| 2 | /* |
---|
| 3 | * This file is part of EC-CUBE |
---|
| 4 | * |
---|
| 5 | * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved. |
---|
| 6 | * |
---|
| 7 | * http://www.lockon.co.jp/ |
---|
| 8 | * |
---|
| 9 | * This program is free software; you can redistribute it and/or |
---|
| 10 | * modify it under the terms of the GNU General Public License |
---|
| 11 | * as published by the Free Software Foundation; either version 2 |
---|
| 12 | * of the License, or (at your option) any later version. |
---|
| 13 | * |
---|
| 14 | * This program is distributed in the hope that it will be useful, |
---|
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 17 | * GNU General Public License for more details. |
---|
| 18 | * |
---|
| 19 | * You should have received a copy of the GNU General Public License |
---|
| 20 | * along with this program; if not, write to the Free Software |
---|
| 21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
| 22 | */ |
---|
| 23 | *}--> |
---|
| 24 | |
---|
| 25 | <div id="products" class="contents-main"> |
---|
| 26 | <form name="search_form" method="post" action="?" > |
---|
| 27 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
| 28 | <input type="hidden" name="mode" value="search" /> |
---|
| 29 | <h2>検索条件設定</h2> |
---|
| 30 | |
---|
| 31 | <!--検索条件設定テーブルここから--> |
---|
| 32 | <table> |
---|
| 33 | <tr> |
---|
| 34 | <th>投稿者名</th> |
---|
| 35 | <td><input type="text" name="search_reviewer_name" value="<!--{$arrForm.search_reviewer_name|h}-->" size="30" class="box30" /></td> |
---|
| 36 | <th>投稿者URL</th> |
---|
| 37 | <td><input type="text" name="search_reviewer_url" value="<!--{$arrForm.search_reviewer_url|h}-->" size="30" class="box30" /></td> |
---|
| 38 | </tr> |
---|
| 39 | <tr> |
---|
| 40 | <th>商品名</th> |
---|
| 41 | <td><input type="text" name="search_name" value="<!--{$arrForm.search_name|h}-->" size="30" class="box30" /></td> |
---|
| 42 | <th>商品コード</th> |
---|
| 43 | <td><input type="text" name="search_product_code" value="<!--{$arrForm.search_product_code|h}-->" size="30" class="box30" /></td> |
---|
| 44 | </tr> |
---|
| 45 | <tr> |
---|
| 46 | <th>性別</th> |
---|
| 47 | <!--{assign var=key value=search_sex}--> |
---|
| 48 | <td><!--{html_checkboxes name="$key" options=$arrSex selected=$arrForm[$key]}--></td> |
---|
| 49 | <th>おすすめレベル</th> |
---|
| 50 | <td> |
---|
| 51 | <!--{assign var=key value=search_recommend_level}--> |
---|
| 52 | <select name="<!--{$key}-->"> |
---|
| 53 | <option value="" selected="selected">選択してください</option> |
---|
| 54 | <!--{html_options options=$arrRECOMMEND selected=$arrForm[$key].value|h}--> |
---|
| 55 | </select> |
---|
| 56 | </td> |
---|
| 57 | </tr> |
---|
| 58 | <tr> |
---|
| 59 | <th>投稿日</th> |
---|
| 60 | <td colspan="3"> |
---|
| 61 | <!--{if $arrErr.search_startyear || $arrErr.search_endyear}--> |
---|
| 62 | <span class="attention"><!--{$arrErr.search_startyear}--></span> |
---|
| 63 | <span class="attention"><!--{$arrErr.search_endyear}--></span> |
---|
| 64 | <!--{/if}--> |
---|
| 65 | <select name="search_startyear" style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->"> |
---|
| 66 | <option value="">----</option> |
---|
| 67 | <!--{html_options options=$arrStartYear selected=$arrForm.search_startyear|h}--> |
---|
| 68 | </select>年 |
---|
| 69 | <select name="search_startmonth" style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->"> |
---|
| 70 | <option value="">--</option> |
---|
| 71 | <!--{html_options options=$arrStartMonth selected=$arrForm.search_startmonth|h}--> |
---|
| 72 | </select>月 |
---|
| 73 | <select name="search_startday" style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->"> |
---|
| 74 | <option value="">--</option> |
---|
| 75 | <!--{html_options options=$arrStartDay selected=$arrForm.search_startday|h}--> |
---|
| 76 | </select>日~ |
---|
| 77 | <select name="search_endyear" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->"> |
---|
| 78 | <option value="">----</option> |
---|
| 79 | <!--{html_options options=$arrEndYear selected=$arrForm.search_endyear|h}--> |
---|
| 80 | </select>年 |
---|
| 81 | <select name="search_endmonth" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->"> |
---|
| 82 | <option value="">--</option> |
---|
| 83 | <!--{html_options options=$arrEndMonth selected=$arrForm.search_endmonth|h}--> |
---|
| 84 | </select>月 |
---|
| 85 | <select name="search_endday" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->"> |
---|
| 86 | <option value="">--</option> |
---|
| 87 | <!--{html_options options=$arrEndDay selected=$arrForm.search_endday|h}--> |
---|
| 88 | </select>日 |
---|
| 89 | </td> |
---|
| 90 | </tr> |
---|
| 91 | </table> |
---|
| 92 | |
---|
| 93 | <div class="btn"> |
---|
| 94 | <p class="page_rows">検索結果表示件数 |
---|
| 95 | <!--{assign var=key value="search_page_max"}--> |
---|
| 96 | <!--{if $arrErr[$key]}--> |
---|
| 97 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
| 98 | <!--{/if}--> |
---|
| 99 | <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"> |
---|
| 100 | <!--{html_options options=$arrPageMax selected=$arrForm.search_page_max|h}--> |
---|
| 101 | </select> 件</p> |
---|
| 102 | <div class="btn-area"> |
---|
| 103 | <ul> |
---|
| 104 | <li> |
---|
| 105 | <a class="btn-action" href="javascript:;" onclick="eccube.fnFormModeSubmit('search_form', 'search', '', ''); return false;"><span class="btn-next">この条件で検索する</span></a></li> |
---|
| 106 | </ul> |
---|
| 107 | </div> |
---|
| 108 | </div> |
---|
| 109 | </form> |
---|
| 110 | |
---|
| 111 | |
---|
| 112 | <!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete')}--> |
---|
| 113 | |
---|
| 114 | <!--★★検索結果一覧★★--> |
---|
| 115 | <form name="form1" id="form1" method="post" action="?"> |
---|
| 116 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
| 117 | <input type="hidden" name="mode" value="search" /> |
---|
| 118 | <input type="hidden" name="review_id" value="" /> |
---|
| 119 | <input type="hidden" name="search_pageno" value="<!--{$tpl_pageno|h}-->" /> |
---|
| 120 | <!--{foreach key=key item=item from=$arrHidden}--> |
---|
| 121 | <!--{if $key ne "search_pageno"}--> |
---|
| 122 | <input type="hidden" name="<!--{$key}-->" value="<!--{$item|h}-->" /> |
---|
| 123 | <!--{/if}--> |
---|
| 124 | <!--{/foreach}--> |
---|
| 125 | <h2>検索結果一覧</h2> |
---|
| 126 | <div class="btn"> |
---|
| 127 | <span class="attention"><!--検索結果数--><!--{$tpl_linemax|h}-->件</span> が該当しました。 |
---|
| 128 | <!--{if $smarty.const.ADMIN_MODE == '1'}--> |
---|
| 129 | <a class="btn-normal" href="javascript:;" onclick="eccube.setModeAndSubmit('delete_all','',''); return false;"><span>検索結果を全て削除</span></a> |
---|
| 130 | <!--{/if}--> |
---|
| 131 | <a class="btn-normal" href="javascript:;" onclick="eccube.setModeAndSubmit('csv','',''); return false;"><span>CSV ダウンロード</span></a> |
---|
| 132 | </div> |
---|
| 133 | <!--{if $arrReview > 0 & $tpl_linemax > 0}--> |
---|
| 134 | |
---|
| 135 | <!--{include file=$tpl_pager}--> |
---|
| 136 | |
---|
| 137 | <!--検索結果表示テーブル--> |
---|
| 138 | <table id="products-review-result" class="list"> |
---|
| 139 | <tr> |
---|
| 140 | <th>投稿日</th> |
---|
| 141 | <th>投稿者名</th> |
---|
| 142 | <th>商品名</th> |
---|
| 143 | <th>おすすめレベル</th> |
---|
| 144 | <th>表示・非表示</th> |
---|
| 145 | <th class="edit">編集</th> |
---|
| 146 | <th class="delete">削除</th> |
---|
| 147 | </tr> |
---|
| 148 | |
---|
| 149 | <!--{section name=cnt loop=$arrReview}--> |
---|
| 150 | <tr> |
---|
| 151 | <td><!--{$arrReview[cnt].create_date|h|sfDispDBDate}--></td> |
---|
| 152 | <td><!--{$arrReview[cnt].reviewer_name|h}--></td> |
---|
| 153 | <td><!--{$arrReview[cnt].name|h}--></td> |
---|
| 154 | <!--{assign var=key value="`$arrReview[cnt].recommend_level`"}--> |
---|
| 155 | <td><!--{$arrRECOMMEND[$key]|h}--></td> |
---|
| 156 | <td class="menu"><!--{if $arrReview[cnt].status eq 1}-->表示<!--{elseif $arrReview[cnt].status eq 2}-->非表示<!--{/if}--></td> |
---|
| 157 | <td class="menu"><a href="javascript:;" onclick="eccube.changeAction('./review_edit.php'); eccube.setModeAndSubmit('','review_id','<!--{$arrReview[cnt].review_id}-->'); return false;">編集</a></td> |
---|
| 158 | <td class="menu"><a href="javascript:;" onclick="eccube.setModeAndSubmit('delete','review_id','<!--{$arrReview[cnt].review_id}-->'); return false;">削除</a></td> |
---|
| 159 | </tr> |
---|
| 160 | <!--{/section}--> |
---|
| 161 | </table> |
---|
| 162 | <!--検索結果表示テーブル--> |
---|
| 163 | <!--{/if}--> |
---|
| 164 | </form> |
---|
| 165 | <!--{/if}--> |
---|
| 166 | <!--★★検索結果一覧★★--> |
---|
| 167 | </div> |
---|