source: branches/version-2_13-dev/data/Smarty/templates/admin/customer/search_customer.tpl @ 23066

Revision 23066, 5.0 KB checked in by pineray, 11 years ago (diff)

#2342 JavaScript?のグローバルな宣言を減らす
eccubeオブジェクト内の階層を減らす.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
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<!--{include file="`$smarty.const.TEMPLATE_ADMIN_REALDIR`admin_popup_header.tpl"}-->
26<script type="text/javascript">
27<!--
28self.moveTo(20,20);self.focus();
29
30function func_submit(customer_id){
31    var fm = window.opener.document.form1;
32    fm.edit_customer_id.value = customer_id;
33    fm.mode.value = 'search_customer';
34    fm.submit();
35    window.close();
36    return false;
37}
38//-->
39</script>
40
41<!--▼検索フォーム-->
42<form name="form1" id="form1" method="post" action="?">
43    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
44    <input name="mode" type="hidden" value="search">
45    <input name="search_pageno" type="hidden" value="">
46    <input name="customer_id" type="hidden" value="">
47
48    <table class="form">
49        <col width="20%" />
50        <col width="80%" />
51        <tr>
52            <th class="colmun">会員ID</th>
53            <td width="287" colspan="2">
54                <!--{assign var=key value="search_customer_id"}-->
55                <!--{if $arrErr[$key]}--><span class="attention"><!--{$arrErr[$key]}--></span><br /><!--{/if}-->
56                <input type="text" name="<!--{$key}-->" maxlength="<!--{$arrForm[$key].length}-->" value="<!--{$arrForm[$key].value|h}-->" size="30" class="box30" <!--{if $arrErr[$key]}--><!--{sfSetErrorStyle}--><!--{/if}--> />
57            </td>
58        </tr>
59        <tr>
60            <th class="colmun">お名前</th>
61            <td>
62                <!--{assign var=key value="search_name"}-->
63                <!--{if $arrErr[$key]}--><span class="attention"><!--{$arrErr[$key]}--></span><br /><!--{/if}-->
64                <input type="text" name="<!--{$key}-->" maxlength="<!--{$arrForm[$key].length}-->" value="<!--{$arrForm[$key].value|h}-->" size="30" class="box30" <!--{if $arrErr[$key]}--><!--{sfSetErrorStyle}--><!--{/if}--> />
65            </td>
66        </tr>
67        <tr class="n">
68            <th class="colmun">お名前(フリガナ)</th>
69            <td>
70            <!--{assign var=key value="search_kana"}-->
71            <!--{if $arrErr[$key]}--><span class="attention"><!--{$arrErr[$key]}--></span><br /><!--{/if}-->
72            <input type="text" name="<!--{$key}-->" maxlength="<!--{$arrForm[$key].length}-->" value="<!--{$arrForm[$key].value|h}-->" size="30" class="box30" <!--{if $arrErr[$key]}--><!--{sfSetErrorStyle}--><!--{/if}--> />
73            </td>
74        </tr>
75    </table>
76
77    <div class="btn-area">
78        <ul>
79            <li><a class="btn-action" href="javascript:;" onclick="eccube.fnFormModeSubmit('form1', 'search', '', ''); return false;" name="subm"><span class="btn-next">検索を開始</span></a></li>
80        </ul>
81    </div>
82
83    <p>
84    <!--{if $smarty.post.mode == 'search'}-->
85        <!--▼検索結果表示-->
86            <!--{if $tpl_linemax > 0}-->
87            <p><!--{$tpl_linemax}-->件が該当しました。<!--{$tpl_strnavi}--></p>
88            <!--{/if}-->
89
90        <!--▼検索後表示部分-->
91        <table class="list">
92            <tr>
93                <th>会員ID</th>
94                <th>お名前(フリガナ)</th>
95                <th>TEL</th>
96                <th>決定</th>
97            </tr>
98            <!--{section name=cnt loop=$arrCustomer}-->
99            <!--▼会員<!--{$smarty.section.cnt.iteration}-->-->
100            <tr>
101                <td>
102                <!--{$arrCustomer[cnt].customer_id|h}-->
103                </td>
104                <td><!--{$arrCustomer[cnt].name01|h}--><!--{$arrCustomer[cnt].name02|h}-->(<!--{$arrCustomer[cnt].kana01|h}--><!--{$arrCustomer[cnt].kana02|h}-->)</td>
105                <td><!--{$arrCustomer[cnt].tel01|h}-->-<!--{$arrCustomer[cnt].tel02|h}-->-<!--{$arrCustomer[cnt].tel03|h}--></td>
106                <td align="center"><a href="" onclick="return func_submit(<!--{$arrCustomer[cnt].customer_id|h}-->)">決定</a></td>
107            </tr>
108            <!--▲会員<!--{$smarty.section.cnt.iteration}-->-->
109            <!--{sectionelse}-->
110            <tr>
111                <td colspan="4">会員情報が存在しません。</td>
112            </tr>
113            <!--{/section}-->
114        </table>
115
116        <!--▲検索結果表示-->
117    <!--{/if}-->
118</form>
119<!--{include file="`$smarty.const.TEMPLATE_ADMIN_REALDIR`admin_popup_footer.tpl"}-->
Note: See TracBrowser for help on using the repository browser.