source: branches/comu-ver2/data/Smarty/templates/default/admin/order/index.tpl @ 17365

Revision 17365, 16.5 KB checked in by Seasoft, 16 years ago (diff)

XHTML管理画面の不具合修正・調整など

  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/html; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2008 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="order" class="contents-main">
25<form name="search_form" id="search_form" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
26<input type="hidden" name="mode" value="search" />
27  <h2>検索条件設定</h2>
28  <!--{* 検索条件設定テーブルここから *}-->
29  <table>
30    <tr>
31      <th>受注番号</th>
32      <td>
33        <!--{assign var=key1 value="search_order_id1"}-->
34        <!--{assign var=key2 value="search_order_id2"}-->
35        <span class="attention"><!--{$arrErr[$key1]}--></span>
36        <span class="attention"><!--{$arrErr[$key2]}--></span>
37        <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->"  size="6" class="box6" />
38         ~
39        <input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->"  size="6" class="box6" />
40      </td>
41    </tr>
42    <tr>
43      <th>対応状況</th>
44      <td>
45        <!--{assign var=key value="search_order_status"}-->
46        <span class="attention"><!--{$arrErr[$key]}--></span>
47        <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
48        <option value="">選択してください</option>
49        <!--{html_options options=$arrORDERSTATUS selected=$arrForm[$key].value}-->
50        </select>
51      </td>
52    </tr>
53    <tr>
54      <th>顧客名</th>
55      <td>
56      <!--{assign var=key value="search_order_name"}-->
57      <span class="attention"><!--{$arrErr[$key]}--></span>
58      <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />       
59      </td>
60    </tr>
61    <tr>
62      <th>顧客名(カナ)</th>
63      <td>
64      <!--{assign var=key value="search_order_kana"}-->
65      <span class="attention"><!--{$arrErr[$key]}--></span>
66      <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />       
67      </td>
68    </tr>
69    <tr>
70      <th>メールアドレス</th>
71      <td>
72        <!--{assign var=key value="search_order_email"}-->
73        <span class="attention"><!--{$arrErr[$key]}--></span>
74        <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />       
75      </td>
76    </tr>
77    <tr>
78      <th>TEL</th>
79      <td>
80        <!--{assign var=key value="search_order_tel"}-->
81        <span class="attention"><!--{$arrErr[$key]}--></span>
82        <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />       
83      </td>
84    </tr>
85    <tr>
86      <th>生年月日</th>
87      <td>
88        <span class="attention"><!--{$arrErr.search_sbirthyear}--></span>
89        <span class="attention"><!--{$arrErr.search_ebirthyear}--></span>   
90        <select name="search_sbirthyear" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
91        <option value="">----</option>
92        <!--{html_options options=$arrBirthYear selected=$arrForm.search_sbirthyear.value}-->
93        </select>年
94        <select name="search_sbirthmonth" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
95        <option value="">--</option>
96        <!--{html_options options=$arrMonth selected=$arrForm.search_sbirthmonth.value}-->
97        </select>月
98        <select name="search_sbirthday" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
99        <option value="">--</option>
100        <!--{html_options options=$arrDay selected=$arrForm.search_sbirthday.value}-->
101        </select>日~
102        <select name="search_ebirthyear" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
103        <option value="">----</option>
104        <!--{html_options options=$arrBirthYear selected=$arrForm.search_ebirthyear.value}-->
105        </select>年
106        <select name="search_ebirthmonth" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
107        <option value="">--</option>
108        <!--{html_options options=$arrMonth selected=$arrForm.search_ebirthmonth.value}-->
109        </select>月
110        <select name="search_ebirthday" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
111        <option value="">--</option>
112        <!--{html_options options=$arrDay selected=$arrForm.search_ebirthday.value}-->
113        </select>日
114      </td>
115    </tr>
116    <tr>
117      <th>性別</th>
118      <td>
119      <!--{assign var=key value="search_order_sex"}-->
120      <span class="attention"><!--{$arrErr[$key]}--></span>
121      <!--{html_checkboxes name="$key" options=$arrSex selected=$arrForm[$key].value}-->
122      </td>
123    </tr>
124    <tr>
125      <th>支払方法</th>
126      <td>
127      <!--{assign var=key value="search_payment_id"}-->
128      <span class="attention"><!--{$arrErr[$key]|escape}--></span>
129      <!--{html_checkboxes name="$key" options=$arrPayment|escape selected=$arrForm[$key].value}-->
130      </td>
131    </tr>
132    <tr>
133      <th>受注日</th>
134      <td>
135        <!--{if $arrErr.search_sorderyear}--><span class="attention"><!--{$arrErr.search_sorderyear}--></span><!--{/if}-->
136        <!--{if $arrErr.search_eorderyear}--><span class="attention"><!--{$arrErr.search_eorderyear}--></span><!--{/if}-->
137        <select name="search_sorderyear"  style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
138        <option value="">----</option>
139        <!--{html_options options=$arrRegistYear selected=$arrForm.search_sorderyear.value}-->
140        </select>年
141        <select name="search_sordermonth" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
142        <option value="">--</option>
143        <!--{html_options options=$arrMonth selected=$arrForm.search_sordermonth.value}-->
144        </select>月
145        <select name="search_sorderday" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
146        <option value="">--</option>
147        <!--{html_options options=$arrDay selected=$arrForm.search_sorderday.value}-->
148        </select>日~
149        <select name="search_eorderyear" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
150        <option value="">----</option>
151        <!--{html_options options=$arrRegistYear selected=$arrForm.search_eorderyear.value}-->
152        </select>年
153        <select name="search_eordermonth" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
154        <option value="">--</option>
155        <!--{html_options options=$arrMonth selected=$arrForm.search_eordermonth.value}-->
156        </select>月
157        <select name="search_eorderday" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
158        <option value="">--</option>
159        <!--{html_options options=$arrDay selected=$arrForm.search_eorderday.value}-->
160        </select>日
161      </td>
162    </tr>
163    <tr>
164      <th>更新日</th>
165      <td>
166        <!--{if $arrErr.search_supdateyear}--><span class="attention"><!--{$arrErr.search_supdateyear}--></span><!--{/if}-->
167        <!--{if $arrErr.search_eupdateyear}--><span class="attention"><!--{$arrErr.search_eupdateyear}--></span><!--{/if}-->
168        <select name="search_supdateyear"  style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
169          <option value="">----</option>
170          <!--{html_options options=$arrRegistYear selected=$arrForm.search_supdateyear.value}-->
171        </select>年
172        <select name="search_supdatemonth" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
173          <option value="">--</option>
174          <!--{html_options options=$arrMonth selected=$arrForm.search_supdatemonth.value}-->
175        </select>月
176        <select name="search_supdateday" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
177          <option value="">--</option>
178          <!--{html_options options=$arrDay selected=$arrForm.search_supdateday.value}-->
179        </select>日~
180        <select name="search_eupdateyear" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
181          <option value="">----</option>
182          <!--{html_options options=$arrRegistYear selected=$arrForm.search_eupdateyear.value}-->
183        </select>年
184        <select name="search_eupdatemonth" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
185          <option value="">--</option>
186          <!--{html_options options=$arrMonth selected=$arrForm.search_eupdatemonth.value}-->
187        </select>月
188        <select name="search_eupdateday" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
189          <option value="">--</option>
190          <!--{html_options options=$arrDay selected=$arrForm.search_eupdateday.value}-->
191        </select>日
192      </td>
193    </tr>
194    <tr>
195      <th>購入金額</th>
196      <td>
197        <!--{assign var=key1 value="search_total1"}-->
198        <!--{assign var=key2 value="search_total2"}-->
199        <span class="attention"><!--{$arrErr[$key1]}--></span>
200        <span class="attention"><!--{$arrErr[$key2]}--></span>
201        <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->"  size="6" class="box6" />
202        円 ~
203        <input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->"  size="6" class="box6" />
204        円
205      </td>
206    </tr>
207    <tr>
208      <th>購入商品</th>
209      <td>
210        <!--{assign var=key value="search_product_name"}-->
211        <!--{if $arrErr[$key]}--><span class="attention"><!--{$arrErr[$key]}--></span><!--{/if}-->
212        <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"  size="6" class="box30" />
213      </td>
214    </tr>
215  </table>
216
217  <div>
218    検索結果表示件数
219    <!--{assign var=key value="search_page_max"}-->
220    <span class="attention"><!--{$arrErr[$key]}--></span>
221    <select name="<!--{$arrForm[$key].keyname}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
222    <!--{html_options options=$arrPageMax selected=$arrForm[$key].value}-->
223    </select> 件
224    <button type="submit"><span>この条件で検索する</span></button>
225  </div>
226  <!--検索条件設定テーブルここまで-->
227</form>
228
229<!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete') }-->
230
231<!--★★検索結果一覧★★-->
232<form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
233<input type="hidden" name="mode" value="search" />
234<input type="hidden" name="order_id" value="" />
235<!--{foreach key=key item=item from=$arrHidden}-->
236<input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->" />
237<!--{/foreach}-->
238  <h2>検索結果一覧</h2>
239 <p>
240    <span class="attention"><!--検索結果数--><!--{$tpl_linemax}-->件</span>&nbsp;が該当しました。
241    <!--{if $smarty.const.ADMIN_MODE == '1'}-->
242    <button type="button" onclick="fnModeSubmit('delete_all','','');"><span>検索結果をすべて削除</span></button>
243    <!--{/if}-->
244    <button type="button" onclick="fnModeSubmit('csv','','');">CSV DOWNLOAD</button>
245    <a href="../contents/csv.php?tpl_subno_csv=order">&gt;&gt; CSV出力項目設定</a>
246    <button type="button" onclick="fnSelectCheckSubmit();"><span>PDF一括出力</span></button>
247  </p>
248  <!--{include file=$tpl_pager}-->
249
250  <!--{if count($arrResults) > 0}-->
251
252  <!--{* 検索結果表示テーブル *}-->
253  <table class="list">
254    <!--{* ペイジェントモジュール連携用 *}-->
255    <!--{assign var=path value=`$smarty.const.MODULE_PATH`mdl_paygent/paygent_order_index.tpl}-->
256    <!--{if file_exists($path)}-->
257      <!--{include file=$path}-->
258    <!--{else}-->
259    <tr>
260      <th>受注日</th>
261      <th>受注番号</th>
262      <th>顧客名</th>
263      <th>支払方法</th>
264      <th>購入金額(円)</th>
265      <th>全商品発送日</th>
266      <th>対応状況</th>
267      <th>
268        帳票<br />
269        <button type="button" onclick="fnBoxChecked(true);">全て選択</button>
270        <button type="button" onclick="fnBoxChecked(false);">全て解除</button>
271      </th>
272      <th>編集</th>
273      <th>メール</th>
274      <th>削除</th>
275    </tr>
276
277    <!--{section name=cnt loop=$arrResults}-->
278    <!--{assign var=status value="`$arrResults[cnt].status`"}-->
279    <tr style="background:<!--{$arrORDERSTATUS_COLOR[$status]}-->;">
280      <td class="center"><!--{$arrResults[cnt].create_date|sfDispDBDate}--></td>
281      <td class="center"><!--{$arrResults[cnt].order_id}--></td>
282      <td><!--{$arrResults[cnt].order_name01|escape}--> <!--{$arrResults[cnt].order_name02|escape}--></td>
283      <!--{assign var=payment_id value="`$arrResults[cnt].payment_id`"}-->
284      <td class="center"><!--{$arrPayment[$payment_id]}--></td>
285      <td class="right"><!--{$arrResults[cnt].total|number_format}--></td>
286      <td class="center"><!--{$arrResults[cnt].commit_date|sfDispDBDate|default:"未発送"}--></td>
287      <td class="center"><!--{$arrORDERSTATUS[$status]}--></td>
288      <td class="center">
289        <input type="checkbox" name="pdf_order_id[]" value="<!--{$arrResults[cnt].order_id}-->" id="pdf_order_id_<!--{$arrResults[cnt].order_id}-->"/><label for="pdf_order_id_<!--{$arrResults[cnt].order_id}-->">一括出力</label>&nbsp;
290        <a href="./" onClick="win02('pdf.php?order_id=<!--{$arrResults[cnt].order_id}-->','pdf_input','500','650'); return false;"><span class="icon_class">個別出力</span></a>
291      </td>
292      <td class="center"><a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnChangeAction('<!--{$smarty.const.URL_ORDER_EDIT}-->'); fnModeSubmit('pre_edit', 'order_id', '<!--{$arrResults[cnt].order_id}-->'); return false;"><span class="icon_edit">編集</span></a></td>
293      <td class="center"><a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnChangeAction('<!--{$smarty.const.URL_ORDER_MAIL}-->'); fnModeSubmit('pre_edit', 'order_id', '<!--{$arrResults[cnt].order_id}-->'); return false;"><span class="icon_mail">通知</span></a></td>
294      <td class="center"><a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('delete', 'order_id', <!--{$arrResults[cnt].order_id}-->); return false;"><span class="icon_delete">削除</span></a></td>
295    </tr>
296    <!--{/section}-->
297    <!--{/if}-->
298  </table>
299  <!--{* 検索結果表示テーブル *}-->
300
301  <!--{/if}-->
302
303</form>
304<!--{/if}-->
305</div>
306
307<script type="text/javascript">
308<!--
309    function fnSelectCheckSubmit(){
310
311        var fm = document.form1;
312               
313        var i;
314        var checkflag = 0;
315        var max = fm["pdf_order_id[]"].length;
316       
317        if(max) {
318            for (i=0;i<max;i++){
319                if(fm["pdf_order_id[]"][i].checked == true){
320                    checkflag = 1;
321                }
322            }
323        } else {
324            if(fm["pdf_order_id[]"].checked == true) {
325                checkflag = 1;
326            }
327        }
328
329        if(checkflag == 0){
330            alert('チェックボックスが選択されていません');
331            return false;
332        }
333       
334        if(checkflag == 1){
335      window.open("about:blank", "pdf", "width=1000,height=800,scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no");
336      document.form1.target = "pdf";
337          document.form1.mode.value = 'pdf';
338          document.form1.action = 'pdf.php';
339          document.form1.submit();
340        }
341    }
342   
343    function fnBoxChecked(check){
344        var count;
345        var fm = document.form1;
346        var max = fm["pdf_order_id[]"].length;
347        for(count=0; count<max; count++){
348            fm["pdf_order_id[]"][count].checked = check;
349        }
350    }
351   
352//-->
353</script>
Note: See TracBrowser for help on using the repository browser.