1 | <!--{* |
---|
2 | /* |
---|
3 | * This file is part of EC-CUBE |
---|
4 | * |
---|
5 | * Copyright(c) 2000-2010 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 | <div id="products" class="contents-main"> |
---|
25 | <form name="search_form" method="post" action="?" > |
---|
26 | <input type="hidden" name="mode" value="search" /> |
---|
27 | <h2>検索条件設定</h2> |
---|
28 | |
---|
29 | <!--検索条件設定テーブルここから--> |
---|
30 | <table class="form"> |
---|
31 | <tr> |
---|
32 | <th>ブログ名</th> |
---|
33 | <td><input type="text" name="search_blog_name" value="<!--{$arrForm.search_blog_name|h}-->" size="30" class="box30" /></td> |
---|
34 | <th>ブログ記事タイトル</th> |
---|
35 | <td><input type="text" name="search_blog_title" value="<!--{$arrForm.search_blog_title|h}-->" size="30" class="box30" /></td> |
---|
36 | </tr> |
---|
37 | <tr> |
---|
38 | <th>URL</th> |
---|
39 | <td><input type="text" name="search_blog_url" value="<!--{$arrForm.search_blog_url|h}-->" size="30" class="box30" /></td> |
---|
40 | <th>状態</th> |
---|
41 | <td> |
---|
42 | <select name="search_status" style="<!--{$arrErr.search_status|sfGetErrorColor}-->"> |
---|
43 | <option value="">----</option> |
---|
44 | <!--{html_options options=$arrTrackBackStatus selected=$arrForm.search_status}--> |
---|
45 | </select> |
---|
46 | </td> |
---|
47 | </tr> |
---|
48 | <tr> |
---|
49 | <th>商品名</th> |
---|
50 | <td><input type="text" name="search_name" value="<!--{$arrForm.search_name|h}-->" size="30" class="box30" /></td> |
---|
51 | <th>商品コード</th> |
---|
52 | <td><input type="text" name="search_product_code" value="<!--{$arrForm.search_product_code|h}-->" size="30" class="box30" /></td> |
---|
53 | </tr> |
---|
54 | <tr> |
---|
55 | <th>投稿日</th> |
---|
56 | <td colspan="3"> |
---|
57 | <!--{if $arrErr.search_startyear || $arrErr.search_endyear}--> |
---|
58 | <span class="attention"><!--{$arrErr.search_startyear}--></span> |
---|
59 | <span class="attention"><!--{$arrErr.search_endyear}--></span> |
---|
60 | <!--{/if}--> |
---|
61 | <select name="search_startyear" style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->"> |
---|
62 | <option value="">----</option> |
---|
63 | <!--{html_options options=$arrStartYear selected=$arrForm.search_startyear}--> |
---|
64 | </select>年 |
---|
65 | <select name="search_startmonth" style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->"> |
---|
66 | <option value="">--</option> |
---|
67 | <!--{html_options options=$arrStartMonth selected=$arrForm.search_startmonth}--> |
---|
68 | </select>月 |
---|
69 | <select name="search_startday" style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->"> |
---|
70 | <option value="">--</option> |
---|
71 | <!--{html_options options=$arrStartDay selected=$arrForm.search_startday}--> |
---|
72 | </select>日~ |
---|
73 | <select name="search_endyear" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->"> |
---|
74 | <option value="">----</option> |
---|
75 | <!--{html_options options=$arrEndYear selected=$arrForm.search_endyear}--> |
---|
76 | </select>年 |
---|
77 | <select name="search_endmonth" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->"> |
---|
78 | <option value="">--</option> |
---|
79 | <!--{html_options options=$arrEndMonth selected=$arrForm.search_endmonth}--> |
---|
80 | </select>月 |
---|
81 | <select name="search_endday" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->"> |
---|
82 | <option value="">--</option> |
---|
83 | <!--{html_options options=$arrEndDay selected=$arrForm.search_endday}--> |
---|
84 | </select>日 |
---|
85 | </td> |
---|
86 | </tr> |
---|
87 | </table> |
---|
88 | |
---|
89 | <div class="btn"> |
---|
90 | <p class="page_rows">検索結果表示件数 |
---|
91 | <!--{assign var=key value="search_page_max"}--> |
---|
92 | <!--{if $arrErr[$key]}--> |
---|
93 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
94 | <!--{/if}--> |
---|
95 | <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"> |
---|
96 | <!--{html_options options=$arrPageMax selected=$arrForm.search_page_max}--> |
---|
97 | </select> 件</p> |
---|
98 | <div class="btn-area"> |
---|
99 | <ul> |
---|
100 | <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('search_form', 'search', '', ''); return false;"><span class="btn-next">この条件で検索する</span></a></li> |
---|
101 | </ul> |
---|
102 | </div> |
---|
103 | </div> |
---|
104 | <!--検索条件設定テーブルここまで--> |
---|
105 | </form> |
---|
106 | |
---|
107 | |
---|
108 | <!--{if $smarty.post.mode == 'search'}--> |
---|
109 | |
---|
110 | <!--★★検索結果一覧★★--> |
---|
111 | <form name="form1" id="form1" method="post" action="?"> |
---|
112 | <input type="hidden" name="mode" value="search" /> |
---|
113 | <input type="hidden" name="trackback_id" value="" /> |
---|
114 | <input type="hidden" name="search_pageno" value="<!--{$tpl_pageno}-->" /> |
---|
115 | <!--{foreach key=key item=item from=$arrHidden}--> |
---|
116 | <!--{if $key ne "search_pageno"}--> |
---|
117 | <input type="hidden" name="<!--{$key}-->" value="<!--{$item}-->" /> |
---|
118 | <!--{/if}--> |
---|
119 | <!--{/foreach}--> |
---|
120 | |
---|
121 | <h2>検索結果一覧</h2> |
---|
122 | <div class="btn"> |
---|
123 | <span class="attention"><!--検索結果数--><!--{$tpl_linemax}-->件</span> が該当しました。 |
---|
124 | <!--{if $smarty.const.ADMIN_MODE == '1'}--> |
---|
125 | <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('delete_all','',''); return false;"><span>検索結果をすべて削除</span></a> |
---|
126 | <!--{/if}--> |
---|
127 | <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('csv','',''); return false;" ><span>CSV ダウンロード</span></a> |
---|
128 | </div> |
---|
129 | <!--{include file=$tpl_pager}--> |
---|
130 | |
---|
131 | <!--{if $arrTrackback > 0 & $tpl_linemax > 0}--> |
---|
132 | <!--{* 検索結果表示テーブル *}--> |
---|
133 | <table class="list" id="products-trackback-result"> |
---|
134 | <tr> |
---|
135 | <th>投稿日</th> |
---|
136 | <th>商品名</th> |
---|
137 | <th>ブログ名</th> |
---|
138 | <th>ブログ記事タイトル</th> |
---|
139 | <th>状態</th> |
---|
140 | <th class="edit">編集</th> |
---|
141 | <th class="delete">削除</th> |
---|
142 | </tr> |
---|
143 | |
---|
144 | <!--{section name=cnt loop=$arrTrackback}--> |
---|
145 | <tr> |
---|
146 | <td><!--{$arrTrackback[cnt].create_date|sfDispDBDate}--></td> |
---|
147 | <td><!--{$arrTrackback[cnt].name|h}--></td> |
---|
148 | <td><a href="<!--{$arrTrackback[cnt].url|h}-->"><!--{$arrTrackback[cnt].blog_name|h}--></a></td> |
---|
149 | <td><!--{$arrTrackback[cnt].title|h}--></td> |
---|
150 | <td><!--{if $arrTrackback[cnt].status eq 1}-->表示<!--{elseif $arrTrackback[cnt].status eq 2}-->非表示<!--{elseif $arrTrackback[cnt].status eq 3}-->スパム<!--{/if}--></td> |
---|
151 | <td><a class="btn-normal" href="javascript:;" onclick="fnChangeAction('./trackback_edit.php'); fnModeSubmit('','trackback_id','<!--{$arrTrackback[cnt].trackback_id}-->'); return false;"><span>編集</span></a></td> |
---|
152 | <td><a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('delete','trackback_id','<!--{$arrTrackback[cnt].trackback_id}-->'); return false;"><span>削除</span></a></td> |
---|
153 | </tr> |
---|
154 | <!--{/section}--> |
---|
155 | </table> |
---|
156 | <!--{* 検索結果表示テーブル *}--> |
---|
157 | <!--{/if}--> |
---|
158 | </form> |
---|
159 | <!--{/if}--> |
---|
160 | <!--★★検索結果一覧★★--> |
---|
161 | </div> |
---|